/* ============================================================================
   Vega Bell - auth.css
   Styles for public/js/screens/auth.js and public/js/screens/tuning.js.
   Conforms to docs/DESIGN_SYSTEM.md. Depends on tokens.css + animations.css.

   TWO RULES KEEP THIS FILE OUT OF EVERYONE ELSE'S WAY:

   1. SCOPED. index.html loads app.css, screens.css and game.css around this
      file, and game.css owns its own `.tile` / `.tiles` / `.speaker`. So every
      rule below is scoped under `.auth` or `.tune` (the two root wrappers
      these screens render). That both stops this file leaking into other
      screens and wins inside these two regardless of link order.

   2. LAYERED FALLBACKS. `.panel`, `.btn` and `.icon` belong to the app shell
      (app.js and ui.js emit them). They are defined here inside
      `@layer vb-fallback` purely so these screens are never unstyled -
      unlayered rules always beat layered ones, so app.css wins automatically.
   ========================================================================= */

@layer vb-fallback {

  .panel {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-2);
    padding: var(--sp-5);
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    min-height: var(--tap);
    padding: 0 var(--sp-5);
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
  }
  .btn:hover { filter: brightness(1.12); }
  .btn[disabled],
  .btn:disabled { opacity: .55; cursor: not-allowed; filter: none; }

  .btn--primary { background: var(--primary); border-color: var(--primary-lite); color: #fff; }
  .btn--ghost { background: transparent; border-color: var(--stroke); color: var(--text-dim); }
  .btn--sm { min-height: 36px; padding: 0 var(--sp-3); font-size: .875rem; }
  .btn--lg { min-height: 52px; padding: 0 var(--sp-6); font-size: 1.0625rem; }
  .btn--xl { min-height: 60px; padding: 0 var(--sp-7); font-size: 1.25rem; letter-spacing: .04em; }

  .icon { display: inline-flex; flex: none; align-items: center; justify-content: center; }
  .icon svg { width: 100%; height: 100%; }
}

/* ======================================================= shared by both == */

:where(.auth, .tune) :focus-visible {
  outline: 3px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: inherit;
}

/* inline-flex, not inline: an inline box ignores min-height and lets its
   vertical padding bleed over the line above, so a wrapped 'Forgot your
   password? / Other problems' pair used to overlap on a phone. */
:where(.auth, .tune) .linklike {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: var(--sp-2) var(--sp-3);
  border: 0;
  background: none;
  color: var(--accent-cyan);
  font-size: .9375rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.tune .spinner,
.auth .spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto var(--sp-3);
  border: 3px solid var(--stroke);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: vb-auth-spin 900ms linear infinite;
}
.tune .spinner--sm,
.auth .spinner--sm { width: 18px; height: 18px; margin: 0; border-width: 2px; }

@keyframes vb-auth-spin { to { transform: rotate(360deg); } }

/* ==================================================================== AUTH */

.auth {
  display: grid;
  gap: var(--sp-6);
  max-width: 560px;
  margin: 0 auto;
  padding: var(--sp-5) var(--sp-4) var(--sp-8);
}

/* -- hero ----------------------------------------------------------------- */

.auth__hero { text-align: center; }
.auth__mascot { width: clamp(110px, 30vw, 168px); height: auto; }

.auth__title {
  margin: var(--sp-3) 0 0;
  font-size: clamp(2rem, 9vw, 2.75rem);
  letter-spacing: .06em;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .auth__title { color: var(--text); background: none; }
}

.auth__tagline {
  margin: var(--sp-1) 0 var(--sp-3);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.125rem;
}
.auth__blurb { margin: 0 auto; max-width: 42ch; color: var(--text-dim); line-height: 1.55; }

/* -- card + tabs ---------------------------------------------------------- */

.auth__card { padding: var(--sp-4); }

.auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-1);
  margin-bottom: var(--sp-5);
  padding: var(--sp-1);
  border-radius: var(--r-pill);
  background: var(--bg-deep);
}
.auth__tab {
  min-height: var(--tap);
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}
.auth__tab--on { background: var(--primary); color: #fff; }

/* On a 320px phone 'Create account' breaks in two and the tab strip goes
   lopsided; a hair less type and padding keeps both labels on one line. */
@media (max-width: 360px) {
  .auth__card { padding: var(--sp-3); }
  .auth__tab { padding: 0 var(--sp-1); font-size: .875rem; }
}

.auth__form-host:focus { outline: none; }

/* -- fields --------------------------------------------------------------- */

.auth .field { position: relative; margin: 0 0 var(--sp-5); }

.auth .field__label {
  display: block;
  margin-bottom: var(--sp-2);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
}

.auth .input {
  display: block;
  width: 100%;
  min-height: var(--tap);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  background: var(--bg-deep);
  color: var(--text);
  /* 1rem minimum: anything smaller makes iOS Safari zoom on focus. */
  font-size: 1rem;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.auth .input:hover { border-color: var(--primary-lite); }
.auth .input:focus { border-color: var(--accent-cyan); }
.auth .input::placeholder { color: var(--text-dim); opacity: .7; }

.auth .input--select {
  appearance: none;
  padding-right: var(--sp-7);
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
                    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 22px) 55%, calc(100% - 15px) 55%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}
.auth .input--select option { background: var(--bg-deep); color: var(--text); }

.auth .field--invalid .input { border-color: var(--danger); background: rgba(251, 113, 133, .07); }

.auth .field__hint,
.auth .field__warn,
.auth .field__error,
.auth .field__ok {
  margin: var(--sp-2) 0 0;
  font-size: .875rem;
  line-height: 1.45;
}
.auth .field__hint { color: var(--text-dim); }

.auth .field__warn {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-sm);
  background: rgba(251, 191, 36, .1);
  color: var(--gold);
  font-weight: 500;
}
.auth .field__warn .icon { margin-top: 1px; }

.auth .field__error {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  color: var(--danger);
  font-weight: 500;
}
.auth .field__error[hidden] { display: none; }
.auth .field__error::before { content: "!"; flex: none; font-weight: 700; }

.auth .field__ok { display: flex; align-items: center; gap: 6px; color: var(--success); }
.auth .field__ok[hidden] { display: none; }

/* -- form banner (server messages with no home field) --------------------- */

.auth .form-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--danger);
  border-radius: var(--r-md);
  background: rgba(251, 113, 133, .12);
  color: var(--text);
  font-size: .9375rem;
}
.auth .form-banner[hidden] { display: none; }

/* -- password strength meter ---------------------------------------------- */

.auth .meter { margin-top: var(--sp-3); }
.auth .meter__track { display: flex; gap: 6px; }
.auth .meter__seg {
  flex: 1;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  transition: background-color 200ms ease;
}
.auth .meter__label {
  display: block;
  margin-top: var(--sp-2);
  color: var(--text-dim);
  font-size: .8125rem;
}
.auth .meter[data-score="0"] .meter__seg--on { background: var(--danger); }
.auth .meter[data-score="1"] .meter__seg--on { background: var(--gold); }
.auth .meter[data-score="2"] .meter__seg--on { background: var(--primary-lite); }
.auth .meter[data-score="3"] .meter__seg--on { background: var(--success); }
.auth .meter[data-score="0"] .meter__label { color: var(--danger); }
.auth .meter[data-score="3"] .meter__label { color: var(--success); }

/* -- the age gate --------------------------------------------------------- */

.auth .fieldset {
  margin: 0 0 var(--sp-5);
  padding: var(--sp-4);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  background: rgba(11, 10, 31, .35);
}
.auth .fieldset__legend {
  padding: 0 var(--sp-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
}

.auth .radio-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }

.auth .radio {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: var(--tap);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--stroke);
  border-radius: var(--r-pill);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.auth .radio:hover { border-color: var(--primary-lite); }
.auth .radio:has(.radio__input:checked) {
  border-color: var(--accent-cyan);
  background: rgba(34, 211, 238, .12);
}
.auth .radio:has(.radio__input:focus-visible) { outline: 3px solid var(--accent-cyan); outline-offset: 2px; }
.auth .radio__input { width: 20px; height: 20px; accent-color: var(--accent-cyan); }
.auth .radio__text { font-size: 1rem; }

.auth .check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  min-height: var(--tap);
  padding: var(--sp-2) 0;
  cursor: pointer;
}
.auth .check--tight { margin-top: var(--sp-3); }
.auth .check__input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent-cyan); }
.auth .check__text { font-size: .9375rem; line-height: 1.5; }
.auth .check:has(.check__input:focus-visible) {
  outline: 3px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* -- the guardian block (COPPA) ------------------------------------------- */

.auth .guardian {
  margin: 0 0 var(--sp-5);
  padding: var(--sp-4);
  border: 1px solid var(--gold);
  border-radius: var(--r-md);
  background: rgba(251, 191, 36, .07);
  animation: vb-fade-in-up var(--vb-dur-3, 340ms) var(--vb-ease-out, ease) both;
}
.auth .guardian[hidden] { display: none; }
.auth .guardian__note { display: flex; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.auth .guardian__mascot { flex: none; width: 56px; height: 56px; }
.auth .guardian__title { margin: 0 0 var(--sp-2); color: var(--gold); font-size: 1.0625rem; }
.auth .guardian__note p { margin: 0 0 var(--sp-2); font-size: .9375rem; line-height: 1.55; }

.auth .turnstile { min-height: 68px; }

/* -- submit, status, legal ------------------------------------------------ */

.auth__submit { width: 100%; margin-top: var(--sp-2); }
.auth__submit.is-busy { cursor: progress; }

.auth__status {
  min-height: 1.25rem;
  margin: var(--sp-3) 0 0;
  color: var(--accent-cyan);
  font-size: .9375rem;
  text-align: center;
}

.auth__aside { margin: var(--sp-4) 0 0; text-align: center; }

.auth__legal {
  margin: var(--sp-5) 0 0;
  color: var(--text-dim);
  font-size: .8125rem;
  line-height: 1.6;
  text-align: center;
}

.auth__more { margin: 0 0 var(--sp-5); }
.auth__more > summary {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--accent-cyan);
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
}
.auth__more[open] > summary { margin-bottom: var(--sp-3); }

/* ================================================================== TUNING */

.tune {
  max-width: 620px;
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-4) var(--sp-8);
}

.tune__stage { position: relative; }

.tune__panel,
.tune__intro,
.tune__word,
.tune__verdict,
.tune__result { text-align: center; }

.tune__mascot { width: clamp(96px, 26vw, 150px); height: auto; }
.tune__mascot--corner {
  position: absolute;
  right: -8px;
  bottom: -22px;
  width: clamp(64px, 16vw, 104px);
  opacity: .9;
  pointer-events: none;
}
.tune__mascot--result { width: clamp(88px, 22vw, 128px); margin: var(--sp-3) auto 0; }

.tune__h1 { margin: var(--sp-3) 0 var(--sp-2); font-size: clamp(1.75rem, 7vw, 2.5rem); }
.tune__lede { margin: 0 0 var(--sp-2); font-size: 1.0625rem; line-height: 1.5; }
.tune__muted { color: var(--text-dim); line-height: 1.55; }
.tune__small { font-size: .875rem; }

.tune__facts {
  display: grid;
  gap: var(--sp-3);
  margin: var(--sp-5) 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.tune__facts li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: .9375rem;
  line-height: 1.5;
}
.tune__facts .icon { color: var(--accent-cyan); }

.tune__start { width: 100%; }
.tune__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  margin-top: var(--sp-4);
}

/* -- progress ------------------------------------------------------------- */

.tune__progress { margin-bottom: var(--sp-4); }
.tune__step {
  margin: 0 0 var(--sp-2);
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: .9375rem;
  letter-spacing: .04em;
}
.tune__dots { display: flex; gap: 6px; justify-content: center; }
.tune__dot { width: 26px; height: 6px; border-radius: var(--r-pill); background: var(--surface-2); }
.tune__dot--done { background: var(--primary-lite); }
.tune__dot--now { background: var(--accent-cyan); }

/* -- the speaker ---------------------------------------------------------- */

.tune__listen { display: grid; justify-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }

.tune .speaker {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(96px, 26vw, 124px);
  height: clamp(96px, 26vw, 124px);
  padding: 0;
  border: 2px solid var(--primary-lite);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, var(--surface-2), var(--surface));
  color: var(--accent-cyan);
  cursor: pointer;
  transition: transform 140ms var(--vb-ease-back, ease), border-color 140ms ease;
}
.tune .speaker:hover { transform: scale(1.04); border-color: var(--accent-cyan); }
.tune .speaker:active { transform: scale(.97); }
.tune .speaker:disabled { cursor: progress; opacity: 1; }

.tune .speaker__ring {
  position: absolute;
  inset: -10px;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  opacity: 0;
}
.tune .speaker--playing .speaker__ring {
  animation: vb-tune-speaker-ring 1.1s var(--vb-ease-out, ease) infinite;
}
@keyframes vb-tune-speaker-ring {
  from { opacity: .55; transform: scale(.92); }
  to   { opacity: 0;   transform: scale(1.18); }
}

.tune__audio-note { min-height: 1.2rem; margin: 0; color: var(--text-dim); font-size: .875rem; }

/* -- the free hints ------------------------------------------------------- */

.tune__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
  margin-bottom: var(--sp-4);
}

.tune .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px var(--sp-3);
  border: 1px solid var(--stroke);
  border-radius: var(--r-pill);
  background: var(--bg-deep);
  color: var(--text);
  font-size: .8125rem;
}
.tune .chip__k { color: var(--text-dim); text-transform: lowercase; }
.tune .chip__v { font-weight: 600; }
.tune .chip .icon { color: var(--primary-lite); }
.tune .chip--ipa .chip__v { font-family: var(--font-mono); font-weight: 500; }
.tune .chip--free { border-color: var(--success); color: var(--success); }
.tune .chip--free .icon { color: var(--success); }

.tune__meaning {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--bg-deep);
  text-align: left;
}
.tune__def,
.tune__sentence {
  display: flex;
  gap: var(--sp-3);
  margin: 0;
  font-size: .9375rem;
  line-height: 1.55;
}
.tune__def .icon,
.tune__sentence .icon { color: var(--primary-lite); }
.tune__sentence { color: var(--text-dim); font-style: italic; }

/* -- tiles ---------------------------------------------------------------- */

.tune .tiles__wrap { position: relative; margin-bottom: var(--sp-5); }

.tune .tiles__label {
  display: block;
  margin-bottom: var(--sp-2);
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: .9375rem;
}

.tune .tiles { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

.tune .tile {
  display: grid;
  place-items: center;
  width: clamp(30px, 8.5vw, 48px);
  height: clamp(42px, 11vw, 60px);
  border: 2px solid var(--stroke);
  border-radius: var(--r-sm);
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: clamp(1.125rem, 4.5vw, 1.5rem);
  font-weight: 600;
  text-transform: lowercase;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.tune .tile--filled { border-color: var(--primary-lite); background: var(--surface); }
.tune .tiles--focus .tile--cursor {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .22);
}

/* The real input: full-size, invisible and on top, so a tap anywhere on the
   answer block opens the keyboard. 1rem stops iOS Safari zooming in. */
.tune .tiles__input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 1rem;
  text-align: center;
  cursor: text;
}
.tune .tiles__input:focus { outline: none; }
.tune .tiles__input:disabled { cursor: default; }

.tune__counter { margin: var(--sp-2) 0 0; color: var(--text-dim); font-size: .8125rem; }

.tune__submit { width: 100%; }
.tune__skip { display: block; margin: var(--sp-3) auto 0; color: var(--text-dim); }

.tune__nudge {
  margin: var(--sp-4) 0 0;
  color: var(--text-dim);
  font-size: .875rem;
  animation: vb-fade-in-up var(--vb-dur-3, 340ms) ease both;
}
.tune__nudge[hidden] { display: none; }

.tune__retry {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding: var(--sp-3);
  border: 1px solid var(--stroke);
  border-radius: var(--r-md);
  background: var(--bg-deep);
  font-size: .9375rem;
}

/* -- verdict -------------------------------------------------------------- */

.tune__verdict--yes { border-color: var(--success); }
.tune__verdict--near { border-color: var(--gold); }
/* Deliberately NOT red: nothing in The Tuning is a failure. */
.tune__verdict--learn { border-color: var(--primary-lite); }

.tune__verdict-head { margin: var(--sp-3) 0 var(--sp-2); font-size: clamp(1.25rem, 5.5vw, 1.625rem); }
.tune__verdict--yes .tune__verdict-head { color: var(--success); }
.tune__verdict--near .tune__verdict-head { color: var(--gold); }
.tune__verdict--learn .tune__verdict-head { color: var(--primary-lite); }

.tune__spelling {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: .06em;
  word-break: break-word;
}
.tune__syllables {
  margin: var(--sp-2) 0 0;
  color: var(--accent-cyan);
  font-size: 1rem;
  letter-spacing: .08em;
}

.tune__yours {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-2);
  margin: var(--sp-4) 0 0;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--bg-deep);
}
.tune__yours-k { color: var(--text-dim); font-size: .8125rem; }
.tune__yours-v {
  font-family: var(--font-mono);
  text-decoration: line-through;
  text-decoration-color: var(--text-dim);
}

.tune__next { margin-top: var(--sp-5); min-width: 200px; }

.tune .mono { font-family: var(--font-mono); }

/* -- result: the ceremony ------------------------------------------------- */

.tune__eyebrow {
  margin: 0;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: .9375rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* COPY RULE (GAME_DESIGN 2.1): the Orbit name is the headline. */
.tune__orbit {
  margin: var(--sp-2) 0 var(--sp-3);
  font-size: clamp(2.5rem, 13vw, 4rem);
  line-height: 1.05;
  background: var(--grad-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .tune__orbit { color: var(--gold); background: none; }
}

.tune__cefr {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1rem, 4.5vw, 1.25rem);
  letter-spacing: .04em;
}
/* The US grade equivalence: secondary, small, and the copy prefixes it "≈". */
.tune__grades { margin: var(--sp-2) 0 0; color: var(--text-dim); font-size: .8125rem; }

.tune__result-note { margin: var(--sp-4) auto 0; max-width: 38ch; font-size: .9375rem; }

.tune .orbits {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin: var(--sp-5) 0 0;
  padding: 0;
  list-style: none;
}
.tune .orbits__item {
  display: grid;
  justify-items: center;
  gap: 6px;
  flex: 1 1 0;
  min-width: 0;
  opacity: .45;
}
.tune .orbits__item--mine { opacity: 1; }
/* Real Orbit art replaces the bare CSS circles. This is the moment the player
   is told who they are, so it gets room: the old rings topped out at 34px. */
.tune .orbits__art {
  width: clamp(44px, 13vw, 64px);
  height: auto;
  display: block;
}
/* The unearned Orbits are dimmed by .orbits__item's own opacity, so the lit one
   only needs a halo. Rank is carried by the label and aria-current too, never
   by this glow alone. */
.tune .orbits__item--mine .orbits__art {
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, .55));
}
.tune .orbits__name {
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: .6875rem;
  text-align: center;
  overflow-wrap: anywhere;
}
.tune .orbits__item--mine .orbits__name { color: var(--gold); font-weight: 600; }

.tune__play { width: 100%; margin-top: var(--sp-5); }
.tune__again { display: block; margin: var(--sp-3) auto 0; color: var(--text-dim); }

/* ============================================================== breakpoints */

@media (min-width: 640px) {
  .auth { padding-top: var(--sp-7); }
  .auth__card { padding: var(--sp-6); }
  .tune { padding-top: var(--sp-6); }
  .tune__panel,
  .tune__intro,
  .tune__word,
  .tune__verdict,
  .tune__result { padding: var(--sp-6); }
  .tune .tiles { gap: 8px; }
  /* A lone primary submit in a centred card should sit on the card's axis;
     as an inline-block it otherwise parks against the left edge. */
  .auth__submit,
  .tune__submit,
  .tune__start,
  .tune__play {
    width: auto;
    min-width: 260px;
    display: block;
    margin-inline: auto;
  }
}

@media (min-width: 1024px) {
  .auth { max-width: 600px; }
  .tune { max-width: 680px; }
}

/* Landscape phones: keep the answer row reachable without scrolling. */
@media (max-height: 520px) and (orientation: landscape) {
  .tune__mascot { display: none; }
  .tune .speaker { width: 76px; height: 76px; }
  .tune__meaning { padding: var(--sp-3); }
}

/* ========================================================== reduced motion */

@media (prefers-reduced-motion: reduce) {
  .tune .speaker--playing .speaker__ring { animation: none; opacity: .5; }
  .tune .spinner,
  .auth .spinner { animation-duration: 2.4s; }
  .auth .guardian,
  .tune__nudge { animation: none; }
  .auth__tab,
  .auth .input,
  .auth .radio,
  .auth .meter__seg,
  .tune .tile,
  .tune .speaker { transition: none; }
  .tune .speaker:hover,
  .tune .speaker:active { transform: none; }
}

/* ============================================================ forced colors */

@media (forced-colors: active) {
  .auth .input,
  .auth .radio,
  .tune .tile,
  .tune .speaker { border: 1px solid ButtonBorder; }
  .auth__title,
  .tune__orbit { color: CanvasText; background: none; }
  .auth .meter__seg--on { background: Highlight; }
}
