/* Unslop round u1 (2026-11-18). Loaded last; overrides only what the review found. */

/* 1. Two button styles: yellow primary, white secondary. Raised, thin border, no dark outline. */
.btn,.btn.blue,.btn.ghost{background:#fff;color:#273740;border:1px solid #c5cfce;border-bottom:4px solid #b2bebd;border-radius:14px;box-shadow:none;font-weight:700}
.btn.primary,.front .primary{background:#ffc83d;color:#273740;border:1px solid #e2ae2b;border-bottom:4px solid #c99516;border-radius:14px}
.btn:hover,.btn.blue:hover,.btn.ghost:hover{transform:translateY(-1px);box-shadow:none;background:#fbfcf8}
.btn.primary:hover,.front .primary:hover{background:#ffd25c}
.btn:active,.front .primary:active{transform:translateY(2px);border-bottom-width:2px}
.btn.small{min-height:48px;font-size:15px}

/* 2. No decorative tilts. */
.table-chip.selected,.table-chip.selected:nth-child(2n),.result-comparison,.front .arena .row-symbol,.landing-c .landing-mode-list .arena .row-symbol{transform:none}
.landing-c .landing-mode-list .duel-mark{font-size:clamp(24px,2vw,34px);letter-spacing:-1px;font-weight:700}

/* 3. Readable minimum sizes. */
.calculator-screen .question-eyebrow{font-size:13px;color:#a9b9cf}
.calculator-screen .score-strip small{font-size:12px}
.calculator-status .calc-level{font-size:12px}
.calculator-screen .feedback{font-size:15px;min-height:30px}
.calculator-footer,.calculator-footer kbd{font-size:11px}
.calculator-footer .calc-model{font-size:10px}
.result-metrics small{font-size:13px}
.result-top p{font-size:15px}
.result-comparison{font-size:16px}
.result-comparison small{font-size:12px}
.sprint-goal strong{font-size:15px}
.sprint-goal small{font-size:12px;display:block}
.eyebrow,.front .eyebrow,.front .selection-summary>.eyebrow{font-size:12px;letter-spacing:.04em}
.landing-c .landing-statistics{font-size:13px}
.landing-c .landing-statistics .text-link{font-size:13px}
.game-topline .game-heading p{font-size:13px}
.question-meta{display:flex;justify-content:space-between;gap:8px;min-height:20px}

/* 4. Keyboard hints only where there is a keyboard. */
@media (pointer:coarse),(max-width:760px){.kbd-hint{display:none}}

/* 5. Same header container on every page; landing keeps the big logo. */
.topbar-inner,body:has(.landing-c) .topbar-inner,.site-footer,body:has(.landing-c) .site-footer{width:calc(100% - 80px);max-width:1680px;padding-left:28px;padding-right:28px}
body:not(:has(.landing-c)) .brand img,.front .brand img{width:210px;max-height:none}
@media (max-width:760px){
  .topbar-inner,body:has(.landing-c) .topbar-inner{width:100%;padding-left:20px;padding-right:20px}
  body:not(:has(.landing-c)) .brand img,.front .brand img{width:124px}
}

/* 6. Landing: try-it calculator and a mascot that no longer covers the keys. */
.landing-c .landing-preview{position:relative;--calc-w:324px}
.landing-c .preview-equation span{color:#fff}
.landing-c .preview-equation .preview-answer{color:#2ffafe;display:inline-block;min-width:1.2em;text-align:left}
.landing-c .preview-keypad button{cursor:pointer}
.landing-c .preview-mascot{left:auto;right:0;bottom:18px;width:clamp(96px,calc((100% - var(--calc-w)) / 2 - 12px),170px);height:auto;aspect-ratio:790/730}
.landing-c .preview-mascot [data-buddy-stage]{width:100%;height:100%}
.landing-c .preview-mascot:focus-visible{outline:3px solid #2e87fb;outline-offset:4px;border-radius:16px}
@media (min-width:1100px){.landing-c .landing-preview{--calc-w:clamp(324px,min(34vw,49vh),540px)}}
@media (min-width:1100px) and (max-height:850px){.landing-c .landing-preview{--calc-w:clamp(324px,min(30vw,44vh),480px)}}
.preview-label .on-touch{display:none}
@media (max-width:760px){
  .landing-c .preview-mascot{display:block;width:78px;right:-4px;top:-86px;bottom:auto}
  .preview-label .on-pointer{display:none}
  .preview-label .on-touch{display:inline}
}

/* 7. Practice picker: same section headers, flat selected state. */
.front fieldset+fieldset{border-top:0;padding-top:0}
.front legend{display:flex;align-items:center;gap:10px;width:100%;font-size:14px}
.front legend:after{content:'';flex:1;height:1px;background:#cbd6d4}
.front .table-chip[aria-pressed=true]{background:#2e87fb;border-color:#2e87fb;border-bottom-color:#1d65c5;color:#fff}
.front .table-chip[aria-pressed=true]:after{font-size:11px}
.front .practice-intro{padding-top:24px}

/* 8. Game: bigger mascot, keep the answer button in view on short desktops. */
.game-companion{width:72px;height:66px;cursor:pointer}
.side-buddy{display:none}
.result-top [data-buddy-stage]{width:150px;height:139px;cursor:pointer}
.practice-mascot-stage{cursor:pointer}
@media (min-width:1300px){
  .calculator-layout{position:relative}
  .side-buddy{display:block;position:absolute;left:-158px;top:min(48%,330px);width:140px;height:130px;cursor:pointer}
  .game-companion{display:none}
  .game-topline .game-heading{min-height:52px}
}
@media (min-width:761px) and (max-height:900px){
  #app:has(.calculator-layout){padding-top:14px}
  #app:has(.calculator-layout)>.game-topline{margin-bottom:10px}
  .keypad-hidden .calculator-question-area{min-height:0;padding:14px 22px}
  .keypad-hidden .calculator-screen .question{font-size:clamp(84px,13vh,128px);margin:6px 0 14px}
  .sprint-goal{padding:7px 16px;margin-bottom:10px}
  .sprint-goal small{display:inline;margin-left:10px}
  .sprint-goal strong{display:inline}
}
@media (max-width:760px){
  .game-companion{width:56px;height:52px}
  .result-top [data-buddy-stage]{width:120px;height:111px}
}
@media (prefers-reduced-motion:reduce){.btn:active,.front .primary:active{transform:none}}
.result-disclaimer{font-size:13px}

/* u3: sound toggle, header on scroll, smooth scroll. */
.nav-item{white-space:nowrap}
.sound-toggle{display:inline-flex;align-items:center;gap:6px;margin-left:8px;min-height:36px;padding:6px 12px;border:1px solid #c5cfce;border-bottom:3px solid #b2bebd;border-radius:12px;background:#fff;color:#273740;font:600 14px IBM,sans-serif;cursor:pointer;white-space:nowrap}
.sound-toggle[aria-pressed=false]{color:#6f7d80;background:#f1f3ef}
.sound-toggle:active{transform:translateY(1px);border-bottom-width:2px}
@media (min-width:761px){.topbar{position:sticky;top:0;z-index:20;background:#f8f8f0;transition:box-shadow .2s ease-out}}
body.scrolled .topbar{box-shadow:0 1px 0 #d9dfda,0 6px 18px #27374012}
html{scroll-behavior:smooth}
@media (max-width:760px){.sound-toggle{min-height:36px;min-width:40px;padding:4px 10px;margin-left:2px;justify-content:center}.sound-toggle .sound-label{display:none}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.topbar{transition:none}}

/* u4: set picker (Sprint / Duel). */
.set-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 16px}
#app .set-option,#modal .set-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:62px;padding:8px 6px;border:1px solid #c5cfce;border-bottom:4px solid #b2bebd;border-radius:14px;background:#fff;color:#273740;cursor:pointer;font-family:IBM,sans-serif;transition:background-color .15s ease-out,border-color .15s ease-out}
.set-option strong{font-size:17px;line-height:1.3}
.set-option small{font-size:13px;color:#6b7c80}
.set-option:hover{background:#f6faff}
#app .set-option[aria-checked=true],#modal .set-option[aria-checked=true]{background:#2e87fb;border-color:#2e87fb;border-bottom-color:#1d65c5;color:#fff}
.set-option[aria-checked=true] small{color:#dcebff}
.set-option:active{transform:translateY(2px);border-bottom-width:2px}
.set-option:focus-visible{outline:3px solid #ffc83d;outline-offset:2px}
.landing-sprint-title{display:flex;align-items:baseline;gap:14px}
.landing-sprint-title p{font-size:18px;color:#576e76}
.set-picker-label{font-weight:700;margin:12px 0 0}
#modal .set-picker{margin-top:8px}
@media (min-width:1100px){.set-option{min-height:clamp(62px,5vw,78px)}.set-option strong{font-size:clamp(17px,1.25vw,21px)}}
@media (max-width:760px){.set-option{min-height:56px}.set-option strong{font-size:15px}.set-option small{font-size:12px}.landing-sprint-title p{font-size:15px}}

/* u4: fluency board. */
.mastery{margin:32px 0 8px;padding:28px;border:1px solid #cbd6d4;border-radius:18px;background:#fffdf6}
.mastery-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.mastery-head h2{font-size:28px;line-height:1.4}
.mastery-head .text-link{margin-left:auto;font-size:15px}
.sample-tag{padding:3px 10px;border-radius:999px;background:#fff0b9;color:#5c521f;font-size:13px;font-weight:700}
.mastery-legend{display:flex;flex-wrap:wrap;gap:6px 16px;margin:8px 0 18px;font-size:13px;color:#576e76}
.mastery-legend span{display:inline-flex;align-items:center;gap:6px}
.mastery-legend i{width:14px;height:14px;border-radius:4px;display:inline-block;border:1px solid #0000001a}
.mastery-board{display:grid;grid-template-columns:11fr 13fr;gap:24px}
.mastery-group h3{font-size:14px;color:#576e76;margin-bottom:8px}
.mastery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px}
.mastery-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:68px;padding:6px 2px;border:1px solid #0000001a;border-bottom-width:3px;border-radius:12px;cursor:pointer;color:#273740;font-family:IBM,sans-serif}
.mastery-tile strong{font-size:22px;line-height:1.2}
.mastery-tile small{font-size:12px;line-height:1.3;white-space:nowrap}
.mastery-tile[aria-pressed=true]{outline:3px solid #273740;outline-offset:2px}
.mastery .level-fluent,#app .mastery .mastery-tile.level-fluent{background:#cdeed6}
.mastery .level-ok,#app .mastery .mastery-tile.level-ok{background:#fff0b9}
.mastery .level-weak,#app .mastery .mastery-tile.level-weak{background:#ffd3d3}
.mastery .level-unknown,#app .mastery .mastery-tile.level-unknown{background:#eef1ee;color:#7a8a8d}
.mastery-detail{margin-top:20px;padding-top:16px;border-top:1px solid #dfe5e2}
.mastery-detail .btn{margin-top:12px}
#app .mastery .btn.primary{width:auto;display:inline-flex;justify-content:center;padding:12px 24px}
.mastery-figures{font-size:15px;color:#576e76}
.mastery-summary{font-size:16px}
.mastery-detail-head{display:flex;align-items:center;gap:10px}
.mastery-detail-head h3{font-size:22px}
.level-word{padding:2px 10px;border-radius:999px;font-size:13px;font-weight:700}
.fact-row{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:6px;margin:12px 0 8px}
.fact-cell{display:flex;flex-direction:column;align-items:center;padding:8px 2px;border-radius:10px;border:1px solid #0000001a}
.fact-cell span{font-weight:700;font-size:16px}
.fact-cell small{font-size:12px;white-space:nowrap}
@media (max-width:1000px){.mastery-board{grid-template-columns:1fr}}
@media (max-width:760px){
  .mastery{padding:18px 14px;margin-top:24px}
  .mastery-head h2{font-size:22px}
  .mastery-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
  .mastery-tile{min-height:58px}
  .mastery-tile strong{font-size:19px}
  .mastery-tile small{font-size:11px}
  .fact-row{grid-template-columns:repeat(6,minmax(0,1fr))}
}

/* u5: table detail shows only accuracy and time. */
.mastery-stats{display:flex;gap:16px;margin:16px 0 4px}
.mastery-stats div{min-width:180px;padding:12px 20px;border-radius:14px;background:#fff;border:1px solid #dfe5e2}
.mastery-stats strong{display:block;font-size:32px;line-height:1.2}
.mastery-stats small{font-size:14px;color:#576e76}
.mastery-stats .off{background:#ffe3e3;border-color:#f3b4b4}
.mastery-stats .off strong{color:#b4232a}
@media (max-width:760px){.mastery-stats div{min-width:0;flex:1;padding:10px 12px}.mastery-stats strong{font-size:26px}}

/* u5: practice picker shows weak tables. */
.weak-note{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:12px 16px;margin-bottom:16px;border-radius:12px;background:#fff6f0;border:1px solid #f1cfc0}
.weak-note p{font-size:16px}
.weak-note .text-link{font-size:15px}
.chip-legend{display:inline-flex;align-items:center;gap:6px;margin-left:auto;font-size:13px;color:#576e76}
.chip-legend i{width:16px;height:6px;border-radius:3px;display:inline-block;margin-left:6px}
.front .table-chip{position:relative}
.front .table-chip.chip-weak:before,.front .table-chip.chip-ok:before,.front .table-chip.chip-fluent:before{content:'';position:absolute;left:18%;right:18%;bottom:6px;height:5px;border-radius:3px}
.chip-weak:before,.chip-legend i.chip-weak{background:#e5484d}
.chip-ok:before,.chip-legend i.chip-ok{background:#f5b82e}
.chip-fluent:before,.chip-legend i.chip-fluent{background:#3fae6b}
.front .table-chip[aria-pressed=true]:before{opacity:.9;background:#fff}
@media (max-width:760px){.chip-legend{margin-left:0;width:100%}}

/* u5: landing fluency board uses the practice picker chips, multi-select. */
.mastery-hint{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:4px 0 16px;font-family:Mali,IBM,sans-serif;font-size:16px;color:#576e76}
.mastery-hint .chip-legend{font-family:IBM,sans-serif}
.mastery .mastery-group{border:0;padding:0;margin:0}
.mastery .mastery-group legend{display:flex;align-items:center;gap:10px;width:100%;font-size:14px;font-weight:700;margin-bottom:10px}
.mastery .mastery-group legend:after{content:'';flex:1;height:1px;background:#cbd6d4}
.mastery .table-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.mastery .table-chip{min-height:56px;font-size:22px}
.pick-rows{display:flex;flex-direction:column;gap:8px}
.pick-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:10px 16px;border-radius:12px;background:#fff;border:1px solid #dfe5e2;font-size:16px}
.pick-row strong{font-size:18px;min-width:64px}
.pick-row .off{color:#b4232a;font-weight:700}
.pick-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:16px}
.mastery .weak-note{margin-bottom:0}
@media (max-width:760px){.mastery .table-chip{min-height:46px;font-size:19px}}

/* u5: preview question numbers roll. */
.landing-c .preview-equation{display:flex;justify-content:center;align-items:center;gap:.22em;overflow:hidden;font-variant-numeric:tabular-nums}
.landing-c #preview-a,.landing-c #preview-b{display:inline-block;width:1.2em;text-align:center}
.landing-c .preview-equation .preview-answer{display:inline-block;width:1.2em;min-width:0;text-align:center}

/* u5: result page stage. */
.result-hero{position:relative;isolation:isolate;max-width:1100px;margin:8px auto 28px;padding:28px 24px 34px;border-radius:28px;background:#fff8e1;border:1px solid #f1dc9c;overflow:hidden;text-align:center}
.result-hero.celebrate{background:#ffefb3}
.hero-rays{position:absolute;left:50%;top:58%;width:1600px;height:1600px;margin:-800px 0 0 -800px;z-index:-1;background:repeating-conic-gradient(from 0deg,rgba(255,255,255,.75) 0deg 9deg,rgba(255,255,255,0) 9deg 22.5deg);mask-image:radial-gradient(circle,#000 0,#000 18%,transparent 52%);-webkit-mask-image:radial-gradient(circle,#000 0,#000 18%,transparent 52%);animation:rays-in 1.4s cubic-bezier(.22,1,.36,1) both}
@keyframes rays-in{from{transform:rotate(-40deg) scale(.6);opacity:0}to{transform:none;opacity:1}}
.result-hero .result-buddy{width:170px;height:158px}
.result-hero h1{font-size:44px;line-height:1.3;margin-top:2px}
.result-hero .big-score{display:flex;align-items:baseline;justify-content:center;gap:10px;font-size:168px;line-height:1;font-weight:700;color:#2e87fb;margin:8px 0 6px;font-variant-numeric:tabular-nums;text-shadow:0 6px 0 rgba(30,97,175,.16);animation:score-pop .6s .25s cubic-bezier(.34,1.56,.64,1) both}
.result-hero .big-score span{font-size:30px;color:#576e76;font-weight:600;text-shadow:none}
@keyframes score-pop{from{transform:scale(.4);opacity:0}to{transform:none;opacity:1}}
.result-hero p{font-size:17px;color:#576e76}
.result-hero .result-comparison{display:inline-block;margin-top:14px;padding:10px 22px;border-radius:999px;background:#fff;border:2px solid #ffc83d;font-size:20px;box-shadow:0 4px 0 #e2ae2b;animation:stamp .5s .7s cubic-bezier(.34,1.56,.64,1) both}
.result-hero.celebrate .result-comparison{background:#2e87fb;color:#fff;border-color:#1d65c5;box-shadow:0 4px 0 #1d65c5}
@keyframes stamp{from{transform:scale(1.8) rotate(-10deg);opacity:0}to{transform:rotate(-2deg);opacity:1}}
.confetti{position:absolute;left:50%;top:46%;width:0;height:0;pointer-events:none;z-index:3}
.confetti i{position:absolute;left:0;top:0;display:block}
.result-score{display:flex;flex-direction:column;justify-content:center}
.result-score .result-metrics{gap:12px}
.result-score .result-metrics>div{padding:16px 8px;border-radius:16px;background:#f3f7ff;border:1px solid #d7e5fb}
.result-score .result-metrics strong{font-size:40px;line-height:1.2;color:#1e61af}
.weak-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0 4px}
.weak-chip{position:relative;display:flex;flex-direction:column;align-items:center;padding:14px 6px 18px;border-radius:14px;background:#fff;border:1px solid #c5cfce;border-bottom-width:3px}
.weak-chip strong{font-size:34px;line-height:1.1}
.weak-chip small{font-size:13px;color:#576e76;white-space:nowrap}
.weak-chip:before{content:'';position:absolute;left:22%;right:22%;bottom:7px;height:5px;border-radius:3px;background:#cbd6d4}
.weak-chip.chip-weak:before{background:#e5484d}.weak-chip.chip-ok:before{background:#f5b82e}.weak-chip.chip-fluent:before{background:#3fae6b}
.result-actions .btn.primary{font-size:19px;padding:14px 30px}
@media (max-width:760px){
  .result-hero{padding:18px 12px 24px;border-radius:22px}
  .result-hero .result-buddy{width:120px;height:111px}
  .result-hero h1{font-size:30px}
  .result-hero .big-score{font-size:112px}
  .result-hero .big-score span{font-size:22px}
  .result-score .result-metrics strong{font-size:30px}
  .weak-chip strong{font-size:28px}
}
@media (prefers-reduced-motion:reduce){.hero-rays,.result-hero .big-score,.result-hero .result-comparison{animation:none}}
.result-score .result-metrics{border-top:0;margin-top:0;padding-top:0}
.result-score>p{margin-bottom:12px}
@media (min-width:761px) and (max-height:920px){
  .result-hero{padding:16px 24px 20px;margin-bottom:18px}
  .result-hero .result-buddy{width:118px;height:110px}
  .result-hero h1{font-size:36px}
  .result-hero .big-score{font-size:124px;margin:2px 0}
  .result-score .result-metrics>div{padding:12px 8px}
  .result-score .result-metrics strong{font-size:34px}
  .weak-chip{padding:10px 6px 16px}
}

/* u5: heat map chips (landing board + practice picker). */
.front .table-chip.heat-chip{background:var(--heat-bg);color:var(--heat-fg);border-color:var(--heat-edge);border-bottom-color:var(--heat-edge);font-weight:700}
.front .table-chip.heat-chip:before{display:none}
.front .table-chip.heat-chip:hover{filter:brightness(1.04)}
.front .table-chip.heat-chip[aria-pressed=true]{background:var(--heat-bg);color:var(--heat-fg);border:2px solid #273740;border-bottom-width:4px;box-shadow:0 0 0 3px #fff,0 0 0 6px #2e87fb}
.front .table-chip.heat-chip[aria-pressed=true]:after{color:inherit;font-size:13px;right:6px;top:2px}
.heat-legend{display:inline-flex;align-items:center;gap:8px;margin-left:auto;font-family:IBM,sans-serif;font-size:13px;color:#576e76}
.heat-legend .heat-scale{display:inline-block;width:120px;height:12px;border-radius:6px;background:linear-gradient(90deg,hsl(4 68% 48%),hsl(36 68% 70%),hsl(68 68% 90%),hsl(100 68% 70%),hsl(132 68% 48%))}
.heat-legend .heat-none{display:inline-block;width:14px;height:12px;border-radius:4px;background:#eceeec;border:1px solid #d3d8d6;margin-left:10px}
@media (max-width:760px){.heat-legend{margin-left:0;width:100%;flex-wrap:wrap}.heat-legend .heat-scale{width:90px}}
.weak-chip.heat-chip{background:var(--heat-bg);color:var(--heat-fg);border-color:var(--heat-edge)}
.weak-chip.heat-chip small{color:inherit;opacity:.85}
.weak-chip.heat-chip:before{display:none}

/* u5: Sprint kind picker + race lock. */
.landing-sprint-title{flex-wrap:wrap}
.kind-picker{display:inline-flex;gap:4px;padding:4px;border-radius:14px;background:rgba(39,55,64,.07)}
.kind-option{min-height:38px;padding:6px 14px;border:0;border-radius:10px;background:transparent;color:#576e76;font:600 15px IBM,sans-serif;cursor:pointer}
.kind-option[aria-checked=true]{background:#fff;color:#273740;box-shadow:0 2px 0 rgba(39,55,64,.15)}
.calculator-device.race-locked .keypad button{opacity:.55}
@media (max-width:760px){.kind-option{font-size:13px;padding:6px 10px}}
