:root{--ink:#214a42;--muted:#647773;--paper:#fffdf6;--green:#4d9b78;--coral:#e77861;--gold:#e8b451;--night:#172f43;--violet:#756aa2;--shadow:0 18px 48px rgba(45,68,50,.14)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;overflow-x:hidden;color:var(--ink);font-family:"Trebuchet MS","Segoe UI",sans-serif;background:radial-gradient(circle at 12% 4%,#fff6d8 0 10%,transparent 28%),linear-gradient(135deg,#f5f0df,#e7f0dc)}button,a{font:inherit}.app{width:min(1120px,calc(100% - 32px));margin:24px auto 38px}.game-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px;padding:12px 18px;border:1px solid rgba(65,93,72,.18);border-radius:24px;background:rgba(255,253,247,.92);box-shadow:0 10px 28px rgba(46,70,52,.08)}.game-brand{display:flex;align-items:center;gap:12px;min-width:0;padding:3px 8px 3px 3px;border-radius:16px;color:var(--ink);text-decoration:none}.game-brand:hover{background:#edf3e3}.game-brand:focus-visible{outline:4px solid rgba(232,180,81,.6);outline-offset:3px}.game-brand>span:last-child{display:grid;gap:2px}.game-brand strong{font-size:20px;line-height:1.1}.game-brand small{color:var(--muted);font-weight:700}.game-icon{display:grid;place-items:center;width:54px;height:54px;flex:0 0 54px;border-radius:17px;background:#e5e3f2}.game-icon svg{width:46px;height:46px}.beam{fill:#f7dc77;opacity:.72}.torch{fill:#456f61;stroke:#244c42;stroke-width:2}.rim{fill:none;stroke:#fff2b3;stroke-width:3}.star{fill:#eb836c}.age-pill,.facts span,.counter,.task-head>span,.panel-head>span{display:inline-flex;align-items:center;justify-content:center;padding:9px 14px;border:1px solid #d9dfc9;border-radius:999px;background:#fffef9;color:#365f55;font-weight:800;white-space:nowrap}.screen{display:none}.screen.is-active{display:block}.hero,.panel,.play-card,.result{overflow:hidden;border:1px solid rgba(83,108,76,.18);border-radius:34px;background:rgba(255,253,247,.97);box-shadow:var(--shadow)}.hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.94fr)}.hero-art{min-height:520px;background:#1d3443}.hero-art img{display:block;width:100%;height:100%;object-fit:cover}.hero-copy{align-self:center;padding:54px 48px 190px}.eyebrow{margin:0 0 9px;color:#b4614e;font-size:13px;font-weight:900;letter-spacing:.12em}.hero h1{margin:0 0 22px;font-size:clamp(38px,4.2vw,60px);line-height:1.03;letter-spacing:-.035em}.hero-copy>p:not(.eyebrow){margin:0 0 22px;color:var(--muted);font-size:20px;line-height:1.55}.facts{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:30px}.primary,.secondary,.hint,.plain,.back{border:0;border-radius:16px;cursor:pointer;font-weight:900;transition:transform .16s,background .16s,box-shadow .16s}.primary{padding:16px 24px;background:var(--green);color:#fff;box-shadow:0 10px 20px rgba(58,127,96,.22)}.primary:hover{transform:translateY(-2px);background:#438c6c}.primary:disabled{opacity:.43;cursor:not-allowed;transform:none}.primary:focus-visible,.secondary:focus-visible,.hint:focus-visible,.plain:focus-visible,.back:focus-visible,.route-card:focus-visible,.scene-cell:focus-visible,.tabs button:focus-visible{outline:4px solid rgba(232,180,81,.62);outline-offset:3px}.steps{position:absolute;right:28px;bottom:24px;left:28px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0;padding:0;list-style:none}.steps li{display:flex;align-items:center;gap:12px;min-height:100px;padding:16px 17px;border:1px solid #e3d7b7;border-radius:22px;background:rgba(255,253,247,.95);box-shadow:0 8px 20px rgba(91,75,44,.08)}.steps b{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:13px;background:var(--coral);color:#fff;font-size:21px}.steps span{display:grid;gap:4px}.steps strong{font-size:16px}.steps small{color:var(--muted);line-height:1.25}.panel{padding:34px}.panel-head,.play-head,.task-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.panel-head h2,.play-head h2,.task-head h3{margin:0}.panel-head h2{font-size:38px}.route-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:26px 0}.route-card{display:grid;grid-template-rows:180px auto auto;min-width:0;padding:0;overflow:hidden;border:2px solid transparent;border-radius:26px;background:#f7f4e8;color:var(--ink);text-align:left;cursor:pointer;box-shadow:0 10px 24px rgba(57,77,54,.09);transition:transform .16s,border-color .16s}.route-card:hover{transform:translateY(-4px);border-color:var(--route)}.route-art{position:relative;display:grid;place-items:center;background:linear-gradient(150deg,color-mix(in srgb,var(--route) 30%,#fff),#e4eadf)}.route-art:after{position:absolute;right:10%;bottom:14px;left:10%;height:20px;border-radius:50%;background:rgba(31,47,57,.16);filter:blur(6px);content:""}.route-art img{position:relative;z-index:1;max-width:64%;max-height:148px;object-fit:contain;filter:drop-shadow(0 10px 8px rgba(34,46,49,.18))}.route-copy{display:grid;gap:8px;padding:20px 20px 12px}.route-copy small{color:#a35648;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.route-copy strong{font-size:25px}.route-copy span{color:var(--muted);font-weight:700}.route-foot{align-self:end;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:12px;padding:14px 20px 20px;color:#46695f;font-weight:900}.route-foot i{height:8px;overflow:hidden;border-radius:99px;background:#dfe5d4}.route-foot b{display:block;height:100%;background:var(--route)}.plain{padding:12px 4px;background:transparent;color:#4e7066}.plain:hover{text-decoration:underline}.play-card{padding:26px}.play-head{padding-bottom:14px}.play-head h2{font-size:32px}.back{width:50px;height:50px;flex:0 0 50px;background:#eef2df;color:var(--ink);font-size:25px}.progress{height:10px;margin-bottom:24px;overflow:hidden;border-radius:20px;background:#e4e7d8}.progress i{display:block;width:0;height:100%;background:linear-gradient(90deg,var(--gold),var(--coral));transition:width .25s}.play-layout{display:grid;grid-template-columns:minmax(320px,.78fr) minmax(490px,1.22fr);gap:24px;align-items:start}.search-side{display:grid;gap:14px}.task-head{align-items:flex-start}.task-head p{margin:0 0 5px;color:#a65d49;font-size:12px;font-weight:900;letter-spacing:.1em}.task-head h3{font-size:27px}.wanted-card{display:grid;grid-template-columns:1fr 112px;align-items:center;gap:14px;min-height:145px;margin:0;padding:18px;border:2px solid #e4c878;border-radius:23px;background:#f9edc7}.wanted-card div{display:grid;gap:6px}.wanted-card span{color:#9c5c49;font-size:12px;font-weight:900;letter-spacing:.08em}.wanted-card strong{font-size:23px}.wanted-card p{margin:0;color:#665f50;line-height:1.35}.wanted-card img{width:106px;height:106px;object-fit:contain;filter:drop-shadow(0 7px 6px rgba(58,61,45,.17))}.revealed-card{display:grid;gap:4px;min-height:76px;padding:14px 17px;border:1px dashed #bdc5b4;border-radius:18px;background:#eef1e6}.revealed-card span{color:#75827c;font-size:11px;font-weight:900;letter-spacing:.08em}.revealed-card strong{font-size:18px}.revealed-card.has-object{border-style:solid;border-color:#d8c178;background:#fff8de}.feedback{display:grid;gap:4px;min-height:78px;padding:14px 17px;border:1px solid #d6dfc8;border-radius:18px;background:#edf2e5}.feedback strong{font-size:17px}.feedback span{color:var(--muted);line-height:1.35}.feedback[data-tone="error"]{border-color:#f0b39f;background:#fff0e8}.feedback[data-tone="success"]{border-color:#a7d1ad;background:#e5f3e7}.feedback[data-tone="hint"]{border-color:#b9bde2;background:#eef0ff}.actions{display:grid;grid-template-columns:minmax(110px,.74fr) minmax(155px,1.26fr);gap:12px}.hint,.secondary{padding:15px 18px;border:1px solid #d8c798;background:#f2ead5;color:#704f2d}.hint:hover,.secondary:hover{background:#eadfbe}.scene-side{min-width:0}.night-scene{position:relative;width:min(100%,620px);margin:0 auto;aspect-ratio:4/3;overflow:hidden;border:10px solid #315564;border-radius:30px;background:#203645 center/cover no-repeat;box-shadow:inset 0 0 0 2px rgba(255,255,255,.25),0 14px 28px rgba(38,56,63,.19)}.night-scene:before{position:absolute;inset:0;z-index:1;background:rgba(7,20,36,.72);content:"";pointer-events:none}.scene-grid{position:relative;z-index:2;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(3,1fr);width:100%;height:100%}.scene-cell{position:relative;display:grid;place-items:center;min-width:0;min-height:0;padding:8px;border:0;border-right:1px dashed rgba(224,232,222,.13);border-bottom:1px dashed rgba(224,232,222,.13);background:rgba(10,28,43,.18);cursor:pointer}.scene-cell:nth-child(4n){border-right:0}.scene-cell:nth-child(n+9){border-bottom:0}.scene-cell:before{position:absolute;inset:8%;border-radius:50%;background:radial-gradient(circle,#ffe69a 0,rgba(255,220,123,.75) 34%,rgba(255,211,91,.18) 69%,transparent 72%);opacity:0;transform:scale(.72);transition:.18s;content:""}.scene-cell:hover:before{opacity:.28}.scene-cell img{position:relative;z-index:2;max-width:72%;max-height:70%;object-fit:contain;opacity:.055;filter:brightness(.35) saturate(.4)}.scene-cell .mystery-dot{position:absolute;z-index:3;width:10px;height:10px;border-radius:50%;background:#9babb1;opacity:.34}.empty-grass{width:38%;height:18%;margin-top:45%;border-radius:50%;background:rgba(80,118,84,.17)}.scene-cell.is-lit:before{opacity:1;transform:scale(1)}.scene-cell.is-lit img{opacity:1;filter:drop-shadow(0 7px 5px rgba(38,39,34,.2))}.scene-cell.is-lit .mystery-dot{display:none}.scene-cell.was-visited:not(.is-lit){background:rgba(49,79,81,.22)}.scene-cell.is-hint-zone{box-shadow:inset 0 0 0 4px rgba(179,157,224,.72)}.scene-cell.is-hint-zone:after{position:absolute;top:7px;right:7px;width:12px;height:12px;border:2px solid #f4eaff;border-radius:4px;background:#8171ad;content:""}.success-glow{position:absolute;inset:9%;z-index:5;display:grid;place-items:center;align-content:center;gap:4px;border-radius:30px;background:rgba(255,248,212,.94);box-shadow:0 15px 38px rgba(14,32,40,.3);animation:pop .28s ease}.success-glow[hidden]{display:none}.success-glow img{width:min(50%,210px);height:min(54%,210px);object-fit:contain;filter:drop-shadow(0 10px 8px rgba(57,58,43,.2))}.success-glow strong{font-size:clamp(23px,3.4vw,38px)}.success-glow span{color:#ad5849;font-weight:900}@keyframes pop{from{transform:scale(.8);opacity:0}}.scene-note{display:flex;align-items:center;justify-content:center;gap:7px;margin:11px 0 0;color:var(--muted);font-size:13px;font-weight:800}.scene-note span{color:#e2b756;text-shadow:0 0 9px #e2b756}.tabs{display:flex;justify-content:center;gap:9px;margin-top:22px}.tabs button{width:42px;height:42px;border:0;border-radius:13px;background:#eef0e2;color:#507067;font-weight:900;cursor:pointer}.tabs button.is-active{background:var(--ink);color:#fff}.tabs button.is-done{background:#dcebd7;color:#2f7259}.result{display:grid;grid-template-columns:1.2fr .8fr;align-items:center;min-height:440px;padding:52px}.result h2{margin:0 0 18px;font-size:48px}.result p:not(.eyebrow){color:var(--muted);font-size:20px;line-height:1.5}.result-stats{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}.result-stats>*{padding:11px 15px;border-radius:14px;background:#eef2e3}.result-actions{display:flex;flex-wrap:wrap;gap:12px}.result figure{display:grid;place-items:center;min-height:300px;margin:0;border-radius:28px;background:linear-gradient(145deg,#253a4e,#637283)}.result figure img{max-width:70%;max-height:250px;object-fit:contain;filter:drop-shadow(0 12px 10px rgba(0,0,0,.25))}
@media(max-width:900px){.hero{grid-template-columns:.9fr 1.1fr}.hero-art{min-height:470px}.hero-copy{padding:38px 30px 180px}.hero h1{font-size:43px}.play-layout{grid-template-columns:minmax(280px,.75fr) minmax(390px,1.25fr);gap:16px}.play-card{padding:20px}.wanted-card{grid-template-columns:1fr 86px}.wanted-card img{width:82px;height:82px}.result{padding:38px}}
@media(max-width:700px){.app{width:min(100% - 18px,1120px);margin-top:10px}.game-bar{padding:9px 10px;border-radius:20px}.game-brand strong{font-size:17px}.game-brand small{font-size:12px}.game-icon{width:46px;height:46px;flex-basis:46px}.age-pill{display:none}.hero{display:block}.hero-art{min-height:0;aspect-ratio:3/2}.hero-copy{padding:28px 22px 24px}.hero h1{font-size:37px}.hero-copy>p:not(.eyebrow){font-size:18px}.steps{position:static;grid-template-columns:1fr;padding:0 18px 20px}.steps li{min-height:78px}.panel,.play-card{border-radius:25px}.panel{padding:22px 16px}.panel-head{align-items:flex-start}.panel-head h2{font-size:31px}.panel-head>span{padding:8px 10px;font-size:12px}.route-grid{grid-template-columns:1fr}.route-card{grid-template-rows:auto auto;grid-template-columns:120px 1fr}.route-art{grid-row:1/3;min-height:170px}.route-art img{max-width:84%}.route-copy{padding:18px 14px 8px}.route-copy strong{font-size:22px}.route-foot{padding:8px 14px 16px}.play-head h2{font-size:25px}.play-head .counter{padding:7px 9px;font-size:12px}.play-layout{grid-template-columns:1fr}.scene-side{grid-row:1}.night-scene{width:min(100%,560px);border-width:7px;border-radius:23px}.task-head h3{font-size:23px}.wanted-card{min-height:118px}.actions{position:sticky;bottom:8px;z-index:7;padding:8px;border-radius:18px;background:rgba(255,253,247,.95);box-shadow:0 7px 22px rgba(45,66,49,.13)}.result{grid-template-columns:1fr;padding:30px 22px}.result h2{font-size:38px}.result figure{grid-row:1;min-height:230px}}
@media(max-width:420px){.game-brand small{display:none}.game-brand strong{font-size:16px}.hero h1{font-size:33px}.facts span{padding:8px 10px;font-size:13px}.route-card{grid-template-columns:96px 1fr}.route-copy{padding-left:12px}.route-copy strong{font-size:20px}.route-foot{font-size:13px}.play-card{padding:14px 10px}.back{width:42px;height:42px;flex-basis:42px}.play-head{gap:9px}.play-head h2{font-size:21px}.night-scene{border-width:6px}.scene-cell{padding:3px}.wanted-card{grid-template-columns:1fr 76px;padding:14px}.wanted-card img{width:72px;height:72px}.wanted-card strong{font-size:20px}.actions{grid-template-columns:1fr 1.25fr}.hint,.primary{padding:13px 9px;font-size:14px}.tabs{gap:6px}.tabs button{width:37px;height:37px}.result-actions{display:grid}.result-actions button{width:100%}}
