:root{--cream:#fcf7ec;--ink:#353d38;--muted:#74786b;--line:#e1dfd1;--blue:#2875a9;--blue-dark:#245d83;--blue-bg:#e1edf4;--green:#568657;--green-dark:#426a42;--green-bg:#e5eddb;--yellow:#e3b747;--font:ui-rounded, "SF Pro Rounded", "Avenir Next", "Segoe UI", system-ui, sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}*{box-sizing:border-box}body{font-family:var(--font);background:var(--cream);color:var(--ink);-webkit-font-smoothing:antialiased;margin:0}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:5px}button{color:inherit}h1,h2,h3,p{margin:0}svg{flex-shrink:0}button svg,a svg{pointer-events:none}.app-shell{isolation:isolate;min-height:100svh;position:relative}.paper-grain{z-index:-1;pointer-events:none;opacity:.25;background-image:radial-gradient(#9c875626 .6px,#0000 .6px);background-size:7px 7px;position:fixed;inset:0}.page{max-width:1240px;padding:28px max(28px, env(safe-area-inset-right)) 24px max(28px, env(safe-area-inset-left));min-height:100svh;padding-top:max(28px, env(safe-area-inset-top));padding-bottom:max(24px, env(safe-area-inset-bottom));margin:auto}.topbar{justify-content:space-between;align-items:center;gap:16px;display:flex}.wordmark{letter-spacing:-1.5px;align-items:center;gap:9px;font-size:29px;font-weight:850;display:flex}.brand-mark{width:36px;height:36px;color:var(--yellow);overflow:visible}.brand-dot{color:var(--blue);margin-left:-8px}.top-actions{align-items:center;gap:16px;display:flex}.star-bank{font-variant-numeric:tabular-nums;background:#fff9e7;border:1px solid #eadfba;border-radius:99px;align-items:center;gap:10px;padding:12px 19px;font-size:19px;font-weight:750;display:inline-flex}.star-bank svg{color:#b98016}.icon-button{border:1px solid var(--line);background:0 0;border-radius:50%;justify-content:center;align-items:center;width:52px;height:52px;transition:background .2s;display:inline-flex}.icon-button:hover{background:#fff9}.parent-button{position:relative}.parent-button.holding{background:#e7d69c;box-shadow:0 0 0 6px #e7d69c50}.hold-hint{z-index:3;background:#fff;border-radius:12px;padding:12px;font-size:14px;position:absolute;top:88px;right:28px;box-shadow:0 4px 20px #3331}.home-intro{text-align:center;margin:53px auto 37px;position:relative}.eyebrow{letter-spacing:2.1px;color:var(--muted);align-items:center;gap:9px;font-size:11px;font-weight:750;display:inline-flex}.little-dot{background:var(--green);border-radius:50%;width:6px;height:6px;display:inline-block}h1{letter-spacing:-2.8px;font-size:clamp(44px,5.1vw,65px);font-weight:800;line-height:1.08}.home-intro h1{width:fit-content;margin:19px auto 20px;position:relative}.home-intro h1>span{color:var(--blue)}.heading-spark{color:#cc9c35;position:absolute;top:27px;right:-61px;transform:rotate(8deg)}.home-intro p,.result>p{color:var(--muted);font-size:16px;line-height:1.7}.mode-grid{grid-template-columns:1fr 1fr;gap:25px;max-width:952px;margin:auto;display:grid}.mode-card{border:1px solid;border-radius:30px;flex-direction:column;min-height:290px;padding:27px 30px 25px;transition:transform .2s,box-shadow .2s;display:flex;position:relative;overflow:hidden}.mode-card:hover{transform:translateY(-5px);box-shadow:0 10px 25px #3331}.mode-card:active{transform:scale(.98)}.letters-card{background:var(--blue-bg);color:var(--blue-dark);border-color:#c8dce7}.numbers-card{background:var(--green-bg);color:var(--green-dark);border-color:#cadcc9}.card-top,.card-bottom{z-index:1;justify-content:space-between;align-items:center;display:flex}.card-tag{letter-spacing:1.8px;font-size:10px;font-weight:800}.card-glyph{letter-spacing:-6px;-webkit-user-select:none;user-select:none;justify-content:center;align-items:baseline;padding:13px 0 23px;font-size:110px;font-weight:850;line-height:1.05;display:flex}.letter-glyph span:first-child{color:#206da6;transform:rotate(-12deg)}.letter-glyph span:nth-child(2){color:#568fb5;transform:translateY(8px)rotate(6deg)}.letter-glyph span:nth-child(3){color:#92b8cf;transform:rotate(13deg)}.number-glyph span:first-child{color:#427b50;transform:rotate(-10deg)}.number-glyph span:nth-child(2){color:#669465;transform:translateY(8px)rotate(6deg)}.number-glyph span:nth-child(3){color:#9bba88;transform:rotate(12deg)}.card-bottom strong{letter-spacing:-.6px;font-size:24px;font-weight:750;display:block}.card-bottom small{opacity:.8;margin-top:6px;font-size:13px;display:block}.card-go{background:#ffffff82;border:1px solid #ffffffa6;border-radius:50%;place-items:center;width:43px;height:43px;font-size:25px;display:grid}.card-decoration{opacity:.25;font-size:35px;position:absolute;top:77px;right:30px}.home-footer{max-width:952px;color:var(--muted);justify-content:space-between;align-items:center;gap:20px;margin:31px auto 0;font-size:12px;display:flex}.home-footer>span:first-child{align-items:center;gap:9px;display:flex}.footer-or{opacity:.65;margin:0 5px;font-size:11px}.gentle-note{font-style:italic}.game{flex-direction:column;display:flex}.game-mode{align-items:center;gap:18px;font-size:16px;font-weight:700;display:flex}.game-mode>span:last-child{color:var(--muted);font-size:14px;font-weight:500}.progress-track{background:#e9e4d7;border-radius:5px;height:5px;margin-top:27px;overflow:hidden}.progress-track>span{background:var(--blue);border-radius:5px;height:100%;transition:width .3s;display:block}.numbers .progress-track>span{background:var(--green)}.play-area{flex:1;grid-template-columns:1.15fr 1fr;align-items:center;gap:65px;padding:35px 30px;display:grid}.target-panel{text-align:center;flex-direction:column;align-items:center;display:flex}.target-wrap{place-items:center;width:100%;height:330px;margin:10px 0 14px;display:grid;position:relative}.target{z-index:1;color:var(--blue-dark);letter-spacing:-10px;-webkit-user-select:none;user-select:none;font-size:255px;font-weight:800;line-height:1}.numbers .target{color:var(--green-dark)}.target-halo{background:var(--blue-bg);border-radius:45% 55% 58% 42%/56% 47% 53% 44%;width:280px;height:280px;position:absolute;transform:rotate(-12deg)}.numbers .target-halo{background:var(--green-bg)}.target-spark{color:#cca33f;font-size:56px;position:absolute;top:26px;right:7%}.listen-button{background:#fff8;border:1px solid #d9d3c5;border-radius:99px;justify-content:center;align-items:center;gap:11px;min-height:58px;padding:12px 23px;font-size:14px;font-weight:650;display:flex}.listen-button:disabled{opacity:.55}.answer-panel{width:100%;max-width:450px;margin:auto}.question-note{color:var(--muted);justify-content:center;align-items:center;gap:9px;min-height:42px;margin-bottom:20px;font-size:19px;font-weight:650;display:flex}.choices{grid-template-columns:1fr 1fr;gap:18px;display:grid}.choices.single{grid-template-columns:1fr}.answer-button{min-height:136px;color:var(--ink);background:#fffdf7;border:1px solid #dcd6c7;border-bottom-width:5px;border-radius:24px;font-size:62px;font-weight:750;transition:transform .12s,background .15s}.answer-button:hover:not(:disabled){background:var(--blue-bg);border-color:#bdd4e1}.numbers .answer-button:hover:not(:disabled){background:var(--green-bg);border-color:#bccfb5}.answer-button:active:not(:disabled){border-bottom-width:2px;transform:translateY(3px)}.answer-button:disabled{opacity:.6}.answer-hint{color:var(--muted);justify-content:center;align-items:center;gap:9px;margin:23px 0 0;font-size:12px;display:flex}.game-footer{border-top:1px solid var(--line);color:var(--muted);justify-content:space-between;gap:12px;padding-top:20px;font-size:12px;display:flex}.reward{color:#a77413;font-weight:700}.success .target{animation:.5s happy}.success .target-halo{background:#e8dc9c}.retry .target-halo{animation:.45s breathe}.result{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:20px;display:flex;position:relative}.result-home{position:absolute;top:28px;left:28px}.result-art{color:#caa03b;align-items:center;gap:30px;display:flex}.result-art .brand-mark{width:140px;height:140px;animation:.7s happy}.result-art>span{font-size:39px}.result h1{font-size:clamp(38px,5vw,60px)}.result-stars{color:#79551a;background:#f7e9bd;border-radius:22px;align-items:center;gap:12px;margin:7px 0 13px;padding:19px 30px;display:flex}.result-stars strong{font-size:33px}.result-stars span{font-size:14px}.result-actions{gap:14px;display:flex}.primary-button,.secondary-button,.danger-button{border:1px solid #0000;border-radius:15px;justify-content:center;align-items:center;gap:10px;min-height:53px;padding:15px 23px;font-size:15px;font-weight:700;display:inline-flex}.primary-button{background:var(--blue-dark);color:#fff}.secondary-button{background:0 0;border-color:#d9d3c5}.danger-button{color:#fff;background:#a84536}.modal-backdrop{z-index:10;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#282c2866;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.settings-modal{background:var(--cream);overscroll-behavior:contain;border-radius:28px;width:min(640px,100%);max-height:calc(100dvh - 48px);padding:27px 32px 30px;overflow:auto;box-shadow:0 20px 90px #14231b33}.modal-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.modal-header .eyebrow{letter-spacing:1.2px;font-size:9px}.modal-header .icon-button{width:42px;height:42px}.settings-modal h2{letter-spacing:-1px;margin:10px 0;font-size:28px}.settings-modal p{color:var(--muted);font-size:14px;line-height:1.6}.parent-lock{color:var(--blue-dark);background:var(--blue-bg);border-radius:22px;place-items:center;width:72px;height:72px;margin-top:10px;display:grid}.parent-form{flex-direction:column;gap:17px;margin-top:25px;display:flex}.parent-form label{font-size:30px;font-weight:750}.parent-form input{border:1px solid var(--line);background:#fffdf8;border-radius:14px;width:100%;height:62px;padding:10px 16px;font-size:25px}.settings-intro{margin-bottom:20px}.setting-row{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:14px;padding:16px 0;font-size:14px;display:flex}.setting-row label{align-items:center;gap:10px;display:flex}.setting-row input[type=checkbox]{width:25px;height:25px;accent-color:var(--blue-dark)}.setting-row select{border:1px solid var(--line);background:#fffdf8;border-radius:10px;max-width:140px;padding:10px}.pool-field{border:0;min-width:0;margin:25px 0 0;padding:0}.pool-field legend{margin-bottom:12px;font-size:16px;font-weight:750}.pool-field legend span{color:var(--muted);margin-left:8px;font-size:11px;font-weight:500}.pool-grid{grid-template-columns:repeat(auto-fill,minmax(45px,1fr));gap:7px;display:grid}.pool-button{border:1px solid var(--line);background:#fff9;border-radius:11px;height:45px;font-size:17px;font-weight:650}.pool-button.selected{color:var(--blue-dark);background:var(--blue-bg);border-color:#9fbdd1}.pool-button:disabled{border-style:dashed}.setting-help{margin-top:13px!important;font-size:11px!important}.progress-summary{background:#ede9dc;border-radius:18px;margin-top:28px;padding:20px}.progress-summary h3{font-size:15px;font-weight:700}.stats-grid{grid-template-columns:1fr 1fr 1fr;gap:10px;margin-top:19px;display:grid}.stats-grid strong{align-items:center;gap:5px;font-size:24px;display:flex}.stats-grid span{color:var(--muted);margin-top:6px;font-size:10px;display:block}.progress-summary details{margin-top:23px;font-size:12px}.progress-summary summary{cursor:pointer}.progress-summary table{text-align:left;border-collapse:collapse;width:100%;margin-top:16px}.progress-summary th,.progress-summary td{border-bottom:1px solid var(--line);padding:8px}.text-button{text-underline-offset:3px;background:0 0;border:0;padding:0;font-size:12px;text-decoration:underline}.reset-button{color:#9a4b3d;align-items:center;gap:8px;min-height:44px;margin-top:23px;display:flex}.save-warning{background:#f7e9bd;border-radius:12px;padding:14px;margin:16px 0!important}.save-warning button{min-height:32px;margin-top:10px;display:block}.settings-footer{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:15px;margin-top:18px;padding-top:20px;display:flex}.settings-footer>span{color:var(--muted);font-size:10px}.settings-footer button{padding:10px 14px;font-size:12px}.reset-confirm{background:#f6e1d5;border-radius:15px;margin-top:20px;padding:16px}.confirm-actions{flex-wrap:wrap;gap:10px;margin-top:12px;display:flex}.confirm-actions button{padding:10px 13px;font-size:12px}@keyframes happy{0%,to{transform:rotate(0)scale(1)}40%{transform:rotate(-8deg)scale(1.08)}70%{transform:rotate(5deg)scale(1.04)}}@keyframes breathe{50%{transform:rotate(-12deg)scale(1.04)}}@media (width>=1500px){.home-intro{margin-top:75px}.mode-card{min-height:320px}.card-glyph{font-size:125px}}@media (width<=760px){.page{padding-left:max(20px, env(safe-area-inset-left));padding-right:max(20px, env(safe-area-inset-right));padding-top:max(20px, env(safe-area-inset-top))}.wordmark{font-size:25px}.wordmark .brand-mark{width:31px;height:31px}.top-actions{gap:9px}.star-bank{padding:10px 15px;font-size:16px}.icon-button{width:47px;height:47px}.home-intro{margin:40px auto 29px}.home-intro h1{font-size:49px}.home-intro p{font-size:14px}.heading-spark{width:27px;top:22px;right:-42px}.mode-grid{gap:16px}.mode-card{border-radius:24px;min-height:250px;padding:20px}.card-glyph{letter-spacing:-5px;padding:21px 0;font-size:80px}.card-tag{letter-spacing:1.1px;font-size:8px}.card-top svg{width:20px}.card-bottom strong{font-size:21px}.card-bottom small{font-size:11px}.card-go{width:33px;height:33px}.card-decoration{font-size:26px;top:74px;right:18px}.home-footer{flex-direction:column;gap:18px;margin-top:25px}.play-area{gap:25px;padding:24px 0}.target-wrap{height:280px}.target{font-size:220px}.target-halo{width:230px;height:230px}.target-panel .eyebrow{letter-spacing:1.3px;font-size:9px}.answer-button{min-height:110px;font-size:52px}.choices{gap:12px}.answer-hint{font-size:10px}.question-note{font-size:16px}.game-mode{gap:10px;font-size:14px}}@media (width<=520px){.home-intro{margin-top:33px}.home-intro .eyebrow{letter-spacing:1.5px;font-size:9px}.home-intro h1{letter-spacing:-2px;margin:17px auto;font-size:45px}.mode-grid{grid-template-columns:1fr}.mode-card{min-height:185px;padding:18px 23px}.card-glyph{letter-spacing:-4px;padding:0;font-size:86px;position:absolute;top:36px;right:40px}.card-top>svg{display:none}.card-bottom{align-items:end;margin-top:62px}.card-go{display:none}.card-bottom strong{font-size:22px}.card-bottom small{font-size:11px}.card-decoration{font-size:22px;top:35px;right:16px}.home-footer{margin-top:22px;font-size:10px}.gentle-note{display:none}.play-area{grid-template-columns:1fr;gap:10px;padding:18px 0}.target-wrap{height:210px;margin:0}.target{letter-spacing:-4px;font-size:170px}.target-halo{width:180px;height:180px}.target-spark{font-size:39px;top:7px;right:19%}.listen-button{min-height:44px;padding:8px 19px;font-size:12px}.listen-button svg{width:19px}.question-note{min-height:30px;margin:3px 0 10px;font-size:16px}.answer-panel{max-width:360px}.answer-button{border-radius:18px;min-height:88px;font-size:45px}.answer-hint{margin-top:14px}.game-footer{margin-top:10px;padding-top:14px;font-size:10px}.game-mode{gap:7px;font-size:12px}.game-mode>span:last-child{font-size:12px}.progress-track{margin-top:18px}.settings-modal{padding:19px}.modal-backdrop{padding:12px}.settings-modal{border-radius:22px;max-height:calc(100dvh - 24px)}.settings-footer{flex-direction:column;align-items:start}.settings-modal h2{font-size:26px}.result-actions{flex-direction:column;width:100%;max-width:280px}.result-art .brand-mark{width:120px;height:120px}.result>p{font-size:14px}.result-stars{padding:15px 23px}.result h1{letter-spacing:-1.8px}}@media (height<=540px) and (width>=521px){.page{padding-top:14px;padding-bottom:14px}.home-intro{margin:18px auto}.home-intro h1{margin:10px auto;font-size:35px}.home-intro h1 br,.home-intro p{display:none}.mode-card{min-height:190px}.card-glyph{padding:6px 0;font-size:68px}.home-footer{flex-direction:row;margin-top:16px}.play-area{gap:35px;padding:10px 15px}.target-wrap{height:200px;margin:0}.target{font-size:165px}.target-halo{width:170px;height:170px}.answer-button{min-height:85px;font-size:42px}.question-note{margin-bottom:10px}.listen-button{min-height:42px;padding:8px 16px}.progress-track{margin-top:14px}.answer-hint{margin-top:12px}.game-footer{padding-top:10px}.result{gap:10px}.result-art .brand-mark{width:75px;height:75px}.result h1{font-size:36px}.result>p{font-size:12px}.result-stars{margin:0;padding:10px 24px}.result-stars strong{font-size:26px}.result-art{gap:20px}.result .primary-button,.result .secondary-button{min-height:44px;padding:10px 18px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
