/* SATs Quest — friendly, chunky, high-contrast */
:root {
  --bg: #f1f5ff; --card: #ffffff; --ink: #26264a; --ink2: #5b5d85; --line: #dfe5fa;
  --primary: #4f6bff; --primary-d: #3a52d6; --accent: #ff7a59; --accent-d: #e0603f;
  --good: #1fa86a; --good-bg: #e3f8ee; --bad: #e0483f; --bad-bg: #ffecea; --warn: #f5a623; --warn-bg: #fff5e0;
  --r: 22px; --shadow: 0 6px 0 rgba(38,38,74,.08), 0 14px 30px rgba(38,38,74,.08);
  --font: "Nunito", "Baloo 2", ui-rounded, "SF Pro Rounded", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 18px; line-height: 1.45; min-height: 100vh; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5rem; font-weight: 900; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); } h2 { font-size: clamp(1.35rem, 3.6vw, 1.8rem); } h3 { font-size: 1.15rem; }
p { margin: 0 0 .7rem; }
a { color: var(--primary-d); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 4px solid #ffb703; outline-offset: 2px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--ink2); } .small { font-size: .85rem; } .center { text-align: center; } .hide { display: none !important; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; } .row.between { justify-content: space-between; } .grow { flex: 1; }
.stack > * + * { margin-top: 1rem; }

/* ---------- layout ---------- */
.shell { max-width: 1000px; margin: 0 auto; padding: 0 16px 110px; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(241,245,255,.92); backdrop-filter: blur(8px); padding: 10px 0; margin-bottom: 14px; border-bottom: 2px solid transparent; }
.topbar .inner { max-width: 1000px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 10px; }
.brand { font-weight: 900; font-size: 1.3rem; display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand .logo { width: 38px; height: 38px; border-radius: 12px; background: var(--primary); display: grid; place-items: center; color: #fff; font-size: 1.2rem; box-shadow: 0 3px 0 var(--primary-d); }
.chips { display: flex; gap: 8px; margin-left: auto; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.chip { background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: .95rem; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.chip.btn-like { cursor: pointer; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: #fff; border-top: 2px solid var(--line); display: flex; justify-content: center; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 4px; }
.nav a { flex: 1; max-width: 140px; text-align: center; text-decoration: none; color: var(--ink2); font-weight: 800; font-size: .78rem; padding: 6px 4px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.nav a .ic { font-size: 1.5rem; line-height: 1; }
.nav a.on { background: #e6ebff; color: var(--primary-d); }
@media (min-width: 760px) { .nav { position: static; border: 0; background: transparent; padding: 0; margin-bottom: 14px; justify-content: flex-start; } .nav a { flex: none; flex-direction: row; font-size: 1rem; padding: 8px 16px; background: #fff; border: 2px solid var(--line); border-radius: 999px; max-width: none; } .nav a.on { border-color: var(--primary); } .shell { padding-bottom: 40px; } }

.card { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); border: 2px solid var(--line); }
.card.flat { box-shadow: none; }
.grid { display: grid; gap: 14px; } .g2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } .g3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } .g4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* ---------- buttons ---------- */
.btn { --c: var(--primary); --cd: var(--primary-d); border: 0; background: var(--c); color: #fff; font-weight: 900; padding: 12px 22px; border-radius: 16px; box-shadow: 0 5px 0 var(--cd); cursor: pointer; font-size: 1.05rem; transition: transform .08s, box-shadow .08s, filter .15s; display: inline-flex; gap: 8px; align-items: center; justify-content: center; text-decoration: none; user-select: none; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--cd); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 0 5px 0 var(--cd); }
.btn.accent { --c: var(--accent); --cd: var(--accent-d); } .btn.good { --c: var(--good); --cd: #158455; } .btn.bad { --c: var(--bad); --cd: #b3342d; }
.btn.ghost { --c: #fff; --cd: #cdd5f3; color: var(--ink); border: 2px solid var(--line); }
.btn.small { padding: 7px 14px; font-size: .9rem; border-radius: 12px; box-shadow: 0 3px 0 var(--cd); }
.btn.big { padding: 16px 26px; font-size: 1.25rem; border-radius: 20px; }
.btn.block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 4px 6px; color: var(--primary-d); font-weight: 800; cursor: pointer; text-decoration: underline; }

/* ---------- forms ---------- */
label { font-weight: 800; display: block; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.input { width: 100%; border: 3px solid var(--line); border-radius: 14px; padding: 10px 14px; background: #fff; font-weight: 700; }
.input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(79,107,255,.2); }
.help { font-size: .85rem; color: var(--ink2); margin-top: 3px; }
.err { background: var(--bad-bg); color: #8f1f19; border-radius: 12px; padding: 8px 12px; font-weight: 700; margin: 8px 0; }
.okmsg { background: var(--good-bg); color: #0d6a40; border-radius: 12px; padding: 8px 12px; font-weight: 700; margin: 8px 0; }

/* ---------- progress ---------- */
.bar { height: 14px; background: #e6ebff; border-radius: 99px; overflow: hidden; } .bar > i { display: block; height: 100%; background: linear-gradient(90deg, #5fd3a6, #4f6bff); border-radius: 99px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.bar.thin { height: 8px; }
.stars { letter-spacing: 2px; font-size: 1.1rem; } .stars .off { filter: grayscale(1); opacity: .3; }

/* ---------- stage / mascot ---------- */
.stage { border-radius: 28px; padding: 14px; display: flex; align-items: flex-end; gap: 12px; min-height: 210px; position: relative; overflow: hidden; border: 3px solid rgba(255,255,255,.7); box-shadow: var(--shadow); }
.bg-sky { background: radial-gradient(circle at 18% 30%, #fff 0 22px, transparent 23px), radial-gradient(circle at 24% 32%, #fff 0 28px, transparent 29px), radial-gradient(circle at 80% 22%, #fff 0 20px, transparent 21px), linear-gradient(#8ed0ff 0 68%, #8fdc7a 68%); }
.bg-sunset { background: radial-gradient(circle at 78% 62%, #fff3b0 0 34px, transparent 36px), linear-gradient(#ff8fa3, #ffc38a 68%, #a8795a 68%); }
.bg-forest { background: linear-gradient(#bff0c8, #78c985 70%, #4a8f4f 70%); }
.bg-space { background: radial-gradient(circle at 15% 25%, #fff 0 2px, transparent 3px), radial-gradient(circle at 60% 15%, #fff 0 2px, transparent 3px), radial-gradient(circle at 85% 45%, #fff 0 3px, transparent 4px), radial-gradient(circle at 35% 70%, #fff 0 2px, transparent 3px), radial-gradient(circle at 92% 12%, #ffd166 0 6px, transparent 7px), linear-gradient(#1b1b52, #3a2a7a); }
.bg-candy { background: repeating-linear-gradient(135deg, #ffd6ea 0 18px, #fff0f7 18px 36px); }
.bg-ocean { background: radial-gradient(circle at 20% 80%, rgba(255,255,255,.5) 0 8px, transparent 9px), radial-gradient(circle at 70% 60%, rgba(255,255,255,.5) 0 6px, transparent 7px), linear-gradient(#9be3ff, #2f9bd8); }
.mascot { width: 150px; height: 150px; flex: none; filter: drop-shadow(0 8px 6px rgba(0,0,0,.15)); }
.mascot.sm { width: 84px; height: 84px; } .mascot.xs { width: 54px; height: 54px; } .mascot.lg { width: 200px; height: 200px; }
.mascot svg { width: 100%; height: 100%; overflow: visible; }
.bob { animation: bob 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
.cheer { animation: jump .7s ease-in-out 2; } .oops { animation: shake .5s; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
@keyframes jump { 0%,100% { transform: translateY(0) scale(1) } 40% { transform: translateY(-26px) scale(1.04,.97) } 60% { transform: translateY(-26px) } }
@keyframes shake { 0%,100% { transform: translateX(0) } 20% { transform: translateX(-8px) } 40% { transform: translateX(8px) } 60% { transform: translateX(-6px) } 80% { transform: translateX(6px) } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0 } 70% { transform: scale(1.08) } 100% { transform: scale(1); opacity: 1 } }
@keyframes rise { from { transform: translateY(14px); opacity: 0 } to { transform: none; opacity: 1 } }
.bubble { background: #fff; border-radius: 22px; padding: 12px 16px; font-weight: 800; position: relative; box-shadow: 0 4px 0 rgba(0,0,0,.08); max-width: 420px; align-self: center; animation: pop .35s both; }
.bubble::before { content: ""; position: absolute; left: -10px; bottom: 22px; border: 10px solid transparent; border-right-color: #fff; border-left: 0; }
.hat-fall { animation: pop .4s both; }

/* ---------- home ---------- */
.hero { display: grid; gap: 14px; grid-template-columns: 1fr; } @media (min-width: 800px) { .hero { grid-template-columns: 1.4fr 1fr; } }
.ring { position: relative; width: 120px; height: 120px; flex: none; } .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); } .ring .t { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-weight: 900; line-height: 1.1; }
.ring .t small { display: block; font-size: .7rem; color: var(--ink2); font-weight: 800; }
.actions { grid-template-columns: 1fr; } @media (min-width: 640px) { .actions { grid-template-columns: 1fr 1fr; } }
.action { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px; border-radius: 22px; border: 0; color: #fff; font-weight: 900; font-size: 1.2rem; cursor: pointer; box-shadow: 0 6px 0 rgba(0,0,0,.18); text-decoration: none; transition: transform .1s; width: 100%; }
.action:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.action .em { font-size: 2.2rem; } .action small { display: block; font-size: .82rem; opacity: .92; font-weight: 700; }
.act-a { background: linear-gradient(135deg, #ff7a59, #ff9f43); } .act-b { background: linear-gradient(135deg, #4f6bff, #7a8dff); } .act-c { background: linear-gradient(135deg, #8b5cf6, #b388ff); } .act-d { background: linear-gradient(135deg, #10b981, #46d6a4); }
.banner { background: var(--warn-bg); border: 2px dashed var(--warn); border-radius: 18px; padding: 12px 16px; }
.tile { text-align: left; background: #fff; border: 3px solid var(--line); border-radius: 22px; padding: 14px; cursor: pointer; display: block; width: 100%; box-shadow: 0 5px 0 var(--line); transition: transform .1s; text-decoration: none; color: inherit; }
.tile:hover { border-color: var(--c, var(--primary)); } .tile:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--line); }
.tile .em { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; background: color-mix(in srgb, var(--c) 18%, #fff); }
.tile h3 { margin: 8px 0 2px; font-size: 1.05rem; }

/* ---------- question ---------- */
.playbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.playbar .x { border: 0; background: #fff; width: 44px; height: 44px; border-radius: 14px; font-size: 1.2rem; font-weight: 900; cursor: pointer; box-shadow: 0 3px 0 var(--line); }
.qcard { background: #fff; border-radius: 26px; border: 3px solid var(--line); box-shadow: var(--shadow); padding: 18px; animation: rise .3s both; }
.qmeta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.tag { background: #eef1ff; color: var(--primary-d); border-radius: 99px; padding: 2px 10px; font-size: .78rem; font-weight: 900; }
.tag.retry { background: var(--warn-bg); color: #8a5a00; }
.qtext { font-size: 1.28rem; font-weight: 700; } .qtext b { font-weight: 900; }
.viz { max-width: 100%; height: auto; display: block; margin: 8px auto; max-height: 300px; }
.eq { font-size: clamp(1.6rem, 6vw, 2.5rem); font-weight: 900; text-align: center; margin: .6rem 0; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .3em; }
.frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.05; margin: 0 .15em; font-weight: 900; }
.frac .n { padding: 0 .25em .06em; border-bottom: .09em solid currentColor; } .frac .d { padding: .06em .25em 0; }
.mixed { display: inline-flex; align-items: center; gap: .12em; vertical-align: middle; } .mixed .w { font-weight: 900; }
.box { display: inline-block; width: 1.3em; height: 1.3em; border: .12em dashed var(--primary); border-radius: .3em; vertical-align: middle; background: #f3f5ff; }
.expr { font-weight: 800; font-size: 1.1em; } .expr i { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; }
table.tbl { border-collapse: collapse; margin: 8px auto; font-weight: 700; max-width: 100%; } .tbl th, .tbl td { border: 2px solid var(--line); padding: 6px 12px; text-align: center; } .tbl th { background: #eef1ff; }
.answer-area { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.ansrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 1.5rem; font-weight: 900; }
.ans { width: 8.5rem; text-align: center; font-size: 1.6rem; font-weight: 900; border: 4px solid var(--line); border-radius: 18px; padding: 8px; background: #fff; }
.ans.sm { width: 4.6rem; } .ans:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 5px rgba(79,107,255,.2); }
.ans[readonly] { caret-color: var(--primary); }
.fracin { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; } .fracin .bar2 { height: 5px; width: 100%; background: var(--ink); border-radius: 3px; }
.choices { display: grid; gap: 10px; width: 100%; max-width: 560px; }
.choice { display: flex; align-items: center; gap: 12px; text-align: left; background: #fff; border: 3px solid var(--line); border-radius: 18px; padding: 12px 14px; font-size: 1.15rem; font-weight: 800; cursor: pointer; box-shadow: 0 4px 0 var(--line); }
.choice .k { width: 34px; height: 34px; border-radius: 50%; background: #eef1ff; display: grid; place-items: center; font-weight: 900; flex: none; color: var(--primary-d); }
.choice.sel { border-color: var(--primary); background: #eef1ff; box-shadow: 0 4px 0 var(--primary); } .choice.sel .k { background: var(--primary); color: #fff; }
.choice.right { border-color: var(--good); background: var(--good-bg); } .choice.wrong { border-color: var(--bad); background: var(--bad-bg); }
.unit { font-weight: 800; color: var(--ink2); }
.keypad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; max-width: 340px; margin-top: 6px; }
.keypad button { border: 0; background: #fff; border-radius: 14px; padding: 12px 0; font-weight: 900; font-size: 1.35rem; cursor: pointer; box-shadow: 0 4px 0 var(--line); border: 2px solid var(--line); }
.keypad button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); } .keypad .w2 { grid-column: span 2; } .keypad .go { background: #e6ebff; }
.hintbox { background: var(--warn-bg); border-radius: 14px; padding: 10px 14px; font-weight: 700; width: 100%; max-width: 560px; animation: pop .25s both; }

.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); animation: rise .25s both; max-height: 88vh; overflow: auto; border-radius: 26px 26px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,.18); }
.sheet .in { max-width: 1000px; margin: 0 auto; }
.sheet.good { background: var(--good-bg); border-top: 5px solid var(--good); } .sheet.bad { background: #fff7f6; border-top: 5px solid var(--bad); }
.sheet h2 { margin: 0; } .sheet.good h2 { color: #0d6a40; } .sheet.bad h2 { color: #a3261f; }
.xp-pop { display: inline-block; background: #fff; border-radius: 99px; padding: 2px 12px; font-weight: 900; color: var(--primary-d); animation: pop .4s both; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; } .compare > div { background: #fff; border-radius: 16px; padding: 8px 12px; border: 2px solid var(--line); } .compare .lbl { font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: var(--ink2); }
.compare .you { border-color: #f4b6b2; } .compare .you .v { color: #a3261f; text-decoration: line-through; text-decoration-thickness: 2px; } .compare .right { border-color: #9edbbd; } .compare .v { font-weight: 900; font-size: 1.3rem; }
.why { background: #fff3d6; border-left: 6px solid var(--warn); border-radius: 12px; padding: 10px 14px; margin: 10px 0; font-weight: 700; }
.steps { list-style: none; padding: 0; margin: 10px 0; counter-reset: s; } .steps li { counter-increment: s; position: relative; padding: 8px 12px 8px 50px; margin-bottom: 8px; background: #fff; border-radius: 14px; border: 2px solid var(--line); animation: rise .35s both; }
.steps li::before { content: counter(s); position: absolute; left: 10px; top: 8px; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 900; display: grid; place-items: center; }
.steps li:nth-child(2) { animation-delay: .1s } .steps li:nth-child(3) { animation-delay: .2s } .steps li:nth-child(4) { animation-delay: .3s } .steps li:nth-child(5) { animation-delay: .4s } .steps li:nth-child(6) { animation-delay: .5s } .steps li:nth-child(7) { animation-delay: .6s }

/* ---------- results ---------- */
.bigstars { font-size: 3.2rem; letter-spacing: 6px; } .bigstars span { display: inline-block; animation: pop .5s both; } .bigstars .off { filter: grayscale(1); opacity: .25; }
.review { border: 2px solid var(--line); border-radius: 16px; background: #fff; margin: 8px 0; } .review summary { padding: 10px 14px; cursor: pointer; font-weight: 800; list-style: none; display: flex; gap: 10px; align-items: flex-start; } .review summary::-webkit-details-marker { display: none; }
.review .body { padding: 0 14px 12px; } .review.ok summary::before { content: "✅"; } .review.no summary::before { content: "❌"; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-weight: 900; font-size: .8rem; } .pill.ok { background: var(--good-bg); color: #0d6a40; } .pill.no { background: var(--bad-bg); color: #a3261f; } .pill.flag { background: var(--warn-bg); color: #8a5a00; }

/* ---------- mock ---------- */
.timer { font-variant-numeric: tabular-nums; font-weight: 900; background: #fff; border-radius: 14px; padding: 6px 14px; border: 3px solid var(--line); } .timer.amber { border-color: var(--warn); background: var(--warn-bg); } .timer.red { border-color: var(--bad); background: var(--bad-bg); animation: bob 1s infinite; }
.navgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 8px; } .navgrid button { height: 46px; border-radius: 12px; border: 3px solid var(--line); background: #fff; font-weight: 900; cursor: pointer; position: relative; } .navgrid .done { background: #e3f8ee; border-color: #9edbbd; } .navgrid .cur { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,107,255,.25); } .navgrid .flag::after { content: "🚩"; position: absolute; top: -9px; right: -6px; font-size: .9rem; }
.mockrow { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }

/* ---------- shop / badges ---------- */
.shopitem { text-align: center; background: #fff; border: 3px solid var(--line); border-radius: 22px; padding: 10px; position: relative; } .shopitem.on { border-color: var(--good); background: var(--good-bg); }
.swatch { width: 70px; height: 70px; border-radius: 50%; margin: 6px auto; border: 4px solid rgba(0,0,0,.12); } .bgprev { height: 72px; border-radius: 16px; margin-bottom: 6px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; } .tabs button { border: 2px solid var(--line); background: #fff; border-radius: 99px; padding: 8px 16px; font-weight: 800; cursor: pointer; } .tabs button.on { background: var(--primary); border-color: var(--primary-d); color: #fff; }
.badge { text-align: center; padding: 14px 8px; border-radius: 20px; background: #fff; border: 3px solid var(--line); } .badge .ic { font-size: 2.6rem; line-height: 1.1; } .badge.locked { opacity: .55; filter: grayscale(.9); }

/* ---------- pin pad ---------- */
.pinwrap { max-width: 360px; margin: 0 auto; text-align: center; } .dots { display: flex; gap: 12px; justify-content: center; margin: 14px 0; min-height: 24px; } .dots i { width: 20px; height: 20px; border-radius: 50%; background: #dfe5fa; } .dots i.f { background: var(--primary); animation: pop .2s both; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .pad button { border: 2px solid var(--line); background: #fff; border-radius: 18px; padding: 14px 0; font-size: 1.6rem; font-weight: 900; box-shadow: 0 4px 0 var(--line); cursor: pointer; } .pad button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }

/* ---------- parent ---------- */
.parent-body { background: #f6f7fb; }
.ptop { background: #26264a; color: #fff; } .ptop .brand { color: #fff; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; } .kpi { background: #fff; border-radius: 18px; padding: 14px; border: 2px solid var(--line); } .kpi .v { font-size: 1.9rem; font-weight: 900; line-height: 1.1; } .kpi .l { font-size: .82rem; color: var(--ink2); font-weight: 800; }
.hbar { display: grid; grid-template-columns: minmax(120px, 210px) 1fr 76px; gap: 10px; align-items: center; margin: 7px 0; font-size: .95rem; font-weight: 700; } .hbar .t { height: 14px; background: #e8ecfb; border-radius: 99px; overflow: hidden; } .hbar .t i { display: block; height: 100%; border-radius: 99px; background: #2a78d6; } .hbar .t i.lo { background: #eb6834; } .hbar .t i.mid { background: #eda100; } .hbar .t i.hi { background: #1baf7a; }
.chart { width: 100%; height: auto; display: block; } .chart text { font-family: inherit; fill: #52514e; font-size: 11px; font-weight: 700; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; font-weight: 800; color: var(--ink2); } .legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tt { position: fixed; pointer-events: none; z-index: 90; background: #26264a; color: #fff; padding: 6px 10px; border-radius: 10px; font-size: .82rem; font-weight: 800; transform: translate(-50%, -120%); white-space: nowrap; }
.ptable { width: 100%; border-collapse: collapse; font-size: .92rem; } .ptable th, .ptable td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; } .ptable th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink2); }
.scroll-x { overflow-x: auto; }

/* ---------- misc ---------- */
.toast { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 100; background: #26264a; color: #fff; border-radius: 16px; padding: 10px 18px; font-weight: 800; animation: pop .3s both; max-width: 92vw; }
.modal-bg { position: fixed; inset: 0; background: rgba(38,38,74,.55); z-index: 60; display: grid; place-items: center; padding: 16px; animation: rise .2s both; } .modal { background: #fff; border-radius: 26px; padding: 22px; max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: pop .3s both; }
canvas.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 80; }
.spinner { width: 46px; height: 46px; border: 6px solid #dfe5fa; border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 60px auto; } @keyframes spin { to { transform: rotate(360deg) } }
.welcome { max-width: 560px; margin: 30px auto; }
@media (max-width: 520px) { body { font-size: 17px; } .hbar { grid-template-columns: 1fr 70px; } .hbar .t { grid-column: 1 / -1; order: 3; } .mascot { width: 120px; height: 120px; } .chip .lbl { display: none; } }
@media print { .nav, .topbar, .noprint, .btn { display: none !important; } body { background: #fff; font-size: 13px; } .card { box-shadow: none; break-inside: avoid; } .shell { padding: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
