:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#243650;background:#eae8e2;font-size:18px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer;touch-action:manipulation;min-height:52px;border:0;border-radius:18px;padding:12px 16px;color:inherit;background:#ebeef5;font-weight:750}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #d17b27;outline-offset:3px}button:disabled{opacity:.55;cursor:default}button:active{transform:translateY(2px)}.phone{--bg:#f8f5ed;--primary:#315fc8;--fg:#243650;--on-primary:#fff;background:var(--bg);color:var(--fg);max-width:420px;min-height:100dvh;margin:auto;padding: max(22px,env(safe-area-inset-top)) 22px max(22px,env(safe-area-inset-bottom));position:relative;overflow-x:clip}.home{min-height:calc(100dvh - 50px);display:flex;flex-direction:column;justify-content:center;gap:20px;text-align:center}.eyebrow{letter-spacing:.14em;font-size:13px;font-weight:800;color:#55667f}.logo-mark{width:44px;height:44px;border:2px solid #315fc8;border-radius:15px;display:grid;place-items:center;margin:0 auto;color:#315fc8;font-size:25px}.hero-art{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:14px 20px;transform:rotate(-5deg)}.hero-art span{background:#fffdf8;border:1px solid #e5dfd3;border-radius:24px;padding:10px;box-shadow:0 7px 0 #e5dfd3}.hero-art span:nth-child(5){background:#e5edff;border:2px solid #315fc8;transform:rotate(12deg) scale(1.06)}svg{width:100%;display:block}h1{font-size:43px;letter-spacing:-.065em;line-height:1.2;margin:6px 0 12px}h2{font-size:27px;letter-spacing:-.04em;line-height:1.35;margin:8px 0 14px}p{line-height:1.65;margin:8px 0}.muted{color:#58677b;font-size:16px}.primary{background:var(--primary);color:var(--on-primary);box-shadow:0 5px 0 color-mix(in srgb,var(--primary),#000 20%);font-size:22px}.secondary{background:#fff;color:#294a92;border:1.5px solid #c5cee0;font-size:21px;box-shadow:0 4px 0 #e1e4eb}.stack{display:grid;gap:14px}.footer{font-size:14px;color:#58677b;margin-top:16px}.top{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:18px}.top strong{font-size:19px}.icon-btn{font-size:15px;padding:10px;min-width:52px}.card{background:#fff;color:#243650;padding:20px;border:1px solid #e4e5e9;border-radius:24px;box-shadow:0 8px 28px #25365508}.stats{display:flex;justify-content:space-between;gap:8px;margin:20px 0 12px;font-size:17px}.stats b{font-size:23px;display:block}.timer{height:7px;background:#dce2ee;border-radius:10px;overflow:hidden;margin-bottom:20px}.timer i{display:block;height:100%;background:var(--primary);transition:width .1s linear}.board{display:grid;gap:4px;background:#fff;border:1px solid #e0e4eb;border-radius:24px;padding:10px;box-shadow:0 7px 25px #25365508}.tile{min-width:0;min-height:0;aspect-ratio:1;padding:2px;border-radius:10px;background:transparent;display:grid;place-items:center;border:2px solid transparent}.tile svg{width:var(--icon,86%)}.tile.correct{background:#e0f4e9;border-color:#25864a;animation:pop .4s}.tile.wrong{background:#ffe4de;animation:shake .25s}.tile.dim{opacity:.18}.game-tools{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.notice{min-height:32px;font-size:16px;text-align:center;margin:12px 0}.level-dots{display:flex;gap:5px;margin-bottom:14px}.level-dots i{flex:1;height:5px;border-radius:4px;background:#dce2ee}.level-dots i.done{background:var(--primary)}.overlay{position:fixed;inset:0;background:#1b2c4b88;z-index:5;display:flex;align-items:center;justify-content:center;padding:24px}.overlay .card{width:100%;max-width:355px;text-align:center;max-height:90dvh;overflow:auto}.success{width:76px;height:76px;background:#e3f3e9;border-radius:50%;color:#238054;margin:0 auto 18px;display:grid;place-items:center;font-size:43px}.big-score{font-size:45px;letter-spacing:-.04em;color:#315fc8;font-weight:850}.metric{display:flex;justify-content:space-between;border-bottom:1px solid #e7eaf0;padding:13px 0;gap:10px}.form-label{display:block;font-weight:700;margin:24px 0 10px}input,textarea{width:100%;padding:16px;border:1.5px solid #bdc8d9;border-radius:16px;color:#243650;background:white;min-width:0}textarea{resize:vertical;min-height:100px;max-height:220px}.chat{display:flex;flex-direction:column;gap:16px;max-height:39dvh;overflow:auto;scroll-behavior:smooth;padding:8px 0 18px}.bubble{border-radius:20px;padding:15px 17px;max-width:94%;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;font-size:18px;background:#fff;border:1px solid #dfe4ed;color:#243650}.bubble.user{align-self:flex-end;background:#315fc8;color:#fff;border:0}.bubble small{display:block;font-size:12px;font-weight:800;margin-bottom:5px;letter-spacing:.08em}.composer{display:grid;gap:12px;margin-top:18px}.example{text-align:left;font-size:16px;background:#e7edf9;color:#254985;line-height:1.5}.code-panel{background:#17273e;color:#d6f3dc;padding:14px;border-radius:18px;margin-top:16px}.code-panel pre{font-family:Consolas,monospace;font-size:12px;line-height:1.7;height:156px;overflow:auto;white-space:pre;tab-size:2;margin:8px 0}.code-panel .token{color:#9fcbff}.code-meta{display:flex;justify-content:space-between;font-size:14px}.code-panel progress{width:100%;accent-color:#92cfba}.summary{font-size:16px;background:#fff;color:#243650;border-radius:16px;padding:14px;margin:16px 0;line-height:1.7}.confetto{position:fixed;top:-20px;width:9px;height:15px;z-index:8;animation:fall 1.7s ease-in forwards;pointer-events:none}#effects{pointer-events:none}.link{background:transparent;text-decoration:underline;font-size:16px}.step-label{font-size:16px;color:#315fc8;font-weight:750}.center{text-align:center}.spacer{height:24px}a{color:#315fc8} @keyframes fall{to{transform:translateY(95dvh) rotate(550deg);opacity:0}}@keyframes pop{50%{transform:scale(1.08)}}@keyframes shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}@media(min-width:650px){.phone{margin:28px auto;min-height:calc(100dvh - 56px);border-radius:34px;box-shadow:0 20px 100px #1f304220}.home{min-height:calc(100dvh - 110px)}}@media(max-width:350px){.phone{padding-left:14px;padding-right:14px}h1{font-size:38px}.hero-art{padding:10px 28px;gap:8px}.hero-art span{padding:5px}.stats b{font-size:21px}.board{padding:5px;gap:2px}.top{gap:3px}.top strong{font-size:17px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition:none!important;scroll-behavior:auto!important}.tile.correct{outline:3px solid #25864a}.confetto{display:none}}
:root .tile{aspect-ratio:auto;height:clamp(40px,calc((100dvh - 365px)/var(--rows,3)),120px)}.tile svg{height:var(--icon,83%);max-height:100%}
:root [hidden]{display:none!important}
:root{word-break:keep-all;overflow-wrap:anywhere}.summary{white-space:pre-line}.tile.correct{animation-name:success-pop}@keyframes success-pop{50%{transform:scale(var(--pop-scale,1.08))}}
