@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700;800;900&display=swap');
:root{--paper:#f0f7f5;--ink:#233d42;--muted:#63797c;--green:#208d70;--green-dark:#13644f;--line:#dce9e5;--font:'Nunito Sans',Arial,sans-serif;--shadow:0 6px 0 #dce9e5}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{min-width:280px;scroll-padding-bottom:120px}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 var(--font);-webkit-font-smoothing:antialiased}
button,a,textarea{font:inherit}
button{border:0;cursor:pointer;color:inherit;background:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button:disabled{cursor:not-allowed;opacity:.5}
a{color:var(--green-dark);text-underline-offset:3px}
button:focus-visible,a:focus-visible,summary:focus-visible,textarea:focus-visible{outline:3px solid #b670eb;outline-offset:4px}
h1,h2,h3,p{margin:0}
svg.icon{width:22px;height:22px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round;display:block;flex-shrink:0}
button svg{pointer-events:none}
.skip-link{position:fixed;top:-80px;left:12px;z-index:100;background:white;padding:12px;border-radius:12px}.skip-link:focus{top:12px}
.site-header{width:min(100%,1100px);margin:auto;min-height:70px;padding:12px 20px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.wordmark{display:flex;align-items:center;gap:8px;padding:0;font-size:25px;letter-spacing:-1px;font-weight:900;line-height:1.1;white-space:nowrap}.wordmark-name strong{color:var(--green-dark);font-weight:inherit}.wordmark img{width:31px;height:31px;flex:none}
.staging-label{margin-left:auto;font-size:11px;font-weight:800;color:var(--green-dark);background:#e1ede9;border-radius:999px;padding:4px 9px;white-space:nowrap}
@media(max-width:460px){.staging-label{display:none}}
@media(max-width:359px){.site-header .wordmark{font-size:19px;gap:6px;letter-spacing:-.6px}.wordmark img{width:26px;height:26px}}
.site-header nav{display:flex;gap:9px}.nav-link{display:grid;place-items:center;width:44px;height:44px;border:2px solid white;border-radius:15px;background:#e1ede9;color:#52756a;box-shadow:0 3px 0 #d3e2db}.nav-link:nth-child(2){color:#8160b5;background:#ece4f8;box-shadow:0 3px 0 #dfd1ef}.nav-link:hover{filter:brightness(.97)}
main{max-width:1100px;margin:auto;padding:0 16px}
.shell{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"panel" "map" "dock";gap:12px;min-width:0}
#content{grid-area:panel;min-width:0;outline:none}
.panel-enter{animation:enter .25s ease-out both;min-width:0}
.eyebrow{font-size:12px;letter-spacing:1.2px;text-transform:uppercase;font-weight:900;color:#6d8b83}
body[data-screen=home] .shell{grid-template-areas:"intro" "map" "play";gap:8px}
body[data-screen=home] #content{display:contents}
.home-intro{grid-area:intro;text-align:center;padding:12px 0 0}
.home-meta{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:7px 12px}
.streak-pill{display:inline-flex;align-items:center;gap:5px;min-height:32px;padding:5px 10px;background:#e4ece8;color:#62766d;border-radius:999px;font-size:12px;font-weight:900;white-space:nowrap}
.streak-pill.active{background:#ffe8d9;color:#a64125;box-shadow:0 2px 0 #f2d0be}
.streak-pill .icon{width:17px;height:17px}
.home-intro h1{font-size:42px;line-height:1.08;font-weight:900;letter-spacing:-1.8px;margin:9px 0}
.home-intro h1 span{color:var(--green)}
.home-intro p{color:var(--muted);font-size:15px;font-weight:600}
.home-play{grid-area:play;min-width:0;background:#fff;border:2px solid #e3eee8;border-radius:24px;padding:17px 16px 12px;box-shadow:var(--shadow)}
.section-label{font-size:14px;font-weight:900;margin-bottom:10px}
.difficulty-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.difficulty-choice{padding:10px 3px;border:2px solid #e4ebe8;border-radius:16px;display:flex;flex-direction:column;align-items:center;gap:3px;background:#f7faf8;min-width:0;transition:transform .15s,border-color .15s}
.difficulty-icon{height:25px;color:#6b8278}
.difficulty-choice:disabled{cursor:default}.difficulty-choice:disabled[aria-pressed=false]{opacity:.62}
.difficulty-choice strong{font-size:15px;font-weight:900}.difficulty-choice small{font-size:10px;font-weight:700;line-height:1.3;color:#657972;overflow-wrap:anywhere}
.difficulty-choice.easy[aria-pressed=true]{border-color:#55a371;background:#e7f5e4;box-shadow:0 3px 0 #55a371}.difficulty-choice.medium[aria-pressed=true]{border-color:#568fc9;background:#e7f2ff;box-shadow:0 3px 0 #568fc9}.difficulty-choice.hard[aria-pressed=true]{border-color:#a07ac6;background:#f2e9ff;box-shadow:0 3px 0 #a07ac6}
.difficulty-choice.easy .difficulty-icon{color:#4a9967}.difficulty-choice.medium .difficulty-icon{color:#4483c5}.difficulty-choice.hard .difficulty-icon{color:#9264bf}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:54px;border:2px solid transparent;border-radius:17px;padding:11px 18px;font-size:17px;font-weight:900;line-height:1.35;transition:transform .15s,box-shadow .15s;max-width:100%;white-space:normal}
.btn.primary{color:white;background:var(--green);box-shadow:0 5px 0 var(--green-dark)}
.btn.secondary{background:white;border-color:#cfded8;color:#4e6b63;box-shadow:0 4px 0 #d6e3dd}
.btn:not(:disabled):hover{filter:brightness(1.04)}.btn:not(:disabled):active{transform:translateY(3px);box-shadow:0 1px 0 var(--green-dark)}
.btn.wide{width:100%}.start-btn{position:relative;justify-content:center;padding-left:48px;padding-right:48px;margin:17px 0 7px;min-height:57px}
.start-btn>.icon{position:absolute;right:18px;top:50%;transform:translateY(-50%)}
.button-day{display:inline-block;margin-left:7px;padding:3px 8px;background:#ffffff25;border-radius:8px;font-size:13px}
.home-note{font-size:12px;text-align:center;color:var(--muted);margin:7px 0 0}
.map-stage{grid-area:map;position:relative;isolation:isolate;min-width:0;width:100%;height:clamp(310px,45svh,460px);overflow:hidden;border:2px solid #d7e7e3;border-radius:23px;background:#dceeea;box-shadow:0 4px 0 #d7e7e3}
body[data-screen=home] .map-stage{height:230px;border:0;box-shadow:none;background:transparent}
#map{position:absolute;inset:0;width:100%;height:100%;border-radius:inherit}
.maplibregl-canvas:focus-visible{outline:3px solid #b670eb;outline-offset:-4px}
.map-top-label{position:absolute;top:12px;left:50%;transform:translateX(-50%);display:flex;gap:7px;align-items:center;padding:6px 11px;border-radius:30px;background:#ffffffed;color:#54776c;z-index:2;font-size:11px;font-weight:800;max-width:calc(100% - 24px);text-align:center;pointer-events:none}
body[data-screen=home] .map-top-label{display:none}
.live-dot{width:6px;height:6px;border-radius:50%;background:#5ab18b;flex-shrink:0}
.map-tools{position:absolute;right:10px;bottom:39px;z-index:3;background:#fffffff5;border:1px solid #d4e2db;border-radius:15px;display:flex;flex-direction:column;align-items:center;padding:3px;box-shadow:0 3px 0 #b7d3ca70}
.map-tools button{width:40px;height:40px;display:grid;place-items:center;border-radius:11px}.map-tools button:hover{background:#e7f5ee}
.tool-divider{height:1px;background:var(--line);width:22px;margin:2px 0}
body[data-screen=home] .map-tools{display:none}
.center-pin{display:none;position:absolute;z-index:3;bottom:39px;left:50%;transform:translateX(-50%);align-items:center;gap:8px;min-height:44px;padding:8px 15px;background:#fff;border:2px solid #d3e4dc;border-radius:15px;font-size:13px;font-weight:800;box-shadow:0 3px 0 #c7dcd3}
body[data-screen=game] .center-pin{display:flex}.center-pin .icon{width:19px;height:19px}
.map-bottom-hint{position:absolute;bottom:92px;left:16px;z-index:2;color:#4b7268;background:#ffffffe3;border-radius:9px;padding:4px 7px;font-size:10px;display:flex;align-items:center;gap:5px;pointer-events:none;max-width:calc(100% - 85px)}
.map-bottom-hint .icon{width:13px;height:13px}
body:not([data-screen=game]) .map-bottom-hint{display:none}
.maplibregl-ctrl-attrib{font:9px/1.45 var(--font)!important;background:#fffffff0!important;color:#4b675e!important;max-width:100%}
.maplibregl-ctrl-attrib a{color:#4b675e!important}
.maplibregl-ctrl-bottom-right{max-width:calc(100% - 12px);right:2px!important;bottom:2px!important}
.maplibregl-ctrl-scale{background:#ffffffd9!important;border-color:#5c7d72!important;color:#42695a!important;font:9px var(--font)!important;margin:0 0 8px 10px!important}
.map-message{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);padding:12px 14px;border-radius:14px;background:#fff;z-index:4;font-size:13px;display:flex;gap:8px;align-items:center;white-space:nowrap}
.spinner{width:16px;height:16px;border:2px solid #cee4da;border-top-color:var(--green);border-radius:50%;animation:spin 1s linear infinite}
.map-error{position:absolute;inset:16px;z-index:8;background:#f0f7f5f5;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;text-align:center;padding:20px}
.map-error h3{font-size:19px}.map-error p{font-size:13px;color:var(--muted)}.map-error>.icon{width:35px;height:35px}
.game-top{display:flex;align-items:center;gap:9px;min-height:44px;margin-bottom:10px;min-width:0}
.back-link{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border:2px solid #d9e6df;background:white;border-radius:14px}
.day-label{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:14px;font-weight:900}
.mode-tag{font-size:10px;border-radius:7px;background:#e1eae5;padding:3px 6px;font-weight:800;color:#5d776b}
.score-pill{margin-left:auto;display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-end;min-width:0;max-width:45%;padding:7px 9px;border:2px solid #e3c990;background:#fff2ce;border-radius:13px;font-size:14px;font-weight:900;font-variant-numeric:tabular-nums}
.score-pill .icon{width:15px;height:15px;color:#c18822}.score-pill small{font-size:11px;color:#92713d}
.progress-list{display:flex;align-items:center;justify-content:center;gap:15px;margin:4px 0 13px}
.progress-step{position:relative;display:grid;place-items:center;width:37px;height:37px;border:2px solid transparent;border-radius:13px;background:var(--category-bg);color:var(--category);opacity:.55}
.progress-step .icon{width:19px;height:19px}.progress-step.current{border-color:var(--category);opacity:1;box-shadow:0 3px 0 var(--category);transform:translateY(-2px)}.progress-step.done{background:var(--category);color:white;opacity:1}
.clue-card{border:2px solid var(--category-bg);border-top:5px solid var(--category);background:white;border-radius:20px;padding:14px 16px 18px;min-width:0;box-shadow:0 4px 0 #d9e6e0}
.round-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin-bottom:11px;min-width:0}
.category-tag{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:9px;font-size:12px;font-weight:900;max-width:100%;line-height:1.5;white-space:normal}
.category-tag .icon{width:16px;height:16px}.round-meta>span:last-child{font-size:12px;font-weight:800;color:#788b8a;flex-shrink:0}
.clue-title{font-size:clamp(22px,5.8vw,28px);line-height:1.25;font-weight:900;letter-spacing:-.55px;margin:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal;height:auto;max-height:none;overflow:visible}
.reveal-card .clue-title{font-size:21px;line-height:1.3}
.reveal-score{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px 12px;margin:15px 0 12px;padding:12px;border-radius:14px;background:#edf5f5}
.reveal-score>strong{font-size:29px;line-height:1.1;letter-spacing:-.6px;color:#267f6d;overflow-wrap:anywhere}
.reveal-score strong small{font-size:12px;letter-spacing:0;font-weight:700}
.reveal-score>span{display:flex;align-items:center;gap:4px;font-size:11px;color:#597872;font-weight:800}
.reveal-score>span .icon{width:15px;height:15px}.reveal-score.perfect{background:#fff2cd}.reveal-score.perfect strong{color:#9a701c}
.reveal-location{display:flex;align-items:flex-start;gap:8px;font-size:15px;font-weight:800;line-height:1.45;max-width:100%;overflow-wrap:anywhere;white-space:normal;max-height:none;overflow:visible}
.reveal-location>.icon{width:17px;height:17px;color:var(--green);margin-top:3px}.reveal-location>span{min-width:0;flex:1}
.story-details{margin-top:13px;border-top:1px solid var(--line);padding-top:2px}
.story-details summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:44px;cursor:pointer;font-size:13px;font-weight:800;color:#698079}
.story-details summary::-webkit-details-marker{display:none}
.story-details summary .icon{width:16px;height:16px;transform:rotate(90deg)}.story-details[open] summary .icon{transform:rotate(-90deg)}
.reveal-fact{font-size:14px;line-height:1.65;color:#506a64;overflow-wrap:anywhere}.result-detail{font-size:11px;color:#698079;margin-top:10px}
.source-link{display:inline-flex;align-items:center;gap:5px;min-height:40px;font-size:12px;font-weight:800}.source-link .icon{width:13px;height:13px}
.action-dock{grid-area:dock;position:sticky;bottom:0;z-index:12;margin:0 -16px;padding:10px 16px calc(14px + env(safe-area-inset-bottom));background:#f0f7f5f5;border-top:1px solid #d8e9e0;backdrop-filter:blur(10px)}
.pin-status{font-size:12px;font-weight:700;text-align:center;color:#6b8179;min-height:18px;margin-bottom:7px}.pin-status.selected{color:var(--green-dark)}.pin-key{display:inline-flex;gap:6px;align-items:center}.pin-key:before{content:'';height:7px;width:7px;background:#e18d55;border-radius:50%}
.map-legend{display:flex;align-items:center;justify-content:center;gap:22px;font-size:12px;font-weight:700;color:#637a73;margin-bottom:8px}.map-legend>span{display:flex;gap:7px;align-items:center}.map-legend i{width:9px;height:9px;border-radius:50%;background:#dc8754}.map-legend i.answer{background:#286849}
#day-shelf{max-width:480px;margin:22px auto 0;padding-bottom:15px}.shelf-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.shelf-heading h2{font-size:16px;font-weight:900}.next-day-link{min-height:44px;display:flex;align-items:center;gap:6px;font-size:13px;font-weight:800;color:#497966}.next-day-link .icon{width:17px;height:17px}
.day-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
.day-tile{position:relative;min-width:0;min-height:64px;border:2px solid #d6e3dc;border-radius:17px;background:white;box-shadow:0 4px 0 #dce7e1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0}
.day-number{font-size:22px;font-weight:900;line-height:1.2}.day-status .icon{width:13px;height:13px;color:#97b1a2;margin-top:4px}
.day-tile.selected{border-color:#4e9f7b;background:#e1f4df;box-shadow:0 4px 0 #4e9f7b}.day-tile.completed .day-status .icon{color:#278462}
body:not([data-screen=home]) #day-shelf{display:none}
.site-footer{max-width:1100px;margin:14px auto 0;padding:16px 20px 22px;text-align:center;color:#788e85;font-size:11px}
.site-footer>span:first-child{display:none}.site-footer button{font-size:12px;min-height:36px;color:#567568}.footer-dot{padding:0 7px}
body[data-screen=game] .site-footer,body[data-screen=reveal] .site-footer{display:none}
.results-panel{max-width:540px;margin:0 auto}.result-hero{text-align:center;margin:10px 0 17px}.result-hero>.icon{width:43px;height:43px;margin:0 auto 8px;stroke:#d79f32}.result-title{font-size:32px;line-height:1.2;letter-spacing:-1px;font-weight:900;margin-top:5px}
.total-box{display:flex;flex-direction:column;align-items:center;background:#e2f3de;border:2px solid #cbe3c5;border-radius:22px;padding:18px;margin-bottom:16px}
.total-box>span{font-size:13px;font-weight:800;color:#5f8255}.total-box>strong{font-size:44px;letter-spacing:-1.4px;line-height:1.2;color:#377957;overflow-wrap:anywhere;max-width:100%}.total-box strong small{font-size:17px;letter-spacing:0}.total-box>small{font-size:11px;color:#709164;margin-top:2px}
.result-rows{background:white;border:2px solid #e0ebe5;border-radius:20px;padding:3px 12px;box-shadow:0 4px 0 #e0ebe5}
.result-row{display:flex;align-items:center;gap:10px;width:100%;min-height:59px;border-bottom:1px solid #edf1ef;padding:9px 0;text-align:left}.result-row:last-child{border:0}.row-icon{border-radius:12px;padding:9px}.row-icon .icon{width:20px;height:20px}.row-category{flex:1;min-width:0;font-size:13px;font-weight:800;line-height:1.3;overflow-wrap:anywhere}.row-score{font-weight:900;font-size:15px;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}.row-score small{font-size:10px;font-weight:700;color:#7a9185}.result-row .chevron{width:12px;height:12px;color:#8ba092}
.badge{display:flex;align-items:center;gap:10px;margin-top:15px;padding:13px;background:#fff1c8;border:2px solid #ecd293;border-radius:17px}.badge-number{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border:3px solid #d8a447;border-radius:50%;font-size:25px;font-weight:900;color:#9c742b}.badge>span:nth-child(2){flex:1;min-width:0}.badge strong{display:block;font-size:15px;font-weight:900}.badge small{display:block;font-size:11px;color:#907742}.badge>.icon{color:#bf8e37}
.perfect-count{text-align:center;color:#6f867a;font-size:13px;font-weight:700;margin:17px 0}
.result-actions{display:grid;grid-template-columns:1fr 1.25fr;gap:10px;margin-top:19px}.result-actions .btn{font-size:15px;padding:11px 10px}
.replay-link{display:flex;gap:7px;align-items:center;justify-content:center;min-height:44px;margin:12px auto 0;font-size:13px;font-weight:800;color:#729080}.replay-link .icon{width:16px;height:16px}
body[data-screen=result] .map-stage{height:280px;margin-top:6px}
.location-pin{width:30px;height:38px;cursor:grab;filter:drop-shadow(0 3px 3px #193c3b33)}.location-pin svg{width:100%;height:100%;overflow:visible}.location-pin.answer-pin{width:27px;height:34px}.pin-label{font:900 10px var(--font);fill:white;text-anchor:middle;dominant-baseline:middle}
.celebration{position:absolute;z-index:6;top:60px;left:16px;right:16px;max-width:360px;margin:auto;pointer-events:none;border:3px solid white;border-radius:22px;background:#e8fff0;box-shadow:0 7px 0 #2b745c28,0 12px 30px #1e51462b;animation:reward-pop .45s cubic-bezier(.2,.9,.3,1.3) both}
.celebration[data-kind=perfect]{background:#fff3c7}
#celebration-message{display:flex;align-items:center;gap:11px;position:relative;padding:18px 25px 18px 14px}
.reward-icon{display:grid;place-items:center;flex-shrink:0;width:49px;height:49px;border-radius:17px;background:#32a875;color:white;box-shadow:0 4px 0 #24855a}.reward-icon .icon{width:29px;height:29px}
.celebration[data-kind=perfect] .reward-icon{background:#eda944;box-shadow:0 4px 0 #c68426}
.reward-copy{min-width:0}.reward-copy strong{display:block;font-size:27px;font-weight:900;line-height:1.15;color:#25775b;letter-spacing:-.7px}.reward-copy>span{display:block;font-size:12px;font-weight:700;margin-top:3px;color:#4e7c66}.celebration[data-kind=perfect] .reward-copy strong{color:#9b681c}.celebration[data-kind=perfect] .reward-copy>span{color:#8e763c}
.celebration-close{position:absolute;right:4px;top:3px;width:32px;height:32px;display:grid;place-items:center;pointer-events:auto;opacity:.6}.celebration-close .icon{width:15px;height:15px}
.confetti{position:absolute;inset:0;pointer-events:none}.confetti i{position:absolute;left:calc(8% + var(--i)*7%);top:-9px;width:6px;height:10px;background:#7ab5f0;border-radius:2px;animation:confetti 1.2s calc(var(--i)*.025s) ease-out both}.confetti i:nth-child(3n){background:#b78ad9}.confetti i:nth-child(3n + 1){background:#eeb05e}.confetti i:nth-child(3n + 2){background:#63b58b}
dialog{border:2px solid #dce9e1;border-radius:25px;background:#f8fbf8;color:var(--ink);width:min(480px,calc(100% - 24px));max-height:85dvh;padding:32px 24px;box-shadow:0 16px 80px #174c4235;overflow-y:auto}
dialog::backdrop{background:#163f3e66;backdrop-filter:blur(3px)}.dialog-close{position:absolute;right:10px;top:10px;width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#e8f0eb;color:#70857a}
dialog h2{font-size:27px;font-weight:900;line-height:1.2;letter-spacing:-.7px;margin:12px 0 19px;padding-right:14px}dialog h3{font-size:16px;margin:20px 0 7px}dialog p{font-size:14px;line-height:1.7;color:#63786d}dialog a{overflow-wrap:anywhere}
.instruction{display:flex;align-items:flex-start;gap:12px;margin:19px 0}.step-number{display:grid;place-items:center;flex-shrink:0;width:31px;height:31px;background:#e0eedd;color:#58835b;border-radius:11px;font-weight:900}.instruction strong{display:block;font-size:15px;margin-bottom:4px}.instruction p{font-size:13px}
.stats-filter{display:flex;gap:8px}.stats-filter button{flex:1;min-height:42px;border:2px solid #dce6df;border-radius:12px;font-size:13px;font-weight:800}.stats-filter .active{border-color:#5b9c79;background:#e1f0dc}
.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:21px 0}.stat-grid>div{padding:15px 3px;text-align:center;border-radius:13px;background:#e6f0df}.stat-grid strong{font-size:24px;letter-spacing:-.7px;overflow-wrap:anywhere}.stat-grid small{display:block;font-size:9px;font-weight:800;color:#7e9270;line-height:1.3;margin-top:5px;letter-spacing:0}.stat-item{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #dfe9dc;font-size:13px}.stat-item small{font-size:10px;color:#7d9375}
.empty-stats{text-align:center;margin:20px 0}
.share-area{width:100%;height:250px;border:2px solid #dfe9dc;border-radius:14px;background:white;color:#2d4a3d;font:13px/1.7 var(--font);padding:13px;resize:vertical;margin-top:14px}
#toast{position:fixed;left:50%;bottom:calc(120px + env(safe-area-inset-bottom));transform:translate(-50%,12px);background:#255c48;color:white;padding:12px 17px;border-radius:15px;box-shadow:0 4px 20px #16432c25;max-width:90%;font-size:13px;text-align:center;z-index:100;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
#toast.visible{opacity:1;transform:translate(-50%,0)}
.noscript{padding:30px;background:white;color:#32533d;position:fixed;inset:15% 10%;z-index:100}
@keyframes enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes reward-pop{from{opacity:0;transform:scale(.84) translateY(10px)}to{opacity:1;transform:scale(1) translateY(0)}}
@keyframes confetti{0%{opacity:0;transform:translateY(0) rotate(0)}15%{opacity:1}100%{opacity:0;transform:translateY(120px) rotate(calc(var(--i)*55deg))}}
@media(min-width:600px) and (max-width:899px){main{max-width:580px}.home-intro h1{font-size:47px}body[data-screen=home] .map-stage{height:280px}.map-stage{height:440px}.clue-title{font-size:28px}}
@media(min-width:900px){
  .site-header{min-height:90px;padding:18px 30px}.wordmark{font-size:29px}
  main{padding:10px 30px 0}.shell{grid-template-columns:360px minmax(0,1fr);grid-template-areas:"panel map" "panel dock";gap:12px 25px;align-items:start}
  body[data-screen=home] .shell{grid-template-columns:400px minmax(0,1fr);grid-template-areas:"intro map" "play map";column-gap:34px;row-gap:23px;align-items:center}
  .home-intro{text-align:left;padding:22px 0 0}.home-intro h1{font-size:55px;letter-spacing:-2px}.home-intro p{font-size:17px}
  body[data-screen=home] .map-stage{height:440px}.home-play{padding:20px}.difficulty-choice{padding:12px 6px}.difficulty-choice small{font-size:11px}
  .map-stage{height:560px}.action-dock{position:static;margin:0;padding:10px 0 8px;background:transparent;border:0;backdrop-filter:none}
  .clue-title{font-size:28px}.reveal-card .clue-title{font-size:25px}.reveal-location{font-size:16px}
  .clue-card{padding:18px 19px 22px}.progress-list{margin-bottom:18px;gap:20px}.progress-step{width:42px;height:42px}
  #day-shelf{max-width:520px;margin-top:36px}.day-tile{min-height:75px}.site-footer{margin-top:22px}
  body[data-screen=result] .shell{grid-template-areas:"panel map";grid-template-columns:400px minmax(0,1fr)}
  body[data-screen=result] .map-stage{height:590px}.results-panel{width:100%}
}
@media(max-width:359px){main{padding:0 12px}.site-header{padding:10px 14px}.wordmark{font-size:22px}.site-header nav{gap:7px}.home-intro h1{font-size:37px}.home-play{padding:14px 11px 10px}.difficulty-choice strong{font-size:14px}.difficulty-choice small{font-size:9px}.clue-card{padding:12px 12px 16px}.clue-title{font-size:23px}.progress-list{gap:12px}.score-pill{font-size:12px;padding:7px}.day-label{font-size:12px}.mode-tag{font-size:9px}.map-stage{height:300px}.action-dock{margin:0 -12px;padding-left:12px;padding-right:12px}.reward-copy strong{font-size:24px}.reward-copy>span{font-size:11px}.reward-icon{width:40px;height:40px}.row-icon{padding:6px}.result-row{gap:7px}.row-category{font-size:12px}.row-score{font-size:14px}}
@media(max-height:700px) and (max-width:599px){body[data-screen=home] .map-stage{height:190px}.map-stage{height:300px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.confetti{display:none}}

.open-messages{display:flex;align-items:center;justify-content:center;min-height:44px;margin-top:13px;font-weight:800;font-size:14px}.share-note{font-size:11px;text-align:center;margin-top:6px}

/* During a round, reserve the screen for the map. Text always keeps its natural height. */
body:is([data-screen=game],[data-screen=reveal]) .site-header{display:none}
body:is([data-screen=game],[data-screen=reveal]) .game-top{min-height:40px;margin:0 0 6px}
body:is([data-screen=game],[data-screen=reveal]) .back-link{width:40px;height:40px;border-radius:12px}
body:is([data-screen=game],[data-screen=reveal]) .day-label{font-size:12px}
body:is([data-screen=game],[data-screen=reveal]) .score-pill{padding:5px 8px;font-size:13px}
body:is([data-screen=game],[data-screen=reveal]) .progress-list{gap:5px;margin:0 0 7px}
body:is([data-screen=game],[data-screen=reveal]) .progress-step{width:auto;flex:1;height:4px;border:0;border-radius:4px;box-shadow:none;transform:none}
body:is([data-screen=game],[data-screen=reveal]) .progress-step .icon{display:none}
body:is([data-screen=game],[data-screen=reveal]) .progress-step.current{background:var(--category)}
body:is([data-screen=game],[data-screen=reveal]) .clue-card{padding:9px 12px 11px;border-radius:15px;border-top-width:3px;box-shadow:0 2px 0 #d9e6e0}
body:is([data-screen=game],[data-screen=reveal]) .round-meta{margin-bottom:6px;gap:5px}
body:is([data-screen=game],[data-screen=reveal]) .category-tag{font-size:10px;padding:3px 6px;border-radius:7px}
body:is([data-screen=game],[data-screen=reveal]) .category-tag .icon{width:14px;height:14px}
body:is([data-screen=game],[data-screen=reveal]) .clue-title{font-size:20px;line-height:1.22;letter-spacing:-.35px}
body:is([data-screen=game],[data-screen=reveal]) .map-top-label,
body:is([data-screen=game],[data-screen=reveal]) .map-bottom-hint{display:none}
body:is([data-screen=game],[data-screen=reveal]) .map-stage{border-radius:16px}
body:is([data-screen=game],[data-screen=reveal]) .pin-status{position:absolute;width:1px;height:1px;min-height:0;margin:0;overflow:hidden;clip-path:inset(50%)}
body:is([data-screen=game],[data-screen=reveal]) .action-dock .btn{min-height:48px;padding:9px 14px;font-size:16px;border-radius:14px}
body:is([data-screen=game],[data-screen=reveal]) .celebration{top:24px}
.answer-summary{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:3px 0}
.answer-place{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:14px;align-items:start}
.answer-name{margin:0;font-size:16px;line-height:1.3;letter-spacing:-.2px;overflow-wrap:anywhere}
.answer-summary .reveal-score{display:flex;justify-content:space-between;align-items:center;gap:8px 16px;padding:0;margin:0;background:transparent}
.answer-summary .reveal-score>strong{font-size:25px;line-height:1.15;display:block}
.answer-summary .reveal-score strong small{display:block;font-size:10px;font-weight:700;margin-top:1px}
.answer-summary .reveal-location{font-size:13px;line-height:1.4;gap:5px;margin:0}
.answer-summary .reveal-location>.icon{width:14px;height:14px;margin-top:2px}
.reveal-card .story-details{margin-top:8px}
.reveal-card .story-details summary{min-height:34px;font-size:11px}
.reveal-card .story-details .clue-title{font-size:17px;margin:7px 0 8px}
.reveal-card .story-details .reveal-fact{font-size:13px}
@media(max-width:899px){
  body:is([data-screen=game],[data-screen=reveal]) main{max-width:none;padding:6px 10px 0}
  body:is([data-screen=game],[data-screen=reveal]) .shell{height:calc(100dvh - 6px);min-height:520px;grid-template-rows:auto minmax(280px,1fr) auto;gap:8px}
  body:is([data-screen=game],[data-screen=reveal]) .map-stage{height:100%;min-height:280px}
  body:is([data-screen=game],[data-screen=reveal]) .action-dock{padding:6px 10px calc(10px + env(safe-area-inset-bottom));margin:0 -10px}
  body[data-screen=reveal] .action-dock{display:grid;grid-template-columns:90px minmax(0,1fr);align-items:center;gap:10px}
  body[data-screen=reveal] .map-legend{flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;font-size:10px;margin:0 0 0 5px}
}
@media(min-width:900px){
  body:is([data-screen=game],[data-screen=reveal]) main{max-width:1440px;padding:12px 20px 0}
  body:is([data-screen=game],[data-screen=reveal]) .shell{grid-template-columns:290px minmax(0,1fr);height:calc(100dvh - 24px);min-height:560px;grid-template-rows:minmax(400px,1fr) auto;gap:10px 20px}
  body:is([data-screen=game],[data-screen=reveal]) .map-stage{height:100%;min-height:400px}
  body:is([data-screen=game],[data-screen=reveal]) .action-dock{padding:0 0 6px}
  body[data-screen=reveal] .action-dock{display:flex;align-items:center;gap:20px}
  body[data-screen=reveal] .map-legend{min-width:150px;margin:0}
}
/* Daily challenge status stays quiet; the map remains the focus. */
.daily-drop { margin:18px 0 0; color:var(--muted,#6a7e78); font-size:11px; text-align:center; line-height:1.6; }
.drop-clock { display:block; font-variant-numeric:tabular-nums; font-size:19px; font-weight:800; letter-spacing:1px; color:var(--ink,#233e3b); }
.daily-result-actions { margin-top:18px; }
.daily-empty h2 { font-size:22px; margin:0 0 10px; }
.daily-empty p { font-size:14px; line-height:1.6; }
/* Completed-day pins expose their place names and optional reading links. */
.location-pin.answer-pin.answer-interactive { width:44px; height:46px; padding:5px 8px; border:0; border-radius:12px; background:transparent; cursor:pointer; }
.location-pin.answer-interactive svg { width:28px; height:36px; display:block; }
.location-pin.answer-interactive:focus-visible { outline:3px solid #8951c0; outline-offset:2px; background:#ffffffb3; }
.answer-card { position:absolute; bottom:40px; left:12px; right:66px; z-index:6; max-width:270px; max-height:calc(100% - 60px); overflow:auto; border-radius:16px; padding:15px 36px 14px 16px; background:#fff; box-shadow:0 6px 24px #193c3b26; color:var(--ink,#233e3b); font-family:var(--font); }
.answer-card-close { position:absolute; right:0; top:0; width:40px; height:40px; border:0; background:transparent; font-size:23px; border-radius:0 16px 0 10px; color:#526c64; cursor:pointer; }
.answer-popup-category { font-size:10px; font-weight:800; color:#648477; text-transform:uppercase; letter-spacing:.7px; }
.answer-card h3 { margin:6px 0; font-size:17px; line-height:1.25; overflow-wrap:anywhere; }
.answer-card h3:focus { outline:none; }
.answer-card p { margin:0 0 10px; font-size:12px; line-height:1.45; color:#64766e; }
.answer-card a { display:inline-block; padding:5px 0; color:#1c8066; font-size:12px; font-weight:800; text-underline-offset:3px; }
.answer-interactive[aria-expanded=true] svg { filter:drop-shadow(0 0 4px #fff); }
/* A separate mode link preserves each game's saved state and daily schedule. */
.game-mode-switch{display:flex;justify-content:center;gap:4px;background:#fffdf8;padding:7px 12px;border-bottom:1px solid #dce7e0;position:relative;z-index:2}
.game-mode-switch a{padding:8px 18px;border-radius:10px;text-decoration:none;font-size:12px;font-weight:750;color:#315c48;min-height:34px;display:flex;align-items:center}
.game-mode-switch a[aria-current]{background:#275f4a;color:white}



.practice-picker{margin-top:20px;padding:16px;border:1px solid #d5e5df;border-radius:16px;background:#f7fbf9}.practice-picker p{font-size:12px;margin:7px 0 12px}.practice-days{display:flex;flex-wrap:wrap;gap:7px}.practice-days .btn{padding:9px 12px;min-height:44px;font-size:12px}.practice-days [aria-pressed="true"]{background:#d5eee5;border-color:#238b73}.hint-area{margin-top:18px}.hint-button{font-size:13px;min-height:44px}.hint-copy{padding:12px;background:#fff4d9;border-radius:12px;font-size:14px;line-height:1.5}.row-distance{display:block;font-size:10px;font-weight:400}.distance-detail{font-size:13px;margin:4px 0 0}.reveal-score strong small{font-size:12px}

.result-row .row-distance{white-space:normal;line-height:1.4;margin-top:3px;max-width:120px}
.result-row>.row-icon,.result-row>.chevron{flex-shrink:0}
.score-averages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}
.score-averages>div{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;padding:14px 8px;border:1px solid #d5e5df;border-radius:14px;background:#f2f8f4;text-align:center;min-width:0}
.score-averages>div>span{font-size:12px;font-weight:800;color:#526e65}
.score-averages strong{font-size:27px;line-height:1.2;color:#267f6d;font-variant-numeric:tabular-nums}
.score-averages strong small{font-size:12px;margin-left:4px;font-weight:700}
.score-averages>div>small{font-size:10px;color:#6b8278}
.global-average-breakdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;width:100%;max-width:190px;margin:3px 0 0;padding-top:6px;border-top:1px solid #d5e5df;color:#526e65}
.global-average-breakdown dt{font-size:10px;font-weight:700;line-height:1.3}
.global-average-breakdown dd{font-size:12px;font-weight:800;line-height:1.3;margin:2px 0 0;font-variant-numeric:tabular-nums}
.average-explainer{font-size:12px;line-height:1.5;color:#698079}

/* Keep sharing reachable immediately, including above mobile browser controls. */
body[data-screen=result]{padding-bottom:calc(94px + env(safe-area-inset-bottom))}
body[data-screen=result] .action-dock{position:fixed;left:0;right:0;bottom:0;margin:0;padding:10px 16px calc(14px + env(safe-area-inset-bottom));background:#f0f7f5f5;border-top:1px solid #d8e9e0;backdrop-filter:blur(10px)}
body[data-screen=result] .action-dock .btn{max-width:540px;margin:0 auto;min-height:50px}
body[data-screen=result] .result-hero{margin:6px 0 12px}
body[data-screen=result] .total-box{padding:12px;margin-bottom:12px}
.score-averages>div{padding:10px 8px}

.game-top>.streak-pill{margin-left:auto;flex-shrink:0}
@media(max-width:359px){.game-top>.streak-pill{font-size:10px;padding:5px 7px;gap:3px}.game-top>.streak-pill .icon{width:15px;height:15px}}

.original-clue{grid-column:1/-1;font-size:13px;line-height:1.45;color:var(--muted);margin:0;overflow-wrap:anywhere}.original-clue strong{font-weight:800}
