:root{--paper:#fffdf8;--cream:#f6eedb;--ink:#184b43;--muted:#687c77;--line:#e5d5b7;--green:#4e9870;--coral:#df745f;--gold:#efbd54;--shadow:0 18px 42px rgba(70,62,39,.14)}
*{box-sizing:border-box}html{background:#f0f5e9}body{margin:0;color:var(--ink);font-family:"Trebuchet MS","Segoe UI",sans-serif;background:radial-gradient(circle at 12px 12px,rgba(77,119,83,.08) 1px,transparent 1.5px) 0 0/24px 24px,#f0f5e9;overflow-x:hidden}.app{width:min(1120px,calc(100% - 32px));margin:42px auto 58px;background:var(--paper);border:1px solid var(--line);border-radius:34px;box-shadow:var(--shadow);overflow:hidden}button,a{font:inherit}.game-bar{min-height:92px;padding:16px 26px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:rgba(255,255,255,.8)}.game-brand{display:flex;align-items:center;gap:13px;color:var(--ink);text-decoration:none;border-radius:18px;padding:5px 7px;transition:.2s}.game-brand:hover{background:#f5eedb}.game-brand:focus-visible,button:focus-visible{outline:4px solid rgba(239,189,84,.58);outline-offset:3px}.game-brand>span:last-child{display:grid;gap:2px}.game-brand strong{font-size:22px}.game-brand small{color:var(--muted)}.game-icon{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:#f8e4a8}.game-icon svg{width:41px;height:36px;fill:none;stroke:#8a6a2d;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.age-pill,.counter{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border:1px solid var(--line);border-radius:999px;background:white;font-weight:900;white-space:nowrap}.screen{display:none}.screen.is-active{display:grid}.home-screen{grid-template-columns:1.04fr .96fr;background:linear-gradient(113deg,#fff3d8 0 49%,#e6f2df 49%)}.hero-copy{padding:60px 34px 34px}.eyebrow{margin:0 0 7px;font-size:12px;font-weight:900;letter-spacing:.12em;color:#438168}.hero-copy h1,.section-title h2,.task-head h2,.result-screen h2{margin:0;line-height:1.04;font-size:46px;letter-spacing:-.03em}.hero-copy>p:not(.eyebrow){font-size:19px;line-height:1.5;color:var(--muted);max-width:550px}.hero-facts{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 26px}.hero-facts span{padding:9px 15px;border:1px solid var(--line);border-radius:999px;background:white;font-weight:900}.primary-button,.secondary-button,.check-button,.next-button,.hint-button,.restart-button{border:0;border-radius:15px;min-height:52px;padding:0 22px;font-weight:900;cursor:pointer;transition:.18s}.primary-button,.check-button,.next-button{color:white;background:var(--green);box-shadow:0 5px 0 #287954}.primary-button:hover,.check-button:hover:not(:disabled),.next-button:hover{filter:brightness(1.05);transform:translateY(-1px)}button:disabled{cursor:default}.hero-scene{min-height:410px;padding:48px 30px 30px;display:grid;place-items:center}.hero-scene img{width:100%;max-height:330px;aspect-ratio:3/2;object-fit:cover;border-radius:30px;box-shadow:0 15px 30px rgba(44,72,51,.18)}.how-strip{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding:4px 34px 30px}.how-strip article{min-height:94px;padding:17px;display:flex;align-items:center;gap:14px;border:1px solid var(--line);border-radius:22px;background:rgba(255,255,255,.91)}.how-strip article>b{flex:0 0 52px;width:52px;height:52px;border-radius:16px;background:var(--coral);color:white;display:grid;place-items:center;font-size:22px}.how-strip span{display:grid;gap:4px}.how-strip strong{font-size:18px}.how-strip small{color:var(--muted)}
.routes-screen,.play-screen{padding:40px 32px 42px}.section-title,.task-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.section-title h2,.task-head h2{font-size:38px}.section-title>p{color:var(--muted);font-weight:900}.route-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:26px 0}.route-card{display:flex;flex-direction:column;min-width:0;padding:11px;border:1px solid var(--line);border-radius:26px;background:#fff;box-shadow:0 10px 20px rgba(63,68,46,.1)}.route-art{height:170px;display:grid;place-items:center;border-radius:20px;background:#f2f4df}.route-art img{width:145px;height:135px;object-fit:contain}.route-card>p{margin:14px 5px 5px;color:var(--route);font-size:12px;font-weight:900}.route-card h3{margin:0 5px 8px;font-size:23px}.route-card>span{height:72px;min-height:72px;margin:0 5px;color:var(--muted);line-height:1.4}.route-meta{display:flex;justify-content:space-between;margin:10px 5px 5px;color:var(--muted);font-weight:900}.route-bar{height:7px;border-radius:9px;background:#ece9df;overflow:hidden;margin:0 5px 13px}.route-bar i{display:block;height:100%;background:var(--route)}.route-card button{margin-top:auto;min-height:50px;border:0;border-radius:14px;color:white;background:var(--route);font-weight:900;display:flex;align-items:center;justify-content:space-between;padding:0 17px;cursor:pointer}.back-link{border:0;background:none;color:#398764;font-weight:900;cursor:pointer}.task-head{display:grid;grid-template-columns:auto 1fr auto}.round-button{width:50px;height:50px;border-radius:50%;border:1px solid var(--line);background:white;color:var(--ink);font-size:22px;cursor:pointer}.progress-line{height:8px;margin:20px 0;border-radius:8px;background:#e8e5dc;overflow:hidden}.progress-line i{display:block;height:100%;background:var(--green);transition:width .25s}
.riddle-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;padding:22px 24px;border:1px solid var(--line);border-radius:26px;background:linear-gradient(120deg,#fff6df,#edf6e5)}.step-number{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;background:var(--coral);color:#fff;font-size:27px;font-weight:900;box-shadow:0 5px 0 #bd5948}.riddle-card h3{margin:0 0 6px;font-size:24px}.riddle-card div:nth-child(2)>p:last-child{margin:0;color:#425f59;font-size:20px;line-height:1.42}.choice-rule{padding:10px 15px;border-radius:999px;background:white;border:1px solid var(--line);font-weight:900;white-space:nowrap}.answer-stage{margin-top:16px;padding:20px;border:1px solid var(--line);border-radius:26px;background:#fff}.option-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.option-card{position:relative;min-height:214px;padding:15px 11px;border:3px solid #e6ddca;border-radius:23px;background:#fffdf6;color:var(--ink);cursor:pointer;display:grid;grid-template-rows:145px auto;place-items:center;gap:8px}.option-card:hover:not(:disabled){border-color:#b8cfae;transform:translateY(-2px)}.option-card img{width:100%;height:145px;object-fit:contain}.option-card strong{font-size:19px}.option-card .pick-number{position:absolute;right:10px;top:10px;width:32px;height:32px;border-radius:50%;display:none;place-items:center;background:var(--gold);color:#634617;font-weight:900}.option-card.is-selected{border-color:var(--gold);background:#fff8dc}.option-card.is-selected .pick-number{display:grid}.option-card.is-kept{border-color:#5fa778;background:#ebf7e8;box-shadow:0 5px 0 #7db887}.option-card.is-eliminated{opacity:.28;filter:grayscale(1);cursor:default}.option-card.is-answer{border-color:#3f9768;background:#e4f5df}.selection-line{min-height:28px;margin:14px 0 3px;text-align:center;color:var(--muted);font-weight:900}.check-button{display:block;min-width:270px;margin:11px auto 0}.check-button:disabled{background:#acd2bd;box-shadow:none}.control-card{margin-top:16px;padding:18px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:14px;border:1px solid var(--line);border-radius:24px;background:#fff9eb}.feedback{display:grid;gap:4px;padding-left:12px;border-left:4px solid #6ea77b}.feedback[data-tone=error]{border-color:var(--coral)}.feedback[data-tone=hint]{border-color:var(--gold)}.feedback[data-tone=success]{border-color:var(--green)}.feedback span{color:var(--muted)}.actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px}.hint-button{background:#ffe4a3;color:#76501b}.restart-button,.secondary-button{background:white;color:var(--ink);border:2px solid #86b89a}.task-tabs{grid-column:1/-1;display:flex;justify-content:center;gap:7px}.task-tabs button{width:38px;height:38px;border:1px solid var(--line);border-radius:12px;background:white;color:var(--ink);font-weight:900;cursor:pointer}.task-tabs button.is-active{border-color:var(--green)}.task-tabs button.is-done{color:white;background:var(--green)}
.result-screen{grid-template-columns:.9fr 1.1fr;align-items:center;gap:42px;padding:64px 48px}.result-scene{position:relative;min-height:340px;border-radius:30px;background:linear-gradient(#def0d2 0 58%,#d8bd89 58%);display:grid;place-items:center;overflow:hidden}.result-scene>span{position:absolute;width:100px;height:100px;border-radius:50%;background:#ffd25d;right:45px;top:35px}.result-scene>img:not(.reward-art){width:190px;height:190px;object-fit:contain;z-index:1}.reward-art{position:absolute;width:105px;height:105px;object-fit:contain;right:24px;bottom:20px}.result-screen>div:last-child>p:not(.eyebrow){font-size:19px;line-height:1.5;color:var(--muted)}.result-actions{display:flex;flex-wrap:wrap;gap:12px}.secondary-button{min-height:52px;cursor:pointer}
@media(max-width:850px){.app{width:min(1120px,calc(100% - 24px));margin-top:22px}.home-screen{grid-template-columns:1fr;background:linear-gradient(#fff3d8 0 48%,#e6f2df 48%)}.hero-copy{padding:42px 26px 16px}.hero-scene{min-height:300px;padding:20px 26px 30px}.hero-scene img{max-height:300px}.route-grid{grid-template-columns:1fr}.route-card>span{height:auto;min-height:0}.result-screen{grid-template-columns:1fr;padding:38px 24px}.result-scene{min-height:300px}}
@media(max-width:620px){.app{width:min(1120px,calc(100% - 16px));border-radius:26px}.game-bar{padding:12px 14px}.game-brand{gap:9px}.game-brand strong{font-size:17px}.game-brand small{display:none}.game-icon{width:48px;height:48px}.age-pill{display:none}.hero-copy h1{font-size:37px}.hero-copy>p:not(.eyebrow){font-size:17px}.how-strip{grid-template-columns:1fr;padding:4px 18px 26px}.how-strip article{min-height:84px}.routes-screen,.play-screen{padding:26px 12px 32px}.section-title{align-items:flex-start;flex-direction:column;gap:7px}.section-title h2,.task-head h2{font-size:29px}.task-head{grid-template-columns:auto 1fr}.task-head .counter{grid-column:2;justify-self:start}.riddle-card{grid-template-columns:auto 1fr;padding:16px 13px;gap:12px}.riddle-card .choice-rule{grid-column:2;justify-self:start}.riddle-card div:nth-child(2)>p:last-child{font-size:18px}.step-number{width:49px;height:49px;border-radius:15px}.answer-stage{padding:13px 8px}.option-grid{gap:7px}.option-card{min-height:166px;padding:8px 4px;grid-template-rows:108px auto;border-width:2px}.option-card img{height:108px}.option-card strong{font-size:14px;text-align:center}.option-card .pick-number{width:27px;height:27px;right:5px;top:5px}.check-button{width:100%;min-width:0}.control-card{grid-template-columns:1fr;padding:15px 12px}.actions{justify-content:stretch}.actions>button{flex:1 1 145px}.result-screen{padding:28px 16px}.result-scene{min-height:280px}}
@media(max-width:390px){.hero-copy h1{font-size:34px}.riddle-card h3{font-size:20px}.riddle-card div:nth-child(2)>p:last-child{font-size:17px}.option-card{min-height:151px;grid-template-rows:96px auto}.option-card img{height:96px}.task-tabs button{width:37px;height:37px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
[hidden]{display:none!important}
