/* ============================================================
   SIGN IN / SIGN UP — the front door (ui/LoginScreen.js) and the
   parts it shares with Settings › Account (ui/AuthKit.js).
   Also: the What's New log (game/Changelog.js, .cl-*) and the guided
   tour card (ui/WelcomeTour.js, .wt-*) — the rest of the first-run path.
   ============================================================
   Two compositions over one set of controls:
     .auth-desk   desktop split screen: the STAGE (the brand and one
                  machine under a spotlight) on the left, the DOCK
                  (full-height form panel) on the right.
     .auth-phone  the compact layout: a tilted wall of machine emblems
                  behind the crest, and a bottom sheet with every control
                  in thumb reach. Tablets get the sheet as a floating card.
     .auth-panel  the flow in one column, inside the Settings modal.

   Follows the house contract (styles-premium.css):
   - keyframes animate transform / opacity only (plus the stroke draw on
     the success seal); entrances use `backwards` fill;
   - hover rules sit inside @media (hover: hover);
   - every keyframes class is silenced under .reduced-motion, and the
     ambient loops also under .performance-mode (GUARDS, at the bottom).
   - At rest the whole screen runs ONE ambient animation: the desktop
     spotlight's living emblem (styles-emblems.css). The phone's reel
     wall spins once on arrival (Web Animations, in LoginScreen.js) and
     then stands still.

   Rules are scoped under .auth-root where they touch buttons or inputs:
   the Tailwind CDN injects its preflight AFTER this sheet, so an unscoped
   single-class rule could lose to it on source order.
   ============================================================ */

.auth-root {
  --a-ink: #f6f0e4;
  --a-mute: #a8a29e;
  --a-faint: #837a72;
  --a-line: rgba(255, 255, 255, 0.08);
  --a-line-strong: rgba(255, 255, 255, 0.14);
  --a-gold: #f5c451;
  --a-gold-hi: #fde68a;
  --a-gold-deep: #b7791f;
  --a-gold-line: rgba(245, 196, 81, 0.34);
  --a-eyebrow: #cfa75c;
  --a-field: rgba(255, 255, 255, 0.035);
  --a-danger: #f87171;
  --a-glide: cubic-bezier(0.22, 1, 0.36, 1);
  --a-snap: cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--a-ink);
  font-family: "Oswald", sans-serif;
  line-height: 1.35;
}
.auth-root :focus-visible {
  outline: 2px solid rgba(253, 230, 138, 0.85);
  outline-offset: 2px;
}

/* ------------------------------------------------------------
   TYPE
   ------------------------------------------------------------ */
.auth-wordmark {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-right: -0.3em; /* hand back the trailing tracking so centred text centres */
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(180deg, #fff6d8 0%, #fde68a 32%, #f5b83d 62%, #b7791f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.auth-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--a-eyebrow);
}
.auth-head { display: flex; flex-direction: column; }
.auth-head.is-center { align-items: center; text-align: center; }
.auth-title {
  margin: 8px 0 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--a-ink);
}
.auth-sub {
  margin: 10px 0 0;
  max-width: 38ch;
  font-size: 15px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--a-mute);
}

/* ------------------------------------------------------------
   FIELDS — label floats inside the box (off :placeholder-shown)
   ------------------------------------------------------------ */
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 7px; }
.auth-field-box { position: relative; font-size: 17px; }
.auth-root .auth-input {
  display: block;
  width: 100%;
  height: 58px;
  margin: 0;
  padding: 21px 16px 5px 48px;
  border-radius: 14px;
  border: 1px solid var(--a-line-strong);
  background: var(--a-field);
  color: var(--a-ink);
  caret-color: var(--a-gold);
  font-family: "Share Tech Mono", monospace;
  font-size: 17px;
  letter-spacing: 0.05em;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.auth-root .auth-field:not(.has-icon) .auth-input { padding-left: 16px; }
.auth-root .auth-field.has-reveal .auth-input { padding-right: 54px; }
@media (hover: hover) {
  .auth-root .auth-input:hover { background: rgba(255, 255, 255, 0.055); }
}
/* The focus ring is static (it appears, it is never animated). */
.auth-root .auth-input:focus {
  border-color: rgba(245, 196, 81, 0.72);
  background: rgba(245, 196, 81, 0.045);
  box-shadow: 0 0 0 4px rgba(245, 196, 81, 0.12);
}
.auth-root .auth-input:focus-visible { outline: none; }
.auth-root .auth-field.is-error .auth-input {
  border-color: rgba(248, 113, 113, 0.75);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.1);
}
/* Browser autofill paints its own yellow/blue — keep ours. */
.auth-root .auth-input:-webkit-autofill,
.auth-root .auth-input:-webkit-autofill:hover {
  -webkit-text-fill-color: var(--a-ink);
  -webkit-box-shadow: 0 0 0 100px #17140f inset;
  box-shadow: 0 0 0 100px #17140f inset;
  transition: background-color 9999s ease-out 0s;
}
.auth-root .auth-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px #1c1811 inset, 0 0 0 4px rgba(245, 196, 81, 0.12);
  box-shadow: 0 0 0 100px #1c1811 inset, 0 0 0 4px rgba(245, 196, 81, 0.12);
}
.auth-label {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  transform-origin: left center;
  pointer-events: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--a-faint);
  white-space: nowrap;
  transition: transform 0.22s var(--a-glide), color 0.18s ease;
}
.auth-field:not(.has-icon) .auth-label { left: 16px; }
.auth-input:focus + .auth-label,
.auth-input:not(:placeholder-shown) + .auth-label,
.auth-input:-webkit-autofill + .auth-label {
  transform: translateY(calc(-50% - 12px)) scale(0.78);
  color: var(--a-eyebrow);
}
.auth-field.is-error .auth-input + .auth-label { color: #fca5a5; }
.auth-field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--a-faint);
  pointer-events: none;
  transition: color 0.18s ease;
}
.auth-input:focus ~ .auth-field-icon { color: var(--a-gold); }
.auth-field.is-error .auth-field-icon { color: var(--a-danger); }
.auth-root .auth-reveal {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--a-faint);
  transition: color 0.15s ease, background-color 0.15s ease;
}
@media (hover: hover) {
  .auth-root .auth-reveal:hover { color: var(--a-ink); background: rgba(255, 255, 255, 0.05); }
}
.auth-root .auth-reveal[aria-pressed="true"] { color: var(--a-gold); }
.auth-field-msg {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 4px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: var(--a-faint);
}
.auth-field-msg svg { flex: none; }
.auth-field-msg.is-error { color: #fca5a5; }
.auth-field-msg.is-warn { color: #fcd34d; }

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.auth-root .auth-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: "Oswald", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: transform 0.26s var(--a-snap), filter 0.2s ease,
    background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.auth-btn-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: -0.24em;
  transition: opacity 0.15s ease;
}
.auth-btn-icon { transition: transform 0.28s var(--a-glide); }
@media (hover: hover) {
  .auth-root .auth-btn:hover:not(:disabled) .auth-btn-icon { transform: translateX(3px); }
}
.auth-root .auth-btn:active:not(:disabled) { transform: translateY(1px) scale(0.975); }
.auth-root .auth-btn:disabled { cursor: default; }
.auth-root .auth-btn.is-busy { cursor: progress; }
.auth-root .auth-btn.is-busy .auth-btn-label { opacity: 0; }

.auth-root .auth-btn--gold {
  color: #1d1305;
  background: linear-gradient(180deg, #fde68a 0%, #f7c24a 44%, #df921f 100%) #f7c24a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -2px 0 rgba(120, 53, 15, 0.3),
    0 1px 0 #7a4410,
    0 14px 30px -12px rgba(245, 158, 11, 0.7);
  text-shadow: 0 1px 0 rgba(255, 244, 214, 0.45);
}
/* The sheen: a band of light that crosses the face once per hover. */
.auth-root .auth-btn--gold::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, 0.55) 48%, transparent 68%);
  background-repeat: no-repeat;
  transform: translateX(-130%);
}
@media (hover: hover) {
  .auth-root .auth-btn--gold:hover:not(:disabled) { filter: brightness(1.06); }
  .auth-root .auth-btn--gold:hover:not(:disabled)::before { animation: auth-sheen 0.95s var(--a-glide); }
}
.auth-root .auth-btn--outline {
  color: var(--a-gold-hi);
  background: rgba(245, 196, 81, 0.04);
  border-color: var(--a-gold-line);
}
@media (hover: hover) {
  .auth-root .auth-btn--outline:hover { background: rgba(245, 196, 81, 0.09); border-color: rgba(245, 196, 81, 0.55); }
}
.auth-root .auth-btn--ghost {
  height: 50px;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--a-mute);
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--a-line);
}
@media (hover: hover) {
  .auth-root .auth-btn--ghost:hover { color: var(--a-ink); background: rgba(255, 255, 255, 0.055); border-color: var(--a-line-strong); }
}
.auth-spinner {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  opacity: 0.85;
  animation: auth-spin 0.7s linear infinite;
}

/* ------------------------------------------------------------
   TABS — Sign in | Create account, with a sliding gold thumb
   ------------------------------------------------------------ */
.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--a-line);
}
.auth-tabs-thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(245, 196, 81, 0.2), rgba(245, 196, 81, 0.07));
  border: 1px solid rgba(245, 196, 81, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 20px -10px rgba(245, 158, 11, 0.6);
  transition: transform 0.42s var(--a-glide);
}
.auth-tabs-thumb.is-right { transform: translateX(100%); }
.auth-root .auth-tabs button {
  position: relative;
  z-index: 1;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--a-faint);
  transition: color 0.2s ease;
}
.auth-root .auth-tabs button.is-on { color: var(--a-gold-hi); }
@media (hover: hover) {
  .auth-root .auth-tabs button:not(.is-on):hover { color: var(--a-ink); }
}
/* The bonus rides the tab's top edge rather than taking width from its
   label, and bows out (the form's bonus strip takes over) once that tab
   is open. */
.auth-tab-badge {
  position: absolute;
  top: -11px;
  right: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: "Share Tech Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: #1d1305;
  background: linear-gradient(180deg, #fde68a, #e39a28) #f5c451;
  box-shadow: 0 0 0 2px #100e0b, 0 4px 12px -4px rgba(245, 158, 11, 0.8);
  transition: opacity 0.2s ease, transform 0.3s var(--a-snap);
}
.auth-tab-badge.is-hidden { opacity: 0; transform: translateY(4px) scale(0.8); }

/* ------------------------------------------------------------
   NOTICES, BONUS, WELCOME CARD, LINKS
   ------------------------------------------------------------ */
.auth-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  line-height: 1.45;
}
.auth-notice svg { margin-top: 1px; flex: none; }
.auth-notice.is-error { color: #fecaca; background: rgba(127, 29, 29, 0.28); border: 1px solid rgba(248, 113, 113, 0.35); }
.auth-notice.is-error svg { color: #f87171; }

/* One row: gift · label · amount. A single glint crosses it as it arrives. */
.auth-bonus-strip {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 7px 14px 7px 8px;
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(245, 196, 81, 0.15), rgba(245, 196, 81, 0.03) 62%), rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(245, 196, 81, 0.3);
}
.auth-bonus-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 236, 179, 0.16) 50%, transparent 65%);
  background-repeat: no-repeat;
  transform: translateX(-100%);
  animation: auth-strip-glint 1.1s var(--a-glide) 0.5s;
}
.auth-bonus-strip-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d1305;
  background: linear-gradient(180deg, #fde68a, #e0931f) #f5c451;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 16px -6px rgba(245, 158, 11, 0.7);
}
.auth-bonus-strip-label { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--a-gold-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-bonus-strip-amt { flex: none; font-size: 21px; font-variant-numeric: tabular-nums; color: #fde68a; text-shadow: 0 0 18px rgba(245, 196, 81, 0.4); }

.auth-welcome { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.auth-welcome-name {
  min-width: 0;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--a-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auth-monogram {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  color: #1d1305;
  background: radial-gradient(circle at 50% 30%, #fff3c4, #f5c451 55%, #b7791f);
  box-shadow: 0 0 0 3px rgba(10, 9, 8, 0.95), 0 0 0 4.5px rgba(245, 196, 81, 0.55), 0 12px 30px -10px rgba(245, 158, 11, 0.6);
}

.auth-root .auth-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 6px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--a-mute);
  transition: color 0.15s ease;
}
@media (hover: hover) {
  .auth-root .auth-link:hover { color: var(--a-gold-hi); }
}
.auth-root .auth-link--center { align-self: center; justify-content: center; }
.auth-root .auth-link--quiet { color: var(--a-faint); }
/* The quiet exits under a form (switch account · play as guest). */
.auth-alt { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 22px; row-gap: 0; margin-top: -6px; }
.auth-stack { display: flex; flex-direction: column; gap: 12px; }
.auth-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The phone landing's one line of value. */
.auth-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--a-mute);
}
.auth-value-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d1305;
  background: linear-gradient(180deg, #fde68a, #e0931f) #f5c451;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 16px -6px rgba(245, 158, 11, 0.7);
}
.auth-value-amt { font-size: 22px; font-weight: 400; letter-spacing: 0.02em; text-transform: none; color: #fde68a; text-shadow: 0 0 18px rgba(245, 196, 81, 0.4); }

/* ------------------------------------------------------------
   GUEST PITCH
   ------------------------------------------------------------ */
.auth-guest { display: flex; flex-direction: column; gap: 22px; }
.auth-guest .auth-sub { max-width: none; }

/* ------------------------------------------------------------
   SUCCESS — the seal draws itself, then the hand-over line fills
   ------------------------------------------------------------ */
.auth-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 10px 0 4px; }
.auth-seal { overflow: visible; margin-bottom: 8px; }
.auth-seal-halo {
  fill: rgba(245, 196, 81, 0.09);
  transform-origin: 40px 40px;
  animation: auth-halo 1.1s var(--a-glide) backwards;
}
.auth-seal-ring {
  fill: none;
  stroke: #f5c451;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  transform: rotate(-90deg);
  transform-origin: 40px 40px;
  filter: drop-shadow(0 0 6px rgba(245, 196, 81, 0.55));
  animation: auth-draw 0.7s var(--a-glide) 0.05s backwards;
}
.auth-seal-check {
  fill: none;
  stroke: #fde68a;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  animation: auth-draw 0.45s var(--a-glide) 0.5s backwards;
}
.auth-success-name { font-size: 30px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.1; color: var(--a-ink); overflow-wrap: anywhere; }
.auth-success-meta { font-size: 22px; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; color: #fde68a; text-shadow: 0 0 18px rgba(245, 196, 81, 0.35); animation: auth-rise 0.5s var(--a-glide) 0.3s backwards; }
.auth-success-bonus {
  width: 100%;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(245, 196, 81, 0.17), rgba(245, 196, 81, 0.04));
  border: 1px solid rgba(245, 196, 81, 0.36);
  animation: auth-rise 0.6s var(--a-glide) 0.35s backwards;
}
.auth-success-bonus-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--a-gold-hi); }
.auth-success-bonus-amt { font-size: 28px; font-variant-numeric: tabular-nums; color: #fde68a; text-shadow: 0 0 22px rgba(245, 196, 81, 0.5); }
.auth-progress { width: 100%; max-width: 220px; height: 3px; margin-top: 14px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, 0.08); }
.auth-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #b7791f, #fde68a);
  transform-origin: left center;
  animation: auth-fill linear forwards;
}

/* ------------------------------------------------------------
   SMALL CHROME — what's new, icon buttons, build stamp
   ------------------------------------------------------------ */
.auth-root .auth-news {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--a-mute);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--a-line);
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, transform 0.22s var(--a-snap);
}
@media (hover: hover) {
  .auth-root .auth-news:hover { color: var(--a-gold-hi); border-color: var(--a-gold-line); }
}
.auth-root .auth-news:active { transform: scale(0.95); }
.auth-root .auth-news.is-compact,
.auth-root .auth-icon-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--a-ink);
  background: rgba(12, 10, 8, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.22s var(--a-snap);
}
.auth-root .auth-icon-btn:active,
.auth-root .auth-news.is-compact:active { transform: scale(0.92); }
.auth-build { font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(168, 162, 158, 0.55); }

/* ------------------------------------------------------------
   MOTION
   ------------------------------------------------------------ */
@keyframes auth-rise { from { opacity: 0; transform: translateY(14px); } }
.auth-rise { animation: auth-rise 0.75s var(--a-glide) backwards; }
@keyframes auth-swap { from { opacity: 0; transform: translateY(8px); } }
.auth-swap-in { animation: auth-swap 0.34s var(--a-glide) backwards; }
@keyframes auth-shake-a {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}
@keyframes auth-shake-b {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}
.auth-shake-a { animation: auth-shake-a 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
.auth-shake-b { animation: auth-shake-b 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@keyframes auth-sheen { from { transform: translateX(-130%); } to { transform: translateX(130%); } }
@keyframes auth-strip-glint { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes auth-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes auth-draw { from { stroke-dashoffset: 100; } }
@keyframes auth-halo { from { opacity: 0; transform: scale(0.6); } }
@keyframes auth-fade-in { from { opacity: 0; } }
@keyframes auth-sweep {
  0% { opacity: 0; transform: translateX(-60%); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translateX(60%); }
}

/* ============================================================
   DESKTOP — .auth-desk
   ============================================================ */
.auth-desk {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(440px, 35vw, 540px);
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  background: #070605;
  overflow: hidden;
}

/* ---- the stage ---- */
.auth-stage {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 36px clamp(32px, 4vw, 64px) 40px;
  background: radial-gradient(130% 90% at 50% 38%, #110e0b 0%, #070605 70%);
}
.auth-stage > * { position: relative; z-index: 2; }
.auth-stage .auth-stage-glow,
.auth-stage .auth-stage-pattern,
.auth-stage .auth-stage-sweep { position: absolute; z-index: 0; pointer-events: none; }
/* Keyed per machine in JSX: each new colour fades in (opacity only). */
.auth-stage-glow {
  left: 50%;
  top: 46%;
  width: 1200px;
  height: 900px;
  margin: -450px 0 0 -600px;
  border-radius: 50%;
  opacity: 0.2;
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.4) 48%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.4) 48%, transparent 100%);
  animation: auth-glow-in 1.2s ease backwards;
}
@keyframes auth-glow-in { from { opacity: 0; } }
/* Art-deco lattice: two sets of fine gold diagonals, faded out at the rim. */
.auth-stage-pattern {
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(245, 196, 81, 0.05) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(-45deg, rgba(245, 196, 81, 0.05) 0 1px, transparent 1px 38px);
  -webkit-mask-image: radial-gradient(70% 62% at 50% 46%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
  mask-image: radial-gradient(70% 62% at 50% 46%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
}
.auth-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 95% at 50% 46%, transparent 55%, rgba(0, 0, 0, 0.6) 100%);
}
.auth-stage-sweep {
  inset: -10% -50%;
  z-index: 3;
  opacity: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 226, 150, 0.1) 47%, rgba(255, 244, 214, 0.24) 50%, rgba(255, 226, 150, 0.1) 53%, transparent 60%);
  background-repeat: no-repeat;
}
.auth-desk.is-success .auth-stage-sweep { animation: auth-sweep 1.15s var(--a-glide) forwards; }
/* The update log covers the stage: its living emblem holds still meanwhile. */
.auth-desk:has(.auth-news[aria-expanded="true"]) .auth-spot-emblem * { animation-play-state: paused !important; }

.auth-brand { display: flex; align-items: center; gap: 14px; }
.auth-brand .auth-wordmark { font-size: 22px; }

/* ---- the spotlight ---- */
.auth-spot {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 0 12px;
}
.auth-spot-case { position: relative; flex: none; }
.auth-spot-rings {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  overflow: visible;
}
.auth-ring-outer {
  fill: none;
  stroke: var(--feat, #fbbf24);
  stroke-opacity: 0.5;
  stroke-width: 1.2;
  stroke-dasharray: 1.4 4.6;
}
.auth-ring-inner { fill: none; stroke: rgba(245, 196, 81, 0.16); stroke-width: 0.6; }
.auth-spot-floor {
  position: absolute;
  left: 50%;
  bottom: 3%;
  width: 62%;
  height: 14%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245, 196, 81, 0.35), transparent);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--feat, #fbbf24) 55%, transparent), transparent);
  opacity: 0.55;
}
.auth-spot-emblem {
  position: absolute;
  left: 50%;
  top: 46%;
  line-height: 0;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 30px rgba(245, 196, 81, 0.25));
  filter: drop-shadow(0 0 30px color-mix(in srgb, var(--feat, #fbbf24) 38%, transparent));
}
.auth-spot-emblem.is-entering { animation: auth-emblem-in 0.85s var(--a-glide) backwards; }
.auth-spot-emblem.is-leaving { animation: auth-emblem-out 0.55s ease-in forwards; }
@keyframes auth-emblem-in { from { opacity: 0; transform: translate(-50%, -44%) scale(0.86); } }
@keyframes auth-emblem-out { to { opacity: 0; transform: translate(-50%, -56%) scale(1.06); } }
.auth-spot-text { margin-top: 10px; animation: auth-rise 0.7s var(--a-glide) 0.08s backwards; }
.auth-spot-name {
  margin: 0;
  font-size: clamp(38px, 6.4vh, 66px);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.65);
}
.auth-spot-count {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.3em;
  font-variant-numeric: tabular-nums;
  color: var(--a-faint);
}

/* ---- the dock ---- */
.auth-dock {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: linear-gradient(180deg, #13110e 0%, #0c0a08 100%);
  box-shadow: -40px 0 80px -30px rgba(0, 0, 0, 0.85);
  animation: auth-dock-in 0.8s var(--a-glide) 0.1s backwards;
}
.auth-dock::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(245, 196, 81, 0.42) 28%, rgba(245, 196, 81, 0.42) 72%, transparent);
}
@keyframes auth-dock-in { from { opacity: 0; transform: translateX(24px); } }
.auth-dock-top { display: flex; justify-content: flex-end; padding: 22px 26px 0; }
.auth-dock-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 18px clamp(32px, 3.6vw, 60px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
.auth-dock-inner {
  width: 100%;
  max-width: 400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.auth-dock-foot { display: flex; justify-content: center; padding: 0 26px 18px; }
.auth-desk .auth-welcome { flex-direction: column; text-align: center; gap: 16px; margin-bottom: 8px; }
.auth-desk .auth-welcome-name { font-size: 36px; max-width: 100%; }
/* Short windows (a 768px laptop): the dock tightens before it scrolls. */
@media (max-height: 820px) {
  .auth-dock-top { padding-top: 14px; }
  .auth-dock-main { padding-top: 8px; padding-bottom: 8px; }
  .auth-dock-inner { gap: 18px; }
  .auth-dock .auth-form { gap: 12px; }
  .auth-dock .auth-input { height: 54px; padding-top: 19px; }
  .auth-dock .auth-btn { height: 52px; }
  .auth-dock .auth-welcome { gap: 12px; margin-bottom: 4px; }
  .auth-dock-foot { padding-bottom: 10px; }
  .auth-brand .auth-wordmark { font-size: 20px; }
}

/* ============================================================
   PHONE — .auth-phone
   ============================================================ */
/* overflow: clip (both axes, and no scroll container): the sheet's skirt
   hangs 100vh below it, and must never add that to the page's scroll
   height. Fixed descendants (the What's New modal) are not clipped. */
.auth-phone {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  /* Lifts the sheet above an open keyboard (--kb comes from ui/PerfKit.js). */
  padding-bottom: var(--kb, 0px);
  background: #070605;
  overflow: hidden;
  overflow: clip;
}

/* ---- the reel wall ---- */
.auth-wall { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.auth-wall-src { display: none; }
.auth-wall-grid {
  position: absolute;
  left: 50%;
  top: -12%;
  display: flex;
  align-items: flex-start;
  gap: var(--wall-gap, 14px);
  opacity: 0.5;
  transform: translateX(-50%) rotate(-9deg) scale(1.08);
  transform-origin: 50% 30%;
  transition: opacity 0.8s ease;
  animation: auth-fade-in 0.9s ease backwards;
}
.auth-phone.is-form .auth-wall-grid { opacity: 0.3; }
.auth-phone.is-success .auth-wall-grid { opacity: 0.75; }
/* Tile size and spacing come from ui/LoginScreen.js (authWallGeometry), which
   scales them to the screen; the numbers here are only fallbacks. */
.auth-wall-col { flex: none; width: var(--wall-tile, 76px); display: flex; flex-direction: column; }
/* Each tile is one <img> (the emblem as a picture, padded inside its
   rounded plate); spacing is margin, so N tiles are exactly N pitches. */
.auth-wall-tile {
  display: block;
  box-sizing: border-box;
  flex: none;
  width: var(--wall-tile, 76px);
  max-width: none; /* the Tailwind preflight's img max-width:100% would squash it */
  height: var(--wall-tile, 76px);
  margin: 0 0 var(--wall-gap, 14px);
  padding: calc(var(--wall-tile, 76px) * 0.21);
  border-radius: calc(var(--wall-tile, 76px) * 0.29);
  line-height: 0;
  object-fit: contain;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-user-drag: none;
  user-select: none;
}
div.auth-wall-tile { display: flex; align-items: center; justify-content: center; padding: 0; }
.auth-wall-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 32% at 50% 31%, rgba(7, 6, 5, 0.9), rgba(7, 6, 5, 0.4) 65%, transparent 100%),
    linear-gradient(180deg, rgba(7, 6, 5, 0.75) 0%, rgba(7, 6, 5, 0.05) 20%, rgba(7, 6, 5, 0.15) 46%, #070605 80%);
}
.auth-phone .auth-stage-sweep { position: absolute; inset: -10% -60%; opacity: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 226, 150, 0.1) 47%, rgba(255, 244, 214, 0.22) 50%, rgba(255, 226, 150, 0.1) 53%, transparent 60%);
  background-repeat: no-repeat; }
.auth-phone.is-success .auth-stage-sweep { animation: auth-sweep 1.15s var(--a-glide) forwards; }

/* ---- top bar + brand ---- */
.auth-phone-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + var(--safe-t, 0px)) 16px 0;
}
.auth-phone-brand {
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 20px 30px;
  text-align: center;
  animation: auth-rise 0.8s var(--a-glide) backwards;
}
.auth-phone-brand::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: 360px;
  height: 260px;
  margin: -130px 0 0 -180px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245, 180, 60, 0.2), transparent);
  pointer-events: none;
  z-index: -1;
}
.auth-phone-crest {
  width: 84px;
  height: 84px;
  filter: drop-shadow(0 10px 28px rgba(245, 158, 11, 0.3));
  transition: transform 0.5s var(--a-glide);
}
.auth-phone .auth-wordmark { font-size: 30px; }
.auth-phone.is-form .auth-phone-brand { min-height: 0; gap: 10px; padding: 4px 20px 22px; }
.auth-phone.is-form .auth-phone-crest { transform: scale(0.55); margin: -19px 0; }
.auth-phone.is-form .auth-wordmark { font-size: 20px; }

/* ---- the sheet ---- */
.auth-sheet {
  position: relative;
  z-index: 4;
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 10px 20px calc(14px + var(--safe-b, 0px));
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, rgba(27, 23, 18, 0.96) 0%, rgba(15, 13, 10, 0.99) 34%, #0c0a08 100%);
  border-top: 1px solid rgba(245, 196, 81, 0.24);
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: auth-sheet-in 0.75s var(--a-glide) 0.1s backwards;
}
/* A skirt below the sheet: while it glides, the screen edge never shows. */
.auth-sheet::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 100vh;
  background: #0c0a08;
  pointer-events: none;
}
@keyframes auth-sheet-in { from { opacity: 0; transform: translateY(40px); } }
.auth-sheet-grip { align-self: center; width: 38px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.16); }
.auth-sheet > .auth-swap-in { display: flex; flex-direction: column; gap: 18px; }
.auth-sheet-foot { display: flex; justify-content: center; }
.auth-phone .auth-title { font-size: 29px; }
.auth-phone .auth-sub { font-size: 15px; }
.auth-phone .auth-welcome-name { font-size: 28px; }
.auth-phone .auth-tabs button { font-size: 12px; letter-spacing: 0.14em; }
.auth-phone .auth-guest { gap: 18px; }
.auth-phone .auth-alt { margin-top: -8px; column-gap: 14px; }
.auth-phone .auth-alt .auth-link { letter-spacing: 0.12em; }
.auth-phone .auth-bonus-strip-label { letter-spacing: 0.14em; }

/* Tablets in the compact layout: the sheet floats as a card. */
@media (min-width: 640px) {
  .auth-phone .auth-sheet {
    width: min(520px, calc(100% - 48px));
    align-self: center;
    margin-bottom: calc(28px + var(--safe-b, 0px));
    padding-bottom: 18px;
    border-radius: 28px;
    border: 1px solid rgba(245, 196, 81, 0.22);
  }
  .auth-phone .auth-sheet::after { display: none; }
  .auth-phone .auth-wordmark { font-size: 36px; }
}
/* Small phones (an SE): the brand steps back so the form stays whole. */
@media (max-height: 700px) and (max-width: 639px) {
  .auth-phone-brand { min-height: 170px; gap: 12px; padding-bottom: 22px; }
  .auth-phone-crest { transform: scale(0.8); margin: -8px 0; }
  .auth-phone .auth-wordmark { font-size: 26px; }
  .auth-sheet { gap: 16px; }
  .auth-sheet > .auth-swap-in { gap: 16px; }
  .auth-phone .auth-form { gap: 12px; }
  .auth-phone .auth-input { height: 54px; padding-top: 19px; }
  .auth-phone .auth-btn { height: 52px; }
}
/* Phones on their side: the brand becomes a single short line. */
@media (max-height: 520px) and (orientation: landscape) {
  .auth-phone .auth-phone-brand { flex: 0 0 auto; min-height: 0; gap: 8px; padding: 0 20px 16px; }
  .auth-phone .auth-phone-crest { transform: scale(0.5); margin: -21px 0; }
  .auth-phone .auth-wordmark { font-size: 18px; }
  .auth-phone .auth-sheet { width: min(560px, calc(100% - 32px)); align-self: center; margin-bottom: 0; border-radius: 24px 24px 0 0; }
  .auth-phone .auth-sheet::after { display: block; }
}

/* ============================================================
   PANEL — inside Settings › Account
   ============================================================ */
.auth-panel { display: flex; flex-direction: column; gap: 18px; padding-top: 6px; }
.auth-panel .auth-tabs { margin-top: 6px; }

/* ============================================================
   WHAT'S NEW — game/Changelog.js (.cl-*)
   Headlines first: every build is one row; the newest few open with
   their notes as one-line leads; a lead opens to its full paragraph.
   Closed builds render no notes at all.
   ============================================================ */
.cl-modal-backdrop { background: rgba(4, 3, 2, 0.78); animation: auth-fade-in 0.2s ease-out backwards; }
.cl-modal-panel {
  background: linear-gradient(180deg, #16130f 0%, #0d0b09 100%);
  border: 1px solid rgba(245, 196, 81, 0.18);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cl-list { display: flex; flex-direction: column; gap: 8px; }
.cl-build {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  content-visibility: auto;
  contain-intrinsic-size: auto 64px;
}
.cl-build.is-current { border-color: rgba(245, 196, 81, 0.35); background: rgba(245, 196, 81, 0.045); }
.cl-build-head {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
  border-radius: 16px;
  transition: background-color 0.15s ease;
}
@media (hover: hover) {
  .cl-build-head:hover { background: rgba(255, 255, 255, 0.03); }
}
.cl-build-no {
  flex: none;
  min-width: 42px;
  padding: 3px 0;
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #d6d3d1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cl-build.is-current .cl-build-no { color: #1d1305; background: linear-gradient(180deg, #fde68a, #e39a28) #f5c451; border-color: transparent; }
.cl-build-text { flex: 1; min-width: 0; }
.cl-build-title { display: block; font-size: 15px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.3; color: #f6f0e4; }
.cl-build-date { display: block; margin-top: 2px; font-size: 11px; letter-spacing: 0.08em; color: #837a72; }
.cl-chev { flex: none; margin-top: 3px; color: #837a72; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.cl-build.is-open .cl-chev { transform: rotate(180deg); }
.cl-items { list-style: none; margin: 0; padding: 0 14px 12px 68px; display: flex; flex-direction: column; gap: 2px; animation: auth-swap 0.28s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.cl-item-btn {
  width: 100%;
  display: block;
  padding: 6px 8px;
  margin-left: -8px;
  border-radius: 10px;
  text-align: left;
  font-size: 13px;
  line-height: 1.45;
  color: #d6d3d1;
  transition: background-color 0.15s ease;
}
@media (hover: hover) {
  .cl-item-btn:hover { background: rgba(255, 255, 255, 0.035); }
}
.cl-item-lead { display: block; position: relative; padding-left: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; color: #e7e5e4; }
.cl-item-lead::before { content: ""; position: absolute; left: 1px; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: rgba(245, 196, 81, 0.8); }
.cl-item.is-open .cl-item-lead { color: #fde68a; }
.cl-item-body { display: block; margin-top: 3px; color: #a8a29e; }
.cl-item-lead + .cl-item-body { padding-left: 14px; }
.cl-item-clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-item.is-open .cl-item-body { color: #d6d3d1; }

/* ============================================================
   GUIDED TOUR CARD — ui/WelcomeTour.js (.wt-*)
   ============================================================ */
/* The spotlight glides between targets on transform alone (JSX sets a
   FLIP start); the hole's dim is a static box-shadow that never animates. */
.wt-hole {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 18px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.8);
  transform-origin: 0 0;
  cursor: pointer;
}
/* The target's ring, and a pulse that ripples out of it a few times
   per step, then rests (transform + opacity only). */
.wt-ring {
  position: absolute;
  inset: -3px;
  border: 3px solid #fbbf24;
  border-radius: 20px;
  pointer-events: none;
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.55);
}
.wt-ring::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 2px solid rgba(251, 191, 36, 0.8);
  border-radius: 22px;
  opacity: 0;
  animation: wt-ripple 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.35s 3;
}
@keyframes wt-ripple {
  from { opacity: 0.85; transform: scale(1); }
  to { opacity: 0; transform: scale(1.12); }
}
.wt-card-in { animation: wt-card-in 0.36s var(--prm-pop, cubic-bezier(0.175, 0.885, 0.32, 1.275)) backwards; }
@keyframes wt-card-in { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
.wt-art-in { animation: wt-art-in 0.5s var(--prm-snap, cubic-bezier(0.34, 1.56, 0.64, 1)) 0.05s backwards; }
@keyframes wt-art-in { from { opacity: 0; transform: scale(0.6) rotate(-12deg); } }
.wt-dots { display: flex; align-items: center; gap: 6px; }
.wt-dot { width: 8px; height: 8px; border-radius: 99px; background: #44403c; transition: background-color 0.25s ease; }
.wt-dot.is-done { background: #a16207; }
.wt-dot.is-on { background: #fbbf24; transform-origin: left center; animation: wt-dot-on 0.4s var(--prm-snap, cubic-bezier(0.34, 1.56, 0.64, 1)) backwards; }
@keyframes wt-dot-on { from { transform: scaleX(0.4); } }
.wt-dot.is-on { width: 24px; }

/* ============================================================
   GUARDS
   ============================================================ */
.reduced-motion .auth-rise,
.reduced-motion .auth-swap-in,
.reduced-motion .auth-sheet,
.reduced-motion .auth-dock,
.reduced-motion .auth-phone-brand,
.reduced-motion .auth-spot-text,
.reduced-motion .auth-spot-emblem,
.reduced-motion .auth-stage-glow,
.reduced-motion .auth-wall-grid,
.reduced-motion .auth-shake-a,
.reduced-motion .auth-shake-b,
.reduced-motion .auth-seal-halo,
.reduced-motion .auth-seal-ring,
.reduced-motion .auth-seal-check,
.reduced-motion .auth-success-bonus,
.reduced-motion .auth-success-meta,
.reduced-motion .auth-stage-sweep,
.reduced-motion .auth-bonus-strip::after,
.reduced-motion .auth-root .auth-btn--gold::before,
.reduced-motion .cl-modal-backdrop,
.reduced-motion .cl-items,
.reduced-motion .wt-ring::after,
.reduced-motion .wt-card-in,
.reduced-motion .wt-art-in,
.reduced-motion .wt-dot.is-on { animation: none !important; }
.reduced-motion .auth-spot-emblem.is-leaving { display: none; }
.reduced-motion .auth-progress span { animation: none !important; transform: scaleX(1); }
/* Ambient loops also rest in performance mode. (The spotlight's living
   emblem is the one focal animation; styles-emblems.css gates it. The
   tour ripple runs three times per step, then stops on its own.) */
.performance-mode .wt-ring::after { animation-iteration-count: 1; }
