/* Habla Natural — Profe Sofía palette (wine, cream, gold), unit cards, LEGO bricks, Sofía notes. */
:root {
  --bg: #fbf6f0; --card: #ffffff; --card2: #f6ede4; --ink: #2a1c1f; --muted: #7c6a6c; --line: #ecdcd3;
  --brand: #8a1f3d; --brand-2: #6e1530; --hot: #b8325a; --hot-2: #9a2549; --gold: #e0a43a; --teal: #2459c7;
  --good: #23874d; --good-bg: #e7f5ec; --near: #b7860b; --near-bg: #fdf3d8; --bad: #c63d3d; --bad-bg: #fbe9e7;
  --brick-r: #b8325a; --brick-b: #2f5bd9; --brick-y: #f2b31a;
  --shadow: 0 1px 2px rgba(70, 20, 35, .06), 0 4px 14px rgba(70, 20, 35, .07);
  --r: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #160f11; --card: #22181b; --card2: #2c2023; --ink: #f6ece9; --muted: #b29fa1; --line: #3d2c30;
    --brand: #a3264a; --brand-2: #861d3c; --hot: #e2557d; --hot-2: #c94468; --teal: #8fb0ff;
    --good: #4cc27d; --good-bg: #16301f; --near: #e6b43a; --near-bg: #33290f; --bad: #ef6b6b; --bad-bg: #3a1a18;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #160f11; --card: #22181b; --card2: #2c2023; --ink: #f6ece9; --muted: #b29fa1; --line: #3d2c30;
  --brand: #a3264a; --brand-2: #861d3c; --hot: #e2557d; --hot-2: #c94468; --teal: #8fb0ff;
  --good: #4cc27d; --good-bg: #16301f; --near: #e6b43a; --near-bg: #33290f; --bad: #ef6b6b; --bad-bg: #3a1a18;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 var(--font); min-height: 100vh; min-height: 100dvh; overscroll-behavior-y: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
input, select, textarea { font: inherit; color: var(--ink); }
h1, h2, h3 { font-family: var(--round); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
p { margin: 0 0 .8em; }
details summary { cursor: pointer; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; justify-content: center; }
.pad { padding: 20px 0; }
.pad-x { padding: 0 2px 8px; }
.row { display: flex; align-items: center; }
.gap { gap: 10px; }
.grow { flex: 1; min-width: 0; }
.wide { width: 100%; }

/* ---------- layout ---------- */
#app { max-width: 560px; margin: 0 auto; }
.page { padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 96px); }
body.immersive .page { padding-bottom: calc(env(safe-area-inset-bottom) + 24px); }
.page-head h1 { font-size: 32px; font-weight: 800; }
.page-head p { font-size: 15px; }
.section-label { font-family: var(--round); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 22px 2px 10px; }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-weight: 600; margin: 0 0 12px -4px; padding: 4px; }

/* ---------- icons & buttons ---------- */
.ic { display: inline-flex; width: 22px; height: 22px; flex: none; }
.ic svg { width: 100%; height: 100%; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; padding: 12px 20px; border-radius: 14px; font-weight: 700; font-family: var(--round); font-size: 17px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .08s; text-align: center; }
.btn:active { transform: scale(.98); }
.btn .ic { width: 20px; height: 20px; }
.btn.primary { background: var(--hot); color: #fff; box-shadow: 0 3px 0 var(--hot-2); }
.btn.primary:active { box-shadow: 0 1px 0 var(--hot-2); transform: translateY(2px); }
.btn.primary:disabled { opacity: .45; box-shadow: none; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--bad); background: transparent; box-shadow: inset 0 0 0 1.5px var(--bad); margin-top: 10px; }
.btn.big { min-height: 56px; font-size: 18px; }
.link { color: var(--teal); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; padding: 6px 4px; }
.link .ic { width: 18px; height: 18px; }
.link.center { display: flex; margin: 8px auto; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon-btn:active { background: var(--card2); }
.icon-btn.tone { color: var(--teal); }
.icon-btn.xs { width: 30px; height: 30px; }
.icon-btn.xs .ic { width: 16px; height: 16px; }
.icon-btn.quiet { font-size: 20px; opacity: .45; }
.icon-btn.quiet.on { opacity: 1; background: var(--near-bg); }
.turtle { font-size: 19px; line-height: 1; }
.audio-btns { display: inline-flex; gap: 2px; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 15px; white-space: nowrap; }
.chip .ic { width: 18px; height: 18px; color: var(--teal); }
.chip.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip.on .ic { color: var(--gold); }
.chip.strong { background: var(--teal); color: #fff; box-shadow: none; }
.chip.strong .ic { color: #fff; }
.chip.rec { background: var(--bad); color: #fff; box-shadow: none; }
.chip.rec .ic { color: #fff; }
.small-chip { padding: 5px 11px; font-size: 13px; }
.chips-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }

/* ---------- tabs ---------- */
#tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; gap: 4px; padding: 6px 8px calc(env(safe-area-inset-bottom) + 6px); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
body.immersive #tabs { display: none; }
.tab { flex: 1; max-width: 130px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 12px; color: var(--muted); font-size: 11.5px; font-weight: 700; font-family: var(--round); }
.tab .ic { width: 24px; height: 24px; }
.tab.on { color: var(--hot); }

/* ---------- cards ---------- */
.card { display: block; width: 100%; text-align: left; background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.card-title { font-family: var(--round); font-weight: 750; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.done-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--good); color: #fff; font-size: 13px; font-weight: 800; flex: none; }

/* ---------- home ---------- */
.home-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.hello { font-family: var(--round); font-size: 27px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 8px; }
.week { display: flex; gap: 6px; }
.wd { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 800; color: var(--muted); background: var(--card2); font-family: var(--round); }
.wd.on { background: var(--gold); color: #3a2500; }
.wd.today { box-shadow: inset 0 0 0 2px var(--ink); }
.install { display: flex; align-items: center; gap: 12px; background: var(--near-bg); box-shadow: none; }
.inst-ic { font-size: 26px; }
.plan { padding: 18px; }
.plan-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.plan-badge { font-size: 30px; }
.plan-list { list-style: none; padding: 0; margin: 4px 0 14px; }
.plan-list li a { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--line); }
.plan-list li:first-child a { border-top: 0; }
.plan-list li.done { opacity: .55; }
.plan-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--card2); display: inline-flex; align-items: center; justify-content: center; font-size: 21px; flex: none; }
.plan-label { font-weight: 700; }
.plan-list .ic { color: var(--muted); width: 18px; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick { background: var(--card); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.q-ic { font-size: 24px; margin-bottom: 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 14px; }
.stat { background: var(--card); border-radius: var(--r); padding: 12px 10px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--round); font-size: 24px; }
.stat span { font-size: 12px; color: var(--muted); }
.trick { background: var(--near-bg); border-radius: var(--r); padding: 14px 16px; margin: 14px 0; font-size: 15.5px; }
.trick-h { display: flex; align-items: center; gap: 6px; font-family: var(--round); font-weight: 800; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--near); margin-bottom: 4px; }
.trick-h .ic { width: 18px; height: 18px; }

/* ---------- route: highway signs ---------- */
.part { margin-top: 26px; }
.part-head { margin: 0 2px 14px; }
.part-es { font-family: var(--round); font-size: 24px; font-weight: 800; }
.part-en { font-size: 14px; font-weight: 600; }
.signs { display: grid; gap: 18px; }
.sign { position: relative; display: block; background: var(--brand); color: #fff; border-radius: 14px; padding: 16px 16px 14px; box-shadow: inset 0 0 0 3px var(--brand), inset 0 0 0 5px #fff, 0 3px 0 var(--brand-2); }
.sign.next { box-shadow: inset 0 0 0 3px var(--brand), inset 0 0 0 5px #fff, 0 3px 0 var(--brand-2), 0 0 0 3px var(--gold); }
.exit-tab { position: absolute; top: -12px; right: 16px; background: var(--brand); color: #fff; font: 800 11.5px/1 var(--round); letter-spacing: .1em; padding: 5px 9px; border-radius: 7px; box-shadow: inset 0 0 0 2px #fff; }
.sign-row { display: flex; align-items: center; gap: 12px; }
.sign-ic { font-size: 26px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .14); border-radius: 12px; flex: none; }
.sign-title { font-family: var(--round); font-weight: 800; font-size: 20px; letter-spacing: .005em; }
.sign-sub { font-size: 13.5px; opacity: .85; }
.sign-check { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; }
.sign-next { background: var(--gold); color: #3a2500; font: 800 11px/1 var(--round); letter-spacing: .08em; padding: 6px 8px; border-radius: 6px; }
.sign-bar { height: 5px; background: rgba(255, 255, 255, .2); border-radius: 9px; margin-top: 12px; overflow: hidden; }
.sign-bar span { display: block; height: 100%; background: var(--gold); border-radius: 9px; }
.sign.hero { margin: 14px 0 18px; }
.sign.hero .sign-title { font-size: 24px; }

/* ---------- exit detail ---------- */
.lesson-list { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.lesson-row { display: flex; align-items: center; gap: 4px; padding-right: 10px; border-top: 1px solid var(--line); }
.lesson-row:first-child { border-top: 0; }
.lesson-main { flex: 1; display: flex; align-items: center; gap: 12px; padding: 14px; min-width: 0; }
.lnum { width: 32px; height: 32px; border-radius: 50%; background: var(--card2); display: inline-flex; align-items: center; justify-content: center; font-family: var(--round); font-weight: 800; flex: none; }
.lesson-row.done .lnum { background: var(--good); color: #fff; }
.lesson-title { font-weight: 700; }
.scene-card { display: flex; align-items: center; gap: 12px; }
.scene-card.inline { margin-top: 12px; }
.scene-card .ic { color: var(--muted); }
.scene-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--card2); display: inline-flex; align-items: center; justify-content: center; font-size: 28px; flex: none; }
.scene-ic.big { width: 72px; height: 72px; font-size: 40px; margin: 0 auto 8px; }
.phrase-list { margin-top: 12px; }

/* ---------- phrasebook ---------- */
.sticky-search { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: calc(env(safe-area-inset-top) + 6px) 0 4px; margin: 0 -2px; }
.search-wrap { display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 14px; padding: 0 14px; box-shadow: inset 0 0 0 1.5px var(--line); }
.search-wrap .ic { color: var(--muted); }
.search { flex: 1; border: 0; background: transparent; padding: 13px 0; font-size: 17px; outline: none; min-width: 0; }
.prow { background: var(--card); border-radius: 14px; margin-bottom: 8px; box-shadow: var(--shadow); }
.pr-main { display: flex; align-items: center; gap: 8px; padding: 12px 8px 12px 16px; cursor: pointer; }
.en-s { font-weight: 700; font-family: var(--round); font-size: 16.5px; }
.pr-more { padding: 0 16px; }
.prow.open .pr-more { padding: 0 16px 14px; }
.bigshow { text-align: center; padding: 30px 6px; cursor: pointer; }
.bigshow-en { font-family: var(--round); font-weight: 800; font-size: clamp(36px, 11vw, 64px); line-height: 1.1; margin-bottom: 16px; }

/* ---------- Spanish text ---------- */
.en-t { font-family: var(--round); font-weight: 700; font-size: 20px; line-height: 1.3; }
.en-t.big { font-size: clamp(28px, 8vw, 36px); line-height: 1.15; font-weight: 800; }
.en-t.mid { font-size: 22px; }
.en-t .w { cursor: pointer; border-radius: 6px; transition: background .15s; }
.en-t .w:active { background: var(--near-bg); }
.en-t.marked .w.ok { color: var(--good); }
.en-t.marked .w.near { color: var(--near); text-decoration: underline wavy; text-underline-offset: 4px; }
.en-t.marked .w.off { color: var(--bad); text-decoration: underline; text-underline-offset: 4px; }
.phon { font: 600 14px/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--teal); letter-spacing: .01em; margin: 6px 0 4px; }
.es-m { color: var(--muted); font-size: 16px; }
.big-es { font-size: 18px; margin-top: 6px; }
.hidden-es { color: transparent; background: var(--card2); border-radius: 8px; cursor: pointer; user-select: none; position: relative; }
.hidden-es::after { content: 'Toca para ver en español'; position: absolute; inset: 0; color: var(--muted); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.note { font-size: 14px; color: var(--muted); margin-top: 8px; padding-left: 10px; border-left: 3px solid var(--gold); }
.note.mx { border-left-color: var(--teal); }
.wtip { position: absolute; z-index: 60; background: var(--ink); color: var(--bg); border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; gap: 1px; max-width: 260px; font-size: 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); animation: pop .15s ease-out; }
.wtip b { font-family: var(--round); font-size: 17px; }
.wtip .phon { color: var(--gold); margin: 0; }
@keyframes pop { from { transform: translateY(4px); opacity: 0; } }

/* ---------- player ---------- */
.player { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); max-width: 560px; margin: 0 auto; }
.ptop { display: flex; align-items: center; gap: 6px; padding: calc(env(safe-area-inset-top) + 8px) 10px 8px; }
.pbar { flex: 1; height: 12px; background: var(--card2); border-radius: 99px; overflow: hidden; margin: 0 6px; }
.pbar-fill { height: 100%; width: 0; background: var(--gold); border-radius: 99px; transition: width .35s ease; }
.pbody { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: 14px 18px 24px; }
.pfoot { display: flex; gap: 10px; padding: 10px 16px calc(env(safe-area-inset-bottom) + 14px); }
.pfoot:empty { display: none; }
.pfoot .btn { flex: 1; }
.pfoot .link { margin: 0 auto; }
.kicker { font-family: var(--round); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.title { font-size: 30px; font-weight: 800; }
.lead { font-size: 17.5px; }
.lead b { color: var(--hot); }
.card-main { background: var(--card); border-radius: 20px; padding: 22px 20px; box-shadow: var(--shadow); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.card-say { margin-top: 6px; }
.card-result { margin-top: 10px; padding: 12px 14px; border-radius: 14px; }
.card-result.great { background: var(--good-bg); }
.card-result.close { background: var(--near-bg); }
.card-result.miss { background: var(--bad-bg); }
.card-compare { margin-top: 10px; }
.compare, .play-row { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.listen-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 16px 0 6px; }
.listen-hero.small { margin: 4px 0 8px; flex-direction: row; justify-content: center; }
.big-play { width: 104px; height: 104px; border-radius: 50%; background: var(--teal); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 5px 0 color-mix(in srgb, var(--teal) 70%, #000); }
.big-play:active { transform: translateY(3px); box-shadow: 0 2px 0 color-mix(in srgb, var(--teal) 70%, #000); }
.big-play .ic { width: 46px; height: 46px; }
.listen-hero.small .big-play { width: 74px; height: 74px; }
.listen-hero.small .big-play .ic { width: 32px; height: 32px; }
.reveal { text-align: center; margin: 6px 0 10px; }
.prompt-en { display: flex; align-items: center; gap: 8px; justify-content: space-between; background: var(--card); padding: 18px; border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 18px; }
.prompt-es { font-family: var(--round); font-size: 24px; font-weight: 750; margin-bottom: 18px; line-height: 1.25; }
.choices { display: grid; gap: 10px; }
.choice { text-align: left; background: var(--card); border-radius: 14px; padding: 15px 16px; font-size: 17px; font-weight: 600; box-shadow: inset 0 0 0 2px var(--line), 0 2px 0 var(--line); }
.choice:active { transform: translateY(1px); }
.choice.right { box-shadow: inset 0 0 0 2.5px var(--good); background: var(--good-bg); }
.choice.wrong { box-shadow: inset 0 0 0 2.5px var(--bad); background: var(--bad-bg); }
.build-ans { min-height: 70px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; padding: 12px 4px; border-bottom: 2px dashed var(--line); margin-bottom: 18px; }
.build-ph { color: var(--muted); font-size: 15px; align-self: center; }
.bank { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tile { position: relative; background: var(--brick-y); color: #3a2500; font: 700 18px/1 var(--round); padding: 13px 15px 12px; border-radius: 9px; box-shadow: 0 4px 0 #c88c00; transition: transform .06s; }
.tile::before { content: ''; position: absolute; top: -5px; left: 50%; width: 22px; height: 6px; transform: translateX(-50%); background: radial-gradient(circle at 5px 3px, #f7c64a 3.5px, transparent 4px), radial-gradient(circle at 17px 3px, #f7c64a 3.5px, transparent 4px); }
.tile:active { transform: translateY(3px); box-shadow: 0 1px 0 #c88c00; }
.tile.in { background: var(--brick-b); color: #fff; box-shadow: 0 4px 0 #1f4e9e; }
.tile.in::before { background: radial-gradient(circle at 5px 3px, #4c86e8 3.5px, transparent 4px), radial-gradient(circle at 17px 3px, #4c86e8 3.5px, transparent 4px); }
.tile.used { opacity: .18; box-shadow: none; }
.tile.used::before { display: none; }
.hint-first { text-align: center; color: var(--muted); margin-top: 6px; }
.answer { margin-top: 4px; }
.ans-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mid { font-family: var(--round); font-weight: 750; font-size: 21px; }
.center-page { text-align: center; padding-top: 18vh; }
.done-hero { text-align: center; margin: 10px 0 18px; }
.done-emoji { font-size: 64px; line-height: 1; margin-bottom: 10px; text-align: center; }
.done-list { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.done-row { display: flex; align-items: center; gap: 10px; padding: 10px 6px 10px 14px; border-top: 1px solid var(--line); }
.done-row:first-child { border-top: 0; }
.done-row .dot { width: 22px; text-align: center; font-weight: 900; color: var(--good); }
.done-row.shaky .dot { color: var(--near); font-size: 26px; line-height: 0; }

/* feedback sheet */
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; padding: 18px 18px calc(env(safe-area-inset-bottom) + 16px); border-radius: 22px 22px 0 0; background: var(--card); box-shadow: 0 -8px 30px rgba(0, 0, 0, .14); transform: translateY(105%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); max-height: 78%; overflow-y: auto; }
.sheet.show { transform: none; }
.sheet.good { background: var(--good-bg); }
.sheet.near { background: var(--near-bg); }
.sheet.bad { background: var(--bad-bg); }
.sheet-title { font-family: var(--round); font-size: 24px; font-weight: 850; margin-bottom: 8px; }
.sheet.good .sheet-title { color: var(--good); }
.sheet.near .sheet-title { color: var(--near); }
.sheet.bad .sheet-title { color: var(--bad); }
.sheet .en-t.marked { margin-bottom: 6px; }
.sheet-btns { display: flex; gap: 10px; margin-top: 16px; }
.sheet-btns .btn { flex: 1; }

/* ---------- speaking input ---------- */
.mic-input { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 14px 0 4px; }
.mic-wrap { position: relative; }
.mic-btn { width: 88px; height: 88px; border-radius: 50%; background: var(--hot); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 5px 0 var(--hot-2); position: relative; }
.mic-btn .ic { width: 38px; height: 38px; }
.mic-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--hot-2); }
.mic-btn.on { background: var(--bad); animation: none; }
.mic-btn.on::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--hot); animation: ring 1.1s ease-out infinite; }
@keyframes ring { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.mic-label { font-weight: 700; color: var(--muted); font-size: 14.5px; text-align: center; }
.live { min-height: 22px; font-family: var(--round); font-weight: 650; text-align: center; color: var(--ink); }
.type-row { display: flex; gap: 8px; width: 100%; }
.say-input { flex: 1; min-width: 0; font-size: 18px; padding: 13px 14px; border-radius: 14px; border: 0; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); outline: none; }
.say-input:focus { box-shadow: inset 0 0 0 2px var(--teal); }
.hint-line { font-size: 12.5px; color: var(--muted); text-align: center; }
.fb { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); }
.fb.good { background: var(--good-bg); box-shadow: none; }
.fb.bad { background: var(--bad-bg); box-shadow: none; }
.me-said { font-family: var(--round); font-weight: 700; margin-bottom: 4px; }

/* ---------- chat / role-play ---------- */
.chat { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); max-width: 560px; margin: 0 auto; }
.chat-top { display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top) + 8px) 10px 8px; border-bottom: 1px solid var(--line); }
.chat-who { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--card2); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; flex: none; }
.avatar.sm { width: 34px; height: 34px; font-size: 20px; }
.chat-log { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 12px 20px; display: flex; flex-direction: column; gap: 12px; }
.msg { display: flex; gap: 8px; max-width: 92%; }
.msg.npc { align-self: flex-start; }
.msg.me { align-self: flex-end; }
.msg.sys { align-self: center; max-width: 100%; font-size: 14px; color: var(--muted); font-style: italic; text-align: center; padding: 4px 18px; }
.bubble { background: var(--card); border-radius: 18px 18px 18px 6px; padding: 10px 14px; box-shadow: var(--shadow); }
.msg.me .bubble { background: var(--teal); color: #fff; border-radius: 18px 18px 6px 18px; font-family: var(--round); font-weight: 650; font-size: 17px; }
.bubble .who { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.bubble .en-t { font-size: 19px; }
.msg-es { display: none; color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.chat-log.show-es .msg-es, .msg.reveal-es .msg-es { display: block; }
.msg-tools { display: flex; align-items: center; gap: 2px; margin: 2px -8px -6px; }
.msg-tools .icon-btn { width: 36px; height: 36px; font-size: 16px; }
.coach { margin-top: 6px; font-size: 13.5px; font-weight: 500; opacity: .95; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.coach .icon-btn { color: #fff; }
.scene-intro { background: var(--card); border-radius: 20px; padding: 20px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; margin: 8px 4px; }
.goal { font-weight: 650; font-size: 14.5px; }
.hints { display: none; background: var(--card); border-top: 1px solid var(--line); padding: 8px 14px 4px; max-height: 42vh; overflow-y: auto; }
.hints.open { display: block; }
.hints-h { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-family: var(--round); font-size: 14px; color: var(--muted); }
.hint-row { padding: 8px 0; border-top: 1px solid var(--line); }
.hint-es { font-weight: 650; }
.hint-en { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.hint-en .en-t { font-size: 17px; }
.chat-input { display: flex; align-items: center; gap: 6px; padding: 8px 12px calc(env(safe-area-inset-bottom) + 10px); border-top: 1px solid var(--line); background: var(--bg); }
.chat-input.off { opacity: .4; pointer-events: none; }
.chat-input .mic-input { flex: 1; min-width: 0; margin: 0; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px 10px; }
.chat-input .type-row .btn { padding: 12px 16px; }
.chat-input .hint-line { display: none; }
.chat-input .link.small { padding: 2px 4px; }
.chat-input .mic-btn { width: 64px; height: 64px; }
.chat-input .mic-btn .ic { width: 28px; height: 28px; }
.chat-input .live { width: 100%; order: 3; min-height: 0; }
.chat-input .mic-label { font-size: 13px; }
.hint-btn { color: var(--near); background: var(--near-bg); }
.scene-end { background: var(--card); border-radius: 20px; padding: 22px 18px; text-align: center; box-shadow: var(--shadow); margin: 10px 2px; }
.kit { text-align: left; margin: 10px 0 16px; }
.kit summary { font-weight: 700; color: var(--teal); padding: 6px 0; }
.kit-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; border-top: 1px solid var(--line); }
.kit-row .en-t { font-size: 16px; }

/* talk list */
.rapid-card { display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--bg); }
.rapid-card .muted { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.rapid-ic { font-size: 30px; }
.scene-grid { display: grid; gap: 10px; }
.scene-card.done { opacity: .8; }
.lvl { color: var(--gold); letter-spacing: 2px; font-size: 11px; margin-top: 4px; }
.rapid-result { margin-top: 6px; }
.models { margin-top: 12px; }
.model { display: flex; align-items: center; justify-content: space-between; background: var(--card); border-radius: 12px; padding: 6px 6px 6px 14px; margin-top: 6px; box-shadow: var(--shadow); }
.model .en-t { font-size: 17px; }

/* ---------- labs ---------- */
.lab-controls { padding: 0 14px; }
.seg { display: inline-flex; background: var(--card2); border-radius: 12px; padding: 3px; gap: 2px; }
.seg-btn { padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 14.5px; color: var(--muted); }
.seg-btn.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.lab-controls .seg { display: flex; margin-bottom: 8px; }
.lab-controls .seg-btn { flex: 1; }
.center-seg { display: flex; margin: 0 auto 18px; width: fit-content; }
.num-display { font: 800 40px/1 var(--round); text-align: center; padding: 14px; margin: 8px auto 12px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); max-width: 280px; letter-spacing: .02em; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 300px; margin: 0 auto; }
.key { height: 54px; border-radius: 14px; background: var(--card); box-shadow: 0 2px 0 var(--line), inset 0 0 0 1.5px var(--line); font: 700 22px/1 var(--round); }
.key:active { transform: translateY(2px); box-shadow: inset 0 0 0 1.5px var(--line); }
.num-big { font: 800 clamp(44px, 14vw, 64px)/1.1 var(--round); text-align: center; margin: 14px 0 6px; }
.num-big.en-word { font-size: clamp(32px, 10vw, 46px); color: var(--teal); }
.streak { font-weight: 800; }
.stress-word { font: 800 clamp(38px, 11vw, 52px)/1.1 var(--round); text-align: center; margin: 10px 0 18px; }
.syl-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.syl { min-width: 64px; padding: 16px 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line); font: 800 22px/1 var(--round); }
.syl.right { background: var(--good); color: #fff; box-shadow: 0 3px 0 color-mix(in srgb, var(--good) 70%, #000); }
.syl.wrong { background: var(--bad-bg); box-shadow: inset 0 0 0 2px var(--bad); }
.rules { margin-top: 18px; background: var(--card); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 14.5px; }
.rules ol { margin: 8px 0 4px; padding-left: 20px; }
.lego-rows { display: grid; gap: 12px; margin: 6px 0 14px; }
.lego-label { font: 800 12px/1 var(--round); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 2px 8px; }
.lego-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 8px; scrollbar-width: none; }
.lego-scroll::-webkit-scrollbar { display: none; }
.brick { position: relative; white-space: nowrap; color: #fff; font: 750 15.5px/1 var(--round); padding: 12px 13px 11px; border-radius: 9px; opacity: .55; }
.brick::before { content: ''; position: absolute; top: -5px; left: 50%; width: 22px; height: 6px; transform: translateX(-50%); }
.brick.red { background: var(--brick-r); box-shadow: 0 4px 0 #9e2c19; }
.brick.red::before { background: radial-gradient(circle at 5px 3px, #e8654e 3.5px, transparent 4px), radial-gradient(circle at 17px 3px, #e8654e 3.5px, transparent 4px); }
.brick.blue { background: var(--brick-b); box-shadow: 0 4px 0 #1f4e9e; }
.brick.blue::before { background: radial-gradient(circle at 5px 3px, #4c86e8 3.5px, transparent 4px), radial-gradient(circle at 17px 3px, #4c86e8 3.5px, transparent 4px); }
.brick.yellow { background: var(--brick-y); color: #3a2500; box-shadow: 0 4px 0 #c88c00; }
.brick.yellow::before { background: radial-gradient(circle at 5px 3px, #f7c64a 3.5px, transparent 4px), radial-gradient(circle at 17px 3px, #f7c64a 3.5px, transparent 4px); }
.brick.on { opacity: 1; transform: translateY(-2px); outline: 3px solid var(--ink); outline-offset: 2px; }
.build-out { background: var(--card); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }

/* ---------- settings ---------- */
.set { padding: 6px 16px 14px; }
.set-h { font: 800 13px/1 var(--round); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 0 6px; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.set-row.col { flex-direction: column; align-items: stretch; gap: 8px; }
.set-h + .set-row { border-top: 0; }
.set .btn { margin-top: 8px; }
.switch { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: background .15s; cursor: pointer; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch:checked { background: var(--good); }
.switch:checked::after { transform: translateX(20px); }
.select, .text-in, .backup { width: 100%; border: 0; border-radius: 12px; padding: 12px 14px; font-size: 16px; background: var(--card2); outline: none; }
.text-in { width: 50%; text-align: right; background: transparent; padding: 6px 0; font-weight: 700; }
.text-in.big { width: 100%; text-align: center; font: 800 26px/1.2 var(--round); background: var(--card); border-radius: 16px; padding: 14px; box-shadow: inset 0 0 0 2px var(--line); margin-bottom: 18px; }
.backup { margin-top: 10px; font: 12px/1.4 ui-monospace, Menlo, monospace; resize: vertical; }
input[type=range] { width: 100%; accent-color: var(--hot); }

/* ---------- modal & toast ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(20, 12, 4, .45); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; }
.modal.show { opacity: 1; }
.modal-card { position: relative; width: 100%; max-width: 560px; background: var(--bg); border-radius: 22px 22px 0 0; padding: 22px 20px calc(env(safe-area-inset-bottom) + 22px); max-height: 90vh; overflow-y: auto; transform: translateY(30px); transition: transform .2s; }
.modal.show .modal-card { transform: none; }
.modal.full .modal-card { height: 100%; max-height: none; border-radius: 0; display: flex; flex-direction: column; justify-content: center; padding-top: calc(env(safe-area-inset-top) + 40px); }
.modal-x { position: absolute; top: calc(env(safe-area-inset-top) + 8px); right: 8px; }
.modal.full .modal-x { top: calc(env(safe-area-inset-top) + 10px); }
.modal:not(.full) .modal-x { top: 10px; }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 8px; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 90px); transform: translate(-50%, 20px); z-index: 70; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 14.5px; max-width: calc(100vw - 32px); width: max-content; opacity: 0; transition: all .25s; box-shadow: 0 8px 26px rgba(0, 0, 0, .25); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.update { cursor: pointer; background: var(--brand); color: #fff; }

/* ---------- onboarding ---------- */
.ob-page { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
.onboard { display: flex; flex-direction: column; gap: 12px; }
.ob-logo { width: 96px; height: 96px; margin: 0 auto; border-radius: 26px; background: linear-gradient(150deg, var(--gold), var(--hot)); color: #fff; display: flex; align-items: center; justify-content: center; font: 900 40px/1 var(--round); box-shadow: 0 6px 0 var(--hot-2); }
.ob-title { text-align: center; font-size: 44px; font-weight: 900; margin: 6px 0 0; }
.ob-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 10px; }
.ob-list li { background: var(--card); border-radius: 14px; padding: 13px 16px; box-shadow: var(--shadow); font-weight: 600; }
.ob-dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0; }
.ob-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.ob-dots span.on { background: var(--hot); width: 22px; border-radius: 99px; }
.ob-q { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.onboard .phon { text-align: center; }
.ob-choice { text-align: left; }
.ob-choice b { font-family: var(--round); font-size: 17px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 600px) { .player, .chat { box-shadow: 0 0 0 1px var(--line); } }

/* ───────── Habla Natural additions ───────── */
.es-m.big-es { font-size: 18px; margin-top: 6px; }
.en-s { font-weight: 700; font-family: var(--round); font-size: 16.5px; }
.prompt-es.situ { font-size: 20px; font-weight: 700; background: var(--card2); padding: 16px; border-radius: 16px; }
.prompt-es.center { text-align: center; }
.wrong-line { color: var(--bad); text-decoration: line-through; text-decoration-thickness: 2px; }
.en-choices .choice { font-family: var(--round); font-weight: 700; }
.pair-choices { grid-template-columns: 1fr 1fr; }
.pair-choices .choice { text-align: center; font-size: 22px; font-family: var(--round); font-weight: 800; }
.pair-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fast-row { margin: 6px 0; }
.reg-tag { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: var(--card2); color: var(--muted); }
.reg-tag.casual { background: #fff1d6; color: #8a5a00; }
.reg-tag.polite { background: #e8eefc; color: #2441a0; }
.reg-tag.work { background: #e9f4ec; color: #1f6b3d; }
.center-col { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.wrap2 { flex-wrap: wrap; }
.wrap2 .btn { min-width: 46%; }
.chips-row.wrap { flex-wrap: wrap; overflow: visible; }
.chips-row.center { justify-content: center; }
.big-chip { font-size: 16px; padding: 10px 14px; }

/* Sofía */
.sofia-face { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 2.5px var(--card), 0 0 0 4.5px var(--gold); background: var(--card2); }
.sofia-face.xs { width: 26px; height: 26px; box-shadow: 0 0 0 2px var(--gold); vertical-align: middle; }
.sofia-face.big { width: 96px; height: 96px; }
.sofia-face.hero { width: 132px; height: 132px; margin: 8px auto 6px; display: block; }
.sofia-face.avatar-img { width: 40px; height: 40px; box-shadow: 0 0 0 2px var(--gold); }
.sofia-face.avatar-img.sm { width: 32px; height: 32px; }
.sheet-title .sofia-face { width: 36px; height: 36px; margin-right: 10px; vertical-align: middle; box-shadow: 0 0 0 2px var(--gold); }
.sofia-bubble p { margin: 0 0 6px; }
.sofia-bubble p:last-child { margin-bottom: 0; }
.sofia-note { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; }
.sofia-bubble { flex: 1; min-width: 0; background: var(--card); border-radius: 4px 18px 18px 18px; padding: 12px 14px; box-shadow: var(--shadow); font-size: 15.5px; line-height: 1.45; }
.sofia-bubble .who { font: 800 11.5px/1 var(--round); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.trick-h .sofia-face.xs { margin-right: 4px; }

/* plans & gates */
.tier-badge { display: inline-flex; align-items: center; gap: 2px; font: 800 10.5px/1 var(--round); letter-spacing: .04em; text-transform: uppercase; padding: 4px 7px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }
.tier-badge .ic { width: 11px; height: 11px; }
.tier-badge.value { background: #fdecc8; color: #7a4d00; }
.tier-badge.premium { background: #f6dbe4; color: var(--brand); }
.locked { opacity: .78; }
.sign.locked { filter: saturate(.55); }
.lock-card { display: flex; align-items: center; gap: 12px; margin: 12px 0; box-shadow: inset 0 0 0 2px var(--gold), var(--shadow); }
.lock-card > .ic { color: var(--gold); }
.plans { display: grid; gap: 14px; }
.plan-card { position: relative; }
.plan-card.want { box-shadow: inset 0 0 0 2.5px var(--gold), var(--shadow); }
.plan-card.premium { background: linear-gradient(160deg, var(--card) 55%, color-mix(in srgb, var(--brand) 10%, var(--card))); }
.plan-name { font: 800 22px/1.1 var(--round); display: flex; align-items: center; gap: 8px; }
.plan-price { font: 700 15px var(--round); color: var(--brand); margin: 4px 0; }
.perks { list-style: none; padding: 0; margin: 12px 0 14px; display: grid; gap: 6px; }
.perks li { display: flex; gap: 6px; align-items: flex-start; font-size: 15px; }
.perks .ic { width: 18px; height: 18px; color: var(--good); margin-top: 2px; }

/* home */
.flame { font: 800 14px var(--round); color: var(--hot); }
.quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--card); border-radius: 14px; padding: 12px 4px; box-shadow: var(--shadow); font-size: 22px; }
.qr span { font: 700 12px/1.2 var(--round); color: var(--ink); text-align: center; }
.card.mission, .card.emergency { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.card.mission { box-shadow: inset 0 0 0 2px var(--gold), var(--shadow); }
.card.emergency { background: var(--bad-bg); box-shadow: inset 0 0 0 2px var(--bad); }
.card.pod .kicker, .card.news .kicker, .mission .kicker { margin: 0 0 8px; }
.card.pod { margin: 12px 0; }
.card.news { margin: 12px 0; display: grid; gap: 10px; box-shadow: inset 0 0 0 2px var(--teal), var(--shadow); }

/* route */
.level-head { display: flex; gap: 12px; align-items: flex-start; margin: 26px 2px 14px; }
.lv-ic { font-size: 28px; width: 46px; height: 46px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.lv-name { font: 800 18px/1.2 var(--round); }
.cefr { font: 800 11px/1 var(--round); background: var(--card2); color: var(--muted); padding: 3px 6px; border-radius: 6px; margin-left: 6px; vertical-align: middle; }
.level-head .sign-bar { background: var(--line); margin-top: 8px; }
.card.soon { margin-bottom: 8px; display: grid; gap: 6px; }
.can-do { background: var(--card2); border-radius: 14px; padding: 12px 14px; margin: 0 0 14px; font-size: 15px; }
.wide-seg { display: grid; grid-template-columns: repeat(4, 1fr); margin: 4px 0 14px; }
.wide-seg .seg-btn { padding: 9px 2px; font-size: 13.5px; text-align: center; }

/* onboarding */
.goal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.goal-btn { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; background: var(--card); border-radius: 16px; padding: 14px; box-shadow: inset 0 0 0 2px var(--line); }
.goal-btn.on { box-shadow: inset 0 0 0 2.5px var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--card)); }

/* Dilo antes que yo */
.beat-es { font: 800 clamp(26px, 7.5vw, 34px)/1.2 var(--round); margin: 4px 0 8px; }
.beat-ring { width: 92px; height: 92px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 800 40px var(--round); color: var(--brand); box-shadow: inset 0 0 0 6px var(--gold); margin: 6px auto; }
.beat-verdict { font: 800 20px var(--round); margin-bottom: 8px; }
.beat-verdict.good { color: var(--good); }
.beat-verdict.bad { color: var(--hot); }
.beat-score { font: 700 12.5px var(--round); color: var(--muted); }
.beat-result { min-height: 60px; }

/* Manos libres */
.hf-now { min-height: 120px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.hf-es { font: 800 26px/1.2 var(--round); }
.hf-en { font: 700 22px/1.2 var(--round); }
.hf-play { width: 96px; height: 96px; }
.pause-ic { font: 900 28px var(--round); color: #fff; letter-spacing: -2px; }

/* spelling */
.abc { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; margin: 12px 0 16px; }
.abc-key { background: var(--card); border-radius: 12px; padding: 10px 4px; box-shadow: inset 0 0 0 2px var(--line); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.abc-key b { font: 800 22px var(--round); }
.abc-key span { font-size: 12.5px; color: var(--teal); }
.abc-key.trap { box-shadow: inset 0 0 0 2px var(--gold); }

/* Tú */
.can-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.can-list li { display: flex; gap: 6px; align-items: flex-start; }
.can-list .ic { width: 18px; height: 18px; color: var(--good); margin-top: 2px; }
.missions { display: grid; gap: 10px; }
.mission-row { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.mission-row.done { opacity: .7; }
.win-row { border-top: 1px solid var(--line); padding: 10px 0; }

/* chat with Sofía */
.fix-card { text-align: left; background: var(--near-bg); border-radius: 14px; padding: 10px 12px; display: grid; gap: 4px; }
.msg.typing .bubble { letter-spacing: 3px; }
.ai-box { display: grid; gap: 10px; }
.ai-opt .kicker { margin: 0 0 6px; }
.offline-card { margin: 10px 0; }
.custom-form { display: grid; gap: 8px; margin-top: 10px; }
.mf-in { margin: 10px 0; font-size: 17px; }
.chat-who .sofia-face { margin-right: 2px; }

/* accounts + checkout */
.col { display: flex; flex-direction: column; }
.col.gap { gap: 8px; }
.acct-row { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.text-in.wide { width: 100%; box-sizing: border-box; margin: 6px 0 10px; text-align: left; background: var(--card); border-radius: 12px; padding: 12px; box-shadow: inset 0 0 0 2px var(--line); }
.code-in { font-size: 1.4rem; letter-spacing: 0.3em; text-align: center; }
