*{box-sizing:border-box}body{margin:0;background:#f5f3ea;color:#203a33;font:17px/1.55 system-ui,sans-serif}header,main{max-width:1120px;margin:auto;padding:22px}header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #cad1c4}.brand{font-size:24px;font-weight:850;letter-spacing:-1px;text-decoration:none;color:inherit}.brand span{color:#6d805b}select,button{font:inherit;border:1px solid #9aa99d;border-radius:14px;padding:11px 17px;background:#fffdf5;color:#203a33;cursor:pointer}button:disabled{cursor:default;opacity:.65}a{color:inherit}a:focus-visible,button:focus-visible,select:focus-visible,canvas:focus-visible{outline:3px solid #8b5bb1;outline-offset:4px}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:800}.hero{padding:30px 0 22px;max-width:780px}.hero h1{font-size:clamp(40px,6vw,70px);letter-spacing:-3px;line-height:1.08;margin:17px 0}.hero>p:last-child{font-size:20px;color:#54665b}.tabs{display:flex;gap:9px;flex-wrap:wrap;margin:8px 0 22px}.tabs button[aria-pressed=true]{background:#203f36;color:white;border-color:#203f36}.play-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,1fr);gap:25px;align-items:start}.stage,.download-card,.challenge-card,.testing{border:1px solid #cbd2c5;border-radius:25px;background:#fffef9;padding:24px}.stage-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.stage-top h2{font-size:28px;margin:0}output{font-weight:750;font-variant-numeric:tabular-nums}#rule{min-height:80px;font-size:15px;margin:10px 0 14px;color:#4d6257}canvas{display:block;width:100%;max-width:420px;height:auto;margin:auto;border-radius:22px;touch-action:none;background:#eaf1ee;border:1px solid #b2c9bd}#question{font-size:clamp(25px,4vw,38px);margin:35px 0}#answers{display:grid;grid-template-columns:1fr 1fr;gap:12px}#answers button{font-size:24px;min-height:70px}#answers .correct{background:#d5f2d8;border:3px solid #287447}#answers .wrong{background:#fce0dd;border:3px solid #aa4843}.controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.primary{display:inline-block;background:#214b3d;color:white;border:1px solid #214b3d;border-radius:14px;font-weight:750;padding:13px 20px;text-decoration:none}.primary:hover{background:#32644f}#result{font-size:22px;font-weight:750;margin:13px 0}#sharing{display:flex;gap:8px;flex-wrap:wrap}#sharing button{font-size:14px}#copyFallback{width:100%;padding:10px}aside{display:grid;gap:20px}.download-card h2{font-size:31px;letter-spacing:-1px}.download-card .primary{display:block;text-align:center}.small{font-size:13px;color:#5e7065}.challenge-card{background:#e3e9db}.challenge-card h3{font-size:24px}.testing{margin-top:27px}.testing h2{font-size:27px;letter-spacing:-.7px}.steps{white-space:pre-line}footer{font-size:13px;color:#5c6b60;padding:28px 0}#quiz{min-height:400px}#incoming{padding:12px;border:1px dashed #698c7a;border-radius:12px;overflow-wrap:anywhere}[hidden]{display:none!important}@media(max-width:720px){header,main{padding:16px}.play-layout{grid-template-columns:1fr}.stage{padding:18px}.hero{padding-top:20px}.hero h1{letter-spacing:-1.8px}.stage-top h2{font-size:24px}aside{grid-template-columns:1fr}.testing{padding:20px}#rule{min-height:0}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Keep the next action reachable on small screens. */
@media(max-width:720px){body{padding-bottom:90px}.hero{padding:12px 0}.hero h1{font-size:34px;margin:10px 0}.hero>p:last-child{font-size:16px}.controls{margin:0 0 14px}#download{position:fixed;bottom:12px;left:16px;right:16px;z-index:20;box-shadow:0 3px 20px #10291e40;max-height:76px;overflow:auto;padding-bottom:max(13px,env(safe-area-inset-bottom))}}

.analytics-controls summary{cursor:pointer;font-weight:700}.analytics-controls label{display:block;margin:16px 0}.analytics-controls input{width:20px;height:20px;vertical-align:middle}.analytics-controls button{background:#fffdf5;color:#203a33}.analytics-controls p{font-size:14px}
