@font-face{font-family:Fredoka;src:url('assets/fonts/Fredoka-Regular.ttf') format('truetype');font-weight:400;font-display:swap}@font-face{font-family:Fredoka;src:url('assets/fonts/Fredoka-Medium.ttf') format('truetype');font-weight:500;font-display:swap}@font-face{font-family:Nunito;src:url('assets/fonts/Nunito-Regular.ttf') format('truetype');font-weight:400;font-display:swap}@font-face{font-family:Nunito;src:url('assets/fonts/Nunito-Medium.ttf') format('truetype');font-weight:500;font-display:swap}
*{box-sizing:border-box}body{margin:0;min-height:100svh;background:#f4f0e5 url('assets/shared/BENGAL_CIRCULAR_GARDEN_BACKGROUND_V2.png') center/cover fixed;color:#33453e;font:400 16px/1.5 Nunito,'PingFang SC',system-ui,sans-serif;font-synthesis:none}body:before{content:'';position:fixed;z-index:-1;inset:0;background:#f8f5e8d9}.app{width:min(100%,560px);min-height:100svh;margin:auto;padding:max(12px,env(safe-area-inset-top)) 18px max(14px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:13px}.brandbar,.practice-top,.question-nav{display:flex;align-items:center;justify-content:space-between;gap:8px}.brandbar{height:44px;flex:none}.brand{display:flex;align-items:center;gap:8px;color:#344b40;text-decoration:none;font-weight:800}.brand-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#e9b671;color:white;font-size:22px}.poc-tag,.eyebrow{color:#9aa296;font-size:10px;letter-spacing:.1em;font-weight:800}.screen{display:none;flex:1;min-height:0}.screen.active{display:flex;flex-direction:column}.welcome{display:flex;align-items:center;justify-content:center;gap:12px;padding:clamp(16px,5vh,42px) 5px 22px}.welcome img{width:88px;height:88px;object-fit:contain}.welcome .eyebrow{margin:0;color:#b87948}.welcome h1,.result-heading h1{margin:0;color:#496957;font:500 clamp(27px,7vw,36px)/1.2 Fredoka,sans-serif}.welcome p:last-child,.result-heading>p:last-child{margin:7px 0 0;color:#77867e;font-size:14px}.setup-card{width:min(100%,480px);margin:0 auto;padding:clamp(20px,5vw,30px);border:1px solid #e4e3d7;border-radius:25px;background:#fffdf6ed;box-shadow:0 12px 32px #4f58361f}.setup-card fieldset{margin:0 0 18px;padding:0;border:0}.setup-card legend,.field-label{display:block;margin-bottom:9px;color:#52665b;font-weight:800;font-size:14px}.segmented{display:grid;grid-template-columns:1fr 1fr;gap:8px}.segmented label{position:relative}.segmented input{position:absolute;opacity:0}.segmented span{display:grid;place-items:center;min-height:46px;border:1.5px solid #e5e9e4;border-radius:13px;color:#687984;font-size:14px;font-weight:750;background:#fbfcf9}.segmented input:checked+span{border-color:#98b694;background:#eff6eb;color:#496957}.setup-card select{width:100%;height:50px;margin:0 0 18px;padding:0 13px;border:1.5px solid #e5e9e4;border-radius:13px;background:#fbfcf9;color:#40564b;font:700 15px Nunito}.primary,.secondary{min-height:50px;border:0;border-radius:15px;font:800 16px Nunito;cursor:pointer;touch-action:manipulation}.primary{background:#718d72;color:white;box-shadow:0 4px 0 #58735a;padding:0 17px}.primary span{float:right;font-size:22px}.primary:active,.secondary:active{transform:translateY(1px)}.setup-card>.primary{width:100%}.secondary{background:#eef1eb;color:#596b62;padding:0 14px}.home-note{text-align:center;margin:13px 0;color:#929c91;font-size:12px}.text-button{min-height:42px;padding:7px;border:0;background:none;color:#728278;font:800 13px Nunito;cursor:pointer;touch-action:manipulation}.records-button{display:block;margin:0 auto}.practice-top{min-height:46px}.practice-top .text-button:last-child{color:#668369}.timer-label{padding:7px 14px;border-radius:13px;background:#edf3e8;color:#6a8266;font-weight:800}.progress{display:grid;grid-template-columns:1fr auto;gap:3px 8px;margin:0 0 4px;color:#778891;font-size:12px;font-weight:750}.progress-track{grid-column:1/-1;height:5px;border-radius:8px;background:#e7ebe5;overflow:hidden}.progress-track i{display:block;width:0;height:100%;border-radius:inherit;background:#92ad83;transition:width .2s}.question-card{flex:1;min-height:clamp(190px,28vh,280px);max-height:38vh;padding:24px 15px 18px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #e4e3d7;border-radius:25px;background:#fffdf6ed;box-shadow:0 12px 32px #4f58361f;position:relative}.question-kind{position:absolute;top:13px;left:14px;padding:5px 9px;border-radius:9px;background:#eff3ea;color:#718576;font-size:11px;font-weight:800}.equation{width:100%;color:#294b3a;font:500 clamp(37px,10vw,58px)/1.2 Nunito,'PingFang SC',sans-serif;font-variant-numeric:lining-nums tabular-nums;text-align:center;overflow-wrap:anywhere}.equation .blank{display:inline-block;min-width:1.1em;padding:0 .05em;border-bottom:3px solid #6b987f;color:#286c68}.feedback{min-height:26px;margin-top:14px;color:#8c9990;text-align:center;font-size:14px;font-weight:700}.feedback.correct{color:#4d8056}.feedback.retry{color:#a7754d}.hint-panel{display:flex;align-items:center;gap:10px;min-height:68px;padding:10px 14px;border:1px solid #e6e6d8;border-radius:16px;background:#fffdf6ed;color:#536b59}.hint-panel[hidden]{display:none}.hint-panel img{width:49px;height:49px;object-fit:contain}.hint-panel strong{font-size:13px;color:#738b6f}.hint-panel p{margin:2px 0 0;font-size:14px}.keyboard-panel{padding:0 2px}.calculator-keys{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.calculator-keys button{min-height:clamp(43px,6.2vh,54px);border:1px solid #e4e9e3;border-radius:13px;background:#fffdf8;color:#40544a;font:500 21px Nunito;box-shadow:0 2px 0 #e5e9e3;cursor:pointer;touch-action:manipulation}.calculator-keys button:active{background:#eff6eb;border-color:#a9c39f}.calculator-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.primary.small,.calculator-actions button{min-height:46px}.question-nav{margin-top:1px}.question-nav button{flex:1;min-height:44px;border:1px solid #e4e9e3;border-radius:13px;background:#fffdf8;color:#50635a;font:800 13px Nunito;touch-action:manipulation}.question-nav button:disabled{opacity:.4}.finish-button{align-self:center;margin-top:-4px;padding:5px 10px;border:0;background:none;color:#879488;font:700 12px Nunito}.result-heading{text-align:center;padding:10px 10px 15px}.result-heading img{width:82px;height:82px;object-fit:contain}.result-heading .eyebrow{margin:0;color:#b87948}.result-card{padding:20px;border:1px solid #e4e3d7;border-radius:22px;background:#fffdf6ed;text-align:center;box-shadow:0 10px 25px #4f583614}.result-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.result-grid div{display:grid;gap:3px}.result-grid strong{color:#496957;font:500 28px Fredoka}.result-grid span{color:#839087;font-size:11px}.accuracy-row{display:grid;grid-template-columns:1fr auto 1fr auto;align-items:center;gap:8px;margin-top:18px;padding-top:14px;border-top:1px solid #e8e9df;color:#748278;font-size:12px}.accuracy-row b{color:#658565;font-size:17px}.subtype-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}.subtype-stats div{padding:11px;border-radius:14px;background:#f5f3e9;color:#68796e;font-size:12px}.result-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:auto;padding:10px 0}.danger{display:block;margin:14px auto;background:#fff0ec;color:#a85d50}.record-row{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #eaebe3;color:#65756b;font-size:14px}.toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);padding:11px 16px;border-radius:14px;background:#30463b;color:#fff;font-size:13px;z-index:5}.hidden{display:none!important}@media(max-height:720px){.app{gap:8px}.welcome{padding:8px 4px}.welcome img{width:66px;height:66px}.question-card{min-height:150px;max-height:31vh}.calculator-keys{gap:5px}.calculator-keys button{min-height:40px}.feedback{margin-top:7px}.hint-panel{min-height:54px}.hint-panel img{width:38px;height:38px}}@media(min-width:600px){.app{padding-left:24px;padding-right:24px}.question-card{min-height:250px}.calculator-keys{grid-template-columns:repeat(5,1fr)}.calculator-actions{max-width:440px;margin:8px auto 0}}@media(orientation:landscape) and (max-height:520px){.app{max-width:900px}.screen#practice.active{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:auto auto 1fr auto auto;gap:7px 14px}.practice-top,.progress,.question-nav,.finish-button{grid-column:1/-1}.question-card{grid-column:1;grid-row:3;min-height:0;max-height:none}.keyboard-panel{grid-column:2;grid-row:3}.calculator-keys{grid-template-columns:repeat(3,1fr)}.question-nav{grid-row:4}.finish-button{grid-row:5}}
