/* ════════════════════════════════════════════════════════════════
   WINR v10 — Additions on top of v9.
   1. Hide the top-nav skin picker (theme selection lives in onboarding)
   2. Extend the glass aesthetic to top nav, profile preview, and modals
   3. Discovery-step CSS (option tiles + referral code input)
   ════════════════════════════════════════════════════════════════ */

/* ── 1. Theme picker stays visible in the top nav ──────────────────
   Onboarding still has its own theme step, but power users want the
   nav-level toggle for quick switches. (The earlier hide rule was
   removed per user request.) */

/* ── 2. Extended glass aesthetic ──────────────────────────────────
   Reusable utility class for any new surface that wants the same
   look as the onboarding card (translucent + heavy backdrop blur). */
.v10-glass {
  background:
    linear-gradient(160deg, rgba(28,28,34,0.55), rgba(14,14,18,0.55));
  border: 1px solid rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(40px) saturate(140%);
  backdrop-filter: blur(40px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.35),
    0 24px 60px rgba(0,0,0,0.45);
}

/* ── Bottom nav: restored as the primary navigation bar.
   The old center-W button is removed from the tab list in JS.
   The floating W FAB is hidden since the bottom nav handles nav now. */
.bottom-nav { display: flex !important; }
.bottom-nav-item.center-w { display: none !important; }
.w-fab-wrap { display: none !important; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-mid);
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  transition: all 160ms ease-out;
}
.menu-item .menu-item-icon { display: flex; opacity: 0.85; }
.menu-item:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.menu-item:active { transform: scale(0.97); }
.menu-item.active {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
}
.menu-item.active .menu-item-icon { opacity: 1; color: var(--text-hi); }


/* ── Combined W FAB (bottom-center) ─────────────────────────────────
   Single big orange-W button replacing both old left/right FABs and
   the bottom nav. Tap → popover with Communities + nav tabs. */
.w-fab-wrap {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Hairline-outline W — same minimal language as the .qa-icon row.
   No fill, no blur, no glow at rest; just a glyph inside a 1px ring.
   Hover lights everything up with a soft drop-shadow halo. */
.w-fab {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  box-shadow: none;
  transition:
    transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    border-color 0.25s ease,
    color 0.25s ease,
    filter 0.25s ease;
}
.w-fab:hover {
  transform: translateY(-4px) scale(1.06);
  border-color: rgba(255,255,255,0.45);
  color: #fff;
  filter: drop-shadow(0 0 14px rgba(255,255,255,0.30));
}
.w-fab:active { transform: scale(0.92); }
.w-fab-wrap.open .w-fab {
  border-color: rgba(255, 255, 255,0.55);
  color: #fff;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255,0.35));
}
.w-fab-glyph {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: inherit;
}

/* Popover floats ABOVE the W, opening from the bottom-center.
   Fully transparent — no card surface; just the icons floating
   above the page. Each icon carries its own subtle bubble. */
.w-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translateX(-50%) scale(0.94) translateY(8px);
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  transform-origin: bottom center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 200ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.w-fab-wrap.open .w-popover {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1) translateY(0);
}

/* Inside the W popover, icon-only round buttons */
.w-popover .menu-item {
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 16px;
  justify-content: center;
  background: rgba(20,20,24,0.45);
  border: 1px solid rgba(255,255,255,0.10);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 8px 24px rgba(0,0,0,0.45);
  /* Stagger fade so the row feels like a fan-out */
  animation: wPopIn 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.w-popover .menu-item-label { display: none; }
.w-popover .menu-item-icon  { opacity: 0.95; }
.w-popover .menu-item:nth-child(1) { animation-delay: 20ms; }
.w-popover .menu-item:nth-child(2) { animation-delay: 60ms; }
.w-popover .menu-item:nth-child(3) { animation-delay: 100ms; }
.w-popover .menu-item:nth-child(4) { animation-delay: 140ms; }
.w-popover .menu-item:nth-child(5) { animation-delay: 180ms; }
@keyframes wPopIn {
  from { opacity: 0; transform: translateY(8px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}
.w-popover .menu-item:hover {
  background: rgba(30,30,36,0.65);
  border-color: rgba(255,255,255,0.20);
  transform: translateY(-2px);
}
.w-popover .menu-item.active {
  border-color: rgba(255, 255, 255,0.55);
  background: rgba(255, 255, 255,0.12);
}
.w-popover .menu-item.active .menu-item-icon { color: var(--orange); opacity: 1; }

/* Featured (Communities) — orange-tinted icon bubble */
.w-popover .menu-item.featured {
  background:
    linear-gradient(160deg, rgba(255, 255, 255,0.22), rgba(255, 255, 255,0.06));
  border-color: rgba(255, 255, 255,0.40);
  margin: 0;
}
.w-popover .menu-item.featured .menu-item-icon { color: var(--orange); opacity: 1; }
.w-popover .menu-item.featured:hover {
  background:
    linear-gradient(160deg, rgba(255, 255, 255,0.32), rgba(255, 255, 255,0.12));
  border-color: rgba(255, 255, 255,0.55);
}

@media (max-width: 480px) {
  .w-fab-wrap { bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); }
  .w-fab { width: 56px; height: 56px; border-radius: 16px; }
  .w-fab-glyph { font-size: 26px; }
  .w-popover .menu-item { width: 46px; height: 46px; border-radius: 14px; }
  .w-popover { gap: 8px; }
}

/* Top nav: fully translucent — no fill, no border, no shadow.
   The nav itself is just a layout shell; the buttons inside carry
   their own glass treatment. */
.top-nav {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Profile preview (the big banner card on /profile) */
.profile-preview {
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  backdrop-filter: blur(20px) saturate(135%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 18px 40px rgba(0,0,0,0.5);
}

/* v8 modal card — reinforce the glass treatment (was already partial) */
.v8-modal-card {
  background:
    linear-gradient(160deg, rgba(28,28,34,0.65), rgba(14,14,18,0.65)) !important;
  -webkit-backdrop-filter: blur(40px) saturate(140%);
  backdrop-filter: blur(40px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 32px 80px rgba(0,0,0,0.7) !important;
}
.v8-modal-backdrop {
  background: rgba(6, 6, 8, 0.45) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  backdrop-filter: blur(16px) !important;
}

/* v8 dashboard panel — bump the glass */
.v8-dashboard-panel {
  background:
    linear-gradient(160deg, rgba(28,28,34,0.5), rgba(14,14,18,0.5)) !important;
  -webkit-backdrop-filter: blur(28px) saturate(135%);
  backdrop-filter: blur(28px) saturate(135%);
  border: 1px solid rgba(255,255,255,0.08) !important;
}

/* v8 connect rows: lighter glass so they read as nested inside the panel */
.v8-connect-row {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.08) !important;
}

/* ── 3. Discovery / referral step (v10 onboarding) ────────────────
   Same tile pattern as the role step, plus a slide-in input field
   when "Friend referral" is picked. */
.v10-discovery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.v10-discovery-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  color: #fff;
  transition: all 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.v10-discovery-tile:hover {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}
.v10-discovery-tile.selected {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255,0.08);
  box-shadow: 0 0 0 2px rgba(255, 255, 255,0.22), 0 12px 24px rgba(255, 255, 255,0.18);
}
.v10-discovery-tile:active { transform: scale(0.97); }
.v10-discovery-emoji { font-size: 22px; line-height: 1; }
.v10-discovery-label { font-size: 13px; font-weight: 800; letter-spacing: -0.2px; }

/* Referral code input — slides in when "Friend" is picked */
.v10-referral-wrap {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 320ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 240ms ease-out, margin-top 320ms ease-out;
}
.v10-referral-wrap.open {
  max-height: 120px;
  opacity: 1;
  margin-top: 12px;
}
.v10-referral-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255, 255, 255,0.35);
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font-mono, monospace);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #fff;
  outline: none;
  text-align: center;
  transition: all 180ms ease-out;
  box-sizing: border-box;
}
.v10-referral-input::placeholder {
  letter-spacing: 0.4px;
  text-transform: none;
  color: var(--text-lo, #71717A);
}
.v10-referral-input:focus {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255,0.06);
  box-shadow: 0 0 0 3px rgba(255, 255, 255,0.12);
}
.v10-referral-hint {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-lo, #71717A);
  text-align: center;
}

/* "Other" sliding input — used on both role + discovery steps */
.v10-otherinput-wrap {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 320ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 240ms ease-out, margin-top 320ms ease-out;
}
.v10-otherinput-wrap.open {
  max-height: 100px;
  opacity: 1;
  margin-top: 12px;
}
.v10-other-input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  font-size: 14px;
  color: #fff;
  font-family: inherit;
  outline: none;
  transition: all 180ms ease-out;
  box-sizing: border-box;
}
.v10-other-input::placeholder { color: var(--text-lo, #71717A); }
.v10-other-input:focus {
  border-color: rgba(255, 255, 255,0.45);
  background: rgba(255, 255, 255,0.04);
  box-shadow: 0 0 0 3px rgba(255, 255, 255,0.1);
}

/* Clickable progress dots — only the "done" ones (steps before current) */
.v9-dot.clickable {
  cursor: pointer;
  transition: transform 160ms ease-out, background 160ms ease-out;
}
.v9-dot.clickable:hover {
  background: rgba(255, 255, 255,0.7);
  transform: scaleY(1.6);
}

/* Inbox: convo-avatar + thread-avatar + msg-avatar should crop their photos
   into a clean circle. Background-image styles already inline; this just
   ensures sane sizing across renders. */
.convo-avatar, .thread-avatar, .msg-avatar, .stack-pfp {
  background-color: rgba(40,40,46,0.6);
}

/* Optional: show referral as a small chip on the pass card if entered */
.v9-pass-foot .v10-pass-referral {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1.2px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  margin-left: 8px;
}

/* ════════════════════════════════════════════════════════════════
   v10 ONBOARDING RESTYLE — translucent + neutral.
   Drops the orange-everywhere accent in favor of clean white +
   layered glass that matches the rest of the site. Hover/press
   feedback is purely tactile (lift + subtle highlight + scale-down
   on press) — no colored glows.
   ════════════════════════════════════════════════════════════════ */

/* Backdrop: dim overlay only — NO page blur. The card sits above the
   live page and dims it so focus is on the quiz, but the surface
   behind stays crisp. */
.v9-onb-backdrop {
  background: rgba(6, 6, 8, 0.55) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 24px 16px !important;
}

/* Card: smaller footprint, very translucent so the page reads through.
   The single hint of color is a faint warm radial in the top-left
   corner — picked up from the site's --orange. Subtle enough to feel
   like ambient light, not a brand stamp. */
.v9-onb-card {
  max-width: 540px !important;
  max-height: calc(100vh - 48px) !important;
  background:
    radial-gradient(circle at 8% -10%, rgba(255, 255, 255,0.10) 0%, transparent 45%),
    linear-gradient(160deg, rgba(22,22,26,0.32), rgba(14,14,18,0.28)) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  -webkit-backdrop-filter: blur(36px) saturate(150%);
  backdrop-filter: blur(36px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.30),
    0 24px 60px rgba(0,0,0,0.45) !important;
}

/* Tighter internal spacing for the smaller card */
.v9-onb-progress { padding: 14px 20px 12px !important; }
.v9-onb-body     { padding: 22px 22px 20px !important; }
.v9-onb-foot     { padding: 12px 20px !important; }
.v9-step-title   { font-size: 22px !important; }
.v9-step-sub     { font-size: 13px !important; margin-bottom: 18px !important; }

/* Close button — top-right, simple X, no fill until hover */
.v9-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-mid);
  cursor: pointer;
  z-index: 5;
  transition: all 160ms var(--ease-out, ease-out);
}
.v9-close:hover {
  background: rgba(255,255,255,0.10);
  color: #fff;
  transform: scale(1.06);
}
.v9-close:active { transform: scale(0.92); }
.v9-close svg { width: 14px; height: 14px; pointer-events: none; }
/* Make the card the positioning context for the close button */
.v9-onb-card { position: relative; }

/* Progress dots — neutral whites */
.v9-dot.done   { background: rgba(255,255,255,0.35) !important; }
.v9-dot.active {
  background: #fff !important;
  box-shadow: none !important;
  width: 36px;
}
.v9-dot.clickable:hover {
  background: rgba(255,255,255,0.6) !important;
  transform: scaleY(1.6);
}

/* Eyebrow + accents — switch from orange to neutral */
.v9-step-eyebrow { color: var(--text-mid) !important; }

/* Footer — neutral surface */
.v9-onb-foot { background: rgba(0,0,0,0.18) !important; }

/* PRIMARY CTA — solid white pill, dark text. No orange. */
.v9-btn-next {
  background: #fff !important;
  color: #08080A !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 8px 24px rgba(0,0,0,0.35) !important;
  letter-spacing: 0.2px;
}
.v9-btn-next:hover {
  background: #fff !important;
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 12px 30px rgba(0,0,0,0.45) !important;
}
.v9-btn-next:active { transform: scale(0.97); }
.v9-btn-next.disabled {
  background: rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.45) !important;
  box-shadow: none !important;
}

/* SECONDARY — back / skip stay quiet */
.v9-btn-back, .v9-btn-skip {
  background: rgba(255,255,255,0.02);
}
.v9-btn-back:hover, .v9-btn-skip:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}

/* ── Tile / card SELECTED states — white border + soft inner highlight ── */
.v9-tile.selected,
.v9-title-card.selected,
.v9-emblem-card.selected,
.v9-source-tile.selected,
.v9-skin-tile.selected,
.v10-discovery-tile.selected {
  border-color: rgba(255,255,255,0.55) !important;
  background: rgba(255,255,255,0.06) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 10px 28px rgba(0,0,0,0.35) !important;
}

/* Tactile press — every selectable surface gets the same micro-scale */
.v9-tile,
.v9-title-card,
.v9-emblem-card,
.v9-source-tile,
.v9-skin-tile,
.v10-discovery-tile,
.v9-status-pill {
  transition:
    transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 180ms ease-out,
    border-color 180ms ease-out,
    box-shadow 180ms ease-out !important;
}
.v9-tile:hover,
.v9-source-tile:hover,
.v10-discovery-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18) !important;
  background: rgba(255,255,255,0.05) !important;
}
.v9-title-card:hover,
.v9-emblem-card:hover,
.v9-skin-tile:not(.locked):hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255,255,255,0.22) !important;
}
.v9-tile:active,
.v9-title-card:active,
.v9-emblem-card:active,
.v9-source-tile:active,
.v9-skin-tile:not(.locked):active,
.v10-discovery-tile:active,
.v9-status-pill:active { transform: scale(0.97) !important; }

/* Kill the colored radial halo behind role tiles */
.v9-tile::after { display: none !important; }

/* Pick chip — white pill instead of orange */
.v9-pick-chip {
  background: rgba(255,255,255,0.92) !important;
  color: #08080A !important;
}

/* Inputs — neutral focus ring */
.v9-input:focus,
.v10-other-input:focus {
  border-color: rgba(255,255,255,0.35) !important;
  background: rgba(255,255,255,0.06) !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06) !important;
}
.v10-referral-input {
  border-color: rgba(255,255,255,0.18) !important;
}
.v10-referral-input:focus {
  border-color: rgba(255,255,255,0.45) !important;
  background: rgba(255,255,255,0.06) !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06) !important;
}

/* Status pills — white active state */
.v9-status-pill.active {
  border-color: rgba(255,255,255,0.45) !important;
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
}

/* Upsell + skip links — neutral */
.v9-upsell-note a { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
.v9-skip-link:hover { color: #fff !important; }

/* Pass card — drop the orange perimeter glow, keep color tint inside */
.v9-pass-card {
  border-color: rgba(255,255,255,0.12) !important;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.10) !important;
}

/* Grid buttons — barely-there translucency, card glass shows through. */
.v9-tile,
.v9-source-tile,
.v10-discovery-tile,
.v9-emblem-card,
.v9-status-pill {
  background: rgba(255,255,255,0.015) !important;
  border-color: rgba(255,255,255,0.06) !important;
}
.v9-tile:hover,
.v9-source-tile:hover,
.v10-discovery-tile:hover {
  background: rgba(255,255,255,0.035) !important;
  border-color: rgba(255,255,255,0.12) !important;
}
.v9-emblem-card:hover { background: rgba(255,255,255,0.035) !important; }

/* Selected state — faint warm tint (the one hint of color) + brighter border */
.v9-tile.selected,
.v9-title-card.selected,
.v9-emblem-card.selected,
.v9-source-tile.selected,
.v9-skin-tile.selected,
.v10-discovery-tile.selected {
  background:
    linear-gradient(160deg, rgba(255, 255, 255,0.08), rgba(255, 255, 255,0.03)),
    rgba(255,255,255,0.05) !important;
  border-color: rgba(255, 255, 255,0.45) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 6px 18px rgba(0,0,0,0.30) !important;
}

/* Skin tiles already use background-image; only nudge the border */
.v9-skin-tile { border-color: rgba(255,255,255,0.10) !important; }

/* Tighten grids slightly to fit the smaller card */
.v9-tile-grid       { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important; gap: 10px !important; }
.v9-title-grid      { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; gap: 10px !important; }
.v9-emblem-grid     { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr))  !important; gap: 8px  !important; }
.v9-source-grid     { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important; gap: 10px !important; }
.v9-skin-grid       { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; gap: 10px !important; }
.v10-discovery-grid { grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)) !important; gap: 8px  !important; }

/* ════════════════════════════════════════════════════════════════
   APPLE UI LAYER — typography + shape.
   - SF Pro stack with the existing Inter as fallback.
   - Tighter letter-spacing on headings (Apple-style display kerning).
   - All radii drop the 999px pills in favor of Apple's continuous-
     corner rounded rectangles (10–14px range, larger for the card).
   ════════════════════════════════════════════════════════════════ */
.v9-onb-card,
.v9-onb-card * {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Inter", system-ui, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
.v9-step-title {
  font-weight: 700 !important;
  letter-spacing: -0.022em !important;
}
.v9-step-sub {
  letter-spacing: -0.005em !important;
  color: var(--text-mid) !important;
}
.v9-step-eyebrow {
  font-family:
    "SF Mono", ui-monospace, SFMono-Regular, var(--font-mono, monospace) !important;
  letter-spacing: 0.18em !important;
}

/* Card itself — Apple's larger continuous corner */
.v9-onb-card { border-radius: 18px !important; }

/* Kill ALL pill buttons inside onboarding — Apple-style rounded rects */
.v9-btn-next,
.v9-btn-back,
.v9-btn-skip,
.v9-status-pill,
.v9-pass-title-chip,
.v9-pass-verify,
.v9-pick-chip,
.v9-skin-tag {
  border-radius: 10px !important;
}
.v9-onb-foot { border-radius: 0 0 18px 18px !important; }
.v9-tile,
.v9-source-tile,
.v10-discovery-tile,
.v9-emblem-card { border-radius: 12px !important; }
.v9-title-card,
.v9-skin-tile   { border-radius: 12px !important; }

/* Progress dots → short rounded bars (Apple page-indicator vibe) */
.v9-dot { border-radius: 3px !important; }

/* Buttons: Apple typography (SF text weights) */
.v9-btn-next {
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  padding: 11px 22px !important;
  font-size: 14px !important;
}
.v9-btn-back, .v9-btn-skip {
  font-weight: 500 !important;
  letter-spacing: -0.005em !important;
  padding: 9px 16px !important;
  font-size: 13px !important;
}

/* Foot spacer — keeps Next pinned right when there's no Back/Skip */
.v9-foot-spacer { display: inline-block; width: 1px; }

/* Inputs: Apple field shape */
.v9-input,
.v10-other-input,
.v10-referral-input { border-radius: 10px !important; }
.v9-label { letter-spacing: 0.06em !important; }

/* ════════════════════════════════════════════════════════════════
   v10.x — Unified WINR splash motion for ALL themes. The chosen
   theme's image fills the letters via --hero-bg (background-clip:
   text), and heroPan pans that image inside the letters so every
   skin — classic and new — visibly moves. No `filter` is used
   (filters break -webkit-background-clip:text). The auth "Welcome
   back" modal reuses .winnr-splash so the motion carries over.
   ──────────────────────────────────────────────────────────────── */

.winnr-splash,
.auth-winnr-splash {
  background-size: 400% 400% !important;
  animation:
    heroPan var(--winr-pan-dur, 11s) ease-in-out infinite,
    liquidMotion 6s ease-in-out infinite !important;
}

/* Per-skin tempo so each theme has its own feel */
:root[data-skin="abyss"]     { --winr-pan-dur: 13s; }
:root[data-skin="aurora"]    { --winr-pan-dur: 12s; }
:root[data-skin="cipher"]    { --winr-pan-dur: 14s; }
:root[data-skin="orbit"]     { --winr-pan-dur: 10s; }
:root[data-skin="dynasty"]   { --winr-pan-dur: 11s; }
:root[data-skin="black"]     { --winr-pan-dur: 15s; }
:root[data-skin="nebula"]    { --winr-pan-dur: 12s; }
:root[data-skin="neon"]      { --winr-pan-dur: 9s;  }
:root[data-skin="void"]      { --winr-pan-dur: 14s; }
:root[data-skin="quantum"]   { --winr-pan-dur: 7s;  }
:root[data-skin="monolith"]  { --winr-pan-dur: 12s; }

@keyframes heroPan {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
