:root{color-scheme:light;--ink:#253a54;--sky:#d5e8ec;--paper:#f6f5e9;--plum:#704d70;--yellow:#f5d577;--green:#467867;--blue:#34687f;font-family:Trebuchet MS,Arial,sans-serif;color:var(--ink);background:#e8eef0;font-size:16px}
*{box-sizing:border-box}
body{margin:0}
button,a,select,summary{touch-action:manipulation}
button,select{font:inherit;color:inherit}
button{min-height:44px;padding:8px 15px;border:1.5px solid #8e9d9e;background:var(--paper);border-radius:7px;cursor:pointer;font-weight:700}
button:hover:not(:disabled){background:#ffebaf;border-color:var(--ink)}
button:disabled{opacity:.55;cursor:default}
button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible,.viewport:focus-visible{outline:3px solid #a54069;outline-offset:4px}
header{max-width:1440px;margin:auto;padding:16px 28px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.return{color:var(--ink);font-weight:700;text-decoration:none;padding:10px 0;min-height:44px}
.edition{font-size:14px}
header button{background:transparent;border-color:transparent;font-size:14px}
main{max-width:1440px;margin:auto;padding:0 28px 22px}
.title-row{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:10px 0 24px}
h1{font-family:Georgia,serif;font-size:clamp(30px,4.5vw,54px);letter-spacing:-1.8px;font-weight:500;margin:0 0 7px}
p{line-height:1.5;margin:0 0 16px}
.title-row p{margin:0;font-size:17px}
.scoreboard{text-align:right;white-space:nowrap}
.scoreboard strong{display:block;font:32px Georgia,serif}
.scoreboard span{font-size:14px;display:block;margin-top:5px}
.world{background:var(--sky);border:2px solid var(--ink);border-radius:12px;overflow:hidden;box-shadow:0 6px 0 #becdce}
.map-toolbar{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:var(--paper);border-bottom:2px solid var(--ink);gap:12px}
.map-toolbar nav{display:flex;gap:6px}
.area{background:transparent;border-color:transparent;font-size:14px}
.area.active{background:var(--ink);color:white}
.zoom{display:flex;align-items:center;gap:8px}
.zoom button{width:44px;padding:4px;font-size:22px}
.zoom output{font-size:13px;min-width:40px;text-align:center}
.viewport{overflow:auto;overscroll-behavior-x:contain;scroll-behavior:smooth;max-height:640px;scrollbar-color:#65778c #d5e8ec;scrollbar-width:thin}
#scene{width:100%;min-width:960px}
#scene svg{display:block;width:100%;height:auto}
.scene-svg{fill:none;stroke:#354457;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.scene-svg text{stroke:none;fill:#253a54;font-family:Trebuchet MS,Arial,sans-serif}
.scene-svg .shop-name{font-family:Georgia,serif;font-weight:700;letter-spacing:.2px}
.scene-svg [role=button]{cursor:pointer;outline:none}
.scene-svg .hit{stroke:transparent;fill:transparent;stroke-width:4}
.scene-svg [role=button]:hover .hit{stroke:#a54069;stroke-dasharray:5 5}
.scene-svg [role=button]:focus .hit{stroke:#a54069;fill:#fff4;stroke-width:5}
.scene-svg .found-mark{stroke:#467867;stroke-width:5;fill:none}
.map-caption{display:flex;gap:12px;justify-content:space-between;padding:10px 15px;background:#d5e8ec;border-top:1px solid #879aa3;font-size:12px}
.map-caption>span:first-child{font-weight:bold}
.feedback{margin:19px 0 14px;min-height:48px;padding:10px 14px;border-left:4px solid var(--green);background:#dce7dc;font-size:15px}
.section-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px}
.section-heading h2{font:22px Georgia,serif;margin:0}
.section-heading span{font-size:13px}
.tray{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.target{display:grid;grid-template-columns:48px 1fr;gap:8px;align-items:center;text-align:left;min-height:78px;padding:9px;background:#f6f5e9;border:1.5px solid #a4b2b8;position:relative}
.target svg{width:48px;height:48px;stroke:#354457;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;fill:none}
.target strong{display:block;font-size:13px;line-height:1.25}
.target small{display:block;font-size:11px;margin-top:4px;font-weight:400}
.target[aria-pressed=true]{border-color:var(--plum);box-shadow:0 0 0 2px var(--plum)}
.target.found{background:#d7e5da}
.target.found small{font-weight:700;color:#2e5c48}
.clue{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0}
.clue p{margin:0;font-size:14px}
.clue button{font-size:12px;flex-shrink:0}
.inspector{border-top:1px solid #a4b2b8;border-bottom:1px solid #a4b2b8}
summary{padding:16px 3px;cursor:pointer;font-weight:700;min-height:48px}
summary span{font-weight:400;font-size:13px;margin-left:12px}
.inspect-body{display:grid;grid-template-columns:300px 1fr;gap:28px;padding:0 0 18px}
.landmark-control{display:grid;gap:8px}
.landmark-control label{font-size:13px}
.landmark-control select{width:100%;min-height:46px;border:1px solid #82949f;border-radius:5px;padding:8px;background:#fff}
.inspect-actions{display:flex;flex-wrap:wrap;gap:10px}
#inspect-content p{font-size:14px;margin-bottom:10px}
#inspect-content h3{margin:0 0 8px;font:21px Georgia,serif}
footer{display:flex;justify-content:space-between;align-items:center;gap:15px;padding-top:16px;font-size:12px}
footer button{font-size:12px;background:transparent}
dialog{color:var(--ink);background:var(--paper);border:2px solid var(--ink);border-radius:14px;padding:28px;max-width:480px;width:calc(100% - 30px);box-shadow:8px 9px 0 #253a5433;max-height:calc(100dvh - 30px);overflow:auto}
dialog::backdrop{background:#253a5480;backdrop-filter:blur(3px)}
dialog h2{font:34px/1.05 Georgia,serif;letter-spacing:-.7px;margin:8px 0 18px}
dialog p,dialog li{font-size:15px}
dialog ol{padding-left:21px;line-height:1.5;margin:12px 0 18px}
dialog li{padding-left:4px;margin:8px 0}
.small{font-size:13px}
.primary{display:block;background:var(--ink);color:white;border-color:var(--ink);width:100%;min-height:50px}
.primary:hover:not(:disabled){background:var(--blue);color:white}
.postmark{border:2px solid var(--plum);color:var(--plum);border-radius:50%;width:88px;height:88px;float:right;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(12deg);font:23px Georgia,serif;margin-left:12px}
.postmark small{font:10px Trebuchet MS,sans-serif}
.rosette{font-size:58px;color:var(--plum);text-align:center}
#result{text-align:center}
.result-score{font:48px Georgia,serif;margin:16px 0}
#result-return{margin-top:12px;width:100%;background:transparent}
@media(min-width:1500px){.viewport{max-height:none}
}
@media(max-width:1000px){.target{grid-template-columns:1fr;text-align:center;justify-items:center;gap:3px}
.target small{font-size:10px}
}
@media(max-width:600px){header{padding:8px 14px}
.edition{display:none}
main{padding:0 14px 18px}
.title-row{margin:10px 0 18px;gap:8px;align-items:flex-start}
h1{letter-spacing:-1px;font-size:31px}
.title-row p{font-size:13px;max-width:210px}
.scoreboard strong{font-size:25px}
.scoreboard span{font-size:11px}
.map-toolbar{padding:6px;gap:3px}
.map-toolbar nav{gap:0}
.area{font-size:12px;padding:7px}
.zoom{gap:3px}
.zoom button{width:44px}
.zoom output{display:none}
.viewport{max-height:450px}
.map-caption{font-size:11px;padding:8px}
.map-caption>span:last-child{max-width:155px;text-align:right}
.feedback{font-size:13px;margin-top:16px;min-height:62px}
.section-heading{align-items:flex-start}
.section-heading h2{font-size:21px;max-width:180px}
.section-heading span{font-size:11px;max-width:100px;text-align:right}
.tray{grid-template-columns:repeat(3,1fr);gap:8px}
.target{min-height:107px}
.target strong{font-size:12px}
.target small{font-size:10px}
.clue{display:block;padding:12px 0}
.clue button{margin-top:10px;width:100%}
.inspect-body{grid-template-columns:1fr;gap:16px}
summary span{display:block;margin:6px 0 0 18px;font-size:12px}
footer{align-items:flex-start}
footer span{max-width:220px;line-height:1.5}
dialog{padding:23px}
dialog h2{font-size:30px}
.postmark{width:75px;height:75px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}


.area.active:hover:not(:disabled){background:var(--blue);color:white}
@media(max-width:600px){.viewport{max-height:540px}
}

/* Small action feedback; the board remains the focus. */
.sound-switch { font: inherit; font-size: 13px; min-height: 40px; padding: 6px 10px; white-space: nowrap; cursor: pointer; }
.sound-switch[aria-pressed=true] { box-shadow: inset 0 0 0 2px currentColor; }
.sound-switch:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
@media(max-width: 600px) { header { flex-wrap: wrap; gap: 8px; } }
