/* NATE-ive English — app styles. Brand: navy #12224F, cream #FBF7EC, sand #F2EAD6, brick #9B2226, pink #E8B4B6, muted #4A5677 */
:root {
  --navy: #12224F; --cream: #FBF7EC; --sand: #F2EAD6; --brick: #9B2226; --pink: #E8B4B6; --muted: #4A5677;
  --bg: var(--cream); --surface: #ffffff; --surface-2: var(--sand); --text: #14193a; --text-2: var(--muted);
  --accent: var(--brick); --accent-text: #ffffff; --primary: var(--navy); --primary-text: #ffffff;
  --ok: #1f6f4a; --ok-bg: #e3f2ea; --bad: var(--brick); --bad-bg: #f8e3e3; --line: rgba(18,34,79,.12);
  --radius: 16px; --radius-sm: 10px; --shadow: 0 1px 2px rgba(18,34,79,.08), 0 4px 16px rgba(18,34,79,.06);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Anton", "Oswald", "Bebas Neue", Impact, "Arial Narrow Bold", "Helvetica Neue Condensed", sans-serif;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
  --tabbar-h: 62px; --topbar-h: 52px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1433; --surface: #13204a; --surface-2: #1a2a5c; --text: #f4efe2; --text-2: #b9c0d8;
    --accent: #e8b4b6; --accent-text: #12224F; --primary: #f2ead6; --primary-text: #12224F;
    --ok: #8fd6b0; --ok-bg: #173b2c; --bad: #f2a1a4; --bad-bg: #44181d; --line: rgba(244,239,226,.14);
    --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1433; --surface: #13204a; --surface-2: #1a2a5c; --text: #f4efe2; --text-2: #b9c0d8;
  --accent: #e8b4b6; --accent-text: #12224F; --primary: #f2ead6; --primary-text: #12224F;
  --ok: #8fd6b0; --ok-bg: #173b2c; --bad: #f2a1a4; --bad-bg: #44181d; --line: rgba(244,239,226,.14);
  --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { font: 16px/1.5 var(--font); overscroll-behavior-y: none; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: calc(8px + var(--sat)); z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Shell */
.app { min-height: 100%; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  padding: calc(var(--sat) + 6px) calc(16px + var(--sar)) 6px calc(16px + var(--sal)); min-height: calc(var(--topbar-h) + var(--sat));
  background: var(--primary); color: var(--primary-text); }
:root[data-theme="dark"] .topbar, .topbar { box-shadow: 0 1px 0 var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topbar { background: #0b1433; color: var(--text); } }
:root[data-theme="dark"] .topbar { background: #0b1433; color: var(--text); }
.topbar-title { flex: 1; margin: 0; font: 400 20px/1.1 var(--display); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; outline: none; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.icon-btn:active { background: rgba(255,255,255,.12); }
.streak-pill { font-size: 14px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.14); }
.view { flex: 1; width: 100%; max-width: 680px; margin: 0 auto; outline: none;
  padding: 16px calc(16px + var(--sar)) calc(var(--tabbar-h) + var(--sab) + 24px) calc(16px + var(--sal)); }
.app.no-tabs .view { padding-bottom: calc(var(--sab) + 24px); }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 0 var(--sar) var(--sab) var(--sal); min-height: calc(var(--tabbar-h) + var(--sab));
  background: var(--surface); border-top: 1px solid var(--line); }
.app.no-tabs .tabbar { display: none; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none;
  font-size: 11px; font-weight: 600; color: var(--text-2); min-height: 44px; }
.tabbar a[aria-current="page"] { color: var(--accent); }
.tabbar a[aria-current="page"] svg { stroke-width: 2.4; }
.loading { padding: 40px 0; text-align: center; color: var(--text-2); }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--sab) + 16px); transform: translate(-50%, 20px); opacity: 0;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 99px; font-size: 14px; font-weight: 600; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.view.enter { animation: enter .22s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.view.enter-back { animation: enterback .22s ease-out; }
@keyframes enterback { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view.enter, .view.enter-back { animation: none; } .toast { transition: none; } }

/* Type */
h2 { font: 400 26px/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 8px 0 12px; }
h3 { font-size: 17px; margin: 0 0 4px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 28px 0 10px; }
.section-title h2 { margin: 0; font-size: 20px; }
.section-title a, .link-btn { font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; background: none; border: 0; padding: 8px 0; cursor: pointer; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.en { font-weight: 700; }
p { margin: 0 0 10px; }

/* Cards */
.card { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; border: 1px solid var(--line); }
.card.hero { background: var(--primary); color: var(--primary-text); border: 0; }
.card.hero .muted { color: inherit; opacity: .78; }
.card.soft { background: var(--surface-2); box-shadow: none; }
.card.cta { background: var(--surface-2); border: 2px solid var(--accent); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.card.hero .eyebrow { color: var(--pink); }
.big-en { font: 400 30px/1.1 var(--display); text-transform: none; margin: 4px 0 8px; letter-spacing: .01em; }
.list { display: grid; gap: 10px; }
.item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; text-decoration: none; cursor: pointer; min-height: 64px; }
.item:active { transform: scale(.99); }
.item .body { flex: 1; min-width: 0; }
.item .title { font-weight: 700; display: block; }
.item .sub { font-size: 14px; color: var(--text-2); display: block; overflow: hidden; text-overflow: ellipsis; }
.item .chev { color: var(--text-2); flex: none; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--text); margin-right: 4px; white-space: nowrap; }
.badge.lvl { background: var(--primary); color: var(--primary-text); }
.badge.reg-slang { background: var(--pink); color: #12224F; }
.badge.reg-informal { background: #f6e1b8; color: #12224F; }
.badge.reg-formal { background: #d6def2; color: #12224F; }
.badge.done { background: var(--ok-bg); color: var(--ok); }
.thumb { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--accent); }
.hscroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: 0 0 78%; max-width: 320px; margin-bottom: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 18px; border-radius: 99px;
  border: 0; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--accent); color: var(--accent-text); }
.btn.secondary { background: var(--surface-2); color: var(--text); }
.btn.ghost { background: transparent; color: var(--accent); border: 2px solid currentColor; }
.btn.light { background: var(--cream); color: var(--navy); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 20px; height: 20px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.btn-row .btn { flex: 1 1 auto; }
.play { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--accent); cursor: pointer; flex: none; }
.play svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.fav { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--text-2); cursor: pointer; flex: none; }
.fav[aria-pressed="true"] { color: var(--accent); }
.fav[aria-pressed="true"] svg { fill: currentColor; }

/* Chips & forms */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 38px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--primary); color: var(--primary-text); border-color: transparent; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
textarea.input { min-height: 96px; resize: vertical; }
.search { position: sticky; top: calc(var(--topbar-h) + var(--sat)); z-index: 5; background: var(--bg); padding: 4px 0 8px; margin-top: -4px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: 0; }
.switch { appearance: none; width: 50px; height: 30px; border-radius: 99px; background: var(--surface-2); position: relative; cursor: pointer; flex: none; border: 1px solid var(--line); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: left .15s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { left: 23px; }

/* Progress */
.ring-wrap { display: flex; align-items: center; gap: 16px; }
.ring { width: 76px; height: 76px; flex: none; }
.ring circle { fill: none; stroke-width: 8; }
.ring .track { stroke: var(--surface-2); }
.ring .bar { stroke: var(--accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .4s; }
.card.hero .ring .track { stroke: rgba(255,255,255,.18); }
.card.hero .ring .bar { stroke: var(--pink); }
.bar-track { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar-fill { height: 100%; background: var(--accent); border-radius: 99px; width: 0; transition: width .3s; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: center; }
.stat b { display: block; font: 400 28px/1.1 var(--display); }
.stat span { font-size: 12px; color: var(--text-2); font-weight: 600; }

/* Player */
.player-head { margin-bottom: 14px; }
.steps-bar { display: flex; gap: 4px; margin: 4px 0 16px; }
.steps-bar i { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-2); }
.steps-bar i.on { background: var(--accent); }
.dialog { display: grid; gap: 10px; }
.line { display: flex; gap: 10px; align-items: flex-start; }
.line .bubble { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 10px 12px; }
.line.b { flex-direction: row-reverse; }
.line.b .bubble { background: var(--surface-2); border-radius: 16px 4px 16px 16px; }
.line .who { font-size: 12px; font-weight: 700; color: var(--accent); display: block; }
.line .tr { font-size: 14px; color: var(--text-2); display: block; margin-top: 2px; }
.line.me .bubble { background: var(--primary); color: var(--primary-text); border-color: transparent; }
.line.me .who { color: var(--pink); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 10px; }
.compare > div { padding: 12px; }
.compare .book { background: var(--surface-2); }
.compare .street { background: var(--surface); }
.compare .lbl { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); display: block; margin-bottom: 4px; }
.compare .book .txt { text-decoration: line-through; text-decoration-color: rgba(155,34,38,.5); }
.compare .note { grid-column: 1 / -1; background: var(--surface); border-top: 1px dashed var(--line); font-size: 14px; color: var(--text-2); }
.points { margin: 0; padding-left: 20px; }
.points li { margin-bottom: 10px; }
.options { display: grid; gap: 10px; margin: 12px 0; }
.opt { text-align: left; min-height: 52px; padding: 12px 14px; border-radius: var(--radius-sm); border: 2px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; }
.opt.right { border-color: var(--ok); background: var(--ok-bg); }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); }
.opt:disabled { cursor: default; }
.feedback { border-radius: var(--radius-sm); padding: 12px; margin-top: 8px; font-size: 15px; }
.feedback.ok { background: var(--ok-bg); color: var(--ok); }
.feedback.no { background: var(--bad-bg); color: var(--bad); }
.player-foot { position: sticky; bottom: 0; padding: 12px 0 calc(12px + var(--sab)); background: linear-gradient(to top, var(--bg) 70%, transparent); margin-top: 16px; }
.flash { text-align: center; min-height: 220px; display: flex; flex-direction: column; justify-content: center; }
.flash .big-en { font-size: 34px; }
.done-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 8px auto 12px; }
.done-mark svg { width: 40px; height: 40px; stroke-width: 3; }
.embed-box { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.embed-box iframe { display: block; width: 100%; height: 352px; border: 0; }
.vocab-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.vocab-row:last-child { border-bottom: 0; }
.vocab-row .body { flex: 1; }
.empty { text-align: center; padding: 32px 16px; color: var(--text-2); }
.onboard { min-height: calc(100vh - 120px); display: flex; flex-direction: column; justify-content: center; }
.level-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.level-grid .opt { text-align: center; }
.level-grid .opt[aria-pressed="true"] { border-color: var(--accent); background: var(--surface-2); }
.level-grid .opt small { display: block; font-weight: 400; color: var(--text-2); font-size: 13px; }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); width: 100%; max-width: 680px; max-height: 88vh; overflow-y: auto; border-radius: 22px 22px 0 0;
  padding: 10px calc(16px + var(--sar)) calc(24px + var(--sab)) calc(16px + var(--sal)); animation: up .2s ease-out; }
.sheet .grab { width: 40px; height: 5px; border-radius: 99px; background: var(--line); margin: 0 auto 12px; }
@keyframes up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } }
@media (min-width: 720px) { .hscroll > * { flex-basis: 300px; } }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.card.hero .play { background: rgba(255,255,255,.14); color: inherit; }
.card.hero .fav { color: inherit; }
.card.hero .link-btn { color: var(--pink); }
.row.center { justify-content: center; }
[hidden] { display: none !important; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 120px; margin-bottom: 10px; }
.wk { display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.wk span { font-size: 12px; color: var(--text-2); font-weight: 700; }
.wk-bar { flex: 1; width: 100%; max-width: 28px; display: flex; align-items: flex-end; background: var(--surface-2); border-radius: 8px; overflow: hidden; }
.wk-bar i { display: block; width: 100%; background: var(--accent); border-radius: 8px; }
.level-grid + .small { margin-top: 8px; }
a.vocab-row { text-decoration: none; }
select.chip { appearance: auto; }
a.chip { text-decoration: none; color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.item a, a.body { text-decoration: none; color: inherit; }
.chip[aria-selected="true"] .muted, .chip[aria-pressed="true"] .muted { color: inherit; opacity: .75; }

/* ---- Website match: Anton uppercase display, DM Sans text ---- */
.topbar .icon-btn.theme-btn { margin-left: 0; margin-right: -10px; color: inherit; }
.topbar .icon-btn svg { width: 22px; height: 22px; }
.topbar-title { font-size: 22px; letter-spacing: .03em; }
h2 { letter-spacing: .02em; }
.big-en { font: 700 26px/1.2 var(--font); letter-spacing: -.01em; }
.flash .big-en { font-size: 30px; }
.card.hero .big-en { font: 400 34px/1.05 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.hero-title { font: 400 clamp(34px, 9vw, 52px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 6px 0 14px; text-wrap: balance; }
.hero-title em { font-style: normal; color: var(--accent); }
.eyebrow { letter-spacing: .12em; }
.btn { letter-spacing: .01em; }

/* Hero card keeps the website's navy look in both themes */
:root { --hero-bg: var(--navy); --hero-text: #ffffff; --hero-btn-bg: var(--cream); --hero-btn-text: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hero-bg: #1a2a5c; --hero-text: #f4efe2; } }
:root[data-theme="dark"] { --hero-bg: #1a2a5c; --hero-text: #f4efe2; }
.card.hero { background: var(--hero-bg); color: var(--hero-text); }
.card.hero .btn.light { background: var(--hero-btn-bg); color: var(--hero-btn-text); }

/* ================= Website look (n8ivenglish.es) ================= */
:root {
  --topbar-bg: var(--cream); --topbar-text: var(--navy); --heading: var(--navy); --heading-em: var(--brick);
  --btn-bg: var(--brick); --btn-text: #ffffff; --btn-line: var(--brick);
  --card-bg: transparent; --card-line: rgba(18,34,79,.7); --bar: var(--brick);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --topbar-bg: #0b1433; --topbar-text: #f4efe2; --heading: #f4efe2; --heading-em: #e8b4b6;
  --btn-bg: #b8323a; --btn-text: #ffffff; --btn-line: #e8b4b6;
  --card-bg: rgba(255,255,255,.03); --card-line: rgba(244,239,226,.28); --bar: #e8b4b6; } }
:root[data-theme="dark"] {
  --topbar-bg: #0b1433; --topbar-text: #f4efe2; --heading: #f4efe2; --heading-em: #e8b4b6;
  --btn-bg: #b8323a; --btn-text: #ffffff; --btn-line: #e8b4b6;
  --card-bg: rgba(255,255,255,.03); --card-line: rgba(244,239,226,.28); --bar: #e8b4b6; }

/* Header: light bar like the site, navy Anton title */
.topbar, :root[data-theme="dark"] .topbar { background: var(--topbar-bg); color: var(--topbar-text); box-shadow: 0 1px 0 var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .topbar { background: var(--topbar-bg); color: var(--topbar-text); } }
.streak-pill { background: var(--surface-2); color: var(--text); }
.icon-btn:active { background: var(--surface-2); }

/* Headlines: navy Anton, key word in brick */
h2, .section-title h2 { color: var(--heading); font-size: 28px; line-height: 1; letter-spacing: .01em; }
.section-title h2 { font-size: 26px; }
h2 em, .hero-title em { font-style: normal; color: var(--heading-em); }
.hero-title { color: var(--heading); }
.eyebrow { font-weight: 500; letter-spacing: .14em; }
.card.hero .eyebrow { color: var(--pink); }

/* Cards: thin outline, no shadow */
.card, .item, .stat, .compare { background: var(--card-bg); border: 1px solid var(--card-line); box-shadow: none; border-radius: 18px; }
.card.soft { background: var(--surface-2); border-color: transparent; }
.card.cta { background: var(--surface-2); border: 1px solid var(--card-line); }
.card.hero { border: 0; border-radius: 18px; }
.compare .book { background: var(--surface-2); }
.compare .street, .compare .note { background: transparent; }
.line .bubble { border-color: var(--card-line); }
.line.b .bubble { border-color: transparent; }
.thumb { background: transparent; border: 1px solid var(--card-line); }
.stat b { color: var(--heading); font-size: 34px; }

/* Buttons: brick pills, outline secondary */
.btn { background: var(--btn-bg); color: var(--btn-text); font-weight: 500; }
.btn.secondary, .btn.ghost { background: transparent; color: var(--heading-em); border: 1.5px solid var(--btn-line); }
.card.hero .btn.light { background: var(--cream); color: var(--navy); }
.opt { border-width: 1px; border-color: var(--card-line); background: var(--card-bg); }
.opt.right, .opt.wrong { border-width: 2px; }
.chip { background: transparent; border-color: var(--card-line); }
.play { background: transparent; border: 1px solid var(--card-line); color: var(--heading-em); }

/* Lists with the brick side bar */
.points { list-style: none; padding: 0; display: grid; gap: 14px; }
.points li { margin: 0; padding-left: 16px; border-left: 3px solid var(--bar); }
.offer-list { display: grid; gap: 12px; margin-top: 8px; }
.offer-list > div { padding-left: 14px; border-left: 3px solid var(--bar); }
.offer-list b { display: block; color: var(--heading); text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }

/* Navy banner, like the site's "PRONUNCIACIÓN | COMPRENSIÓN ORAL…" block */
.banner { background: var(--navy); color: #fbf7ec; border-radius: 18px; padding: 22px 18px; text-align: center;
  font: 400 22px/1.15 var(--display); text-transform: uppercase; letter-spacing: .03em; text-wrap: balance; margin: 4px 0 12px; }
.banner i { font-style: normal; color: var(--pink); padding: 0 .2em; }
:root[data-theme="dark"] .banner { background: #1a2a5c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .banner { background: #1a2a5c; } }
.step-num { font: 400 40px/1 var(--display); color: var(--heading); display: block; margin-bottom: 6px; }
.banner { font-size: clamp(18px, 5.4vw, 24px); overflow-wrap: anywhere; }
.banner i { padding: 0; }
.account-slot:empty { display: none; }
details.danger { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
details.danger summary { cursor: pointer; color: var(--text-2); min-height: 32px; }
.code-input { font: 700 28px/1 var(--font); letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }

/* ---- Course ---- */
.thumb.wk b { font: 400 20px/1 var(--display); color: var(--heading); }
.thumb.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.item.current { border-width: 2px; border-color: var(--heading-em); }
.item.static { cursor: default; }
.item.static:active { transform: none; }
.en-obj { font-weight: 500; }
.course-hero .big-en { margin-bottom: 12px; }
.course-hero .bar-track { background: rgba(255,255,255,.18); }
.course-hero .bar-fill { background: var(--pink); }
.btn.ghost.on-hero { color: var(--hero-text); border-color: rgba(255,255,255,.5); }
.btn.sm { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.check-row:last-child { border-bottom: 0; }
.check-row input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--btn-bg); flex: none; }
.listen-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav-weeks { margin-top: 18px; }
.week-pick { margin-top: 12px; }
.card.hero.compact { padding: 12px 16px; } .card.hero.compact .ring { width: 52px; height: 52px; } .card.hero.compact .btn-row { display: none; }
.card.hero.compact { background: var(--surface-2); color: var(--text); padding: 12px 16px; }
.card.hero.compact .eyebrow { color: var(--heading-em); }
.card.hero.compact .muted { color: var(--text-2); opacity: 1; }
.card.hero.compact .ring .track { stroke: var(--card-line); }
.card.hero.compact .ring .bar { stroke: var(--btn-bg); }
/* audit fixes */
.item .thumb { display: grid; place-items: center; width: 44px; height: 44px; align-self: center; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card.hero.compact { background: var(--surface); border: 1px solid var(--card-line); } }
:root[data-theme="dark"] .card.hero.compact { background: var(--surface); border: 1px solid var(--card-line); }