:root{--ink:#174d45;--muted:#687a76;--paper:#fffdf7;--line:#e5d6b6;--green:#4d9c78;--dark:#276c56;--coral:#df755d}*{box-sizing:border-box}html,body{overflow-x:hidden}body{margin:0;background:radial-gradient(circle at 90% 0,#eadfca 0,transparent 35%),linear-gradient(145deg,#eef5df,#f8f1df);color:var(--ink);font-family:"Trebuchet MS",Arial,sans-serif}.app{width:min(1120px,calc(100% - 32px));margin:28px auto 42px}.screen{display:none}.screen.is-active{display:block}.game-bar,.panel,.play-card,.result{background:rgba(255,253,247,.97);border:1px solid var(--line);border-radius:28px;box-shadow:0 10px 0 rgba(105,88,45,.08)}.game-bar{min-height:78px;padding:12px 18px;display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.game-brand{display:inline-flex;align-items:center;gap:12px;color:inherit;text-decoration:none;border-radius:16px;padding:3px 8px 3px 3px}.game-brand:hover{background:#edf6e8}.game-brand:focus-visible{outline:4px solid #f0b840;outline-offset:3px}.game-brand>span:last-child{display:flex;flex-direction:column}.game-brand strong{font:700 23px Georgia,serif}.game-brand small{color:var(--muted);font-weight:700}.game-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:#e6f2e5}.game-icon svg{width:40px;height:40px;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.icon-corner{stroke:#d95645;stroke-width:5}.icon-piece{fill:#e8ad36;stroke:#976b25}.age-pill,.counter,.task-head>span,.panel-head>span{padding:10px 14px;border:1px solid #dce5d7;background:#fff;border-radius:999px;font-weight:800;white-space:nowrap}.hero{display:grid;grid-template-columns:.94fr 1.06fr;overflow:hidden;background:var(--paper);border:1px solid var(--line);border-radius:30px;box-shadow:0 16px 34px rgba(54,77,45,.12)}.hero-copy{padding:48px 46px;align-self:center}.hero-art{min-height:470px;background:#f5ead3}.hero-art img{width:100%;height:100%;object-fit:cover;display:block}.eyebrow,.route>p,.task-head p{margin:0 0 8px;color:#c75d48;font-size:13px;font-weight:900;letter-spacing:.07em}.hero h1,.panel h2,.play-head h2,.result h2{font:700 clamp(34px,4vw,54px)/1.03 Georgia,serif;margin:0 0 20px}.hero-copy>p:not(.eyebrow){font-size:19px;line-height:1.55;color:var(--muted);margin:0 0 24px}.facts{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:28px}.facts span{background:#fff;border:1px solid #d9dfd1;padding:10px 14px;border-radius:999px}.primary,.secondary,.hint,.plain,.back,.route button,.corner-option{font:inherit;cursor:pointer}.primary,.secondary,.hint,.route button{min-height:52px;border:0;border-radius:16px;font-weight:900}.primary{background:var(--green);color:#fff;padding:0 24px;box-shadow:0 6px 0 var(--dark)}.primary:hover{background:#58a984}.primary:active{transform:translateY(3px);box-shadow:0 3px 0 var(--dark)}.secondary{padding:0 18px;color:var(--ink);background:#fff;border:2px solid #cfdcc9}.secondary:hover{background:#eef6e9}.hint{padding:0 20px;background:#f6cf67;color:#654d1f;box-shadow:0 5px 0 #c99731}.plain{border:0;background:transparent;color:var(--ink);font-weight:800;margin-top:24px;padding:8px}.steps{grid-column:1/-1;margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line)}.steps li{min-height:104px;padding:18px 22px;display:flex;align-items:center;gap:12px}.steps li+li{border-left:1px solid var(--line)}.steps b{flex:0 0 42px;height:42px;border-radius:14px;background:var(--coral);color:#fff;display:grid;place-items:center;font-size:21px}.steps span{display:flex;flex-direction:column;gap:4px}.steps small{line-height:1.3;color:var(--muted)}.panel,.play-card,.result{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{margin-bottom:0}.route-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:30px;align-items:stretch}.route{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-top:8px solid var(--route);border-radius:24px;padding:18px;background:#fff}.route-art{height:128px;display:grid;place-items:center;background:#eef4e8;border-radius:18px;margin-bottom:16px}.route-art img{width:112px;height:105px;object-fit:contain}.route h3{font:700 26px/1.08 Georgia,serif;margin:0 0 10px}.route>span{color:var(--muted);line-height:1.45;min-height:62px}.route-meta{display:flex;justify-content:space-between;margin-top:auto;padding-top:18px}.route-meta small{color:var(--muted)}.route-bar{height:8px;border-radius:99px;background:#ece9dc;margin:10px 0 15px;overflow:hidden}.route-bar i{height:100%;display:block;background:var(--route)}.route button{display:flex;align-items:center;justify-content:space-between;padding:0 18px;color:#fff;background:var(--route)}.back{width:50px;height:50px;border:1px solid #ccdbc9;border-radius:15px;background:#fff;color:var(--ink);font-size:24px}.play-head>div{margin-right:auto}.progress{height:8px;border-radius:10px;background:#e8e6db;margin:24px 0 22px;overflow:hidden}.progress i{display:block;height:100%;background:linear-gradient(90deg,#df8950,#4b9d78)}.task-head h3{font:700 32px/1.1 Georgia,serif;margin:0}.prompt{text-align:center;color:var(--muted);font-weight:700;font-size:17px}.angle-work{display:grid;grid-template-columns:minmax(330px,.9fr) minmax(0,1.25fr);gap:18px;background:#faf5e7;border:1px solid var(--line);border-radius:24px;padding:18px}.fit-panel,.choice-panel{background:#fff;border:1px solid #dfd2b8;border-radius:20px;padding:18px}.fit-panel h4,.choice-panel h4{font:700 27px/1.1 Georgia,serif;margin:0 0 12px}.fit-stage{position:relative;height:315px;border-radius:20px;overflow:hidden;background:repeating-linear-gradient(0deg,transparent 0 31px,rgba(76,125,99,.08) 32px),repeating-linear-gradient(90deg,#f4f7ec 0 31px,#dfe9da 32px)}.guide-svg,.stage-svg{position:absolute;inset:0;width:100%;height:100%}.guide-wash{fill:none;stroke:#fff7cf;stroke-width:22;stroke-linecap:round;stroke-linejoin:round}.guide-line{fill:none;stroke:#d95443;stroke-width:10;stroke-linecap:round;stroke-linejoin:round}.guide-svg circle{fill:#d95443;stroke:#fff7cf;stroke-width:5}.stage-svg{filter:drop-shadow(0 7px 3px rgba(68,53,32,.24))}.placed-piece,.corner-option polygon{stroke:rgba(74,52,31,.33);stroke-width:1.6;stroke-linejoin:round}.piece-ray-shadow{stroke:#fff8db;stroke-width:11;stroke-linecap:round}.piece-ray{stroke:#d95443;stroke-width:6;stroke-linecap:round}.piece-vertex{fill:#d95443;stroke:#fff8db;stroke-width:3}.empty-piece{position:absolute;inset:0;display:grid;place-content:center;text-align:center;color:#88a092}.empty-piece b{font:700 45px Georgia}.empty-piece span{font-weight:800}.target-kind{position:absolute;left:12px;bottom:12px;padding:7px 10px;border-radius:999px;background:#fff7ce;border:1px solid #dda936;font-weight:900;opacity:0;transform:translateY(6px);transition:.2s}.target-kind.is-visible{opacity:1;transform:none}.stage-note{margin:10px 0 0;color:var(--muted);font-size:13px;text-align:center}.corner-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.corner-option{position:relative;min-width:0;min-height:205px;border:3px solid #d6ddca;border-radius:18px;background:#fbfdf8;padding:12px 5px;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center}.corner-option:hover{border-color:#75a987;background:#f1f8ec}.corner-option:focus-visible{outline:4px solid #f2bd47;outline-offset:2px}.corner-option.is-selected{border-color:#e7a534;background:#fff5cf}.corner-option>b{position:absolute;top:8px;left:8px;width:29px;height:29px;border-radius:10px;background:#e9f0e6;display:grid;place-items:center}.corner-option svg{width:120px;max-width:100%;height:105px;overflow:visible;filter:drop-shadow(0 4px 2px rgba(65,52,35,.18))}.corner-option>span{font-weight:900}.corner-option small{margin-top:4px;padding:3px 7px;border-radius:99px;background:#ffefb6;color:#79571e;font-weight:900;opacity:0}.corner-option small.is-visible{opacity:1}.turn-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.turn-state{margin-top:10px;padding:11px;text-align:center;border-radius:13px;background:#edf5e8;color:var(--muted);font-weight:800}.feedback{display:flex;flex-direction:column;gap:4px;margin:18px 0;padding:16px 19px;border-radius:17px;border-left:6px solid #79a090;background:#eef5e9}.feedback[data-tone=error]{border-color:#dc705b;background:#fff0e9}.feedback[data-tone=success]{border-color:#409878;background:#e5f3e8}.feedback[data-tone=hint]{border-color:#d5a537;background:#fff5cf}.feedback span{color:var(--muted);line-height:1.4}.actions{display:flex;justify-content:space-between;align-items:center;gap:14px}.tabs{display:flex;justify-content:center;gap:8px;margin-top:20px}.tabs button{width:42px;height:42px;border:0;border-radius:50%;background:#4d9d79;color:#fff;font-weight:900}.tabs button.active{outline:4px solid #f0bf4d}.tabs button.done{font-size:0}.tabs button.done:after{content:"✓";font-size:16px}.result{display:grid;grid-template-columns:1.2fr .8fr;align-items:center;gap:34px;min-height:430px}.result p:not(.eyebrow){font-size:19px;color:var(--muted);line-height:1.55}.result-stats{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0}.result-stats>*{padding:10px 14px;border-radius:999px;background:#eef4e8}.result-actions{display:flex;gap:14px;flex-wrap:wrap}.result figure{margin:0;height:280px;display:grid;place-items:center;background:#eef4e8;border-radius:28px}.result img{width:220px;height:220px;object-fit:contain}@media(max-width:900px){.hero-copy{padding:35px 28px}.hero-art{min-height:410px}.route-grid{gap:12px}.angle-work{grid-template-columns:1fr}.fit-stage{height:280px}.panel,.play-card{padding:26px}}@media(max-width:720px){.app{width:min(100% - 12px,1120px);margin:10px auto 28px}.game-bar{border-radius:20px;padding:9px}.game-brand strong{font-size:18px}.game-brand small{font-size:11px}.game-icon{width:44px;height:44px}.age-pill{font-size:12px;padding:8px}.hero{grid-template-columns:1fr;border-radius:22px}.hero-art{grid-row:1;min-height:255px}.hero-copy{padding:28px 20px 24px}.hero h1,.panel h2,.play-head h2,.result h2{font-size:34px}.hero-copy>p:not(.eyebrow){font-size:17px}.steps{grid-template-columns:1fr}.steps li{min-height:78px}.steps li+li{border-left:0;border-top:1px solid var(--line)}.panel,.play-card,.result{padding:18px;border-radius:22px}.panel-head{align-items:flex-start}.panel-head>span{font-size:12px}.route-grid{grid-template-columns:1fr}.route>span{min-height:0}.route-art{height:105px}.play-head h2{font-size:27px}.counter,.task-head>span{font-size:12px;padding:8px}.task-head{align-items:flex-start}.task-head h3{font-size:27px}.angle-work{padding:8px}.fit-panel,.choice-panel{padding:12px}.fit-stage{height:250px}.corner-option{min-height:170px;padding:8px 3px}.corner-option svg{height:88px}.actions{flex-wrap:wrap}.actions .primary{margin-left:auto}.result{grid-template-columns:1fr}.result figure{height:210px}.result img{width:170px;height:170px}}@media(max-width:430px){.game-brand small{display:none}.game-brand strong{font-size:15px}.age-pill{font-size:10px}.play-card{padding:12px}.back{width:43px;height:43px}.prompt{font-size:14px}.fit-stage{height:220px}.fit-panel h4,.choice-panel h4{font-size:23px}.corner-options{gap:5px}.corner-option{min-height:145px}.corner-option>b{width:25px;height:25px;font-size:12px}.corner-option svg{height:75px}.corner-option>span{font-size:11px}.corner-option small{font-size:10px}.turn-controls .secondary{padding:0 8px;font-size:13px}.feedback{padding:13px}.hint,.primary,.secondary{min-height:48px;padding-left:14px;padding-right:14px}.tabs{gap:5px}.tabs button{width:38px;height:38px}}
