/* Beeglot — tokens from the dealt sheet (Bubblegum and lime, Newsreader). */
:root {
  --bg: #ff87ab;
  --surface: #ff739d;
  --paper: #ffe1ea;
  --ink: #0a0a0a;
  --muted: #6b1f3a;
  --accent: #def915;
  --accent-ink: #0a0a0a;
  --field: #0a0a0a;
  --field-ink: #ff87ab;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.4rem, 1rem + 10vw, 10rem);

  --margin: clamp(16px, 3vw, 32px);
  --gap-section: clamp(96px, 12vw, 200px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --press: 120ms;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Newsreader', Georgia, serif; font-size: var(--step-body);
  line-height: 1.6; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1; letter-spacing: -0.03em; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 2px; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--margin); top: 8px; z-index: 50; background: var(--accent); padding: 8px 12px; }
.wrap { padding-inline: var(--margin); max-width: 1440px; margin-inline: auto; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: var(--step-small); }
.lead { font-size: var(--step-lead); line-height: 1.4; max-width: 40ch; }
.hidden { display: none !important; }
main { min-height: 70svh; }
main:focus, main:focus-visible { outline: none; }

/* Bar: wordmark, a few links, one action. */
.bar { display: flex; align-items: center; gap: 20px; padding: 18px var(--margin); position: relative; z-index: 5; }
.bar .mark { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.03em; text-decoration: none; margin-right: auto; display: inline-flex; align-items: baseline; gap: .25em; }
.bar .mark .slot-mini { display: inline-block; width: 1.4em; height: .32em; background: var(--accent); }
.bar nav { display: flex; gap: 20px; align-items: center; }
.bar nav a { text-decoration: none; font-size: var(--step-small); font-weight: 500; }
.bar nav a[aria-current="page"] { text-decoration: underline; }
@media (max-width: 640px) { .bar nav .navopt { display: none; } }
@media (max-width: 900px) { .bar nav .land { display: none; } }
.bar nav .linkbtn { text-decoration: none; font-weight: 500; } .bar nav .linkbtn:hover { text-decoration: underline; }
[id] { scroll-margin-top: 12px; }
.bar .mark, .bar nav > * { white-space: nowrap; }
@media (max-width: 420px) { .bar { gap: 12px; } .bar nav { gap: 12px; } .bar .mark { font-size: 1.15rem; } .bar .mark .slot-mini { display: none; } .bar .btn.sm { padding: 0 10px; } }

/* Buttons: square, flat, one shape. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--bg); font-weight: 500; font-size: 1.0625rem;
  text-decoration: none; cursor: pointer; transition: transform var(--press) var(--ease-out), background-color 160ms;
}
.btn:hover { background: #2a2a2a; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: #ecff4a; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--surface); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.sm { min-height: 44px; padding: 0 14px; font-size: 1rem; }
.linkbtn { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; text-underline-offset: .18em; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Landing ---------- */
.hero { min-height: calc(100svh - 76px); display: grid; align-content: center; padding-block: 4vh 10vh; }
.hero h1 { font-size: var(--step-display); font-weight: 300; letter-spacing: -0.05em; line-height: .92; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.slot {
  /* overflow:hidden puts an inline-block's bottom on the baseline: the slot sits on the line like a letter */
  display: inline-block; overflow: hidden; vertical-align: baseline;
  height: .7em; width: 2.7em; padding: 0 .12em; margin-left: .04em; background: var(--accent);
}
.slot .word { display: block; font-style: italic; font-weight: 400; font-size: .56em; line-height: 1.25em; letter-spacing: -0.02em; }
.hero .sub { margin-top: 40px; display: grid; gap: 28px; grid-template-columns: minmax(0, 46ch) auto; align-items: end; justify-content: space-between; }
.hero .sub p { margin: 0; font-size: var(--step-lead); line-height: 1.4; }
@media (max-width: 760px) { .hero .sub { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .hero h1 { font-size: clamp(6rem, 11vw, 13rem); } .hero h1 .line { display: inline-block; } .hero h1 .line + .line { margin-left: .22em; } }

.verbs { background: var(--field); color: var(--field-ink); }
.verb { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--margin); align-items: end; padding: 12vh var(--margin); max-width: 1440px; margin: 0 auto; }
.verb + .verb { padding-top: 0; }
.verb h2 { font-size: clamp(4.5rem, 1rem + 13vw, 15rem); font-weight: 300; letter-spacing: -0.05em; line-height: .85; color: var(--bg); }
.verb .copy { max-width: 42ch; color: #ffd3e0; }
.verb .copy strong { color: var(--accent); font-weight: 500; }
.verb figure { margin: 0; grid-column: 2; grid-row: 1 / span 2; align-self: stretch; }
.verb figure img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; filter: grayscale(1) contrast(1.05); }
@media (max-width: 760px) {
  .verb { grid-template-columns: 1fr; padding: 72px var(--margin); }
  .verb figure { grid-column: 1; grid-row: auto; }
  .verb figure img { min-height: 220px; aspect-ratio: 4/3; }
}

.tryit { padding-block: var(--gap-section); }
.tryit h2 { font-size: var(--step-head); max-width: 18ch; }
.tryit .q { font-size: clamp(2rem, 1rem + 4.4vw, 5.2rem); letter-spacing: -0.04em; line-height: 1.05; font-weight: 300; margin: 48px 0 28px; max-width: 18ch; }
.tryit .q .blank { display: inline-block; min-width: 3.4em; background: var(--surface); height: .85em; vertical-align: -.08em; padding: 0 .15em; font-style: italic; font-size: inherit; line-height: .85em; }
.tryit .q .blank.ok { background: var(--accent); }
.tryit .opts { display: flex; flex-wrap: wrap; gap: 12px; }
.tryit .verdict { margin-top: 24px; min-height: 3.2em; max-width: 52ch; }

.levels { padding-bottom: var(--gap-section); }
.levels h2 { font-size: var(--step-head); max-width: 16ch; padding-left: 3vw; }
.levels .table { margin: 72px 0 0 auto; width: min(100%, 760px); }
.levels .lv { display: grid; grid-template-columns: 4.2rem 1fr auto; gap: 16px; padding-block: 14px; align-items: baseline; }
.levels .lv:nth-child(3n+1):not(:first-child) { margin-top: 28px; }
.levels .lv b { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; }
.levels .lv span.t { color: var(--muted); font-size: var(--step-small); text-align: right; }

.faq { padding-bottom: var(--gap-section); }
.faq h2 { font-size: clamp(2.4rem, 1rem + 4.5vw, 5.5rem); }
.faq .list { margin: 64px 0 0 33%; max-width: 820px; }
.faq details { padding: 14px 24px; margin: 0 -24px 18px; transition: background-color 200ms; }
.faq details[open] { background: var(--surface); }
.faq summary { list-style: none; cursor: pointer; font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5em; line-height: .8; transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 4px; max-width: 52ch; }
@media (max-width: 760px) { .faq .list { margin-left: 0; } .faq details { margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin); } }

.closer { background: var(--field); color: var(--field-ink); padding: 18vh var(--margin) 40px; min-height: 90svh; display: grid; align-content: space-between; }
.closer .big { font-size: clamp(2.6rem, 1rem + 7vw, 9rem); line-height: .95; letter-spacing: -0.045em; font-weight: 300; color: var(--bg); max-width: 14ch; }
.closer .big a { color: var(--accent); text-decoration: none; }
.closer .big a:hover { text-decoration: underline; }
.closer .meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--step-small); margin-top: 18vh; color: #ffc2d4; }
.closer .meta a { color: #ffc2d4; }

/* ---------- Forms ---------- */
.auth { padding-block: 8vh var(--gap-section); }
.auth h1 { font-size: var(--step-head); margin-bottom: 32px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; max-width: 460px; }
.field label { font-size: var(--step-small); font-weight: 500; }
.field input, textarea {
  min-height: 52px; padding: 10px 14px; border: 2px solid var(--ink); border-radius: 0; background: var(--paper);
}
textarea { width: 100%; min-height: 220px; line-height: 1.6; resize: vertical; }
.note { background: var(--surface); padding: 14px 18px; margin: 18px 0; max-width: 60ch; }
.note.warn { background: var(--field); color: var(--field-ink); }

/* ---------- Dashboard ---------- */
.dash { padding-block: 5vh var(--gap-section); }
.dash .hello { font-size: var(--step-head); max-width: 20ch; }
.dash .now { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--margin); margin-top: 56px; align-items: end; }
.dash .levelbig { margin-top: .12em; font-size: clamp(7rem, 3rem + 16vw, 18rem); font-weight: 300; line-height: .8; letter-spacing: -0.06em; }
.dash .next { background: var(--paper); padding: 28px; }
.dash .next h3 { font-size: 1.7rem; margin: 6px 0 14px; letter-spacing: -0.02em; }
.path { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 72px; }
.path a { display: grid; gap: 4px; padding: 16px 14px 18px; background: var(--surface); text-decoration: none; transition: transform var(--press) var(--ease-out), background-color 160ms; min-height: 132px; align-content: space-between; }
.path a:hover { background: #ff5f8f; }
.path a:active { transform: scale(.98); }
.path a b { font-size: 2.2rem; font-weight: 400; letter-spacing: -0.03em; line-height: 1; }
.path a.done { background: var(--field); color: var(--field-ink); }
.path a.current { background: var(--accent); }
.path a.locked { opacity: .55; }
.path .meter { height: 6px; background: rgba(10,10,10,.15); }
.path .meter i { display: block; height: 100%; background: var(--ink); }
.path a.done .meter i { background: var(--accent); }
@media (max-width: 760px) { .dash .now { grid-template-columns: 1fr; } .path { grid-template-columns: repeat(3, 1fr); } }

.skills { margin-top: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px 40px; }
.skillbar span { display: flex; justify-content: space-between; font-size: var(--step-small); }
.skillbar .meter { height: 10px; background: var(--surface); margin-top: 6px; }
.skillbar .meter i { display: block; height: 100%; background: var(--ink); transform-origin: left; animation: grow 900ms var(--ease-out) both; }
@keyframes grow { from { transform: scaleX(0); } }

/* ---------- Level page ---------- */
.levelpage { padding-block: 4vh var(--gap-section); }
.levelpage header.top { display: grid; grid-template-columns: auto 1fr; gap: 0 32px; align-items: end; }
.levelpage .code { font-size: clamp(6rem, 2rem + 14vw, 15rem); font-weight: 300; line-height: .8; letter-spacing: -0.06em; }
.levelpage .name { font-size: var(--step-head); }
.levelpage .cando { margin: 40px 0 0; padding: 0; list-style: none; columns: 2 320px; column-gap: 40px; }
.levelpage .cando li { break-inside: avoid; padding: 6px 0 6px 1.2em; position: relative; }
.levelpage .cando li::before { content: ''; position: absolute; left: 0; top: .78em; width: .55em; height: .55em; background: var(--ink); }
@media (max-width: 640px) { .levelpage header.top { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 6px; margin: 56px 0 20px; flex-wrap: wrap; }
.tabs button { min-height: 44px; padding: 0 16px; border: 0; background: var(--surface); cursor: pointer; font-weight: 500; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.units { display: grid; gap: 6px; }
.unitrow { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px; background: var(--paper); text-decoration: none; transition: transform var(--press) var(--ease-out), background-color 160ms; }
.unitrow:hover { background: #fff; }
.unitrow:active { transform: scale(.99); }
.unitrow .num { font-size: 2rem; font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.unitrow h3 { font-size: 1.35rem; letter-spacing: -0.015em; line-height: 1.15; }
.unitrow .goal { font-size: var(--step-small); color: var(--muted); margin-top: 4px; }
.dots { display: flex; gap: 4px; }
.dots i { width: 12px; height: 12px; background: rgba(10,10,10,.15); }
.dots i.on { background: var(--ink); }
.examcta { margin-top: 48px; background: var(--field); color: var(--field-ink); padding: 32px; display: grid; gap: 16px; grid-template-columns: 1fr auto; align-items: center; }
.examcta h3 { font-size: 2rem; color: var(--bg); }
@media (max-width: 640px) { .examcta { grid-template-columns: 1fr; } .unitrow { grid-template-columns: 2.4rem 1fr; } .unitrow .dots { grid-column: 2; } }

/* ---------- Unit ---------- */
.unit { padding-block: 3vh var(--gap-section); }
.crumbs { font-size: var(--step-small); margin-bottom: 20px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.unit h1 { font-size: var(--step-head); max-width: 22ch; }
.unit .goal { margin-top: 16px; max-width: 60ch; }
.secnav { position: sticky; top: 0; z-index: 4; background: var(--bg); display: flex; gap: 6px; padding: 12px 0; margin: 28px 0 32px; overflow-x: auto; scrollbar-width: none; }
.secnav::-webkit-scrollbar { display: none; }
.secnav button { flex: 0 0 auto; min-height: 44px; padding: 0 16px; border: 0; background: var(--surface); cursor: pointer; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; transition: transform var(--press) var(--ease-out); }
.secnav button:active { transform: scale(.96); }
.secnav button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.secnav button .ok { width: 10px; height: 10px; background: var(--accent); display: inline-block; }
.panel { background: var(--paper); padding: clamp(20px, 4vw, 48px); }
.panel h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); margin-bottom: 20px; letter-spacing: -0.025em; line-height: 1.05; }
.panel h3 { font-size: 1.4rem; margin: 36px 0 14px; letter-spacing: -0.015em; }
.rich p, .rich ul { max-width: 68ch; }
.rich ul { padding-left: 1.2em; }
.rich li { margin-bottom: .3em; }
table.gt { border-collapse: collapse; margin: 18px 0 8px; min-width: min(100%, 520px); font-size: 1rem; }
table.gt th, table.gt td { text-align: left; padding: 8px 14px; border-bottom: 1px solid rgba(10,10,10,.2); }
table.gt th { background: var(--ink); color: var(--paper); font-weight: 500; }
.tablewrap { overflow-x: auto; }
.examples { display: grid; gap: 4px; margin-top: 8px; }
.ex { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 8px 0; }
.ex .en { font-weight: 500; }
.ex .es { color: var(--muted); font-size: var(--step-small); }
.say { width: 44px; height: 44px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; display: grid; place-items: center; transition: transform var(--press) var(--ease-out); }
.say:active { transform: scale(.92); }
.say svg { width: 18px; height: 18px; }
.say.playing { background: var(--accent); color: var(--ink); }
.nextsec { margin-top: 40px; display: flex; justify-content: flex-end; }

/* Flashcards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.card { perspective: 800px; min-height: 150px; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; }
.card .in { position: relative; width: 100%; height: 100%; min-height: 150px; transition: transform 500ms var(--ease-out); transform-style: preserve-3d; }
.card.flip .in { transform: rotateY(180deg); }
.card .f, .card .b { position: absolute; inset: 0; padding: 18px; backface-visibility: hidden; display: grid; align-content: space-between; }
.card .f { background: var(--bg); }
.card .b { background: var(--ink); color: var(--paper); transform: rotateY(180deg); }
.card .f b { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.card .b .tr { font-size: 1.3rem; color: var(--accent); }
.card .b .eg { font-size: .95rem; font-style: italic; }
.card .hint { font-size: var(--step-small); }

/* Exercises */
.exlist { display: grid; gap: 14px; margin-top: 12px; counter-reset: ex; }
.exq { background: #fff; padding: 20px 22px; transition: background-color 240ms; }
.exq.right { background: #f4ffb8; }
.exq.wrong { background: #ffd0dc; }
.exq .prompt { font-size: 1.15rem; margin-bottom: 14px; font-weight: 500; }
.exq .kind { font-size: var(--step-small); color: var(--muted); margin-bottom: 6px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { min-height: 46px; padding: 8px 16px; border: 2px solid var(--ink); background: transparent; cursor: pointer; text-align: left; transition: transform var(--press) var(--ease-out), background-color 140ms; }
.opt:hover:not([disabled]) { background: var(--paper); }
.opt:active:not([disabled]) { transform: scale(.97); }
.opt.sel { background: var(--ink); color: #fff; }
.opt.is-right { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.opt.is-wrong { background: var(--ink); color: var(--bg); text-decoration: line-through; }
.opt[disabled] { cursor: default; }
.gapline { line-height: 2.2; font-size: 1.15rem; font-weight: 500; }
.gapline input { min-width: 6ch; width: 10ch; min-height: 42px; border: 0; border-bottom: 3px solid var(--ink); background: var(--paper); padding: 0 8px; margin: 0 4px; border-radius: 0; }
.gapline input.is-right { background: var(--accent); }
.gapline input.is-wrong { background: #ffb3c7; }
.tray { display: flex; flex-wrap: wrap; gap: 6px; min-height: 52px; padding: 6px; background: var(--paper); margin-bottom: 8px; }
.tray.built { background: #fff; outline: 2px dashed rgba(10,10,10,.35); outline-offset: -2px; }
.chip { min-height: 40px; padding: 4px 12px; border: 0; background: var(--ink); color: #fff; cursor: pointer; transition: transform var(--press) var(--ease-out); }
.chip:active { transform: scale(.94); }
.tray.built .chip { background: var(--bg); color: var(--ink); }
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.match .col { display: grid; gap: 8px; align-content: start; }
.match .opt { width: 100%; }
.match .opt.paired { background: var(--surface); border-color: var(--surface); }
.match .opt.picked { outline: 3px solid var(--accent); outline-offset: 0; background: var(--ink); color: #fff; }
.feedback { margin-top: 12px; font-size: 1rem; }
.feedback b { font-weight: 600; }
.checkrow { margin-top: 12px; }
.score { margin-top: 28px; padding: 22px 24px; background: var(--ink); color: var(--paper); display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 20px; }
.score b { font-size: 3rem; font-weight: 300; letter-spacing: -0.04em; color: var(--accent); line-height: 1; }

/* Player */
.player { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--ink); color: var(--paper); padding: 14px; margin: 16px 0; }
.player .btn { border-color: var(--paper); }
.player .btn.ghost { color: var(--paper); }
.player .btn.ghost:hover { background: #2a2a2a; }
.player select { min-height: 44px; background: var(--ink); color: var(--paper); border: 2px solid var(--paper); padding: 0 10px; border-radius: 0; }
.script { white-space: pre-line; background: #fff; padding: 18px 20px; margin-top: 12px; max-width: 70ch; }

/* Speaking */
.repeat { display: grid; gap: 8px; }
.rep { background: #fff; padding: 16px 18px; display: grid; gap: 10px; }
.rep .target { font-size: 1.2rem; font-weight: 500; }
.rep .target .hit { background: var(--accent); }
.rep .target .miss { text-decoration: underline wavy #c2185b; text-underline-offset: 4px; }
.rep .heard { font-size: var(--step-small); color: var(--muted); }
.rec { background: var(--bg); color: var(--ink); border-color: var(--ink); }
.rec.on { background: #c2185b; color: #fff; border-color: #c2185b; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.04); } }
.kw { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.kw span { padding: 4px 10px; background: var(--surface); font-size: var(--step-small); transition: background-color 200ms; }
.kw span.on { background: var(--accent); }
.wc { font-size: var(--step-small); margin-top: 6px; }
.checklist { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.checklist label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.checklist input { width: 22px; height: 22px; accent-color: var(--ink); margin-top: 4px; }
.model { background: var(--ink); color: var(--paper); padding: 22px; margin-top: 20px; }
.model .rich p { color: var(--paper); }

/* Exam / placement */
.exam { padding-block: 4vh var(--gap-section); }
.exam h1 { font-size: var(--step-head); max-width: 20ch; }
.progressbar { height: 8px; background: var(--surface); margin: 28px 0; }
.progressbar i { display: block; height: 100%; background: var(--ink); transition: width 500ms var(--ease-out); }
.part { margin-top: 32px; }
.part > h2 { font-size: 1.8rem; margin-bottom: 14px; letter-spacing: -0.02em; }
.result .levelbig { font-size: clamp(8rem, 3rem + 20vw, 22rem); font-weight: 300; line-height: .8; letter-spacing: -0.06em; }
.result .grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--margin); align-items: end; margin-top: 32px; }
@media (max-width: 760px) { .result .grid { grid-template-columns: 1fr; } }
.bands { display: grid; gap: 10px; }
.band { display: grid; grid-template-columns: 3rem 1fr 3.5rem; gap: 12px; align-items: center; }
.band .meter { height: 18px; background: var(--surface); }
.band .meter i { display: block; height: 100%; background: var(--ink); transform-origin: left; animation: grow 900ms var(--ease-out) both; }
.band.pass .meter i { background: var(--ink); }
.band.fail .meter i { background: var(--muted); }
.equiv { margin-top: 32px; }
.equiv table { border-collapse: collapse; }
.equiv td, .equiv th { padding: 6px 14px 6px 0; text-align: left; border-bottom: 1px solid rgba(10,10,10,.2); }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); opacity: 0; visibility: hidden; background: var(--ink); color: var(--paper); padding: 12px 18px; z-index: 60; max-width: calc(100% - 32px); transition: transform 300ms var(--ease-out); box-shadow: 0 8px 24px rgba(0,0,0,.25); } /* taste-skill-ignore: toast floats over content */
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* Entrances */
.rise { opacity: 0; transform: translateY(24px); animation: rise 700ms var(--ease-out) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.hero h1 .line > span { animation: lineup 900ms var(--ease-out) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: 110ms; }
@keyframes lineup { from { transform: translateY(105%); } }
.slot .word { animation: wordin 520ms var(--ease-out) both; }
@keyframes wordin { from { transform: translateY(110%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* Bea, the mascot */
.bee { display: inline-block; width: var(--bee, 96px); aspect-ratio: 150 / 104; flex: 0 0 auto; vertical-align: middle; }
.bee svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bee .wings { transform-box: fill-box; transform-origin: 30% 100%; animation: flap 140ms ease-in-out infinite alternate; }
@keyframes flap { to { transform: scaleY(.55); } }
.bee.fly { animation: hover 2.6s ease-in-out infinite; }
@keyframes hover { 0%, 100% { transform: translate(0, 0) rotate(-3deg); } 50% { transform: translate(-6px, -12px) rotate(3deg); } }
.bee.pop { animation: beepop 600ms var(--ease-out) both; }
@keyframes beepop { 0% { transform: scale(.4) rotate(-20deg); opacity: 0; } 60% { transform: scale(1.1) rotate(6deg); opacity: 1; } 100% { transform: none; } }
.hero { position: relative; }
.hero .bee.hero-bee { position: absolute; right: var(--margin); top: 6vh; }
@media (max-width: 760px) { .hero .bee.hero-bee { top: 2vh; --bee: 110px !important; } }
.hello-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.bubble { background: var(--paper); padding: 12px 16px; max-width: 34ch; font-size: 1.05rem; position: relative; }
.score .bee { margin-right: 4px; }
.tryit .verdict { display: flex; gap: 14px; align-items: center; }

.remember { display: flex; gap: 10px; align-items: center; margin: 4px 0 22px; cursor: pointer; font-size: 1.05rem; }
.remember input { width: 22px; height: 22px; accent-color: var(--ink); }
