/* Layout concept: a transit line. Levels A1–C1 are colored lines, lessons are stations along them. */
:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --surface-2: #e9edf4;
  --ink: #161d2e;
  --muted: #5a6479;
  --rule: #d7dde8;
  --accent: #2346c4;
  --accent-ink: #ffffff;
  --ok: #1d8a52;
  --ok-soft: #dcf2e5;
  --bad: #c7382c;
  --bad-soft: #fbe3df;
  --a1: #239b5a;
  --a2: #1683b0;
  --b1: #c98c00;
  --b2: #d2522a;
  --c1: #7448c4;
  --c2: #b03a7a;
  --font-display: 'Secular One', 'Rubik', system-ui, sans-serif;
  --font-body: 'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-target: 'Bricolage Grotesque', 'Rubik', system-ui, sans-serif;
  --r: 14px;
  --shadow: 0 1px 2px rgb(22 29 46 / .06), 0 6px 20px rgb(22 29 46 / .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1220; --surface: #161d2f; --surface-2: #1f2840; --ink: #e8ecf6; --muted: #9aa4bb; --rule: #2a3450;
    --accent: #8aa2ff; --accent-ink: #0d1220; --ok: #4fcf8a; --ok-soft: #133524; --bad: #ff7a6b; --bad-soft: #3d1a17;
    --a1: #45c27e; --a2: #3fb0dd; --b1: #f0b72a; --b2: #f07a50; --c1: #a284f0; --c2: #e06aa8;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 6px 20px rgb(0 0 0 / .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1220; --surface: #161d2f; --surface-2: #1f2840; --ink: #e8ecf6; --muted: #9aa4bb; --rule: #2a3450;
  --accent: #8aa2ff; --accent-ink: #0d1220; --ok: #4fcf8a; --ok-soft: #133524; --bad: #ff7a6b; --bad-soft: #3d1a17;
  --a1: #45c27e; --a2: #3fb0dd; --b1: #f0b72a; --b2: #f07a50; --c1: #a284f0; --c2: #e06aa8;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 6px 20px rgb(0 0 0 / .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
#shell { max-width: 980px; margin: 0 auto; padding-inline: 16px; padding-block: 0 32px; }
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h2 { font-size: 1.25rem; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num { font-variant-numeric: tabular-nums; }
.center { text-align: center; justify-content: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tgt { font-family: var(--font-target); font-weight: 600; unicode-bidi: isolate; }
.eyebrow { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

/* level color plumbing */
.lv-a1 { --lv: var(--a1); } .lv-a2 { --lv: var(--a2); } .lv-b1 { --lv: var(--b1); }
.lv-b2 { --lv: var(--b2); } .lv-c1 { --lv: var(--c1); } .lv-c2 { --lv: var(--c2); }
.lv-chip {
  display: inline-grid; place-items: center; min-width: 2.4em; height: 1.9em; padding-inline: .45em;
  border-radius: 999px; background: var(--lv, var(--accent)); color: var(--bg);
  font: 700 .85rem/1 var(--font-target); letter-spacing: .02em;
}
.lv-chip.big { font-size: 1.05rem; min-width: 2.8em; height: 2.2em; }

/* buttons */
.btn {
  appearance: none; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  font: 500 1rem/1 var(--font-body); padding: .8em 1.4em; color: var(--ink); background: var(--surface-2);
  transition: transform .12s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; border-color: var(--rule); }
.btn.danger { background: var(--bad); color: var(--bg); }
.btn.small { font-size: .85rem; padding: .55em 1em; }
.icon-btn { appearance: none; border: 0; background: transparent; color: var(--muted); font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 0 .2em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pill { display: inline-block; font-size: .78rem; padding: .2em .7em; border-radius: 999px; background: var(--surface-2); }
.pill.ok { background: var(--ok-soft); color: var(--ok); font-weight: 500; }

/* header */
.top {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 16px;
  padding-block: 18px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 44px; height: 26px; color: var(--ink); }
.bm-a { fill: var(--a1); } .bm-b { fill: var(--b1); } .bm-c { fill: var(--c1); }
.brand-text { font: 800 1.25rem/1 var(--font-target); letter-spacing: -.01em; }
.top-controls { display: flex; gap: 10px; align-items: center; }
select {
  font: 500 .9rem var(--font-body); color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule); border-radius: 999px; padding: .5em .9em;
}
.ui-switch { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; overflow: hidden; background: var(--surface); }
.ui-switch button {
  appearance: none; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 600 .85rem/1 var(--font-body); padding: .62em .85em;
}
.ui-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.tabs {
  grid-column: 1 / -1; display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--rule);
  scrollbar-width: none;
}
.tabs a {
  color: var(--muted); text-decoration: none; font-weight: 500; padding: .7em .9em; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.badge { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; border-radius: 999px; background: var(--bad); color: var(--bg); font-size: .72rem; padding-inline: .3em; }

#view { padding-block: 28px; outline: none; }

/* map hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.hero-main { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-width: 0; }
.hero-main h1 { max-width: 20ch; }
.lead { font-size: 1.05rem; max-width: 60ch; }
.next-card {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px;
  background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow);
  border-inline-start: 6px solid var(--lv);
}
.next-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.next-label { font-size: .8rem; color: var(--muted); }
.next-text strong { font-size: 1.1rem; }
.stats { background: var(--surface); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); display: grid; gap: 16px; align-content: start; }
.goal { display: flex; gap: 14px; align-items: center; }
.ring { width: 72px; height: 72px; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring-bg { stroke: var(--surface-2); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.goal-text { display: flex; flex-direction: column; min-width: 0; }
.goal-text strong { font: 600 1.6rem/1.1 var(--font-target); }
.goal-text small { font-size: .9rem; color: var(--muted); }
.stat-label, dt { font-size: .78rem; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.stat-grid div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.stat-grid dd { margin: 0; font: 600 1.4rem/1.2 var(--font-target); }
.stat-grid.wide { grid-template-columns: repeat(3, 1fr); width: 100%; max-width: 480px; }

/* the line */
.line { margin-top: 36px; display: grid; gap: 8px; }
.level { position: relative; }
.level-head { display: flex; align-items: center; gap: 14px; padding-block: 10px; }
.level-head h2 { font-size: 1.3rem; }
.stations { list-style: none; margin: 0; padding: 0; position: relative; padding-inline-start: 34px; }
.stations::before {
  content: ""; position: absolute; inset-inline-start: 14px; top: -10px; bottom: -10px; width: 6px;
  background: var(--lv); border-radius: 3px;
}
.level:last-child .stations::before { bottom: 18px; }
.station { position: relative; padding-block: 4px; }
.station-btn {
  width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  appearance: none; border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer;
  font: inherit; text-align: start; padding: 12px 14px; border-radius: 12px;
}
.station-btn:hover { background: var(--surface); border-color: var(--rule); }
.dot {
  position: absolute; inset-inline-start: -29px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); border: 5px solid var(--lv); box-sizing: border-box;
}
.station.done .dot { background: var(--lv); }
.station.next .dot { width: 28px; height: 28px; inset-inline-start: -32px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--lv) 25%, transparent); animation: pulse 2s ease-in-out infinite; }
.station.next .station-btn { background: var(--surface); border-color: var(--rule); box-shadow: var(--shadow); }
.st-title { font-weight: 500; font-size: 1.05rem; grid-column: 2; }
.st-meta { grid-column: 3; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--lv) 10%, transparent); } }

/* lesson */
.lesson { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.lesson-top { display: flex; align-items: center; gap: 12px; }
.progress { flex: 1; height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--lv); border-radius: 999px; transition: width .35s ease; }
.q { font-size: 1.5rem; }
.prompt {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  font-size: 1.8rem; text-align: center; padding: 26px 16px; background: var(--surface);
  border-radius: var(--r); box-shadow: var(--shadow); min-height: 110px;
}
.prompt.sentence { font-size: 1.3rem; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt {
  appearance: none; font: 500 1.1rem var(--font-body); color: var(--ink); cursor: pointer;
  background: var(--surface); border: 2px solid var(--rule); border-radius: 12px; padding: 16px 12px; min-height: 64px;
}
.opt:hover:not(:disabled) { border-color: var(--lv); }
.opt:disabled { cursor: default; }
.opt.right, .tok.right { border-color: var(--ok); background: var(--ok-soft); color: var(--ink); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.word-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.word-tile {
  width: 100%; height: 100%; appearance: none; cursor: pointer; text-align: start; font: inherit; color: var(--ink);
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--rule); border-inline-start: 4px solid var(--lv); border-radius: 10px;
}
.word-tile .tgt { font-size: 1.15rem; }
.tr { color: var(--muted); font-size: .95rem; }
.note {
  background: var(--surface); border-radius: var(--r); padding: 18px 20px; font-size: 1.08rem; line-height: 1.7;
  border-inline-start: 6px solid var(--lv); max-width: 65ch;
}
.examples { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.examples li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; }
.examples li div { display: flex; flex-direction: column; min-width: 0; }
.speak {
  flex: none; width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--rule); background: var(--surface); color: var(--accent); cursor: pointer; padding: 0;
}
.speak svg { width: 20px; height: 20px; }
.build-line {
  min-height: 64px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; padding: 12px;
  border: 2px dashed var(--rule); border-radius: 12px; background: var(--surface);
}
.build-line.right { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.build-line.wrong { border-style: solid; border-color: var(--bad); background: var(--bad-soft); }
.bank { display: flex; flex-wrap: wrap; gap: 8px; }
.tok {
  appearance: none; cursor: pointer; font: 600 1.05rem var(--font-target); color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule); border-bottom-width: 3px; border-radius: 10px; padding: .5em .8em;
}
.tok:disabled { opacity: .25; cursor: default; }
.type-form { display: flex; gap: 10px; flex-wrap: wrap; }
.type-form input {
  flex: 1 1 220px; min-width: 0; font: 600 1.3rem var(--font-target); color: var(--ink); padding: .6em .8em;
  border: 2px solid var(--rule); border-radius: 12px; background: var(--surface);
}
.type-form input:focus { outline: none; border-color: var(--lv); }
.type-form input.right { border-color: var(--ok); background: var(--ok-soft); }
.type-form input.wrong { border-color: var(--bad); background: var(--bad-soft); }
.feedback { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r); animation: rise .2s ease; }
.feedback:empty { display: none; }
.feedback.ok { background: var(--ok-soft); color: var(--ok); }
.feedback.bad { background: var(--bad-soft); color: var(--bad); }
.fb-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fb-answer { color: var(--ink); font-size: 1.15rem; }
@keyframes rise { from { transform: translateY(6px); opacity: .4; } }
.finish { align-items: center; text-align: center; gap: 16px; padding-top: 20px; }

/* review */
.review { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.flash {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  min-height: 240px; padding: 36px 20px; text-align: center; background: var(--surface); border-radius: 18px;
  box-shadow: var(--shadow); border-top: 6px solid var(--lv);
}
.flash .lv-chip { position: absolute; top: 14px; inset-inline-end: 14px; }
.flash-front { font-size: 2.1rem; }
.flash-back { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; padding-top: 16px; border-top: 1px solid var(--rule); width: 100%; justify-content: center; }
.flash-back[hidden] { display: none; }
.native { font-weight: 500; }
.rate { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; min-width: 84px; }
.rate small { font-size: .72rem; opacity: .75; }
.rate-0 { background: var(--bad-soft); color: var(--bad); }
.rate-1 { background: var(--surface-2); }
.rate-2 { background: var(--ok-soft); color: var(--ok); }
.rate-3 { background: var(--accent); color: var(--accent-ink); }

/* empty */
.empty { max-width: 520px; margin: 30px auto; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.empty-art { width: 140px; color: var(--ink); }

/* games */
.games { display: flex; flex-direction: column; gap: 12px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 8px; }
.game-card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.game-art { width: 120px; height: 64px; }
.g-match .game-art { color: var(--a2); } .g-match .game-art rect { fill: var(--a2); } .g-match .game-art .dim { fill: var(--surface-2); }
.g-sprint .game-art { color: var(--b2); } .g-sprint .game-art .dim { fill: var(--surface-2); }
.game-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; }
.play { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.play-head { display: flex; align-items: center; gap: 12px; }
.play-head h1 { flex: 1; font-size: 1.6rem; }
.timer { font: 700 1.5rem var(--font-target); color: var(--accent); }
.match-board { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.match-board .col { display: grid; gap: 10px; align-content: start; }
.m-tile {
  appearance: none; cursor: pointer; font: 500 1.05rem var(--font-body); color: var(--ink); min-height: 56px;
  background: var(--surface); border: 2px solid var(--rule); border-radius: 12px; padding: 10px;
  transition: opacity .3s ease, transform .15s ease;
}
.m-tile.sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.m-tile.matched { border-color: var(--ok); background: var(--ok-soft); opacity: .45; cursor: default; }
.shake { animation: shake .35s ease; border-color: var(--bad) !important; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.game-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 16px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.sprint-score { text-align: center; font-size: 1.1rem; }
.sprint-score strong { font: 700 2rem var(--font-target); }
.sprint-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 16px; font-size: 1.8rem;
  text-align: center; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); border: 2px solid transparent;
}
.sprint-card .eq { color: var(--muted); font-size: 1.2rem; }
.flash-ok { animation: okflash .35s ease; } .flash-bad { animation: badflash .35s ease; }
@keyframes okflash { from { border-color: var(--ok); } }
@keyframes badflash { from { border-color: var(--bad); } }
.sprint-btns .btn { min-width: 130px; font-size: 1.1rem; padding: 1em 1.4em; }

/* tips */
.tips { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.tip-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: tip; }
.tip { background: var(--surface); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 8px; counter-increment: tip; position: relative; padding-inline-start: 64px; }
.tip::before {
  content: counter(tip); position: absolute; inset-inline-start: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--bg); font: 700 .9rem var(--font-target);
}
.tip p { max-width: 65ch; }
.tip-site { color: var(--muted); font-size: .95rem; }
.tag { display: inline-block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--accent); margin-inline-end: 4px; }

/* footer */
.foot { border-top: 1px solid var(--rule); padding-block: 16px 0; display: grid; gap: 10px; color: var(--muted); font-size: .9rem; }
.foot summary { cursor: pointer; font-weight: 500; color: var(--ink); }
.settings { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-block: 12px; }
#reset-zone { flex-basis: 100%; }
.confirm { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--ink); }

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .next-card { flex-wrap: wrap; }
  .next-card .btn { width: 100%; }
}
@media (max-width: 460px) {
  .top { grid-template-columns: 1fr; }
  .top-controls { justify-content: space-between; }
  .options { grid-template-columns: 1fr; }
  .tabs a { padding-inline: .6em; font-size: .95rem; }
  .prompt { font-size: 1.5rem; }
  .flash-front { font-size: 1.7rem; }
  .st-meta { grid-column: 2; }
  .station-btn { grid-template-columns: auto minmax(0, 1fr); }
  .rate { min-width: 0; flex: 1; padding-inline: .6em; }
  .stat-grid.wide { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.brand-glitz { color: var(--accent); }

/* generated media */
.tile-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: 6px; background: var(--surface-2); }
.flash-img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; }
.flash-back:has(.flash-img) { flex-wrap: wrap; }
.lesson-video { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r); background: var(--surface-2); }

/* ---------- accounts, motivation, comfort ---------- */
.gem-count { display: inline-flex; align-items: center; gap: 4px; font: 600 .9rem var(--font-target); color: var(--ink); }
.gem-count svg { width: 16px; height: 16px; fill: var(--c1); }
.account-btn {
  appearance: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; max-width: 160px;
  font: 600 .9rem var(--font-body); color: var(--accent-ink); background: var(--accent); border: 0; border-radius: 999px; padding: .5em 1em;
}
.account-btn:has(.avatar) { background: var(--surface); color: var(--ink); border: 1px solid var(--rule); padding: .3em .8em .3em .3em; }
.acc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font: 700 .85rem var(--font-target);
}
.avatar.big { width: 64px; height: 64px; font-size: 1.6rem; }
.top-controls { flex-wrap: wrap; justify-content: flex-end; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { color: var(--ink); }

/* quests */
.quests h3 { margin: 0 0 8px; font: 600 .95rem var(--font-body); }
.quests ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.quests li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; font-size: .9rem; }
.q-reward { color: var(--c1); font-weight: 600; font-size: .8rem; }
.q-reward::after { content: " ◆"; }
.q-bar { grid-column: 1 / -1; height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.q-bar span { display: block; height: 100%; background: var(--c1); border-radius: 999px; transition: width .4s ease; }
.quests li.done .q-name { text-decoration: line-through; color: var(--muted); }
.quests li.done .q-bar span { background: var(--ok); }

/* toasts */
#toasts { position: fixed; inset-inline: 0; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; justify-items: center; gap: 8px; pointer-events: none; z-index: 50; padding-inline: 16px; }
.toast { background: var(--ink); color: var(--bg); padding: .7em 1.2em; border-radius: 999px; font-weight: 500; box-shadow: var(--shadow); animation: rise .25s ease; transition: opacity .4s ease, transform .4s ease; max-width: 100%; }
.toast.out { opacity: 0; transform: translateY(8px); }

/* auth */
.auth-wrap { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; max-width: 460px; }
.auth { display: grid; gap: 8px; }
.auth h2 { font-size: 1.4rem; }
.auth label { font-weight: 500; font-size: .9rem; margin-top: 6px; }
.auth input { font: 1rem var(--font-body); color: var(--ink); background: var(--bg); border: 2px solid var(--rule); border-radius: 12px; padding: .7em .9em; min-width: 0; }
.auth input:focus { outline: none; border-color: var(--accent); }
.auth .btn { margin-top: 8px; }
.auth-error { color: var(--bad); min-height: 1.2em; margin: 4px 0 0; font-size: .9rem; }
.auth-error:empty { min-height: 0; }
.linkish { appearance: none; background: none; border: 0; color: var(--accent); font: 500 .9rem var(--font-body); cursor: pointer; padding: 6px 0; justify-self: start; }

/* profile */
.me { display: grid; gap: 18px; max-width: 760px; }
.me-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.me-id { flex: 1; min-width: 0; display: grid; gap: 4px; }
.stat-grid.four { grid-template-columns: repeat(4, 1fr); }
.panel { background: var(--surface); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 10px; }
.panel h2 { font-size: 1.2rem; }
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.badge-item { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: .85rem; color: var(--muted); padding: 10px 6px; border-radius: 12px; background: var(--surface-2); opacity: .55; }
.badge-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 3px dashed var(--rule); font: 700 1rem var(--font-target); color: var(--muted); }
.badge-item.got { opacity: 1; color: var(--ink); background: color-mix(in srgb, var(--b1) 14%, var(--surface)); }
.badge-item.got .badge-icon { border: 0; color: #fff; background: conic-gradient(from 200deg, var(--a1), var(--a2), var(--c1), var(--b2), var(--b1), var(--a1)); text-shadow: 0 1px 2px rgb(0 0 0 / .35); }
.shop-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.shop-art { width: 36px; height: 36px; fill: var(--a2); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; font: .9rem var(--font-target); padding: .6em .8em; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg); color: var(--ink); }
.prefs { display: grid; gap: 10px; }
.switch-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { width: 44px; height: 26px; border-radius: 999px; background: var(--rule); position: relative; transition: background-color .2s ease; }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: inset-inline-start .2s ease; }
.switch-row input:checked + .switch { background: var(--accent); }
.switch-row input:checked + .switch::after { inset-inline-start: 21px; }
.switch-row input:focus-visible + .switch { outline: 3px solid var(--accent); outline-offset: 2px; }
.pref-select { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* league */
.league { display: grid; gap: 16px; max-width: 760px; }
.league-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.league-head > div:first-child { min-width: 0; flex: 1 1 300px; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; }
.seg button { appearance: none; border: 0; background: transparent; color: var(--muted); font: 600 .85rem var(--font-body); padding: .5em 1em; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.lb-body { display: grid; gap: 12px; }
.lb-skel { height: 52px; border-radius: 12px; background: var(--surface); opacity: .6; }
.lb-me, .lb-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.lb-cta p { flex: 1; min-width: 200px; margin: 0; }
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lb-row { display: grid; grid-template-columns: 2.4em auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 14px; background: var(--surface); border-radius: 12px; }
.lb-row.me { outline: 2px solid var(--accent); }
.lb-rank { font: 700 1rem var(--font-target); color: var(--muted); text-align: center; }
.medal { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #161d2e; }
.medal.m1 { background: #f0c64a; } .medal.m2 { background: #c9d1dc; } .medal.m3 { background: #e0a070; }
.lb-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.lb-xp { font: 700 1rem var(--font-target); }
.lg-chip { display: inline-block; width: 14px; height: 14px; transform: rotate(45deg); border-radius: 3px; background: var(--lg); }
.lg-bronze { --lg: #c07a45; } .lg-silver { --lg: #9aa6b8; } .lg-gold { --lg: #e6b422; } .lg-diamond { --lg: var(--c1); }
.lg-line { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }

/* plans */
.plans { display: grid; gap: 14px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 8px; }
.plan { background: var(--surface); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--rule); align-items: flex-start; }
.plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan .price { margin: 0; }
.plan .price .num { font: 800 2.2rem var(--font-target); }
.plan ul { margin: 0; padding-inline-start: 1.1em; display: grid; gap: 6px; flex: 1; align-content: start; }

/* break */
.break-card { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(6px); }
.break-inner { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 28px; max-width: 420px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.break-inner svg { width: 72px; height: 72px; }
.b-ring { fill: color-mix(in srgb, var(--a1) 20%, var(--surface)); stroke: var(--a1); stroke-width: 3; }
.b-smile { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.b-eye { fill: var(--ink); }

/* listening */
.big-play { width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--lv, var(--accent)); color: var(--bg); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }
.big-play svg { width: 40px; height: 40px; }
.big-play:active { transform: scale(.96); }

/* comfort preferences */
html.pref-large { font-size: 112.5%; }
html.pref-xl { font-size: 125%; }
html.pref-spacing body { line-height: 1.9; word-spacing: .12em; }
html.pref-spacing .tgt { letter-spacing: .04em; }
html.pref-dys .tgt, html.pref-dys .tok, html.pref-dys .type-form input { font-family: 'Lexend', var(--font-target); font-weight: 500; letter-spacing: .03em; }
html.pref-calm *, html.pref-calm *::before, html.pref-calm *::after { animation: none !important; transition: none !important; }
html.pref-focus.in-lesson .tabs, html.pref-focus.in-lesson .foot, html.pref-focus.in-lesson .top-controls { display: none; }
html.pref-focus.in-lesson .lesson { max-width: 620px; }
html.pref-focus.in-lesson .lesson .eyebrow { display: none; }

@media (max-width: 640px) {
  .stat-grid.four { grid-template-columns: repeat(2, 1fr); }
  .lb-row { grid-template-columns: 2em auto minmax(0, 1fr) auto; }
  .lb-row .lg-chip { display: none; }
  .shop-item { grid-template-columns: auto minmax(0, 1fr); }
  .shop-item .btn { grid-column: 1 / -1; }
  .acc-name { display: none; }
}

/* placement test */
.place-cta {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 14px 16px;
  border: 1.5px dashed var(--rule); border-radius: 16px; background: transparent; color: var(--ink);
  font: 500 .98rem/1.35 var(--font-body); text-align: start; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.place-cta:hover { border-color: var(--accent); background: var(--surface-2); }
.place-cta svg { width: 26px; height: 26px; flex: none; color: var(--accent); }
.place-tag { margin-top: 10px; }
.link-btn { appearance: none; border: 0; background: none; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }
.place-intro { max-width: 560px; margin: 40px auto; text-align: center; display: grid; justify-items: center; gap: 6px; }
.place-intro h1 { margin: 6px 0 0; }
.place-intro .actions { justify-content: center; }
.place-icon svg { width: 72px; height: 72px; color: var(--muted); }
.pl-a1 { fill: var(--a1); } .pl-b1 { fill: var(--b1); } .pl-c1 { fill: var(--c1); }
.lv-chip.huge { font-size: 1.8rem; min-width: 3.4em; height: 2.3em; box-shadow: 0 10px 30px -10px var(--lv); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.opt.dunno { color: var(--muted); border-style: dashed; }
@media (prefers-reduced-motion: reduce) { .lv-chip.huge { animation: none; } }

/* week chart */
.week { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 150px; padding-top: 18px; margin-block: 8px 4px; direction: ltr; }
.week-goal { position: absolute; inset-inline: 0; border-top: 2px dashed var(--rule); margin-bottom: 22px; pointer-events: none; }
.wk-col { position: relative; display: grid; grid-template-rows: auto 1fr auto; align-items: end; justify-items: center; min-width: 0; }
.wk-bar { width: 100%; max-width: 36px; border-radius: 8px 8px 3px 3px; background: color-mix(in srgb, var(--accent) 35%, var(--surface-2)); align-self: end; transition: height .4s ease; }
.wk-col.hit .wk-bar { background: var(--ok); }
.wk-col.today .wk-bar { outline: 2px solid var(--accent); outline-offset: 2px; }
.wk-val { font-size: .75rem; color: var(--muted); min-height: 1.1em; }
.wk-day { font-size: .78rem; color: var(--muted); margin-top: 6px; height: 16px; }
.wk-col.today .wk-day { color: var(--ink); font-weight: 600; }

/* number hints for keyboard users on desktop */
@media (hover: hover) and (pointer: fine) {
  .options { counter-reset: opt; }
  .options .opt { position: relative; }
  .options .opt::after {
    counter-increment: opt; content: counter(opt); position: absolute; top: 6px; inset-inline-end: 8px;
    font: 600 .68rem/1 var(--font-target); color: var(--muted); border: 1px solid var(--rule); border-radius: 5px; padding: 2px 5px; opacity: .7;
  }
}

/* word details: example sentence + explanation */
.word-detail { display: grid; gap: 8px; margin-top: 12px; text-align: start; }
.wd-ex { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.wd-ex > span { display: grid; gap: 2px; }
.wd-ex .tr { color: var(--muted); font-size: .92rem; }
.wd-x { margin: 0; font-size: .95rem; line-height: 1.55; }
.wd-panel { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); min-height: 56px; }
.word-tile.sel { border-color: var(--lv); box-shadow: 0 0 0 2px color-mix(in srgb, var(--lv) 35%, transparent); }
.flash-back .word-detail { font-size: .95rem; }
/* review ladder */
.ladder { list-style: none; display: flex; gap: 6px; padding: 0; margin: 10px 0 14px; direction: ltr; justify-content: center; }
.ladder li { flex: 1; max-width: 54px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: .75rem; }
.ladder li.past { background: color-mix(in srgb, var(--ok) 25%, var(--surface-2)); color: var(--ink); }
.ladder li.here { background: var(--lv, var(--accent)); color: var(--bg); font-weight: 700; }

/* spoken praise */
.praise {
  position: fixed; z-index: 60; inset-inline: 0; margin-inline: auto; top: 18px; width: max-content; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--c1)));
  color: #fff; box-shadow: 0 14px 40px -12px color-mix(in srgb, var(--accent) 70%, transparent);
  animation: praise-in .45s cubic-bezier(.2, 1.4, .4, 1); transition: opacity .5s, transform .5s;
}
[dir="rtl"] .praise { padding: 10px 10px 10px 18px; }
.praise .tgt { color: #fff; }
.praise .tr { display: block; font-size: .85rem; opacity: .9; }
.praise-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / .22); font-weight: 700; font-size: 1.1rem; }
.praise.tier-8, .praise.tier-12 { background: linear-gradient(135deg, #f0b72a, #f07a50 55%, #a284f0); }
.praise.out { opacity: 0; transform: translateY(-12px); }
@keyframes praise-in { from { opacity: 0; transform: translateY(-16px) scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .praise { animation: none; } }
.pref-calm .praise { animation: none; }

/* theme toggle */
.theme-btn { appearance: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; transition: transform .2s, background-color .2s; }
.theme-btn:hover { transform: rotate(-12deg); }
.theme-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-btn .i-moon { fill: currentColor; stroke: none; display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: block; }
}

/* Plus: locked stations, plans, promo */
.station.locked .station-btn { opacity: .78; }
.station.locked .dot { display: grid; place-items: center; background: var(--surface); border-color: color-mix(in srgb, var(--lv) 50%, var(--rule)); }
.station.locked .dot svg { width: 10px; height: 10px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.pill.plus { background: linear-gradient(135deg, #f0b72a, #f07a50); color: #1b1300; font-weight: 600; letter-spacing: .02em; }
.plan-grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); max-width: 760px; }
.plan { position: relative; }
.plan-ribbon { position: absolute; top: -12px; inset-inline-end: 18px; padding: 4px 12px; border-radius: 999px; font: 700 .78rem/1 var(--font-target); background: linear-gradient(135deg, #f0b72a, #f07a50); color: #1b1300; box-shadow: 0 6px 18px -6px #f07a50; }
.plan-cta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; }
.plan-cta .btn { flex: 1; }
.promo { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--ok) 15%, var(--surface)); color: var(--ink); font-weight: 500; }
.promo.warn { background: color-mix(in srgb, var(--b1) 18%, var(--surface)); }

/* admin */
.admin { display: grid; gap: 16px; padding-block: 24px; }
.stat-grid.six { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.admin-search { width: 100%; font: inherit; padding: .7em 1em; border-radius: 12px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); }
.admin-users { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.au { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); }
.au-id { display: grid; min-width: 0; }
.au-id > span { overflow-wrap: anywhere; }
.au-acts { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pill.plan-plus { background: linear-gradient(135deg, #f0b72a, #f07a50); color: #1b1300; }
.pill.plan-gift { background: color-mix(in srgb, var(--c1) 22%, var(--surface)); color: var(--ink); }

/* personal study plan */
.plan-builder { padding-block: 24px; }
.plan-builder h1 { margin-top: 4px; }
.pb-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; margin-top: 20px; align-items: start; }
.pb-form { display: grid; gap: 10px; }
.pb-form h2 { font-size: 1.05rem; margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { appearance: none; font: 500 .95rem/1 var(--font-body); padding: .65em 1.05em; border-radius: 999px; border: 1.5px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s, background-color .15s, transform .12s; }
.chip:hover { border-color: var(--accent); }
.chip:active { transform: scale(.97); }
.chip[aria-checked="true"], .chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip.lv[aria-checked="true"] { background: var(--lv); border-color: var(--lv); color: var(--bg); }
.chip.lv { font-family: var(--font-target); font-weight: 700; }
.chip.ghost { border-style: dashed; color: var(--muted); }
.chips.days .chip { min-width: 46px; text-align: center; }
.pace-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.pace-card { appearance: none; text-align: start; display: grid; gap: 4px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--rule); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pace-card[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.pace-meter { display: flex; gap: 3px; margin-bottom: 4px; direction: ltr; }
.pace-meter i { width: 14px; height: 6px; border-radius: 3px; background: var(--surface-2); }
.pace-meter i.on { background: linear-gradient(90deg, var(--a1), var(--b1) 60%, var(--b2)); }
.pb-result { position: sticky; top: 16px; display: grid; gap: 14px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.pb-sum { font-weight: 500; }
.pb-week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.pb-week li { display: grid; gap: 4px; justify-items: center; padding: 8px 2px; border-radius: 12px; background: var(--surface-2); text-align: center; }
.pb-week li span { font-weight: 600; font-size: .85rem; }
.pb-week li small { font-size: .62rem; line-height: 1.2; color: var(--muted); }
.pb-week li.on { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.pb-week li.today { outline: 2px solid var(--accent); outline-offset: 1px; }
.pb-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.pb-timeline li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--rule); }
.pb-timeline li:last-child { border-bottom: 0; }
.btn.wide { width: 100%; }
@media (max-width: 760px) { .pb-grid { grid-template-columns: 1fr; } .pb-result { position: static; } }

/* today's plan on the map */
.today-plan, .plan-cta-card { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--rule); }
.tp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tp-head h3 { margin: 0; font-size: .95rem; }
.tp-head a { color: var(--accent); }
.today-plan ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.today-plan li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: .92rem; }
.tp-check { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--rule); }
.today-plan li.done .tp-check { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 3px var(--surface); }
.today-plan li.done > span:nth-child(2) { text-decoration: line-through; color: var(--muted); }
.plan-cta-card { appearance: none; width: 100%; display: flex; gap: 12px; align-items: center; text-align: start; font: inherit; color: var(--ink); cursor: pointer; border-style: dashed; }
.plan-cta-card:hover { border-color: var(--accent); }
.plan-cta-card > span:last-child { display: grid; }
.pcc-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; }

/* memory game */
.mem-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; perspective: 900px; }
@media (max-width: 560px) { .mem-board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mem { appearance: none; border: 0; padding: 0; background: none; aspect-ratio: 4 / 3; cursor: pointer; font: inherit; color: var(--ink); }
.mem-in { position: relative; display: block; width: 100%; height: 100%; transition: transform .45s cubic-bezier(.3, 1.3, .5, 1); transform-style: preserve-3d; }
.mem.up .mem-in { transform: rotateY(180deg); }
.mem-back, .mem-face { position: absolute; inset: 0; display: grid; place-items: center; padding: 6px; border-radius: 14px; backface-visibility: hidden; text-align: center; overflow-wrap: anywhere; font-size: .95rem; }
.mem-back { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 50%, var(--c1))); box-shadow: var(--shadow); }
.mem-back::after { content: ''; width: 34%; aspect-ratio: 1; border-radius: 50%; border: 3px solid rgb(255 255 255 / .35); }
.mem-face { background: var(--surface); border: 1.5px solid var(--rule); transform: rotateY(180deg); }
.mem.found .mem-face { border-color: var(--ok); background: var(--ok-soft); }
.pref-calm .mem-in { transition: none; }
/* spelling game */
.spell-slots { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 20px 0 14px; }
.slot { width: 38px; height: 46px; display: grid; place-items: center; border-bottom: 3px solid var(--rule); font: 700 1.5rem/1 var(--font-target); }
.slot.ok { border-color: var(--ok); color: var(--ink); }
.slot.shown { border-color: var(--bad); color: var(--bad); }
.spell-bank { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.spell-bank .tok { min-width: 46px; font: 700 1.2rem/1 var(--font-target); }
.g-memory { --g: var(--c1); } .g-spell { --g: var(--b2); }
.g-memory .game-art { color: var(--c1); } .g-memory .game-art rect { fill: var(--c1); } .g-memory .game-art .dim { fill: var(--surface-2); }
.g-spell .game-art { color: var(--a1); } .g-spell .game-art rect { fill: var(--a1); } .g-spell .game-art .dim { fill: var(--surface-2); }

/* =====================================================================
   Premium skin (v3): richer surfaces, art-led hero and level banners.
   ===================================================================== */
:root {
  --bg: #f4f5fb; --surface: #ffffff; --surface-2: #eef0f8; --rule: #e1e4f0; --ink: #141a2e; --muted: #5b6480;
  --accent: #3b4fd8; --accent-2: #7a4ce0; --gold: #f0b72a;
  --r: 18px;
  --shadow: 0 1px 2px rgb(20 26 46 / .05), 0 8px 24px -8px rgb(20 26 46 / .12);
  --shadow-lg: 0 2px 4px rgb(20 26 46 / .05), 0 24px 48px -16px rgb(40 52 140 / .25);
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0b1020; --surface: #141b30; --surface-2: #1c2440; --rule: #29324f; --ink: #eef1fa; --muted: #9ca6c2; --accent: #8c9cff; --accent-2: #b48cff; --accent-ink: #0b1020;
    --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 28px -10px rgb(0 0 0 / .6); --shadow-lg: 0 2px 4px rgb(0 0 0 / .4), 0 28px 56px -18px rgb(0 0 0 / .7); }
}
:root[data-theme="dark"] { --bg: #0b1020; --surface: #141b30; --surface-2: #1c2440; --rule: #29324f; --ink: #eef1fa; --muted: #9ca6c2; --accent: #8c9cff; --accent-2: #b48cff; --accent-ink: #0b1020;
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 10px 28px -10px rgb(0 0 0 / .6); --shadow-lg: 0 2px 4px rgb(0 0 0 / .4), 0 28px 56px -18px rgb(0 0 0 / .7); }

body {
  background:
    radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
#shell { max-width: 1120px; }

/* header: sticky glass bar with pill navigation */
.top { position: sticky; top: 0; z-index: 30; padding-block: 12px 10px; margin-inline: -16px; padding-inline: 16px;
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent); }
.brand-text { font-size: 1.4rem; }
.brand-glitz { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tabs { border-bottom: 0; gap: 6px; padding: 4px; background: var(--surface-2); border-radius: 999px; width: max-content; max-width: 100%; }
.tabs a { border: 0; margin: 0; border-radius: 999px; padding: .55em 1em; font-size: .95rem; transition: background-color .15s, color .15s; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* buttons */
.btn { font-weight: 600; transition: transform .15s ease, box-shadow .2s ease, background-color .15s; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn.primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--accent) 90%, transparent); }
:root[data-theme="dark"] .btn.primary { color: #0b1020; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #0b1020; } }
.btn.ghost { background: var(--surface); }

/* art-led hero */
.hero { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 22px; }
.stage {
  position: relative; overflow: hidden; border-radius: 28px; padding: 28px; box-shadow: var(--shadow-lg);
  background:
    radial-gradient(600px 300px at 100% 0%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 55%, color-mix(in srgb, var(--gold) 10%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
}
.hero-art { display: block; width: calc(100% + 56px); max-width: none; height: auto; margin: -28px -28px 6px; aspect-ratio: 1600 / 700; object-fit: cover; object-position: center 40%;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.hero-main h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); max-width: 22ch; }
.next-card { border-radius: 18px; border-inline-start-width: 0; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.next-card::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 6px; background: var(--lv); }
.stats { border-radius: 24px; padding: 20px; border: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); }
.stat-grid div { border-radius: 14px; }
.ring-fg { stroke: var(--accent); }

/* levels: banner with art + lesson cards */
.line { margin-top: 44px; gap: 34px; }
.level-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 0; padding: 0; overflow: hidden;
  border-radius: 24px; background: linear-gradient(135deg, color-mix(in srgb, var(--lv) 16%, var(--surface)), var(--surface)); box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--lv) 25%, var(--rule)); }
.level-art { order: 2; width: 100%; height: 100%; min-height: 150px; max-height: 210px; object-fit: cover; }
.lh-text { display: grid; align-content: center; justify-items: start; gap: 6px; padding: 20px 24px; }
.lh-text h2 { font-size: 1.6rem; }
.lh-meta { color: var(--muted); display: flex; gap: 6px; align-items: center; }
.lh-bar { width: 100%; max-width: 260px; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--lv) 18%, var(--surface-2)); overflow: hidden; }
.lh-bar span { display: block; height: 100%; background: var(--lv); border-radius: 99px; }
.stations { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; padding: 14px 0 0; }
.stations::before { display: none; }
.station { padding: 0; }
.station-btn { grid-template-columns: auto minmax(0, 1fr) auto; height: 100%; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--rule); box-shadow: 0 1px 2px rgb(20 26 46 / .04);
  transition: transform .15s ease, box-shadow .2s ease, border-color .15s; }
.station-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--lv) 45%, var(--rule)); background: var(--surface); }
.dot { position: static; grid-column: 1; width: 34px; height: 34px; border-width: 0; display: grid; place-items: center; font: 700 .9rem/1 var(--font-target);
  background: color-mix(in srgb, var(--lv) 14%, var(--surface)); color: var(--lv); }
.dot svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.station.done .dot { background: var(--lv); color: var(--bg); }
.station.next .dot { width: 34px; height: 34px; background: var(--lv); color: var(--bg); }
.station.next .station-btn { border-color: var(--lv); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lv) 20%, transparent), var(--shadow); }
.station.locked .dot { background: var(--surface-2); }
.st-title { font-size: 1rem; }

/* mascot & art images */
.mascot-img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; box-shadow: var(--shadow-lg); margin-inline: auto; }
.mascot-img.small { width: 96px; height: 96px; margin-inline: 0; }
.finish .mascot-img { animation: pop .6s cubic-bezier(.2, 1.4, .4, 1); }
.empty .mascot-img { width: 130px; height: 130px; margin-bottom: 8px; }
.games-hero { margin-bottom: 18px; }
.games-hero .hero-art { aspect-ratio: 900 / 360; object-position: center 45%; }
.praise-m { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.hero-art, .level-art, .mascot-img) { filter: brightness(.9) saturate(1.05); } }
:root[data-theme="dark"] :is(.hero-art, .level-art, .mascot-img) { filter: brightness(.9) saturate(1.05); }

/* cards elsewhere */
.game-card, .plan, .panel, .flash, .prompt, .tip, .pb-result { border-radius: 22px; }
.game-card { border: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); transition: transform .15s ease, box-shadow .2s ease; }
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.plan.featured { border: 0; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 2px solid transparent; box-shadow: var(--shadow-lg); }
.price .num { font-size: 2.2rem; font-weight: 700; }
.opt { border-radius: 16px; transition: border-color .15s, transform .12s, background-color .15s; }
.opt:hover:not(:disabled) { transform: translateY(-1px); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .stage { padding: 20px; border-radius: 22px; }
  .hero-art { width: calc(100% + 40px); margin: -20px -20px 4px; }
  .level-head { grid-template-columns: 1fr; }
  .level-art { order: 0; max-height: 150px; }
  .lh-text { padding: 16px 18px; }
  .tabs { width: 100%; }
  .top { margin-inline: -16px; }
}
@media (prefers-reduced-motion: reduce) { .station-btn, .game-card, .btn { transition: none; } .station-btn:hover, .game-card:hover { transform: none; } }
.pref-calm :is(.station-btn, .game-card, .opt, .btn):hover { transform: none; }
.top { box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--bg) 78%, transparent); clip-path: inset(0 -100vmax); }
@media (max-width: 760px) { .top { position: static; backdrop-filter: none; -webkit-backdrop-filter: none; } }
.hero-art { max-height: 300px; }
.games-hero .hero-art { max-height: 240px; object-position: center 40%; }

/* YouTube lessons */
.videos { display: grid; gap: 18px; padding-block: 8px; }
.vid-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.vid-cat { width: 150px; height: 150px; object-fit: contain; border-radius: 24px; background: #fff; }
.topic-chips { margin-top: 4px; }
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.vid-card { appearance: none; text-align: start; padding: 0; border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; display: grid; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .2s ease; }
.vid-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.vid-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--surface-2); }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .92); box-shadow: 0 8px 24px rgb(0 0 0 / .3); transition: transform .2s; }
.vid-play svg { width: 24px; height: 24px; fill: #e5322d; margin-inline-start: 3px; }
.vid-card:hover .vid-play { transform: scale(1.08); }
.vid-len { position: absolute; bottom: 8px; inset-inline-end: 8px; padding: 2px 8px; border-radius: 6px; background: rgb(0 0 0 / .7); color: #fff; font-size: .78rem; }
.vid-body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.vid-body strong { font-family: var(--font-target); font-size: 1.05rem; line-height: 1.3; text-align: left; }
.vid-tags { display: flex; gap: 8px; align-items: center; }
.vplay { display: grid; gap: 14px; max-width: 920px; margin: 0 auto; }
.vplay .play-head h1 { font-family: var(--font-target); font-size: clamp(1.1rem, 2.6vw, 1.5rem); flex: 1; }
.vframe { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vq { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; background: rgb(8 12 28 / .55); backdrop-filter: blur(3px); overflow: auto; }
.vq-card { position: relative; width: min(560px, 100%); background: var(--surface); color: var(--ink); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-lg); display: grid; gap: 10px; animation: pop .35s cubic-bezier(.2, 1.4, .4, 1); }
.vq-card h2 { font-family: var(--font-target); font-weight: 700; font-size: 1.25rem; text-align: left; }
.vq-cat { position: absolute; top: -34px; inset-inline-end: 14px; width: 68px; height: 68px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: var(--shadow); }
.vq-cat.big { position: static; width: 110px; height: 110px; margin: 0 auto; }
.vq-tr summary { cursor: pointer; color: var(--accent); font-size: .9rem; }
.vq-tr p { margin-top: 4px; color: var(--muted); }
.options.one { grid-template-columns: 1fr; }
.options.one .opt { text-align: left; padding: 12px 14px; min-height: 0; font-size: 1rem; }
.vq-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 8px; }
.vq-foot .good { color: var(--ok); } .vq-foot .bad { color: var(--bad); }
.vq-track { position: relative; list-style: none; margin: 0; padding: 0; height: 8px; border-radius: 99px; background: var(--surface-2); direction: ltr; }
.vq-track li { position: absolute; top: 50%; left: var(--pos); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.vq-track li.ok { background: var(--ok); border-color: var(--ok); }
.vq-track li.bad { background: var(--bad); border-color: var(--bad); }
@media (max-width: 640px) {
  .vid-hero { grid-template-columns: 1fr; } .vid-cat { width: 96px; height: 96px; order: -1; }
  .vq { position: static; background: none; backdrop-filter: none; padding: 12px 0 0; }
  .vframe:has(.vq:not([hidden])) { aspect-ratio: auto; overflow: visible; background: none; box-shadow: none; }
  .vframe:has(.vq:not([hidden])) iframe { position: relative; aspect-ratio: 16 / 9; height: auto; border-radius: 16px; }
}
.lv-more { display: block; margin: 12px auto 0; }
.final-dots { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; direction: ltr; }
.final-dots li { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-2); }
.final-dots li.now { background: linear-gradient(90deg, var(--a2), var(--c1)); }
.final-dots li.ok { background: var(--ok); } .final-dots li.bad { background: var(--bad); }
.vq-card.final { background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 10%, var(--surface)), var(--surface) 60%); }
.vq-card h2 .speak { vertical-align: middle; }
.vid-xp { font: 700 1.6rem/1 var(--font-target); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Polly the cat teacher */
.polly { display: flex; align-items: flex-end; gap: 10px; width: 100%; }
.polly-cat { width: 92px; height: 92px; flex: none; object-fit: contain; border-radius: 50%; background: #fff; box-shadow: var(--shadow); animation: polly-bob 3.2s ease-in-out infinite; }
.polly-bubble { position: relative; flex: 1; min-width: 0; padding: 12px 44px 12px 16px; border-radius: 18px 18px 18px 6px; background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow); }
[dir="rtl"] .polly-bubble { padding: 12px 16px 12px 44px; border-radius: 18px 18px 6px 18px; }
.polly-bubble p { margin: 0; text-align: start; }
.polly-bubble .tgt { font-size: 1.02rem; display: block; text-align: left; }
.polly-bubble .tr { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.polly-name { font: 700 .72rem/1 var(--font-target); letter-spacing: .08em; text-transform: uppercase; color: var(--c1); }
.polly-say { position: absolute; top: 10px; inset-inline-end: 10px; width: 30px; height: 30px; border-radius: 50%; border: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); cursor: pointer; }
.polly-say svg { width: 18px; height: 18px; }
@keyframes polly-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-2deg); } }
.teach-head { display: flex; align-items: center; gap: 12px; }
.teach-cat { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: var(--shadow); }
.fb-cat { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #fff; flex: none; }
.mascot-img { object-fit: contain; background: #fff; }
@media (prefers-reduced-motion: reduce) { .polly-cat { animation: none; } }
.pref-calm .polly-cat, .pref-focus .polly { animation: none; }
.pref-focus .polly { display: none; }
.polly-cat { width: 124px; height: 124px; border-radius: 0; background: none; box-shadow: none; mix-blend-mode: multiply; filter: drop-shadow(0 6px 10px rgb(20 26 46 / .15)); }
:root[data-theme="dark"] .polly-cat { mix-blend-mode: normal; border-radius: 24px; background: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .polly-cat { mix-blend-mode: normal; border-radius: 24px; background: #fff; } }
@media (max-width: 560px) { .polly-cat { width: 92px; height: 92px; } }

/* coach */
.coach { display: grid; gap: 18px; }
.coach-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; }
.coach-cat { width: 130px; height: 130px; object-fit: contain; mix-blend-mode: multiply; }
:root[data-theme="dark"] .coach-cat { mix-blend-mode: normal; background: #fff; border-radius: 24px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .coach-cat { mix-blend-mode: normal; background: #fff; border-radius: 24px; } }
.coach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.skill-bars { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.skill-bars li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 3em; gap: 10px; align-items: center; font-size: .92rem; }
.skill-bars .sb { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; direction: ltr; }
.skill-bars .sb span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--a2), var(--a1)); }
.skill-bars li.weak .sb span { background: linear-gradient(90deg, var(--b2), var(--b1)); }
.skill-bars li.weak > span:first-child { font-weight: 600; }
.coach-tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--b1) 12%, var(--surface)); }
.coach-tip img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #fff; flex: none; }
.hard-words { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.hard-words li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.hard-words li > span:nth-child(2) { display: grid; }
.hard-words .tr { color: var(--muted); font-size: .88rem; }
.bad-pill { background: var(--bad-soft); color: var(--bad); }
.personal { position: relative; display: grid; gap: 10px; background: linear-gradient(150deg, color-mix(in srgb, var(--c1) 12%, var(--surface)), var(--surface) 60%); }
.personal-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.pill.pro { background: linear-gradient(135deg, var(--c1), var(--b2)); color: #fff; font-weight: 600; }
.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.task-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.task-list li.done .tp-check { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 3px var(--surface); }
.task-list li.done > span:last-child { text-decoration: line-through; color: var(--muted); }
.personal.locked .task-list { filter: blur(3px); user-select: none; pointer-events: none; }
.pro-lock { display: grid; gap: 10px; justify-items: start; }
.num.up { color: var(--ok); } .num.down { color: var(--bad); }
.plan-grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); max-width: none; }
@media (max-width: 560px) { .coach-hero { grid-template-columns: 1fr; } .coach-cat { width: 96px; height: 96px; } .skill-bars li { grid-template-columns: 7.5em minmax(0, 1fr) 2.6em; } }
