@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');
:root{color-scheme:dark;--bg:#111931;--text:#f5f0df;--gold:#e2be79;--muted:#c3cbd9;--border:#42506a;--panel:#202e46;--font:'DM Sans',system-ui,sans-serif;--heading:'Fraunces',Georgia,serif}
*{box-sizing:border-box}html{scroll-behavior:auto}body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:16px;line-height:1.5}button,a{font:inherit}button{cursor:pointer}a{color:var(--gold)}:focus-visible{outline:3px solid var(--gold);outline-offset:3px}#app{min-height:100svh;background:radial-gradient(ellipse 85% 30% at 80% 0%,#263654,transparent 85%),var(--bg)}.loading{padding:2rem;text-align:center}
.header{max-width:1100px;margin:auto;padding:18px 26px;display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid var(--border)}.brand{display:flex;gap:11px;align-items:center;min-width:0}.brand-logo{width:44px;height:44px;object-fit:contain;border:1px solid #977d53;border-radius:11px;background:#152038}.brand .micro{display:block;color:var(--gold);font-size:10px;letter-spacing:.17em;font-weight:700}.brand strong{display:block;font:600 19px/1.2 var(--heading)}.test-badge{border:1px solid #95764a;background:#39333b;color:var(--gold);font-size:10px;font-weight:700;letter-spacing:.08em;border-radius:99px;padding:6px 9px;white-space:nowrap}
.main{min-height:calc(100svh - 166px)}.view{max-width:720px;margin:0 auto;padding:30px 26px 66px}.intro-hero{height:232px;overflow:hidden;position:relative;border-radius:19px;border:1px solid var(--border);background-image:url('assets/village.svg');background-position:center;background-size:cover;margin:4px 0 26px}.intro-image{width:100%;height:100%;object-fit:cover;opacity:.92}.hero-stamp{position:absolute;bottom:14px;right:14px;color:var(--gold);font-size:10px;font-weight:700;letter-spacing:.12em;padding:6px 9px;background:#111931db;border:1px solid #d0aa68;border-radius:4px}.kicker{color:var(--gold);font-size:11px;letter-spacing:.18em;font-weight:700;margin:8px 0 13px}h1{font:600 clamp(32px,6vw,50px)/1.13 var(--heading);letter-spacing:-.025em;margin:0 0 24px}h2.case-title{font:600 25px/1.35 var(--heading);margin:24px 0 15px;color:var(--gold)}.story-copy{color:#e1e7f1;font-size:16px;line-height:1.71;margin:0 0 25px}.story-copy p{margin:0 0 16px}.walk-facts{display:flex;flex-wrap:wrap;gap:15px 22px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:18px 1px;margin:16px 0 20px;font-size:13px}.walk-facts span{display:flex;gap:7px;align-items:center;min-width:215px}.helper-note{border-radius:12px;border:1px solid #566176;background:#29334a;color:#e0e7ef;padding:13px 16px;font-size:13px;line-height:1.6;margin:20px 0 24px}
.button{width:100%;min-height:55px;border-radius:12px;border:1px solid var(--gold);padding:13px 17px;display:inline-flex;align-items:center;justify-content:center;text-align:center;font-weight:700;font-size:15px;line-height:1.4;text-decoration:none;transition:background .16s ease,transform .16s ease;touch-action:manipulation}.button:disabled{opacity:.43;cursor:not-allowed}.button:not(:disabled):active{transform:scale(.99)}.button.primary{background:var(--gold);color:#161e30}.button.primary:hover:not(:disabled){background:#f0cd8c}.button.outline{background:transparent;color:var(--gold)}.button.outline:hover{background:#303b51}.progress{display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:700;color:var(--muted);font-size:10px;letter-spacing:.1em;margin-bottom:10px}.progress span:last-child{color:var(--gold);text-align:right;white-space:nowrap}.progress-track{height:4px;border-radius:9px;background:#27334b;overflow:hidden;margin-bottom:23px}.progress-track span{display:block;height:100%;background:var(--gold)}
.stage-banner{display:flex;justify-content:flex-end;flex-direction:column;gap:5px;min-height:175px;padding:22px 24px;margin:5px 0 24px;background-position:center;background-size:cover;border-radius:16px;border:1px solid #556477;box-shadow:0 7px 22px #0b152733;overflow:hidden;text-shadow:0 2px 8px #111b2a}.stage-banner strong{font:600 31px/1.1 var(--heading);max-width:530px}.banner-overline{font-size:10px;font-weight:700;letter-spacing:.17em;color:#f7d9a7}.banner-subtitle{color:#f0e9db;font-size:13px;font-weight:600}.stage-title{font-size:36px;margin-bottom:19px}.stop-chip{display:inline-flex;padding:6px 12px;color:var(--gold);background:#352f35;border:1px solid #a88d55;border-radius:30px;font-size:11px;font-weight:700;letter-spacing:.11em;margin:0 0 14px}
.route-card,.clue-card{border-radius:16px;padding:21px 23px;margin:0 0 18px}.route-card{background:#1d2a43;border:1px solid #42506a;border-left:4px solid var(--gold)}.route-card p{margin:12px 0 0;line-height:1.7;color:#e2e6ed}.overline{font-size:10px;font-weight:700;letter-spacing:.15em;color:var(--gold)}.clue-card{background:linear-gradient(115deg,rgba(41,57,82,.96),rgba(27,41,67,.92)),url('assets/casefile.svg') center/cover no-repeat;border:1px solid #556683;box-shadow:0 11px 27px #050b193d;margin-top:25px;padding:25px}.clue-card h2{font:600 29px/1.28 var(--heading);margin:14px 0 12px}.clue-card p{line-height:1.75;margin:0 0 16px;color:#e3e8f0}.clue-card .hint{margin:18px 0 0;background:#344058;color:#f1d59d;padding:11px 13px;border-radius:9px;font-size:12px;line-height:1.5}.actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:23px}.status{display:flex;justify-content:center;text-align:center;color:var(--muted);font-size:12px;margin:15px 0}.status.unlocked{color:#a3ebce}.finish-note{color:var(--muted);font-size:13px;text-align:center}
.instruction{color:#dce3ed;line-height:1.65;margin:0 0 23px}.card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:22px 0 28px}.person-card{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;min-width:0;min-height:245px;padding:11px;border-radius:14px;background:linear-gradient(135deg,#2b3852,#202d45);border:1px solid #576983;color:var(--text);text-align:left;isolation:isolate;touch-action:manipulation}.person-card:hover:not(:disabled){border-color:var(--gold);background:#33435b}.person-card:disabled{cursor:default}.person-card.previously{opacity:.87}.card-serial{font-size:10px;color:var(--muted);font-weight:700;letter-spacing:.11em;margin-bottom:9px}.image-frame{height:151px;width:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;border:1px solid #50627a;background:#26364b;border-radius:9px}.image-frame.suspect{aspect-ratio:4/5;height:auto;min-height:0;max-height:172px}.portrait{display:block;width:100%;height:100%;object-fit:cover;object-position:center 26%}.image-frame.evidence{aspect-ratio:1.25/1;height:auto;max-height:162px}.image-frame.evidence .portrait{object-fit:contain;padding:2px}.card-info{margin-top:auto;padding-top:10px;display:flex;flex-direction:column;gap:3px;min-height:43px;position:relative;z-index:2}.card-info strong{font-size:14px;line-height:1.3;overflow-wrap:anywhere}.card-info small{font-size:12px;font-weight:800;letter-spacing:.045em;color:var(--gold)}.red-cross{position:absolute;z-index:5;inset:0;pointer-events:none;display:block;opacity:.97;filter:drop-shadow(0px 3px 2px #24070c88)}.red-cross span{position:absolute;top:50%;left:50%;width:122%;height:clamp(14px,5vw,24px);background:#fb313f;border:2px solid #fe707a;border-radius:20px;transform-origin:center;box-shadow:0 0 0 2px #691b2b99}.red-cross span:first-child{transform:translate(-50%,-50%) rotate(51deg)}.red-cross span:last-child{transform:translate(-50%,-50%) rotate(-51deg)}.visually-hidden{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}
.final-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:23px 0}.final-card{background:#25334b;border:1px solid #51627c;border-radius:14px;padding:17px;display:flex;flex-direction:column;gap:13px;align-items:flex-start}.final-card span{font-size:10px;font-weight:700;letter-spacing:.12em;color:var(--gold)}.final-card strong{font:600 23px/1.25 var(--heading)}.final-card small{font-size:14px;color:var(--gold);font-weight:800}.final-image{width:100%;height:157px;object-fit:contain;border-radius:8px;background:#26364b}.answer-result{color:var(--gold);font:600 27px var(--heading)}.answer-intro{font-size:17px;line-height:1.6;border-left:4px solid var(--gold);padding-left:15px;margin:19px 0 29px}.answer-story{margin-bottom:28px}.donation{margin:35px 0 28px;padding:22px;background:linear-gradient(135deg,#35445c,#26364d);border:1px solid #8f7754;border-radius:17px}.donation strong{font:600 26px var(--heading)}.donation p{line-height:1.6}.donation small{display:block;margin-top:13px;color:#e0e5ed;font-size:11px}.footer{max-width:1100px;margin:auto;min-height:81px;padding:19px 26px 23px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:11px;border-top:1px solid var(--border);color:#c6d0dd;font-size:10px;letter-spacing:.06em}.footer small{font-size:10px}.restart{border:0;background:none;color:var(--gold);font-size:12px;min-height:45px;cursor:pointer}
@media(min-width:650px){.card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.person-card{min-height:280px}.image-frame.suspect{max-height:190px}.image-frame.evidence{max-height:190px}}
@media(max-width:600px){.header{padding:14px 16px}.brand strong{font-size:18px}.view{padding:23px 18px 49px}.intro-hero{height:191px;margin-bottom:22px}.stage-banner{min-height:155px;padding:19px}.stage-banner strong{font-size:27px}.stage-title{font-size:32px}.actions{grid-template-columns:1fr}.card-grid{gap:10px}.person-card{padding:10px;min-height:225px}.card-info strong{font-size:13px}.image-frame.suspect{max-height:166px}.image-frame.evidence{max-height:157px}.red-cross span{height:17px;width:140%}.footer{flex-direction:column;text-align:center;padding:16px}.final-image{height:124px}.final-card{padding:13px}.final-card strong{font-size:20px}.walk-facts span{min-width:unset;width:100%}}
@media(max-width:360px){h1{font-size:32px}.brand .micro{font-size:8px}.brand strong{font-size:15px}.test-badge{font-size:8px}.view{padding-left:13px;padding-right:13px}.card-grid{gap:8px}.card-info strong{font-size:12px}.final-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.button{transition:none}}

/* V4: distinctive decorative location illustrations and a lightweight concluding celebration. */
.case-closed-finale{position:relative;isolation:isolate;overflow:hidden;border:1px solid #b39361;border-radius:20px;background:radial-gradient(circle at 52% 82%,#465374 0%,#263251 42%,#111b33 89%);margin:28px 0 35px;min-height:285px;display:flex;align-items:center;justify-content:center;box-shadow:0 14px 35px #0004}
.fireworks-sky{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.firework-burst{position:absolute;left:var(--fx);top:var(--fy);display:block;width:1px;height:1px;--spark:#f1cd80}
.firework-burst.blue{--spark:#80c9ef}.firework-burst.rose{--spark:#f6a4b3}
.firework-ray{position:absolute;left:0;top:0;width:4px;height:22px;border-radius:4px;background:var(--spark);transform-origin:2px 0;opacity:0;box-shadow:0 0 8px var(--spark),0 0 1px #fff;transform:rotate(var(--angle)) translateY(-13px) scaleY(.15)}
.case-closed-finale.celebrate .firework-ray{animation:firework-bloom 1.35s cubic-bezier(.14,.45,.18,1) var(--delay) both}
@keyframes firework-bloom{0%{opacity:0;transform:rotate(var(--angle)) translateY(-8px) scaleY(.2)}15%{opacity:1}40%{opacity:1;transform:rotate(var(--angle)) translateY(-45px) scaleY(1.4)}100%{opacity:0;transform:rotate(var(--angle)) translateY(-91px) scaleY(.35)}}
.finale-message{position:relative;z-index:1;text-align:center;max-width:92%;padding:42px 19px 39px;text-shadow:0 3px 12px #111931,0 2px 5px #111931}
.finale-kicker{font-weight:800;font-size:10px;letter-spacing:.19em;color:#ead4ac}
.finale-message h2{font:700 clamp(35px,8vw,61px)/1.02 var(--heading);color:#f8d999;letter-spacing:-.025em;margin:20px 0 16px;text-shadow:0 4px 17px #0a102a}
.finale-message p{font-size:16px;font-weight:700;color:#fff2db;margin:0 0 18px}
.finale-stars{font-size:21px;letter-spacing:.38em;color:#f1cd80}
@media(max-width:600px){.case-closed-finale{min-height:275px}.firework-ray{height:16px;width:3px}.finale-message{padding:36px 14px}}
@media(prefers-reduced-motion:reduce){.case-closed-finale.celebrate .firework-ray{animation:none;opacity:.75;transform:rotate(var(--angle)) translateY(-41px) scaleY(.8)}.case-closed-finale{scroll-behavior:auto}}

/* The final link returns to the public White Shire Mystery Walks hub. */
.return-to-shire{margin-top:13px}

/* V6: illustrated White Shire detectives.  Images are decorative, never clue answers. */
.detectives-welcome{display:grid;grid-template-columns:minmax(145px,205px) minmax(0,1fr);align-items:center;gap:18px;margin:15px 0 29px;padding:13px 18px 10px;border:1px solid #b2925e;border-radius:17px;background:linear-gradient(122deg,#313e55,#202e46);box-shadow:0 8px 20px #0002}
.detectives-welcome img{display:block;width:100%;height:220px;object-fit:contain;object-position:center bottom}
.detectives-welcome figcaption span,.detectives-cameo span{display:block;font-size:10px;letter-spacing:.13em;color:var(--gold);font-weight:800}
.detectives-welcome figcaption strong{display:block;font:600 26px/1.13 var(--heading);color:#ffe3a8;margin-top:8px}
.detectives-welcome figcaption p{color:#e6e9ef;font-size:14px;line-height:1.5;margin:10px 0}
.detectives-cameo{display:flex;align-items:center;gap:14px;background:linear-gradient(130deg,#33445e,#1c2c46);border:1px solid #687389;border-radius:14px;padding:8px 15px;margin:0 0 20px}
.detectives-cameo img{display:block;align-self:end;width:92px;height:106px;object-fit:contain;object-position:center bottom;flex-shrink:0}
.detectives-cameo p{color:#e9edf3;font-size:13px;line-height:1.5;margin:6px 0 0}
.detectives-congratulations{display:block;max-width:380px;margin:0 auto 29px;border:1px solid #b8996a;border-radius:18px;overflow:hidden;background:#17263a;box-shadow:0 12px 25px #0003}
.detectives-congratulations img{display:block;width:100%;height:auto}
.detectives-congratulations figcaption{padding:10px 14px;text-align:center;color:var(--gold);font-size:14px;font-weight:700}
@media(max-width:480px){.detectives-welcome{grid-template-columns:140px minmax(0,1fr);gap:10px;padding:8px 10px}.detectives-welcome img{height:192px}.detectives-welcome figcaption strong{font-size:20px}.detectives-welcome figcaption p{font-size:12px}.detectives-cameo img{width:77px;height:95px}}
@media(max-width:345px){.detectives-welcome{grid-template-columns:120px minmax(0,1fr)}.detectives-welcome img{height:167px}}

/* V7: route refreshment stops, inspired by the supplied White Shire screenshot. */
.header-actions{display:flex;align-items:center;gap:9px;flex-shrink:0}.refreshment-shortcut{border:1px solid #e2be79;border-radius:100px;background:#2f3c55;color:#ffe0a2;font-size:12px;font-weight:800;padding:9px 12px;min-height:39px;white-space:nowrap}.refreshment-shortcut:hover{background:#415372}
.refreshment-view{max-width:880px}.refreshment-illustration .stage-banner{min-height:193px;justify-content:center;text-align:center;background-position:center}.refreshment-illustration .stage-banner strong{font:700 clamp(30px,6vw,48px)/1.1 var(--heading);color:#f2cd78;max-width:none}.refreshment-intro{font:600 clamp(18px,2.7vw,22px)/1.65 var(--font);text-align:center;margin:10px 0 7px}.refreshment-advice{text-align:center;color:#d5dce6;font-size:14px;margin:5px auto 26px;max-width:660px;line-height:1.7}.refreshment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:24px 0 23px}.refreshment-place{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:8px;background:linear-gradient(145deg,#2c3b55,#1d2b41);border:1px solid #596780;border-radius:15px;padding:20px 12px;min-height:128px}.refreshment-place>a:first-child{font-size:17px;line-height:1.3;font-weight:800;color:#f2ca73;text-decoration:underline;text-underline-offset:4px}.refreshment-place span{font-size:14px;color:#f4eee2}.refreshment-place .venue-feature{font-size:11px;color:#d7e9f7;text-decoration:underline;margin-top:1px}.refreshment-tagline{font-weight:700;font-style:italic;text-align:center;color:#fff2db;font-size:20px;margin:23px 0 27px}.refreshment-donation,.refreshment-business{background:#24344d;border:1px solid #6b788d;border-radius:16px;padding:24px 23px;margin:24px 0 0;text-align:center}.refreshment-donation h2,.refreshment-business h2{font:600 27px var(--heading);color:#f1cb78;margin:0 0 10px}.refreshment-donation p,.refreshment-business p{color:#e3e8ef;max-width:610px;margin:0 auto 20px;line-height:1.65}.refreshment-donation img{display:block;width:250px;max-width:100%;height:auto;margin:18px auto 4px;background:white;padding:0}.refreshment-donation .refreshment-fineprint{font-size:12px;margin:8px auto 0}.refreshment-business a{font-weight:700}.refreshment-business{margin-top:16px}
@media(max-width:700px){.refreshment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:490px){.header{flex-wrap:wrap}.header-actions{margin-left:auto}.refreshment-shortcut{font-size:11px;min-height:36px;padding:7px 10px}.refreshment-grid{grid-template-columns:1fr;gap:10px}.refreshment-place{min-height:98px;padding:14px}.refreshment-place>a:first-child{font-size:18px}.refreshment-illustration .stage-banner{min-height:165px}.refreshment-donation,.refreshment-business{padding:19px 15px}}

/* Keep refreshments available on a long suspect/evidence board without making walkers scroll to top. */
.header{position:sticky;top:0;z-index:30;background:#111931f2;backdrop-filter:blur(10px)}


/* V8: story first, how-to-play second, persistent Komoot Help on every screen. */
.help-shortcut{display:inline-flex;align-items:center;justify-content:center;min-height:39px;padding:7px 13px;border:1px solid #b6d6f4;border-radius:100px;background:#17476c;color:#fff;font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap}
.help-shortcut:hover,.help-shortcut:focus-visible{background:#236394;color:#fff}
.story-view h1,.howto-view h1{margin-top:10px}
.intro-story{border:1px solid #687993;border-radius:17px;padding:21px 22px;background:#24354e;margin-bottom:22px}
.intro-story h2,.glance-card h2,.intro-how-to h2,.intro-help h2{font:600 25px/1.2 var(--heading);color:#f2cf87;margin:0 0 16px}
.intro-story .story-copy{margin:0}
.intro-story .story-copy p:last-child{font-weight:700;color:#fff0ca;margin-bottom:0}
.glance-card{margin:22px 0;padding:20px 22px;border:1px solid #697a95;border-radius:17px;background:#25334b}
.glance-card dl{margin:0;display:grid;grid-template-columns:1fr;gap:8px}
.glance-card dl>div{display:grid;grid-template-columns:minmax(95px,150px) 1fr;gap:10px;padding:7px 0;border-bottom:1px solid #566580}
.glance-card dl>div:last-child{border:0}
.glance-card dt{font-weight:800;color:#f2cf87}
.glance-card dd{margin:0;color:#edf2f9}
.intro-how-to,.intro-help{padding:20px 22px;border-radius:17px;margin:22px 0;background:#263750;border:1px solid #69849e}
.intro-how-to p,.intro-help p{color:#e7ecf5;line-height:1.72;margin:11px 0;font-size:16px}
.intro-help{background:#20435e;border-color:#79b1d8}
.intro-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
@media(max-width:590px){.header-actions{gap:6px}.help-shortcut{min-height:36px;padding:6px 9px;font-size:11px}.refreshment-shortcut{font-size:11px;padding:7px 9px}.intro-story,.glance-card,.intro-how-to,.intro-help{padding:17px 15px}.intro-actions{display:grid;grid-template-columns:1fr}.glance-card dl>div{grid-template-columns:105px 1fr;gap:8px;font-size:14px}}
@media(max-width:360px){.help-shortcut{font-size:10px;padding:6px 7px}.refreshment-shortcut{font-size:10px;padding:6px 7px}}
