:root{--ink:#244b43;--muted:#667b75;--paper:#fffdf6;--cream:#f6edda;--green:#4e9b78;--coral:#df745e;--gold:#efbb54;--line:#ded8bd;--shadow:0 18px 45px rgba(45,69,56,.14)}
*{box-sizing:border-box}html{background:#edf2df;scroll-behavior:smooth}body{margin:0;min-width:320px;color:var(--ink);font-family:"Trebuchet MS","Segoe UI",sans-serif;background:radial-gradient(circle at 10% 8%,#fff5d1 0 15%,transparent 38%),linear-gradient(145deg,#eef4e4,#f8f1dd)}button,a{font:inherit}button{cursor:pointer}.app{width:min(1120px,calc(100% - 32px));margin:28px auto 42px}
.game-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 18px;background:rgba(255,253,246,.9);border:1px solid rgba(79,113,92,.18);border-radius:24px;box-shadow:0 8px 24px rgba(52,73,61,.08)}.game-brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;border-radius:16px;padding:4px 7px;transition:.2s}.game-brand:hover{background:#edf5e8;transform:translateY(-1px)}.game-brand:focus-visible,button:focus-visible{outline:4px solid rgba(239,187,84,.68);outline-offset:3px}.game-brand>span:last-child{display:grid;gap:2px}.game-brand strong{font-size:20px}.game-brand small{color:var(--muted);font-size:13px}.game-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:#f6df9f}.game-icon svg{width:40px;height:40px}.shelf{fill:#f9f2dc;stroke:#557d6e;stroke-width:3}.clue-red{fill:#dd584b}.clue-shape{fill:#5f8cb2}.clue-leaf{fill:#65a06b}.age-pill,.facts span{white-space:nowrap;padding:9px 14px;border-radius:999px;background:#fff;border:1px solid #dfe1ce;color:#355f54;font-weight:700}
.screen{display:none}.screen.is-active{display:block}.hero,.panel,.play-card,.result{margin-top:22px;background:rgba(255,253,246,.95);border:1px solid rgba(91,110,76,.18);border-radius:34px;box-shadow:var(--shadow);overflow:hidden}.hero{display:grid;grid-template-columns:minmax(0,48%) minmax(0,52%);align-items:center}.hero-art{height:410px;background:#e0ead6;overflow:hidden}.hero-art img{width:100%;height:100%;display:block;object-fit:cover}.hero-copy{padding:34px 42px}.eyebrow{margin:0 0 8px;color:#b15a48;font-size:13px;font-weight:900;letter-spacing:.08em}.hero h1{font-size:clamp(38px,4.6vw,58px);line-height:1.03;margin:0 0 17px;letter-spacing:-.035em}.hero-copy>p:not(.eyebrow){font-size:19px;line-height:1.5;color:var(--muted);margin:0 0 22px}.facts{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:24px}.facts span{font-size:15px;font-weight:600}.primary,.secondary,.hint,.plain,.back{border:0;border-radius:16px;min-height:52px;padding:13px 22px;font-weight:900;color:#fff;background:var(--green);box-shadow:0 8px 18px rgba(48,119,87,.18);transition:.18s}.primary:hover,.route button:hover{background:#3d8565;transform:translateY(-2px)}.secondary{background:#e9eadc;color:var(--ink);box-shadow:none}.hint{background:#f3bd54;color:#513e19;box-shadow:none}.plain,.back{background:transparent;color:var(--ink);box-shadow:none;padding-inline:8px}.back{font-size:25px;width:48px}.steps{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;list-style:none;margin:0;padding:20px;background:#f4ead4;border-top:1px solid #ddd4b7}.steps li{display:flex;gap:12px;align-items:center;background:#fffdf7;border:1px solid #e2d8bc;border-radius:20px;padding:16px;min-width:0}.steps b{flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:var(--coral);color:#fff;font-size:21px}.steps span{display:grid;gap:3px;min-width:0}.steps small{color:var(--muted);line-height:1.3}
.panel,.play-card{padding:30px}.panel-head,.play-head,.task-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.panel h2,.play-head h2,.result h2{font-size:clamp(28px,4vw,42px);margin:0}.panel-head>span,.counter,.task-head>span{background:#edf3e5;border-radius:999px;padding:9px 13px;font-weight:800;white-space:nowrap}.route-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:25px 0 18px}.route{display:flex;flex-direction:column;min-width:0;padding:20px;border-radius:25px;background:#fff;border:1px solid #e0ddc9;border-top:7px solid var(--route)}.route-art{height:96px;display:grid;place-items:center}.route-art img{display:block;max-width:104px;max-height:92px;object-fit:contain}.route p{color:var(--route);font-size:12px;font-weight:900;letter-spacing:.06em;margin:12px 0 7px}.route h3{font-size:24px;margin:0 0 9px}.route>span{color:var(--muted);line-height:1.4;min-height:62px}.route-meta{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:16px}.route-meta small{color:var(--muted)}.route-bar{height:8px;background:#edf0e5;border-radius:99px;overflow:hidden;margin:10px 0 14px}.route-bar i{display:block;height:100%;background:var(--route)}.route button{display:flex;justify-content:space-between;align-items:center;border:0;border-radius:14px;padding:13px 15px;color:#fff;background:var(--route);font-weight:900;transition:.18s}
.play-head{justify-content:flex-start}.play-head .counter{margin-left:auto}.progress{height:9px;background:#e8eadc;border-radius:99px;overflow:hidden;margin:18px 0 24px}.progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--coral),var(--gold));transition:width .25s}.task-head h3{font-size:30px;margin:0}.task-head p{margin:0 0 5px;color:#b15a48;font-weight:900;font-size:12px;letter-spacing:.08em}.prompt{font-size:18px;line-height:1.5;color:var(--muted);margin:12px 0 18px}.clue-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.clue{display:flex;align-items:center;gap:14px;min-height:92px;padding:14px 17px;border:1px solid #ded8bd;border-radius:20px;background:#fffaf0}.clue>span,.clue>svg{flex:0 0 54px;width:54px;height:54px;border-radius:16px}.clue-color>span{background:var(--swatch);border:5px solid #fff;box-shadow:0 0 0 2px #d9d1b8,0 5px 12px rgba(49,67,56,.12)}.clue svg{padding:7px;background:#eaf1e4;fill:none;stroke:#497666;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.clue div{display:grid;gap:4px}.clue small{font-size:11px;color:#a45d4e;font-weight:900;letter-spacing:.08em}.clue b{font-size:19px}.shelf-wrap{padding:18px;border:1px solid #d9cfb1;border-radius:26px;background:linear-gradient(#e5d4ae 0 6px,#f4e8cc 6px calc(50% - 4px),#d6ba82 calc(50% - 4px) calc(50% + 5px),#f4e8cc calc(50% + 5px) calc(100% - 7px),#c9aa70 calc(100% - 7px));box-shadow:inset 0 7px 16px rgba(103,77,42,.09)}.shelf-grid{display:grid;grid-template-columns:repeat(var(--shelf-cols),minmax(0,1fr));gap:12px}.object-card{position:relative;display:grid;grid-template-rows:104px auto;place-items:center;min-width:0;min-height:144px;padding:8px 8px 10px;border:2px solid rgba(118,91,51,.2);border-radius:18px;background:rgba(255,252,241,.93);color:var(--ink);transition:.18s}.object-card:hover{border-color:#8fac8c;transform:translateY(-2px)}.object-card.is-selected{border-color:#4d9875;background:#edf7ec;box-shadow:0 0 0 4px rgba(77,152,117,.15)}.object-card.is-dimmed{opacity:.28;filter:grayscale(.5)}.object-card.is-found{border-color:#4d9875;background:#e3f3e3}.object-card.is-found:after{content:'✓';position:absolute;top:8px;right:8px;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#4d9875;color:#fff;font-weight:900}.object-card span{width:100%;height:104px;display:grid;place-items:center}.object-card img{display:block;max-width:92%;max-height:96px;object-fit:contain}.object-card b{font-size:15px;text-align:center;line-height:1.2}
.feedback{display:grid;gap:5px;border-radius:19px;padding:15px 18px;margin:18px 0;background:#eef3e7;border-left:7px solid #809d87}.feedback strong{font-size:18px}.feedback span{color:var(--muted);line-height:1.4}.feedback[data-tone="error"]{background:#fff0eb;border-color:#df745e}.feedback[data-tone="success"]{background:#e6f5e9;border-color:#4f9b72}.feedback[data-tone="hint"]{background:#fff5d9;border-color:#efbb54}.actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}.tabs{display:flex;justify-content:center;gap:9px;margin-top:18px}.tabs button{width:43px;height:43px;border-radius:14px;border:2px solid #d9dac8;background:#fff;color:var(--ink);font-weight:900}.tabs button.active{border-color:var(--coral)}.tabs button.done{background:#dff0df;color:#2e7254}.result{display:grid;grid-template-columns:1.25fr .75fr;align-items:center;padding:44px}.result>div>p:not(.eyebrow){font-size:20px;color:var(--muted);line-height:1.5}.result-stats{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0}.result-stats>*{padding:10px 14px;border-radius:999px;background:#edf3e5}.result-actions{display:flex;gap:10px;flex-wrap:wrap}.result figure{margin:0;display:grid;place-items:center;min-height:220px}.result img{max-width:210px;max-height:200px;object-fit:contain}
.shelf-wrap{background:linear-gradient(135deg,#f4e8cc,#ead8b3)}
.object-card{box-shadow:0 6px 0 rgba(171,132,75,.25)}
.object-card.is-selected{box-shadow:0 0 0 4px rgba(77,152,117,.15),0 6px 0 rgba(171,132,75,.2)}
@media(max-width:850px){.hero{grid-template-columns:1fr}.hero-art{height:340px}.hero-copy{padding:30px}.result{grid-template-columns:1fr}.result figure{grid-row:1}.shelf-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.app{width:min(100% - 20px,1120px);margin-top:12px}.game-bar{padding:9px 11px}.game-brand small{display:none}.age-pill{padding:8px 10px}.hero-art{height:270px}.hero-copy{padding:24px}.hero h1{font-size:38px}.hero-copy>p:not(.eyebrow){font-size:18px}.steps{grid-template-columns:1fr}.route-grid{grid-template-columns:1fr}.route>span{min-height:0}.panel,.play-card{padding:20px}.panel-head,.task-head{align-items:flex-start;flex-direction:column}.panel-head>span{white-space:normal}.clue-board{grid-template-columns:1fr}.clue{min-height:76px}.result{padding:28px}}
@media(max-width:430px){.game-brand strong{font-size:15px}.game-icon{width:42px;height:42px}.age-pill{font-size:13px}.hero h1{font-size:34px}.hero-art{height:230px}.facts span{font-size:13px;padding:8px 10px}.primary,.secondary,.hint{width:100%}.actions,.result-actions{display:grid;grid-template-columns:1fr;width:100%}.task-head h3{font-size:25px}.play-head{align-items:flex-start}.play-head .counter{font-size:12px;padding:7px 9px}.shelf-wrap{padding:9px}.shelf-grid{gap:7px}.object-card{grid-template-rows:72px auto;min-height:108px;padding:5px 3px 7px}.object-card span{height:72px}.object-card img{max-height:68px}.object-card b{font-size:12px}.tabs{gap:6px}.tabs button{width:38px;height:38px}.result{padding:22px}.result figure{min-height:170px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
