:root{--bg: #fff8ec;--fg: #1b1f3a;--muted: #6b6f88;--accent: #ff7a59;--accent-weak: #ffd6c9;--ok: #1f8a4c;--bad: #c83d3d;--surface: #ffffff;--border: #ecd9be;--radius: 14px;--shadow: 0 2px 8px rgba(27, 31, 58, .06);font-family:Nunito,system-ui,sans-serif}html[data-subject=math]{--accent: #ff7a59;--accent-weak: #ffd6c9}*{box-sizing:border-box}html,body{margin:0;padding:0}body{background:var(--bg);color:var(--fg);min-height:100vh;line-height:1.5;font-size:17px}h1,h2,h3{font-family:Fredoka One,Nunito,system-ui,sans-serif;font-weight:400;margin:0 0 .4em}button{font:inherit;cursor:pointer;border:1px solid var(--border);background:var(--surface);border-radius:var(--radius);padding:.55em 1em;box-shadow:var(--shadow);transition:transform .05s ease,background .15s ease}button:hover{background:var(--accent-weak)}button:active{transform:translateY(1px)}input,select{font:inherit;border:1px solid var(--border);background:var(--surface);border-radius:10px;padding:.4em .7em}.container{max-width:880px;margin:0 auto;padding:1.5rem 1rem 4rem}.hero{background:linear-gradient(135deg,var(--accent-weak),#fff);border-radius:var(--radius);padding:1.5rem;margin-bottom:1.5rem;box-shadow:var(--shadow)}.hero-inner{display:grid;grid-template-columns:auto 1fr auto;gap:1rem;align-items:center}.hero-emoji{font-size:3rem;line-height:1}.hero h1{color:var(--accent);font-size:1.9rem}.hero-subtitle{margin:0 0 .5rem;color:var(--muted)}.hero-tags{display:flex;flex-wrap:wrap;gap:.4rem}.hero-tag{background:#fff;padding:.2em .7em;border-radius:999px;font-size:.85em;border:1px solid var(--border)}.reset-btn{justify-self:end}@media(max-width:560px){.hero-inner{grid-template-columns:1fr;text-align:center}.reset-btn{justify-self:center}}.tabs{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:1rem}.tab{background:var(--surface);border:1px solid var(--border);padding:.5em 1em;border-radius:999px;font-weight:600}.tab[aria-selected=true]{background:var(--accent);color:#fff;border-color:var(--accent)}.tab .tab-score{opacity:.75;font-weight:400;margin-left:.4em}.section-title{margin:1rem 0 .4rem;display:flex;align-items:center;gap:.5rem}.section-tag{color:var(--muted);font-size:.9em;margin-bottom:1rem}.q-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.1rem 1.2rem;margin-bottom:1rem;box-shadow:var(--shadow)}.q-prompt{margin:0 0 .9rem;font-weight:600}.q-prompt strong{color:var(--accent)}.q-feedback{margin-top:.8rem;padding:.7rem .9rem;border-radius:10px;font-size:.95em}.q-feedback.ok{background:#e6f5ec;color:var(--ok)}.q-feedback.bad{background:#fbe7e7;color:var(--bad)}.q-feedback.info{background:#f1eee6;color:var(--fg)}.q-card[data-state=correct]{border-color:var(--ok)}.q-card[data-state=wrong]{border-color:var(--bad)}.error-card{background:var(--surface);padding:2rem;border-radius:var(--radius);box-shadow:var(--shadow);text-align:center;margin-top:3rem}.mc-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.5rem}.mc-option{text-align:left}.mc-option.selected{background:var(--accent);color:#fff;border-color:var(--accent)}.mc-option.correct{outline:2px solid var(--ok);outline-offset:2px}.mc-option:disabled{opacity:.85;cursor:default}.fill,.calc,.calc-row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.calc-hint{font-family:Fredoka One,serif;color:var(--muted);margin-bottom:.4rem;width:100%}.fill-input,.calc-input{min-width:8rem}.calc-unit{color:var(--muted)}.check-btn{background:var(--accent);color:#fff;border-color:var(--accent)}.check-btn:hover{background:#e8613f}.check-btn:disabled{opacity:.6;cursor:default}.select-group{display:grid;gap:.5rem;margin-bottom:.5rem}.select-row{display:flex;gap:.8rem;align-items:center}.select-label{min-width:5rem;font-weight:600}.open{display:flex;flex-direction:column;gap:.6rem}.open-input{font:inherit;padding:.5rem .7rem;border-radius:10px;border:1px solid var(--border);resize:vertical}.open .check-btn{align-self:flex-start}.match-cols{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;margin-bottom:.6rem}.match-col{display:flex;flex-direction:column;gap:.4rem}.match-colhead{font-weight:700;color:var(--muted);font-size:.9em}.match-slot{display:grid;grid-template-columns:1fr auto;align-items:center;gap:.6rem;border:1px dashed var(--border);border-radius:10px;padding:.5em .7em;background:#fff;min-height:2.5rem}.match-left{font-weight:600}.match-placed{color:var(--accent);font-weight:600;min-width:3rem;text-align:right}.match-token{border:1px solid var(--border);border-radius:10px;padding:.5em .7em;background:var(--surface);cursor:grab;text-align:center}.match-token.selected{background:var(--accent);color:#fff;border-color:var(--accent)}.match-token[data-used=true]{opacity:.4}.multi-options{display:grid;gap:.4rem;margin-bottom:.5rem}.multi-row{display:flex;gap:.6rem;align-items:flex-start;padding:.3rem .5rem;border-radius:8px}.multi-row.correct-pick{background:#e6f5ec}.multi-row input{margin-top:.25em}.order{display:flex;flex-direction:column;gap:.5rem}.order-hint{color:var(--muted);font-size:.95em}.order-list{list-style:decimal inside;padding:0;margin:0;display:flex;flex-direction:column;gap:.35rem}.order-item{display:flex;align-items:center;gap:.5rem;background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:.4em .7em}.order-item span:first-child{flex:1}.order-btn{padding:.25em .6em;font-weight:700}.grid-wrap{display:flex;flex-direction:column;gap:.6rem;align-items:flex-start}.grid{display:grid;gap:4px;width:100%;max-width:420px}.grid-cell{aspect-ratio:1;min-height:2rem;padding:0;border-radius:8px;background:#fff;border:1px solid var(--border);font-weight:600}.grid-cell.selected{background:var(--accent);color:#fff;border-color:var(--accent)}.steps{display:flex;flex-direction:column;gap:.9rem}.step{border-left:3px solid var(--accent-weak);padding:.3rem 0 .3rem .8rem}.step-head{font-weight:600;margin-bottom:.4rem}.step-num{color:var(--accent);margin-right:.3em}.steps-all{color:var(--muted);font-style:italic;font-size:.95em}.note{background:linear-gradient(180deg,#fffdf4,#fff);border:1px solid var(--border);border-left:4px solid var(--accent);border-radius:10px;padding:.8rem 1rem;color:var(--fg);line-height:1.55}.note p{margin:0 0 .6em}.note p:last-child{margin-bottom:0}.note ul,.note ol{margin:.2em 0 .6em 1.1em;padding:0}.note li{margin-bottom:.25em}.note code{background:var(--accent-weak);padding:.05em .35em;border-radius:6px;font-family:Nunito,monospace;font-weight:700;color:var(--fg)}.note .note-example{background:#fff;border:1px dashed var(--border);border-radius:8px;padding:.5rem .7rem;margin:.5rem 0}.note .note-tip{background:var(--accent-weak);border-radius:8px;padding:.4rem .7rem;font-size:.95em;margin-top:.4rem}.geo{display:flex;flex-direction:column;gap:.8rem}.geo-svg{display:flex;justify-content:center;padding:.6rem;background:#fff;border-radius:10px;border:1px solid var(--border)}.geo-svg svg{max-width:100%;height:auto}.exam-list{display:grid;gap:.8rem}.exam-card{display:grid;grid-template-columns:auto 1fr auto;gap:1rem;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem 1.2rem;text-decoration:none;color:inherit;box-shadow:var(--shadow);transition:transform .08s ease,background .15s ease}.exam-card:hover{background:var(--accent-weak);transform:translateY(-1px)}.exam-emoji{font-size:2rem}.exam-name{font-weight:700;font-size:1.1rem}.exam-tag{color:var(--muted);font-size:.9em}.exam-go{font-size:1.5rem;color:var(--accent);font-weight:700}
