@font-face{font-family:Rounded;src:local('SF Pro Rounded'),local('SF Pro Rounded Regular'),local('Arial Rounded MT Bold');font-weight:100 900;font-display:swap}
:root{font-family:Rounded,'Avenir Next',-apple-system,BlinkMacSystemFont,sans-serif;color:#173b63;background:#eaf5ff;font-synthesis:none;--sky:#eaf5ff;--ink:#173b63;--blue:#2479d8;--muted:#68819a;--sun:#ffd772}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;text-size-adjust:100%}body{margin:0;overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation}button,input{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent;color:inherit;border:0;background:none}button:disabled{cursor:wait;opacity:.55}button,input{outline:none}button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:5px}input{-webkit-user-select:text;user-select:text}button svg{pointer-events:none}svg{display:block}button,summary,input{touch-action:manipulation}button:active:not(:disabled){transform:translateY(1px)}.boot{height:100vh;height:100dvh;display:grid;place-items:center}
.brand{white-space:nowrap;display:flex;align-items:center;gap:10px;font-size:23px;letter-spacing:-1px;font-weight:800}.brand-symbol{width:42px;height:42px;flex:none;display:grid;place-items:center;background:#267ada;border-radius:15px}.brand-symbol svg{width:30px;height:30px}
.home{min-height:100vh;min-height:100dvh;padding:32px clamp(28px,5.5vw,88px) 25px;display:flex;flex-direction:column;max-width:1600px;margin:auto;padding-top:max(26px,calc(env(safe-area-inset-top) + 18px));padding-bottom:max(22px,calc(env(safe-area-inset-bottom) + 18px));padding-left:max(28px,5.5vw,calc(env(safe-area-inset-left) + 18px));padding-right:max(28px,5.5vw,calc(env(safe-area-inset-right) + 18px))}.welcome{display:grid;grid-template-columns:1fr 1.05fr;gap:24px;align-items:center;flex:1;min-height:470px;padding:24px 0}.welcome-copy{max-width:510px}.welcome h1{font-size:clamp(44px,4.8vw,72px);letter-spacing:-3px;line-height:1.05;font-weight:750;margin:20px 0 22px}.intro{font-family:'Avenir Next',-apple-system,sans-serif;font-size:17px;line-height:1.65;color:#59738c;margin:0 0 29px}.primary{background:var(--blue);color:white;font-size:17px;font-weight:700;padding:17px 27px;border-radius:18px;box-shadow:0 4px 0 #1968be;transition:background .15s,transform .15s;min-width:140px}.primary:hover{background:#176ac6}.primary:active:not(:disabled){transform:translateY(3px);box-shadow:0 1px 0 #1968be}.primary:disabled{box-shadow:none}.primary svg{width:17px;height:17px;display:inline-block;vertical-align:-3px;margin-left:25px}
.preview-scene{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;align-self:stretch;min-height:430px}.preview-disc{position:absolute;width:min(35vw,470px);height:min(35vw,470px);border-radius:50%;background:#f7fbff;top:50%;left:50%;transform:translate(-50%,-55%)}.preview-dog{position:relative;width:min(38vw,490px);height:min(38vw,490px);object-fit:contain;margin-top:-25px;z-index:1}.preview-label{position:relative;font-size:66px;font-weight:800;letter-spacing:2px;margin-top:-28px;line-height:1;z-index:1}.preview-seed{position:absolute;width:21px;height:29px;border-radius:60% 60% 45% 45%;background:var(--sun);right:14%;top:19%;transform:rotate(25deg)}.preview-seed.second{background:#b6d7ed;width:13px;height:18px;right:auto;left:14%;top:36%;transform:rotate(-27deg)}
.home-bottom{display:flex;align-items:flex-start;justify-content:space-between;gap:35px;padding-top:20px}.home-controls{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:20px;flex-wrap:wrap;flex:none}.text-button{font-size:12px;font-weight:600;color:#6d88a1;padding:8px 0}.text-button:hover{color:var(--blue)}.lock-status{font:11px/1.5 'Avenir Next',-apple-system,sans-serif;color:#8197a9}.word-history{flex:1;max-width:480px;min-width:220px}.word-history summary{list-style:none;cursor:pointer;font-size:13px;font-weight:600;color:#6b849b;display:inline-flex;align-items:center;gap:12px;padding:8px 0}.word-history summary::-webkit-details-marker{display:none}.word-history summary::after{content:'+';font-size:17px;font-weight:400}.word-history[open] summary::after{content:'−'}.word-history p{font:11px/1.6 'Avenir Next',-apple-system,sans-serif;color:#7b91a4;margin:8px 0 14px}.word-history ul{list-style:none;padding:0;margin:0;max-height:320px;overflow:auto;border-top:1px solid #cddfea}.word-history li{display:flex;justify-content:space-between;gap:25px;border-bottom:1px solid #d5e5f0;padding:11px 2px;font:13px/1.5 'Avenir Next',-apple-system,sans-serif}.word-history li strong{font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;color:#6c879c}.error-inline{font-family:-apple-system,sans-serif;font-size:13px;line-height:1.5;color:#a6493d;margin:14px 0 0;max-width:470px}.error-inline:empty{display:none}
.scene{position:relative;height:100vh;height:100dvh;min-height:440px;overflow:hidden;background:var(--sky);display:flex;flex-direction:column;align-items:center;justify-content:center;touch-action:none;cursor:default;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.scene:focus{outline:0}.scene-art{contain:layout style paint;position:relative;width:min(55vh,57vw);height:min(55vh,57vw);flex-shrink:0;display:grid;place-items:center;margin-top:-12px}.scene-art::before{content:'';position:absolute;inset:2%;border-radius:50%;background:#ffffff5e;z-index:0}.scene-art img{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;border-radius:27%;-webkit-user-drag:none;pointer-events:none}.scene-art .fallback-emoji{font-family:'Apple Color Emoji',sans-serif;font-size:min(32vh,31vw);position:relative;z-index:1}.word-area{position:relative;display:grid;place-items:center;max-width:94vw;margin-top:1vh}.word-label{font-size:clamp(72px,13.5vh,158px);line-height:1.16;font-weight:800;letter-spacing:.015em;margin:0;text-align:center;white-space:nowrap;transition:color .2s}.word-label.long{font-size:clamp(55px,10vh,118px)}.word-label span{display:inline-block;transition:color .15s,transform .15s}.word-label span.lit{color:var(--blue);transform:translateY(-4px)}.pebbles{height:7px;display:flex;gap:7px;align-items:center;justify-content:center;position:absolute;bottom:max(6vh,calc(env(safe-area-inset-bottom) + 24px));left:0;right:0}.pebble{width:6px;height:6px;border-radius:50%;background:#bcd4e7;transition:background .2s,width .2s}.pebble.current{width:20px;border-radius:5px;background:#7daed5}.parent-lock{position:absolute;right:max(25px,calc(env(safe-area-inset-right) + 12px));top:max(24px,calc(env(safe-area-inset-top) + 12px));width:44px;height:44px;display:grid;place-items:center;border-radius:50%;color:#7395b3;z-index:10;touch-action:none}.parent-lock:hover{background:#ffffff5e}.parent-lock svg{width:18px;height:18px}.parent-lock.holding{background:#fff;box-shadow:0 0 0 3px #9dc4e5}.scene.new-word .scene-art{animation:appear .32s ease-out both}.scene .loading-spark{position:absolute;bottom:5%;right:9%;width:12px;height:12px;border-radius:50%;background:var(--sun)}.preview-badge{position:fixed;bottom:10px;right:14px;background:#173b63;color:white;border-radius:7px;font:10px -apple-system,sans-serif;padding:5px 8px;z-index:80}
.modal-backdrop{position:fixed;inset:0;background:#eaf5fff2;z-index:50;display:grid;place-items:center;padding:max(24px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));overflow-y:auto}.modal{position:relative;background:#fff;border-radius:28px;padding:34px 36px 30px;width:min(100%,420px);box-shadow:0 22px 100px #173b631c;max-height:calc(100dvh - 48px);overflow-y:auto}.modal h2{font-size:26px;letter-spacing:-.8px;margin:0 0 10px}.modal p{font-family:-apple-system,sans-serif;color:var(--muted);font-size:14px;line-height:1.65;margin:0 0 20px}.modal .modal-icon{width:42px;height:42px;background:var(--sky);border-radius:14px;display:grid;place-items:center;color:var(--blue);margin-bottom:20px}.modal-icon svg{width:20px;height:20px}.modal label{display:block;font-size:12px;font-weight:600;margin:16px 0 8px}.modal .parent-question{font-size:30px;letter-spacing:1px;line-height:1.3;text-align:center;margin:23px 0 16px}.answer-input{width:100%;max-width:140px;display:block;margin:auto;border:1.5px solid #d4e1ec;border-radius:13px;background:#f8fbfe;color:var(--ink);padding:13px 14px;font-size:28px;letter-spacing:2px;text-align:center;min-height:55px}.answer-input::placeholder{color:#c2d3e1}.modal .primary{width:100%;margin-top:23px}.modal .quiet{display:block;width:100%;padding:18px 0 0;font-size:13px;color:var(--muted);font-weight:600}.modal .error-inline{margin-bottom:0}.modal .adult-actions{display:grid;gap:11px;margin-top:20px}.secondary{font-size:13px;font-weight:650;padding:14px 15px;border-radius:12px;background:#fff;border:1px solid #cbddea}.modal .adult-actions .primary{margin:0}.modal .danger{color:#a75649}.fatal{max-width:450px;margin:20vh auto;padding:30px;font-family:-apple-system,sans-serif;line-height:1.6}.fatal h1{font-size:28px}
.history-reset{margin-top:6px}.history-notice{font:13px/1.6 'Avenir Next',-apple-system,sans-serif;color:#6b849b;margin:8px 0}.reset-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:26px}.modal .reset-actions .primary{margin:0;min-width:0}
.parent-lock .hold-ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);pointer-events:none}.hold-ring circle{fill:none;stroke-width:2.5}.hold-track{stroke:#bfd8eb;opacity:.55}.hold-progress{stroke:var(--blue);stroke-linecap:round}.parent-lock.holding{box-shadow:none;background:#ffffffb3}.modal .parent-question{margin:0}.modal .parent-equation{display:flex;align-items:center;justify-content:center;gap:12px;font-size:29px;letter-spacing:.2px;white-space:nowrap;margin:0 0 26px;line-height:1.3}.answer-slots{display:flex;gap:6px}.answer-slot{display:grid;place-items:center;width:36px;height:45px;border-radius:9px;background:var(--sky);border-bottom:2px solid #a6c9e5;font-size:28px}.number-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;touch-action:none}.number-key{min-height:58px;border-radius:14px;background:#edf5fc;color:var(--ink);font-size:25px;font-weight:600;touch-action:none}.number-key:last-child{grid-column:2}.number-key:hover{background:#deedfa}.number-key:active{background:#cde3f7}.number-key:disabled{cursor:default;opacity:.4}
@keyframes appear{from{opacity:0;transform:translateY(7px) scale(.97)}to{opacity:1;transform:none}}
@media(max-width:1000px){.welcome{min-height:415px;gap:12px}.welcome h1{font-size:49px;letter-spacing:-2.2px}.intro{font-size:15px}.preview-dog{width:42vw;height:42vw}.preview-disc{width:35vw;height:35vw}.preview-label{font-size:58px}}
@media(max-height:760px) and (min-width:701px){.welcome{min-height:380px;padding-top:5px}.preview-scene{min-height:370px}.preview-dog{max-height:390px;max-width:390px}.preview-disc{max-height:340px;max-width:340px}.welcome h1{font-size:52px}.intro{font-size:15px}.scene-art{width:53vh;height:53vh}.word-label{font-size:15vh}.pebbles{bottom:5vh}}
@media(max-width:700px){.home{padding-left:max(22px,env(safe-area-inset-left));padding-right:max(22px,env(safe-area-inset-right))}.brand{font-size:20px}.brand-symbol{width:36px;height:36px;border-radius:12px}.welcome{display:flex;flex-direction:column-reverse;gap:0;padding:10px 0 28px}.preview-scene{min-height:240px;align-self:center}.preview-dog{width:280px;height:280px;margin-top:-25px}.preview-disc{width:230px;height:230px}.preview-label{font-size:45px;margin-top:-38px}.welcome-copy{text-align:center}.welcome h1{font-size:43px;margin:23px 0 16px}.intro{margin:0 auto 24px;font-size:14px}.home-bottom{flex-direction:column;gap:16px}.home-controls{width:100%;gap:20px}.word-history{width:100%;max-width:none}.scene-art{width:min(72vw,48vh);height:min(72vw,48vh)}.word-label{font-size:min(22vw,15vh)}.word-label.long{font-size:min(13vw,10vh)}.modal{padding:30px 25px 24px}.scene{min-height:300px}}
@media(pointer:coarse){button,.text-button,.secondary{min-height:44px}.word-history summary{min-height:44px}.parent-lock{width:52px;height:52px}.parent-lock svg{width:21px;height:21px}.scene-art{width:min(55dvh,74vw,660px);height:min(55dvh,74vw,660px)}.word-label{font-size:clamp(70px,13dvh,158px)}.word-label.long{font-size:clamp(48px,min(11vw,10dvh),118px)}}
@media(pointer:coarse) and (orientation:portrait){.welcome h1{font-size:clamp(40px,5.7vw,64px)}.scene-art{margin-top:-5dvh}}
@media(pointer:coarse) and (max-height:600px){.scene{min-height:0}.scene-art{width:49dvh;height:49dvh}.word-label{font-size:19dvh}.word-label.long{font-size:14dvh}.pebbles{bottom:4dvh}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
