/* AUTO-GENERATED by scripts/compile-css.js. Edit src/styles/*.css, not this file. */

/* ── src/styles/foundation.css ── */
/* ==========================================================================
   Foundation, tokens, shell, and shared components
   ========================================================================== */

/* ─── Tokens ────────────────────────────────────── */
:root {
  --font-display: "Iowan Old Style", "Palatino Linotype", Baskerville, Georgia, serif;
  --font-ui: "Avenir Next", Avenir, Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  /* Custom Design System */
  --ember-black: #0A0A0B;
  --ember-paper: #F5F5F4;
  --ember-gold:  #B7935F;
  --ember-charcoal: #1C1C1E;
  --texture-filigree: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 0l12 12-12 12L0 12zM12 2l-10 10 10 10 10-10z' fill='%23000000' fill-opacity='0.15' fill-rule='evenodd'/%3E%3C/svg%3E");

  /* Surfaces */
  --ink:          #09080b;
  --surface:      #111118;
  --surface-mid:  #191921;
  --surface-high: #21212c;

  /* Borders */
  --border:       rgba(255, 255, 255, 0.07);
  --border-gold:  rgba(230, 184, 75, 0.26);

  /* Text */
  --text:         #ece6dc;
  --muted:        #9a9180;
  --dim:          #6e685e;

  /* Brand + accents */
  --gold:         #e8b84b;
  --gold-bright:  #f2ca50;
  --gold-deep:    #c49a30;
  --gold-ink:     #1a1000;           /* text on gold buttons */
  --ember:        #981218;
  --cream:        #f4efe6;

  /* Semantic — button ghost */
  --ghost-text:       #7a7468;
  --ghost-text-hover: #a39b8a;

  /* Radii */
  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    20px;

  /* Spacing scale — 4px base */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Spacing */
  --tracking-ultra-wide: 0.25em;

  /* Type scale — documented clamp ranges */
  --text-xs:   0.72rem;
  --text-sm:   0.82rem;
  --text-base: 0.94rem;
  --text-md:   1.08rem;
  --text-lg:   clamp(1.2rem, 2.4vw, 1.5rem);
  --text-xl:   clamp(1.5rem, 3vw, 2rem);
  --text-2xl:  clamp(2rem, 4vw, 2.8rem);
  --text-3xl:  clamp(2.8rem, 5.6vw, 4.8rem);

  /* Elevation */
  --shadow-tactile: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-1:    0 2px 8px rgba(0,0,0,0.25);
  --shadow-2:    0 8px 24px rgba(0,0,0,0.35);
  --shadow-3:    0 16px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
  --shadow-gold: 0 8px 28px rgba(232, 184, 75, 0.28);

  /* Focus ring — used via the global :focus-visible rule */
  --focus-ring:  0 0 0 2px rgba(232, 184, 75, 0.55);

  /* Shared interactive layers */
  --z-game-shell: 200;
  --z-session-result: 1000;

  /* Motion */
  --ease-out-soft: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ─── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overscroll-behavior: none; }

/* ─── Body ──────────────────────────────────────── */
body {
  margin: 0;
  overscroll-behavior: none;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(232, 184, 75, 0.08), transparent 60%),
    radial-gradient(circle at 50% 110%, rgba(152, 18, 24, 0.16) 0%, transparent 60%),
    radial-gradient(circle at 10% 20%, rgba(7, 59, 36, 0.28) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(7, 59, 36, 0.24) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ─── Texture Overlay ───────────────────────────── */
#noise-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
  background-repeat: repeat;
}

a { color: inherit; text-decoration: none; }

/* ─── Global Scrollbar ───────────────────────── */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--ink);
}
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--border-gold) 40%, transparent);
  border-radius: 6px;
  border: 2px solid var(--ink);
  transition: background 0.3s;
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--border-gold) 80%, transparent);
}
::selection {
  background: rgba(232, 184, 75, 0.22);
  color: var(--gold-bright);
}

/* ─── Global focus ring ─────────────────────────── */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: inherit;
}

.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Optional 18+ and 21+ content confirmations. The platform itself has no
   blocking entry wall; restricted packs own their own explicit boundary. */
.content-age-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 8, 10, 0.96);
  backdrop-filter: blur(18px);
}

.content-age-gate__dialog {
  width: min(440px, 100%);
  padding: clamp(28px, 7vw, 46px);
  border: 1px solid rgba(232, 184, 75, 0.28);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(35, 31, 25, 0.98), rgba(17, 16, 20, 0.98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62);
  color: var(--text);
  text-align: center;
}

.content-age-gate__label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.content-age-gate__dialog h2 {
  margin: 0;
  font: 600 clamp(2rem, 8vw, 3rem)/1 var(--font-display);
}

.content-age-gate__dialog > p:not(.content-age-gate__label) {
  margin: 18px 0 28px;
  color: var(--muted);
  line-height: 1.65;
}

.content-age-gate__actions {
  display: grid;
  gap: 10px;
}

/* ─── Header ────────────────────────────────────── */
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #171006;
  background: var(--gold-bright);
  font-size: .78rem;
  font-weight: 850;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus { transform: translateY(0); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 8, 11, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  /* Significantly dialed-up gold contrast */
  border-bottom: 1px solid rgba(232, 184, 75, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  transition: background 0.3s, border-bottom 0.3s, box-shadow 0.3s;
}

.topbar.is-scrolled {
  background: rgba(9, 8, 11, 0.97);
  border-bottom: 1px solid rgba(232, 184, 75, 0.85); /* Highly obvious hard line */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 2px 12px rgba(232, 184, 75, 0.15);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand { flex-shrink: 0; }

.brand-credential {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Brand Mark — cropped flame-spade icon ── */
.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.35s var(--ease-out-soft);
}

.brand-mark:hover {
  transform: translateY(-1px);
}

.brand-mark img {
  width: 38px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(183, 147, 95, 0.3));
}

/* ── Brand Wordmark (text) ── */
.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.brand-credential:hover .brand-wordmark {
  color: var(--gold-bright);
  text-shadow: 0 0 12px rgba(232, 184, 75, 0.4);
}

.brand-amp {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.beta-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(232, 184, 75, 0.35);
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1;
  align-self: flex-start;
  margin-top: 6px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

/* Scrolled state — compact header */
.topbar.is-scrolled .topbar-inner {
  height: 56px;
}

.topbar.is-scrolled .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.topbar.is-scrolled .brand-mark img {
  width: 32px;
}

.topbar.is-scrolled .brand-wordmark {
  font-size: 1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

@media (min-width: 1040px) {
  .site-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 1039px) {
  .site-nav {
    gap: 16px;
    margin: 0 auto;
  }
}

.nav-link {
  position: relative;
  color: var(--ember-paper);
  text-decoration: none;
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-ultra-wide);
  font-weight: 600;
  padding: 6px 0;
  transition: color 250ms var(--ease-out-soft), text-shadow 250ms var(--ease-out-soft);
}

button.nav-link {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover { 
  color: var(--gold-bright); 
  text-shadow: 0 0 8px rgba(232, 184, 75, 0.4);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: var(--gold);
}

.nav-link.is-active::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-bright) 50%, var(--gold) 70%, transparent);
  box-shadow: 0 0 10px rgba(232, 184, 75, 0.5);
}

.top-actions { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  position: absolute; 
  right: 24px; 
  top: 24px; 
}

.nav-menu-toggle,
.nav-search-wrap--mobile {
  display: none;
}

.nav-menu-toggle {
  width: 42px;
  height: 42px;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(232, 184, 75, .32);
  border-radius: 9px;
  color: var(--gold);
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
}

.nav-menu-toggle span {
  width: 18px;
  height: 1.5px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav .nav-search-wrap--mobile { display: none; }

.nav-search-icon {
  position: absolute;
  left: 11px;
  color: var(--dim);
  pointer-events: none;
  transition: color 200ms;
}

.nav-search-wrap:focus-within .nav-search-icon { color: var(--muted); }

.nav-search {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 7px 16px 7px 33px;
  font-size: 0.8rem;
  color: #ffffff;
  width: 176px;
  transition:
    border-color 200ms,
    width 260ms var(--ease-out-soft),
    background 200ms;
}

.nav-search::placeholder { color: rgba(255, 255, 255, 0.65); }

.nav-search:focus {
  outline: none;
  width: 240px;
  border-color: var(--border-gold);
  background: rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
  .nav-search { width: 130px; }
  .nav-search:focus { width: 160px; }
}

@media (max-width: 400px) {
  .nav-search-wrap { display: none; }
}

.tools-nav-link {
  padding: 7px 16px;
  border-radius: 7px;
  border: 1px solid rgba(212,175,55,0.35);
  color: var(--gold) !important;
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  transition: background 200ms ease, border-color 200ms ease;
}

.tools-nav-link:hover {
  background: rgba(212,175,55,0.08);
  border-color: rgba(212,175,55,0.6);
}

.tools-nav-link.is-active {
  background: rgba(212,175,55,0.12);
  border-color: var(--gold);
}

/* ─── Buttons ───────────────────────────────────── */
@keyframes heroPulseGold {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

#start-now {
  animation: heroPulseGold 2.5s infinite;
}

.btn {
  border: 0;
  padding: var(--space-3) var(--space-6);
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 200ms var(--ease-out-soft),
    box-shadow 200ms var(--ease-out-soft),
    background 200ms var(--ease-out-soft),
    border-color 200ms var(--ease-out-soft);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, #fcecae 0%, var(--gold-bright) 35%, var(--gold) 100%);
  color: var(--gold-ink);
  border: 1px solid var(--gold-deep);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 0 20px rgba(232, 184, 75, 0.25);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #fff3c4 0%, #f7d668 50%, var(--gold) 100%);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 0 32px rgba(232, 184, 75, 0.45);
  transform: translateY(-2.5px);
}

.btn-primary:active {
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.3);
  transform: translateY(0) scale(0.98);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid rgba(232, 184, 75, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-transform: uppercase;
  letter-spacing: var(--tracking-ultra-wide);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(232, 184, 75, 0.08);
  border-color: rgba(232, 184, 75, 0.6);
  color: var(--gold-bright);
  box-shadow: 0 4px 16px rgba(232, 184, 75, 0.15);
  transform: translateY(-1.5px);
}

.hero-cta-btn {
  font-size: 1.05rem !important;
  padding: 14px 44px !important;
  border-radius: 100px !important;
}

/* Ghost button — low-profile pass/skip action */
.btn-ghost {
  background: rgba(255, 255, 255, 0.01);
  color: var(--ghost-text);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
  color: var(--ghost-text-hover);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

/* ─── Routing ───────────────────────────────────── */
.route-section { display: none; }

.route-section.is-active {
  display: block;
  animation: fadeUpSnappy 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeUpSnappy {
  from { opacity: 0; transform: translateY(12px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── Panels ────────────────────────────────────── */
.panel {
  background: linear-gradient(155deg, rgba(16, 16, 24, 0.78) 0%, rgba(9, 9, 12, 0.92) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius);
  border: 1px solid rgba(232, 184, 75, 0.22);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.65),
    0 0 50px rgba(7, 59, 36, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* ─── Hero ──────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  column-gap: var(--space-8);
  margin-top: var(--space-4);
  position: relative;
  overflow: hidden;
}

/* Subtle left-side depth — no shape, no colour, just environmental dark */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 20%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, rgba(9,8,11,0) 60%);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(60px);
}

.hero-main {
  padding: var(--space-6) 0 var(--space-4);
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.kicker {
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.70rem;
  margin-bottom: var(--space-5);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-shadow: 0 0 10px rgba(212,175,55,0.4);
}

.kicker::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-bright));
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(3rem, 6.5vw, 5.2rem);
  line-height: 1.05;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em; /* counteract the padding so spacing remains identical */
  letter-spacing: -0.015em;
  background: linear-gradient(120deg, #FFFFFF 0%, #F5F1E6 40%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
  filter: drop-shadow(0 4px 15px rgba(0,0,0,0.5));
}

.hero p {
  color: rgba(255, 255, 255, 0.85);
  margin-top: var(--space-5);
  font-size: 1.15rem;
  max-width: 44ch;
  line-height: 1.6;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.cta-row {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* Tertiary hero action row — sits below the main CTAs */
.hero-sub-actions {
  margin-top: var(--space-4);
}

.btn-text-link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(154,145,128,0.4);
  transition: color 150ms;
}

.btn-text-link:hover { color: var(--text); }

/* Hide results-count paragraph when empty — no wasted vertical space */
#results-count:empty { display: none; }

.chips {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  color: var(--gold-bright);
  border: 2px dashed rgba(232, 184, 75, 0.35);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  background: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.06) 0%, rgba(232, 184, 75, 0.08) 100%);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3), inset 0 1px 3px rgba(255,255,255,0.1);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip:hover {
  border-color: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4), 0 0 12px rgba(232, 18, 24, 0.25);
}

.hero-side {
  height: auto;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  z-index: 2;
}

.hero-side::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(212,175,55,0.04) 0%, rgba(9,8,11,0) 50%);
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
  filter: blur(20px);
}

.hero-mockup {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gradient veil: left edge blends into dark background, opens up quickly */
.hero-mockup::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(9, 8, 11, 0.68) 0%,
    rgba(9, 8, 11, 0.32) 28%,
    rgba(9, 8, 11, 0.08) 52%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-mockup picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transform: scale(1.02);
  filter: brightness(1.06) contrast(1.04);
  transition: transform 5s var(--ease-out-soft);
}
.hero-mockup:hover .hero-mockup-img {
  transform: scale(1.06);
}

/* ─── Hero Showcase Cards ───────────────────────── */
.hero-showcase {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-card {
  position: absolute;
  width: 82%;
  background: linear-gradient(155deg, var(--surface-mid) 40%, rgba(20, 20, 27, 0.95) 100%);
  border-radius: 12px;
  border: 1px solid var(--border-gold);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  transform-origin: center bottom;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
}

.showcase-card--back {
  transform: rotate(-6deg) translateY(-12px) scale(0.88);
  opacity: 0.45;
  z-index: 1;
}

.showcase-card--mid {
  transform: rotate(-2deg) translateY(-4px) scale(0.94);
  opacity: 0.7;
  z-index: 2;
}

.showcase-card--front {
  transform: rotate(1.5deg);
  opacity: 1;
  z-index: 3;
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow:
    0 28px 70px rgba(0,0,0,0.65),
    0 0 0 1px rgba(212, 175, 55, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.hero-showcase:hover .showcase-card--back {
  transform: rotate(-10deg) translateY(-8px) scale(0.88) translateX(-10px);
  opacity: 0.6;
}

.hero-showcase:hover .showcase-card--mid {
  transform: rotate(-4deg) translateY(-2px) scale(0.94) translateX(-4px);
  opacity: 0.85;
}

.hero-showcase:hover .showcase-card--front {
  transform: rotate(2.5deg) translateY(-6px) scale(1.02);
  border-color: rgba(212, 175, 55, 0.6);
}

.sc-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.85;
}

.sc-prompt {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45;
  color: var(--text);
}

/* ─── Featured Games Grid ───────────────────────── */
.featured-section {
  padding-top: 0;
}

.featured-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.featured-header h3 {
  margin: 0;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.btn-ghost:hover {
  color: var(--gold);
}

.featured-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.featured-scroll::-webkit-scrollbar {
  display: none;
}

.feat-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 18px;
  background: linear-gradient(155deg, var(--surface-mid) 40%, rgba(20, 20, 27, 0.8) 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  width: 174px;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition:
    transform 400ms var(--ease-out-soft),
    border-color 400ms var(--ease-out-soft),
    box-shadow 400ms var(--ease-out-soft),
    background 400ms var(--ease-out-soft);
}

.feat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, color-mix(in srgb, var(--fca) 15%, transparent) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}

.feat-card:hover {
  border-color: color-mix(in srgb, var(--fca) 35%, transparent);
  background: linear-gradient(155deg, rgba(30, 30, 42, 0.95) 0%, rgba(15, 15, 20, 0.9) 100%);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px color-mix(in srgb, var(--fca) 20%, transparent);
}

.feat-card:hover::after {
  opacity: 1;
}

.fc-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fca), transparent);
  opacity: 0.35;
  transition: opacity 300ms var(--ease-out-soft);
}

.feat-card:hover .fc-accent-bar {
  opacity: 1;
}

.fc-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
}

.fc-meta {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--muted);
}

/* ─── Vibe Picker ───────────────────────────────── */
.vibe-section {
  padding-top: 8px;
}

.vibe-header {
  margin-bottom: 24px;
}

.vibe-header h3 {
  margin: 0 0 8px;
}

.vibe-header .lead {
  margin: 0;
}

.vibe-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.vibe-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px 20px 22px;
  background: linear-gradient(155deg, var(--surface-mid) 55%, color-mix(in srgb, var(--vc) 6%, var(--surface-mid)) 100%);
  border: 1px solid color-mix(in srgb, var(--vc) 20%, var(--border));
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition:
    transform 400ms var(--ease-out-soft),
    border-color 400ms var(--ease-out-soft),
    box-shadow 400ms var(--ease-out-soft),
    background 400ms var(--ease-out-soft);
}

.vibe-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--vc) 18%, transparent) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 400ms var(--ease-out-soft);
  pointer-events: none;
}

.vibe-card:hover {
  border-color: color-mix(in srgb, var(--vc) 40%, transparent);
  background: linear-gradient(155deg, var(--surface-high) 20%, color-mix(in srgb, var(--vc) 12%, var(--surface-mid)) 100%);
  transform: translateY(-5px) scale(1.01);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px color-mix(in srgb, var(--vc) 15%, transparent);
}

.vibe-card:hover::after {
  opacity: 1;
}

.vc-icon {
  color: var(--vc);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: color-mix(in srgb, var(--vc) 12%, transparent);
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--vc) 25%, transparent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.vc-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.vc-sub {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .vibe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .vibe-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .vibe-card {
    padding: 18px 16px;
    gap: 10px;
  }
  .vc-title {
    font-size: 0.95rem;
  }
  .vc-sub {
    display: none;
  }
  .feat-card {
    width: 140px;
  }
  .showcase-card {
    padding: 20px 20px 18px;
  }
}

/* ─── Tools Teaser (Home) ─────────────────────────
   Section header is now .home-section-header--split,
   defined in the shared home-section rhythm block below. */

.tools-teaser-all,
.play-utilities-all {
  white-space: nowrap;
  flex-shrink: 0;
}

.tools-teaser-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px 12px 16px;
  background: linear-gradient(160deg, rgba(20, 20, 28, 0.75) 0%, rgba(10, 10, 12, 0.9) 100%);
  border: 1px solid rgba(232, 184, 75, 0.15);
  border-radius: 100px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.3);
  transition:
    transform 400ms var(--ease-out-soft),
    background 400ms var(--ease-out-soft),
    box-shadow 400ms var(--ease-out-soft),
    border-color 400ms var(--ease-out-soft),
    color 400ms var(--ease-out-soft);
  color: var(--text);
  backdrop-filter: blur(12px);
}

.tool-pill:hover {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(30, 30, 42, 0.95) 0%, rgba(18, 18, 24, 0.85) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 28px rgba(0, 0, 0, 0.45),
    0 0 14px rgba(232, 184, 75, 0.2);
  color: var(--gold-bright);
}

.tool-pill-icon {
  color: var(--gold);
  display: flex;
  align-items: center;
  opacity: 0.85;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out-soft), opacity 0.3s;
}

.tool-pill:hover .tool-pill-icon {
  opacity: 1;
  transform: scale(1.15) rotate(8deg);
}

.tool-pill-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}

/* ─── Play Page Utilities Quickbar (top of Play page) ───────────────── */
.utilities-quickbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 18px 0 8px;
  background: rgba(232, 184, 75, 0.04);
  border: 1px solid rgba(232, 184, 75, 0.18);
  border-radius: 14px;
  flex-wrap: wrap;
}

.utilities-quickbar-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  flex-shrink: 0;
}

.utilities-quickbar-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.utilities-quickbar-pills .tool-pill {
  padding: 6px 12px 6px 10px;
  gap: 6px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
}

.utilities-quickbar-pills .tool-pill-icon svg {
  width: 14px;
  height: 14px;
}

.utilities-quickbar-pills .tool-pill-label {
  font-size: 0.72rem;
  font-weight: 600;
}

.utilities-quickbar-all,
.utilities-quickbar-join {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.utilities-quickbar-all:hover,
.utilities-quickbar-join:hover {
  background: rgba(232, 184, 75, 0.08);
}

.utilities-quickbar-join {
  background: rgba(232, 184, 75, 0.1);
  border: 1px solid rgba(232, 184, 75, 0.3);
  cursor: pointer;
  font-family: var(--font-ui);
}

.utilities-quickbar-join:hover {
  background: rgba(232, 184, 75, 0.16);
  border-color: rgba(232, 184, 75, 0.5);
}

@media (max-width: 640px) {
  .utilities-quickbar {
    gap: 8px;
    padding: 10px 12px;
  }
  .utilities-quickbar-label {
    width: 100%;
  }
}

/* ─── Play Page Utilities Section ───────────────── */
.play-utilities-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.play-utilities-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.play-utilities-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 4px;
  color: var(--text);
}

.play-utilities-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.play-utilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

/* ─── Tool Card (Play Page Utilities) ───────────────── */
.tool-card-icon {
  color: var(--gold);
  opacity: 0.8;
  margin: 6px 0 12px;
  display: flex;
  align-items: center;
}

.tool-card-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.5;
}

.tool-card:hover .tool-card-icon {
  opacity: 1;
}

/* ─── Legacy utility-chip (kept for potential re-use) ── */
.utility-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px 18px;
  background: var(--surface-mid);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  color: var(--text);
}

.utility-chip:hover {
  border-color: var(--gold);
  background: rgba(212,175,55,0.05);
  transform: translateY(-2px);
}

.utility-chip-icon {
  color: var(--gold);
  opacity: 0.75;
  display: flex;
  align-items: center;
}

.utility-chip:hover .utility-chip-icon {
  opacity: 1;
}

.utility-chip-name {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.utility-chip-desc {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .play-utilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .play-utilities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .tools-teaser-row {
    gap: 8px;
  }
  .tool-pill {
    padding: 9px 14px 9px 12px;
  }
}

/* ─── Stats Strip ───────────────────────────────── */
.stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 56px;
  padding: 28px 40px;
  background: linear-gradient(150deg, var(--surface-mid), var(--surface));
  border-radius: var(--radius);
  border: 1px solid var(--border-gold);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-gold);
  flex-shrink: 0;
  margin: 0 8px;
}

@media (max-width: 640px) {
  .stats-strip { gap: 0; padding: 20px 16px; }
  .stat-num { font-size: 2rem; }
  .stat-label { font-size: 0.6rem; }
}

/* ─── Sections ──────────────────────────────────── */
.section { margin-top: 32px; }

/* Home page rhythm — see the comprehensive rules in the Home Page section below */

.section h3 {
  position: relative;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.5rem;
  letter-spacing: -0.01em;
  padding-top: 32px;
}

.section h3::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--border-gold) 0%, var(--border-gold) 40%, transparent 100%);
}

.section p.lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ─── How It Works ──────────────────────────────── */
.how .steps {
  margin-top: 24px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.step-card {
  padding: 28px 24px;
  border-top: 2px solid rgba(232, 184, 75, 0.3);
  transition: border-top-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.step-card:hover {
  border-top-color: rgba(232, 184, 75, 0.7);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.step-index {
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 14px;
  display: block;
  opacity: 0.75;
}

.step-card h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ─── Narrative ─────────────────────────────────── */
.narrative {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.narrative h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  margin: 0 0 10px;
  padding-top: 0;
}

.narrative h3::before { display: none; }
.narrative .lead { max-width: 56ch; }

/* ─── Games Grid ────────────────────────────────── */
/* .grid is used for the tools page card grid */
.grid {
  margin-top: 16px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

/* ─── Tools Grid (Glassmorphism Utilities) ────────── */
.tools-board {
  margin-top: 24px;
  column-count: 1;
  column-gap: 20px;
}

.tool-expand-wrap {
  display: inline-block;
  width: 100%;
  margin-bottom: 20px;
  background: linear-gradient(155deg, rgba(20, 20, 27, 0.7) 0%, rgba(10, 10, 15, 0.85) 100%);
  border: 1px solid rgba(232, 184, 75, 0.15);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.tool-expand-wrap:hover {
  border-color: rgba(232, 184, 75, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 40px rgba(0, 0, 0, 0.45);
}

.tool-expand-wrap.is-expanded {
  border-color: rgba(232, 184, 75, 0.6);
  background: linear-gradient(155deg, rgba(28, 28, 38, 0.85) 0%, rgba(14, 14, 20, 0.95) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 16px rgba(232, 184, 75, 0.15);
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 20px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  outline: none;
  transition: background 0.3s;
}

.tool-card:hover {
  background: rgba(232, 184, 75, 0.04);
}

.tc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--gold);
  background: rgba(232, 184, 75, 0.1);
  border-radius: 10px;
  opacity: 0.85;
  transition: opacity 0.3s, transform 0.3s;
}
.tool-card:hover .tc-icon {
  opacity: 1;
  transform: scale(1.05);
}

.tc-body {
  flex: 1;
  min-width: 0;
}
.tc-body h4 {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
  font-weight: 500;
}
.tc-body p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.tc-arrow {
  color: var(--gold);
  font-size: 1.2rem;
  opacity: 0.4;
  transform: translateX(-4px);
  transition: opacity 0.3s, transform 0.3s;
}

.tool-card:hover .tc-arrow {
  opacity: 1;
  transform: translateX(2px);
}

.tool-expand-wrap.is-expanded .tc-arrow {
  transform: rotate(90deg) translateX(0);
  opacity: 1;
}

.tool-content {
  display: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  /* The tool modules create their own stages, taking up full width naturally */
}

.tool-expand-wrap.is-expanded .tool-content {
  display: block;
}

/* .games-container is the stacked-section wrapper for the play page */
.games-container {
  margin-top: 28px;
}

.pack-grid {
  margin-top: 16px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.pack-card {
  padding: 24px;
  display: grid;
  gap: 10px;
}

.pack-card h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
}

.pack-card p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.pack-tag {
  width: fit-content;
  background: rgba(232, 184, 75, 0.1);
  color: var(--gold);
  border: 1px solid rgba(232, 184, 75, 0.25);
  border-radius: 3px;
  padding: 3px 8px;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ─── Catalog Controls ──────────────────────────── */
.control { display: grid; gap: 6px; }

.control span {
  color: var(--dim);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.control input,
.control select {
  width: 100%;
  background: rgba(0,0,0,0.3);
  color: var(--text);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font: inherit;
  font-size: 0.88rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
}

#favorites-only.is-active {
  background: var(--gold);
  color: #1a1000;
  border-color: transparent;
}

/* ─── BaseCard ──────────────────────────────────── */
.base-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(28,28,34,0.9) 0%, rgba(18,18,22,0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 400ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 400ms cubic-bezier(0.16, 1, 0.3, 1),
    background 400ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}
.base-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: color-mix(in srgb, var(--ca, var(--border-gold)) 60%, transparent);
  background: linear-gradient(135deg, rgba(34,34,42,0.92) 0%, rgba(20,20,26,0.97) 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 30px color-mix(in srgb, var(--ca, var(--border-gold)) 40%, transparent),
    inset 0 1px 1px rgba(255, 255, 255, 0.12);
}
.base-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 45%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 55%
  );
  background-size: 250% 250%;
  background-position: 200% 200%;
  transition: background-position 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  opacity: 0.6;
}
.base-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 10%, var(--ca, var(--border-gold)) 50%, transparent 90%);
  opacity: 0.45;
  box-shadow: 0 0 10px var(--ca, var(--border-gold));
  transition: opacity 300ms var(--ease-out-soft), height 300ms var(--ease-out-soft);
}
.base-card:hover::before {
  opacity: 1;
  height: 4px;
}
.base-card:hover::after {
  background-position: -100% -100%;
}

.base-card-title {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.42rem;
  line-height: 1.18;
  letter-spacing: var(--tracking-ultra-wide);
  text-transform: uppercase;
}
.base-card-desc {
  margin: 0;
  color: var(--ember-paper);
  font-size: 0.87rem;
  line-height: 1.52;
}

.base-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--dim);
  letter-spacing: 0.03em;
  margin-top: -2px;
}
.base-card-meta-sep { opacity: 0.35; }

.base-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.base-card-tag {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  color: var(--muted);
}

/* ─── Cards ─────────────────────────────────────── */
.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--surface-mid) 40%, rgba(20, 20, 27, 0.8) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 400ms var(--ease-out-soft),
    border-color 400ms var(--ease-out-soft),
    box-shadow 400ms var(--ease-out-soft),
    background 400ms var(--ease-out-soft);
  cursor: default;
}

/* Base glow layer */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, color-mix(in srgb, var(--ca, var(--border-gold)) 12%, transparent) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}

/* Category accent bar along the top edge */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ca, var(--border-gold)), transparent);
  opacity: 0.35;
  transition: opacity 300ms var(--ease-out-soft);
}

.card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: color-mix(in srgb, var(--ca, var(--border-gold)) 35%, transparent);
  background: linear-gradient(155deg, rgba(30, 30, 42, 0.95) 0%, rgba(15, 15, 20, 0.9) 100%);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.4),
    0 0 0 1px color-mix(in srgb, var(--ca, var(--border-gold)) 20%, transparent);
}

.card:hover::before {
  opacity: 1;
}

.card:hover::after {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

/* Gold foil stamp game icon — sits in top-right of card */
.card-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  color: var(--ember-gold);
  filter: drop-shadow(0 1px 3px rgba(183, 147, 95, 0.3));
  opacity: 1;
  transform: rotate(-0.5deg);
  transition: opacity 0.2s, filter 0.2s, transform 0.2s;
}
.card-icon svg { width: 100%; height: 100%; display: block; stroke-width: 1.5; }
.card:hover .card-icon, .base-card:hover .card-icon {
  filter: drop-shadow(0 0 6px rgba(183, 147, 95, 0.4));
  transform: rotate(0deg);
}

/* ─── Analog Icon Adjustments ─── */
.nav-search-icon,
.tod-settings-btn svg,
.modal-head-actions svg,
.tc-icon svg,
.ea-settings-btn svg {
  color: var(--ember-paper);
  stroke: var(--ember-paper);
  transform: rotate(-0.5deg);
}

.badges { display: flex; gap: 6px; flex-wrap: wrap; }

.badge {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  color: var(--muted);
}

.badge-pro {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 7px;
  color: #D4AF37;
}

.card-visual {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--ca, var(--border-gold)) 34%, var(--surface-mid)) 0%,
    color-mix(in srgb, var(--ca, var(--border-gold)) 14%, var(--surface-mid)) 55%,
    var(--surface-mid) 100%
  );
}

/* Dot-grid texture overlay */
.card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 13px 13px;
  pointer-events: none;
}

/* Seamless fade into card body — must match card background (--surface-mid) */
.card-visual::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent, var(--surface-mid));
}

.badge-pro:before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #D4AF37;
  opacity: 0.8;
}

/* ─── Category tags ──────────────────────────────── */
.category-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  padding: 3px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.category-multiplayer { background: rgba(100, 60, 220, 0.18); color: #a78bfa; border: 1px solid rgba(100, 60, 220, 0.3); }
.category-group       { background: rgba(232, 184, 75, 0.12); color: var(--gold); border: 1px solid var(--border-gold); }
.category-classic     { background: rgba(255,255,255,0.05); color: var(--muted); border: 1px solid var(--border); }
.category-couples     { background: rgba(152, 18, 24, 0.18); color: #f87171; border: 1px solid rgba(152, 18, 24, 0.35); }
.category-icebreaker  { background: rgba(20, 180, 160, 0.14); color: #5eead4; border: 1px solid rgba(20, 180, 160, 0.28); }
.category-generator   { background: rgba(190, 140, 30, 0.12); color: #d4af37; border: 1px solid rgba(190, 140, 30, 0.25); }
.category-tool        { background: rgba(255,255,255,0.04); color: var(--dim); border: 1px solid var(--border); }
.category-dice-games  { background: rgba(255, 100, 0, 0.13); color: #ff8040; border: 1px solid rgba(255, 100, 0, 0.28); }
.category-card-games  { background: rgba(0, 200, 150, 0.11); color: #34d399; border: 1px solid rgba(0, 200, 150, 0.25); }

.card h4 {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.42rem;
  line-height: 1.18;
  letter-spacing: var(--tracking-ultra-wide);
  text-transform: uppercase;
}

.card p {
  margin: 0;
  color: var(--ember-paper);
  font-size: 0.87rem;
  line-height: 1.52;
}

/* Meta row: players • duration */
.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--dim);
  letter-spacing: 0.03em;
  margin-top: -2px;
}

.card-meta-sep {
  opacity: 0.35;
}

/* Play mode tags on game cards */
.card-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 6px 0 2px;
}

.mode-tag {
  display: inline-flex;
  align-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #b8b0a0;
  white-space: nowrap;
}

.mode-tag.mode-tv-phones {
  color: #e8b84b;
  border-color: rgba(232, 184, 75, 0.4);
  background: rgba(232, 184, 75, 0.1);
  box-shadow: 0 0 10px rgba(232, 184, 75, 0.15);
}

.mode-tag.mode-pass-play {
  color: #00F5FF;
  border-color: rgba(0, 245, 255, 0.3);
  background: rgba(0, 245, 255, 0.06);
}

.mode-tag.mode-phones-only {
  color: #b5a0fd;
  border-color: rgba(181, 160, 253, 0.3);
  background: rgba(181, 160, 253, 0.06);
}

/* legacy fallback — kept for any card that still emits it */
.card-players {
  font-size: 0.75rem !important;
  color: var(--dim) !important;
  letter-spacing: 0.03em;
}

.card .action-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.mini-actions { display: flex; align-items: center; gap: 8px; }

/* Share button — de-emphasized; nobody shares before playing */
.mini-actions .save-btn {
  opacity: 0.45;
  font-size: 0.72rem;
  padding: 6px 10px;
}
.mini-actions .save-btn:hover { opacity: 0.8; }

/* Play button — stronger contrast as the clear exit point */
.card .action-row .btn-primary {
  background: color-mix(in srgb, var(--gold) 90%, var(--gold-bright) 10%);
  color: var(--ink);
  font-weight: 700;
}

/* ─── Grouped Game Sections ──────────────────────── */
.game-section {
  margin-top: 96px;
  padding-top: 0;
  border-top: none;
}

.game-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.game-section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  padding-left: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--section-accent, var(--border-gold));
}

.game-section[data-section="party"] { --section-accent: #FF4D00; }
.game-section[data-section="classic"] { --section-accent: #D4AF37; }
.game-section[data-section="couples"] { --section-accent: #f87171; }
.game-section[data-section="dice"]  { --section-accent: #ff8040; }
.game-section[data-section="card"]  { --section-accent: #34d399; }

.game-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.75rem;
  color: var(--text);
  letter-spacing: -0.015em;
}

.game-section-count {
  font-size: 0.68rem;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}

.game-subgrid {
  display: grid;
  column-gap: 20px;
  row-gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

/* ─── Start Here section ─────────────────────────── */
/* ─── Tonight's Pick ─────────────────────────────── */
.tonights-pick-section {
  margin-bottom: 112px;
}

.tonights-pick-eyebrow {
  margin-bottom: 16px;
}

.tonights-pick-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 800px) {
  .tonights-pick-layout {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
  }
}

.tonights-pick-info {
  padding: 12px 16px;
}

@media (min-width: 800px) {
  .tonights-pick-info {
    padding: 0 20px 0 0;
  }
}

.tonights-pick-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.tonights-pick-desc {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}

/* Tonight card — full width, tall, vertical, more dramatic than hero cards */
#tonights-pick-card {
  display: block;
}

.card--tonight {
  min-height: 200px;
  background: linear-gradient(155deg,
    color-mix(in srgb, var(--ca, var(--gold)) 22%, var(--surface-mid)) 0%,
    color-mix(in srgb, var(--ca, var(--gold)) 8%, var(--surface-mid)) 55%,
    var(--surface-mid) 100%
  );
  border-color: color-mix(in srgb, var(--ca, var(--gold)) 32%, transparent);
  padding: 28px 32px;
}

.card--tonight::before { height: 3px; opacity: 0.85; }

.card--tonight h4 {
  font-size: 1.55rem;
  line-height: 1.15;
}

.card--tonight .card-icon {
  width: 48px;
  height: 48px;
}

.card--tonight:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--ca, var(--gold)) 44%, transparent);
  box-shadow:
    var(--shadow-3),
    0 0 0 1px color-mix(in srgb, var(--ca, var(--gold)) 22%, transparent),
    0 0 56px color-mix(in srgb, var(--ca, var(--gold)) 14%, transparent);
}

.start-here-section {
  --section-accent: var(--gold);
}

/* Primary row: 2 hero cards side by side */
.start-here-primary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

/* Secondary row: remaining Tier 1 in standard 3-col */
.start-here-secondary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 20px;
  row-gap: 24px;
}

/* Hero card — significantly bigger, more dramatic than the secondary row */
.card--hero {
  min-height: 280px;
  background: linear-gradient(155deg,
    color-mix(in srgb, var(--ca, var(--gold)) 16%, var(--surface-mid)) 0%,
    color-mix(in srgb, var(--ca, var(--gold)) 5%, var(--surface-mid)) 45%,
    var(--surface-mid) 100%
  );
  border-color: color-mix(in srgb, var(--ca, var(--gold)) 20%, transparent);
}

.card--hero::before {
  height: 3px;
  opacity: 0.75;
}

.card--hero h4 {
  font-size: 1.35rem;
  line-height: 1.18;
}

.card--hero p {
  font-size: 0.9rem;
  flex-grow: 1; /* push action row to bottom */
}

.card--hero:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--ca, var(--gold)) 36%, transparent);
  box-shadow:
    var(--shadow-3),
    0 0 0 1px color-mix(in srgb, var(--ca, var(--gold)) 20%, transparent),
    0 0 48px color-mix(in srgb, var(--ca, var(--gold)) 12%, transparent);
}

/* Tier 2 / depth cards — visually quieter to let Tier 1 dominate */
.card--depth {
  background: var(--surface);
  border-color: rgba(255,255,255,0.055);
}

.card--depth::before {
  opacity: 0.28;
}

.card--depth .card-icon {
  opacity: 0.55;
}

.card--depth:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--ca, var(--gold)) 34%, transparent);
  box-shadow:
    var(--shadow-2),
    0 0 0 1px color-mix(in srgb, var(--ca, var(--gold)) 10%, transparent);
}

/* ─── Game tier tags ──────────────────────────────── */
.game-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 7px;
}

.tag-instant {
  background: rgba(232, 184, 75, 0.15);
  border: 1px solid rgba(232, 184, 75, 0.5);
  color: var(--gold-bright);
  font-size: 0.62rem;
  text-shadow: 0 0 10px rgba(232, 184, 75, 0.45);
}

.tag-lean-in {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #b5a0fd;
}

/* ─── Demoted secondary sections ("More Games", etc.) ─ */
.game-section--depth {
  margin-top: 48px; /* tighter than the 64px primary gap */
}

.game-section--depth .game-section-header {
  border-left-color: color-mix(in srgb, var(--section-accent, var(--border-gold)) 45%, transparent);
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.game-section--depth .game-section-title {
  font-size: 1.35rem;
  color: var(--muted);
}

.game-section--depth .game-section-count {
  opacity: 0.7;
}

/* ─── Tools Hero Layout ───────────────────────────────── */
.tools-hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 64px;
  margin-bottom: 48px;
}

.tools-hero-text {
  flex: 0 0 auto;
  min-width: 200px;
}


@media (max-width: 860px) {
  .tools-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    margin-bottom: 36px;
  }
}



/* ─── Coming Soon Cards ───────────────────────────── */
.card.is-coming-soon {
  opacity: 0.68;
  cursor: default;
}

.card.is-coming-soon:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

.badge-coming {
  background: rgba(212,175,55,0.1);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 3px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  color: var(--gold);
}

/* ─── Favorites ─────────────────────────────────── */

/* ─── Trust Pillars ─────────────────────────────── */
/* ─── Core Principles (big, authoritative) ────────── */
.core-principles {
  margin-top: 20px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

.core-principle {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 3px solid var(--border-gold);
}

.core-principle .trust-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(232, 184, 75, 0.1);
  border: 1px solid rgba(232, 184, 75, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.core-principle h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
}

.core-principle p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ─── Platform Policies (compact, informational) ───── */
.support-policies {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.support-policy {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.support-policy:last-child { border-bottom: none; }

.support-policy-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  margin-top: 2px;
}

.support-policy strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  letter-spacing: 0.01em;
}

.support-policy p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ─── Legacy trust-pillar (kept for any remaining references) ─ */
.trust-pillars {
  margin-top: 24px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.trust-pillar {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(232, 184, 75, 0.08);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.trust-pillar h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
}

.trust-pillar p { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.65; }

/* Sub-section headers on the merged About page */
.about-sub-head {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--text);
  margin: 44px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Secondary sub-head (Platform Policies) — visually quieter */
.about-sub-head--secondary {
  font-size: 1.2rem;
  color: var(--muted);
  margin-top: 32px;
  padding-top: 0;
  border-top: none;
}

/* ─── Trust / Roadmap ───────────────────────────── */
.roadmap-grid {
  margin-top: 20px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.roadmap-card { padding: 24px; }

.roadmap-card h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
}

.roadmap-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ─── About ─────────────────────────────────────── */
.about-manifesto {
  margin-top: 24px;
  padding: 36px 40px;
}

.about-manifesto p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
  max-width: 68ch;
}

.about-manifesto p:last-child { margin-bottom: 0; }

.about-contact {
  margin-top: 20px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.about-contact h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
}

.about-contact p { margin: 0 0 20px; color: var(--muted); font-size: 0.9rem; max-width: 44ch; }
.about-contact .btn { white-space: nowrap; }

/* ─── FAQ ───────────────────────────────────────── */
.trust-faq { margin-top: 18px; padding: 28px; }

.trust-faq h4 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
}

.faq-list { display: grid; gap: 0; }
.faq-item { border-bottom: 1px solid var(--border); overflow: hidden; }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 17px 0;
  background: transparent;
  color: var(--text);
  border: 0;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  transition: color 160ms;
}

.faq-question:hover { color: var(--gold); }
.faq-question span { color: var(--gold); font-size: 1.1rem; flex-shrink: 0; }

.faq-answer {
  display: none;
  padding: 0 0 16px;
  color: var(--muted);
  line-height: 1.68;
  font-size: 0.9rem;
}

.faq-item.open .faq-answer { display: block; }

/* ─── Footer ────────────────────────────────────── */
.footer-note { display: none; }

.site-footer {
  background:
    linear-gradient(to bottom, rgba(230, 184, 75, 0.05) 0%, transparent 55%),
    #000;
  border-top: 1px solid var(--border-gold);
  box-shadow: 0 -1px 24px rgba(230, 184, 75, 0.08);
  padding: 80px 24px 64px;
  margin-top: 96px;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.footer-logo {
  height: 80px;
  width: auto;
  opacity: 0.95;
  display: block;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 12px rgba(230, 184, 75, 0.12));
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Separate nav + legal rows in footer */
.footer-nav-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav-links a,
.footer-links a {
  color: var(--muted);
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  transition: color 160ms;
  cursor: pointer;
}

.footer-links a:hover,
.footer-nav-links a:hover { color: var(--gold); }

.site-footer p {
  margin: 0;
  color: var(--dim);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.footer-legal { color: var(--dim) !important; }
.footer-copy  { color: rgba(110, 104, 94, 0.6) !important; font-size: 0.72rem !important; }

/* ─── Modal ─────────────────────────────────────── */
.modal-shell {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 8, 11, 0.85);
  backdrop-filter: blur(14px);
  z-index: 100;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 240ms ease, visibility 240ms ease;
}

.modal-shell.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal {
  width: min(740px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, rgba(30, 30, 42, 0.45) 0%, rgba(15, 15, 20, 0.9) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(232, 184, 75, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px rgba(0,0,0,0.75), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transform: translateY(22px) scale(0.97);
  opacity: 0;
  transition: transform 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 300ms ease;
  position: relative;
}

.modal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(232, 184, 75, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.modal-shell.open .modal {
  transform: none;
  opacity: 1;
}

/* Bottom-sheet slide-up for Lounge Lobby (Lobby Setup & Lounge Lobby) */
.modal-shell:has(.modal[data-game-id="lobby"]) {
  align-items: flex-end;
  padding: 0;
}

.modal-shell .modal[data-game-id="lobby"] {
  width: 100vw;
  max-width: 520px;
  height: 90vh;
  max-height: 90vh;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
  transform: translateY(100%);
  opacity: 1; /* Keep fully visible for sliding drawer feel */
  transition: transform 550ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-shell.open .modal[data-game-id="lobby"] {
  transform: translateY(0);
  opacity: 1;
}

/* iOS-style drawer pull-bar */
.modal[data-game-id="lobby"]::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
  z-index: 10;
  position: relative;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-gold);
}

.modal-head-brand {
  display: flex;
  align-items: center;
}

.modal-logo {
  height: 24px;
  width: auto;
  display: block;
}

.modal-body { padding: 24px; overflow-y: auto; }

/* Game modal — game-width, no title header */
.modal.is-game { width: min(520px, 96vw); max-height: 90vh; height: 90vh; overflow-y: hidden; display: flex; flex-direction: column; }
/* Games render their own ea-game-header with ×, music, and help — hide the
   redundant modal chrome so there's no double-header. */
.modal.is-game .modal-head { display: none; }
.modal.is-game .modal-body { padding: 0; flex: 1; height: 100%; position: relative; overflow-y: auto; }
/* When a phone-frame game takes over the modal body, the modal must
   expand so the absolutely-positioned .pf-root has room to fill. */
.modal.is-game:has(.pf-root) { height: 90vh; }
.modal.is-game:has(.pf-root) .modal-head { display: none; }
.modal.is-game:has(.pf-root) .modal-body { flex: 1; }

/* When a tv host board takes over the modal body, the modal must
   expand to full screen width to fit the 3-column layout. */
.modal.is-game:has(.hf-root) { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
.modal.is-game:has(.hf-root) .modal-head { display: none; }
.modal.is-game:has(.hf-root) .modal-body { flex: 1; overflow: hidden; }

/* The lobby begins as a phone-sized bottom sheet. Once the shared host frame
   mounts inside it, remove that sheet's 90vh cap so the TV board really uses
   the whole display (including on 4K televisions). */
.modal-shell:has(.modal[data-game-id="lobby"]:has(.hf-root)) { align-items: stretch; }
.modal-shell .modal[data-game-id="lobby"]:has(.hf-root) {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  border-radius: 0;
}
.modal[data-game-id="lobby"]:has(.hf-root)::before { display: none; }
body:has(.modal-shell.open .hf-root) { overflow: hidden; }

.input-row { display: grid; gap: 8px; margin: 10px 0; }

input, select, textarea {
  width: 100%;
  background: rgba(0,0,0,0.3);
  color: var(--text);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font: inherit;
}

.notice {
  margin-top: 10px;
  color: var(--dim);
  font-size: 0.78rem;
}

/* ─── Footer legal buttons ───────────────────────── */
.footer-legal-link {
  color: var(--dim);
  font-size: inherit;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.15s, color 0.15s;
}
.footer-legal-link:hover { color: #D4AF37; opacity: 1; }

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 1040px) {
  .hero-main { padding: 12px 0 32px; }
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 14px 20px; gap: 12px; }
  .top-actions { order: 2; margin-left: auto; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; gap: 20px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .game-subgrid { grid-template-columns: repeat(2, 1fr); }
  .start-here-secondary { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .how .steps { grid-template-columns: 1fr; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .trust-pillars { grid-template-columns: 1fr; }
  .core-principles { grid-template-columns: 1fr; }
  .about-manifesto { padding: 24px; }
  .about-contact { flex-direction: column; align-items: flex-start; padding: 24px; }
  .card-top { flex-wrap: wrap; }
}

/* ─── Tablet breakpoint ──────────────────────────── */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .game-subgrid { grid-template-columns: repeat(2, 1fr); }
  .start-here-secondary { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .pack-grid { grid-template-columns: repeat(2, 1fr); }
  .how .steps { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { height: auto; padding: 24px 0; }
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .game-subgrid { grid-template-columns: 1fr; }
  .start-here-primary { grid-template-columns: 1fr; }
  .start-here-secondary { grid-template-columns: repeat(2, 1fr); }
  .pack-grid { grid-template-columns: 1fr; }
  .tools-board { column-count: 1; }
  .app-shell { padding: 24px 16px 60px; }
  .hero-main { padding: 8px 0 24px; }
  .modal.is-game { height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .modal.is-game:has(.pf-root) { height: 100dvh; }
  
  #route-home .browse-section { margin-top: var(--space-12); padding-top: var(--space-8); }
  #route-home .why-section { margin-top: var(--space-10); padding-top: var(--space-6); }
  #route-home .tools-teaser-section { margin-top: var(--space-8); padding-top: var(--space-6); }

  /* Compact game cards on mobile */
  .card { padding: 14px; gap: 8px; }
  .card-icon { width: 26px; height: 26px; }



  /* Tools teaser — 2-column pill grid instead of wrapping flex */
  .tools-teaser-row { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ─── Game: Card Flip ───────────────────────────── */
.card-stage {
  perspective: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 28px;
}

.flip-card {
  width: min(300px, 82vw, 50vh);
  aspect-ratio: 5 / 7;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.62s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.flip-card.is-flipped {
  transform: rotateY(180deg);
}

.flip-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(230, 184, 75, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
  background: linear-gradient(160deg, var(--surface-high) 0%, var(--surface-mid) 100%);
}

.flip-card-back {
  transform: rotateY(180deg);
  justify-content: space-between;
}

.card-ornament {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--gold);
  opacity: 0.28;
  line-height: 1;
  margin-bottom: 16px;
  user-select: none;
  pointer-events: none;
}

.card-eyebrow {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 24px;
}

.card-choice-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.card-choice-stack .btn {
  width: 100%;
  padding: 13px;
  font-size: 0.78rem;
}

.card-cat-badge {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid var(--border-gold);
  border-radius: 3px;
  padding: 4px 11px;
  align-self: center;
}

.card-prompt-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.25rem, 5vw, 1.75rem);
  line-height: 1.3;
  color: var(--text);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 0;
  margin: 0;
}

.card-back-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.card-back-actions .btn {
  flex: 1;
  padding: 11px 8px;
  font-size: 0.7rem;
}

/* Pass / safety control — visually narrow so it doesn't compete with Reroll / Next */
.card-back-actions .btn-ghost {
  flex: 0.55;
  min-width: 0;
}

.card-hint {
  margin-top: 14px;
  color: var(--dim);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── Help Panel ─── */
.modal-head-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hp-trigger {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-display);
  line-height: 1;
  flex-shrink: 0;
}
.hp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,12,0.72);
  z-index: 300;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  border-radius: inherit;
  overflow: hidden;
}
.hp-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.hp-panel {
  width: min(320px, 88%);
  height: 100%;
  background: #16161D;
  border-left: 1px solid rgba(212,175,55,0.18);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.hp-overlay.is-open .hp-panel {
  transform: translateX(0);
}
.hp-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.hp-panel-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: #ece6dc;
  margin: 0;
}
.hp-close-btn {
  background: none;
  border: none;
  color: var(--ember-paper);
  cursor: pointer;
  font-size: 0.72rem;
  letter-spacing: var(--tracking-ultra-wide);
  text-transform: uppercase;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.15s;
}
.hp-close-btn:hover { color: color-mix(in srgb, var(--ember-paper) 80%, white); }
.hp-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hp-what {
  color: #9a9180;
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 0 0 20px;
}
.hp-subhead {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #D4AF37;
  font-weight: 700;
  margin: 0 0 10px;
}
.hp-steps {
  color: #ece6dc;
  font-size: 0.84rem;
  line-height: 1.7;
  padding-left: 20px;
  margin: 0 0 20px;
}
.hp-steps li { margin-bottom: 5px; }
.hp-meta {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hp-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #ece6dc;
}
.hp-meta-label { color: #6e685e; }
.hp-tip {
  color: #9a9180;
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.55;
  margin: 0 0 16px;
}
.hp-tip strong { color: #D4AF37; font-style: normal; }
.hp-safety {
  background: rgba(0,245,255,0.05);
  border: 1px solid rgba(0,245,255,0.14);
  border-radius: 8px;
  padding: 12px 14px;
  color: #00F5FF;
  font-size: 0.77rem;
  line-height: 1.55;
  margin-top: auto;
}

/* ════════════════════════════════════════════════════════════════
   HOME PAGE — Browse by Vibe + Why Ember & Ace
   ════════════════════════════════════════════════════════════════ */

/* Shared section eyebrow pattern */
.section-eyebrow {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  position: relative;
  padding-left: 28px;
}
.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--gold);
  opacity: 0.55;
}

/* ─── Home section rhythm ─────────────────────────
   Every section on /route-home shares the same:
   [eyebrow] → [italic serif h3] → [lead] → [content]
   structure, with a single hairline divider above. */
/* Browse: dominant — extra air after hero */
#route-home .browse-section {
  margin-top: var(--space-20);
  padding-top: var(--space-12);
  border-top: 1px solid var(--border);
}

/* Why: supportive — standard rhythm */
#route-home .why-section {
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  border-top: 1px solid var(--border);
}

/* Tools: lightweight — tighter, quieter divider */
#route-home .tools-teaser-section {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.home-section-header {
  margin-bottom: var(--space-6);
  display: block;
}
.home-section-header--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.home-section-header h3 {
  margin: 0 0 var(--space-2);
  padding-top: 0;
  position: relative;
}
.home-section-header h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-bright), transparent);
  margin-top: 6px;
  border-radius: 2px;
}
.home-section-header h3::before,
#games-section h3::before,
#route-about .section h1::before,
#tools-grid-section h1::before {
  display: none; /* eyebrow replaces the decorative line */
}

/* About + Tools page heading — eyebrow replaces the decorative line */
#route-about .section h1,
#tools-grid-section h1 {
  padding-top: 8px;
}

#games-section {
  margin-top: 16px;
}

#games-section h3 {
  padding-top: 8px;
}
.home-section-lead {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-sm);
  max-width: 52ch;
  line-height: 1.65;
}

/* Tools section: quietly de-emphasised vs browse/why */
#route-home .tools-teaser-section .home-section-header { opacity: 0.82; }
#route-home .tools-teaser-section .home-section-lead { opacity: 0.72; }

/* ─── Browse by Vibe ─── */

.browse-grid {
  display: grid;
  /* 2-col base; Start Here tile spans both columns via grid-column */
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* Start Here spans full width — visual anchor at top */
.browse-tile--start-here {
  grid-column: 1 / -1;
  min-height: 200px;
}

@media (max-width: 560px) {
  .browse-grid { grid-template-columns: 1fr; }
  .browse-tile--start-here { min-height: 160px; }
}

.browse-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: var(--space-5) var(--space-5) var(--space-4);
  min-height: 180px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(155deg, rgba(30,30,42,0.4) 0%, rgba(15,15,20,0.8) 100%);
  cursor: pointer;
  font-family: var(--font-ui);
  color: var(--text);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3), inset 0 -48px 48px rgba(0,0,0,0.30);
  transition:
    transform 400ms var(--ease-out-soft),
    border-color 400ms var(--ease-out-soft),
    box-shadow 400ms var(--ease-out-soft),
    background 400ms var(--ease-out-soft);
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.browse-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--bt, var(--gold)) 18%, transparent) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 400ms var(--ease-out-soft);
  pointer-events: none;
  z-index: 2;
}

.browse-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bt, var(--gold)), transparent);
  opacity: 0.4;
  z-index: 4;
  transition: opacity 300ms var(--ease-out-soft);
}

.browse-tile:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: color-mix(in srgb, var(--bt, var(--gold)) 45%, transparent);
  background: linear-gradient(155deg, color-mix(in srgb, var(--bt, var(--gold)) 4%, rgba(35,35,50,0.8)) 0%, rgba(15,15,20,0.95) 100%);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.45),
    0 0 0 1px color-mix(in srgb, var(--bt, var(--gold)) 18%, transparent),
    inset 0 -48px 48px rgba(0,0,0,0.30);
}

.browse-tile:hover::before { opacity: 1; }
.browse-tile:hover::after { opacity: 1; }

/* ── Layer 1: image ── */
.bt-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  border-radius: inherit;
  opacity: 0;
  transform: scale(1.04);
  filter: saturate(1.28) contrast(1.1) brightness(1.05);
  transition:
    opacity 300ms var(--ease-out-soft),
    transform 700ms var(--ease-out-soft),
    filter 400ms var(--ease-out-soft);
}
.bt-media.has-image { opacity: 1; }
.browse-tile:hover .bt-media {
  transform: scale(1.09);
  filter: saturate(1.35) contrast(1.12) brightness(1.06);
}

/* ── Layer 2: darkening overlay ── */
.bt-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    170deg,
    rgba(9, 8, 11, 0.50) 0%,
    rgba(9, 8, 11, 0.12) 40%,
    transparent 100%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-out-soft);
}
.bt-media.has-image ~ .bt-overlay { opacity: 1; }

/* ── Layer 3: text ── */
.bt-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  width: 100%;
}

.bt-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--bt, var(--gold));
  line-height: 1.2;
  margin-bottom: 6px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.6);
}
.bt-desc {
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 10px;
  opacity: 0.82;
}
.bt-samples {
  font-size: 0.66rem;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-top: auto;
  opacity: 0.45;
}

.bt-arrow {
  position: absolute;
  right: 20px;
  top: 22px;
  z-index: 2;
  font-size: 1rem;
  color: var(--bt, var(--gold));
  opacity: 0.5;
  transition: transform 0.2s, opacity 0.2s;
}
.browse-tile:hover .bt-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.bt-icon {
  position: absolute;
  bottom: -10px;
  right: -10px;
  z-index: 2;
  width: 96px;
  height: 96px;
  color: var(--bt, var(--gold));
  opacity: 0.07;
  pointer-events: none;
  transition: opacity 280ms var(--ease-out-soft);
}
.bt-icon svg { width: 100%; height: 100%; display: block; }
.browse-tile:hover .bt-icon { opacity: 0.14; }

/* ─── Start Here browse tile variant ─── */
.browse-tile--start-here .bt-label {
  color: var(--gold-bright);
  font-size: 1.5rem; /* larger label since it spans full width */
}

.browse-tile--start-here .bt-desc {
  font-size: 0.85rem;
}

.browse-tile--start-here::before {
  opacity: 0.65; /* stronger gold bar at rest */
}

/* ─── Coming Soon section (home page bottom) ─── */
.coming-soon-section {
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.coming-soon-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 640px) {
  .coming-soon-cards { grid-template-columns: 1fr; }
}

.coming-soon-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: linear-gradient(160deg, var(--surface-high) 0%, var(--surface-mid) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.coming-soon-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,184,75,0.45);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
  background: linear-gradient(160deg, rgba(30, 30, 42, 0.95) 0%, rgba(15, 15, 20, 0.9) 100%);
}

.csc-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232,184,75,0.08);
  border: 1px solid rgba(232,184,75,0.2);
  border-radius: 10px;
  color: var(--gold);
}

.csc-body { flex: 1; min-width: 0; }

.csc-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  border: 1px solid rgba(232,184,75,0.35);
  background: rgba(232,184,75,0.08);
  border-radius: 3px;
  padding: 2px 7px;
  margin-bottom: 8px;
}

.coming-soon-card h4 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
}

.coming-soon-card p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── Why Ember & Ace ─── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; gap: 12px; }
}

.why-card {
  padding: var(--space-6) var(--space-5) var(--space-6);
  background: linear-gradient(155deg, rgba(16, 16, 24, 0.75) 0%, rgba(9, 9, 12, 0.9) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(232, 184, 75, 0.12);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition:
    border-color 300ms var(--ease-out-soft),
    background 300ms var(--ease-out-soft),
    box-shadow 300ms var(--ease-out-soft),
    transform 300ms var(--ease-out-soft);
}
.why-card:hover {
  background: linear-gradient(155deg, rgba(22, 22, 33, 0.85) 0%, rgba(12, 12, 18, 0.95) 100%);
  border-color: rgba(232, 184, 75, 0.35);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 
    0 20px 48px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(232, 184, 75, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.08);
}
.why-icon {
  color: var(--gold);
  opacity: 0.75;
  margin-bottom: 2px;
}
.why-card h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}
.why-card p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 640px) {
  .why-card {
    display: grid;
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    column-gap: var(--space-4);
    row-gap: 4px;
    align-items: start;
    padding: var(--space-4);
  }
  .why-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    margin-top: 3px;
    margin-bottom: 0;
  }
  .why-card h4 { font-size: 1.05rem; grid-column: 2; grid-row: 1; }
  .why-card p { font-size: 0.8rem; grid-column: 2; grid-row: 2; }
}

/* ─── Trust Pillars — inline grid layout on mobile ─ */
@media (max-width: 640px) {
  .trust-pillar {
    display: grid;
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 4px;
    align-items: start;
    gap: unset;
  }
  .trust-pillar-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 32px;
    height: 32px;
    margin-top: 2px;
    border-radius: 8px;
  }
  .trust-pillar h4 { grid-column: 2; grid-row: 1; }
  .trust-pillar p { grid-column: 2; grid-row: 2; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Truth or Dare — Ember & Ace Native Skin
   ═══════════════════════════════════════════════════════════════════════ */

.tod-shell {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-8);
}

/* Setup / consent panels share the same card surface */
.tod-setup,
.tod-consent {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
}

.tod-setup::after,
.tod-consent::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 28% 12%, rgba(232,184,75,0.07), transparent 58%);
  pointer-events: none;
}

/* ── Setup copy ──────────────────────────────────────────────────────── */

.tod-setup-eyebrow {
  margin: 0 0 var(--space-2);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.tod-setup-title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.08;
  color: var(--text);
}

.tod-setup-sub {
  margin: 0 0 var(--space-5);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── Player input rows ───────────────────────────────────────────────── */

.tod-player-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.tod-player-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.tod-player-input {
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color 180ms ease, background 180ms ease;
}
.tod-player-input::placeholder { color: var(--dim); }
.tod-player-input:focus {
  outline: none;
  border-color: var(--border-gold);
  background: rgba(255,255,255,0.04);
}

.tod-player-remove {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--dim);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color 150ms, border-color 150ms;
}
.tod-player-remove:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

.tod-setup-actions { margin-bottom: var(--space-5); }

/* ── Mode selector ───────────────────────────────────────────────────── */

.tod-mode-group { margin-bottom: var(--space-6); }

.tod-group-label {
  margin: 0 0 var(--space-2);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.tod-mode-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: nowrap;
}

/* Scoped hidden override — needed because tod-front/tod-back have
   explicit display:grid / display:flex that would win without !important */
.tod-front.hidden,
.tod-back.hidden { display: none !important; }

.tod-mode-btn {
  flex: 1;
  min-width: 88px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms var(--ease-out-soft),
              border-color 180ms var(--ease-out-soft),
              color 180ms var(--ease-out-soft),
              background 180ms var(--ease-out-soft),
              box-shadow 180ms var(--ease-out-soft);
}
.tod-mode-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.16); }
.tod-mode-btn.is-active {
  color: var(--gold);
  border-color: rgba(232,184,75,0.38);
  background: rgba(232,184,75,0.08);
  box-shadow: inset 0 0 0 1px rgba(232,184,75,0.1);
}

.tod-start-btn { width: 100%; }

/* ── Spicy consent ───────────────────────────────────────────────────── */

.tod-consent-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.tod-consent-actions > * { flex: 1; }

/* ── Game header (player name + mode badge + settings trigger) ───────── */

.tod-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.tod-player-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tod-player {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  line-height: 1.05;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tod-mode-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255,255,255,0.02);
}
.tod-mode-badge--hot   { color: #ff9c66; border-color: rgba(255,156,102,0.28); background: rgba(255,156,102,0.06); }
.tod-mode-badge--spicy { color: #ff6a5e; border-color: rgba(255,106,94,0.3);   background: rgba(255,106,94,0.07); }

/* Settings / hamburger button in game header */
.tod-settings-btn {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color 150ms, border-color 150ms;
}
.tod-settings-btn:hover { color: var(--text); border-color: var(--border-gold); }

/* ── Main card ───────────────────────────────────────────────────────── */

.tod-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  transition: transform 220ms var(--ease-out-soft),
              box-shadow 220ms var(--ease-out-soft);
}

/* Heat-mode ambient glow behind the card */
.tod-shell[data-mode="normal"] .tod-card::before,
.tod-shell[data-mode="hot"]    .tod-card::before,
.tod-shell[data-mode="spicy"]  .tod-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tod-shell[data-mode="normal"] .tod-card::before {
  background: radial-gradient(ellipse at 85% 16%, rgba(0,245,255,0.05), transparent 45%);
}
.tod-shell[data-mode="hot"] .tod-card::before {
  background: radial-gradient(ellipse at 85% 16%, rgba(255,140,80,0.07), transparent 45%);
}
.tod-shell[data-mode="spicy"] .tod-card::before {
  background: radial-gradient(ellipse at 85% 16%, rgba(255,77,0,0.09), transparent 45%);
}

.tod-card.tod-state-front { min-height: 240px; }
.tod-card.tod-state-back  { min-height: 290px; }

.tod-front,
.tod-back { position: relative; z-index: 1; }

/* ── Truth / Dare choice grid ────────────────────────────────────────── */

.tod-front {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.tod-choice {
  min-height: 132px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms var(--ease-out-soft),
              border-color 180ms var(--ease-out-soft),
              box-shadow 180ms var(--ease-out-soft),
              color 180ms var(--ease-out-soft);
}
.tod-choice:hover { transform: translateY(-2px); }
.tod-choice--truth:hover {
  border-color: rgba(0,245,255,0.28);
  color: #c9fbff;
  box-shadow: 0 10px 30px rgba(0,245,255,0.08);
}
.tod-choice--dare:hover {
  border-color: rgba(255,77,0,0.28);
  color: #ffd2c3;
  box-shadow: 0 10px 30px rgba(255,77,0,0.08);
}

/* ── Prompt back face ────────────────────────────────────────────────── */

.tod-back {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.tod-type {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.tod-prompt {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.45;
  color: var(--text);
}

.tod-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: auto;
}
.tod-actions > * { flex: 1; }

/* ── Footer note ─────────────────────────────────────────────────────── */

.tod-subtle-note {
  margin-top: var(--space-3);
  color: var(--dim);
  font-size: 0.72rem;
  text-align: center;
}

/* ── Floating options menu ───────────────────────────────────────────── */

.tod-options {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 500;
  min-width: 180px;
  padding: var(--space-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(17,17,24,0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tod-options > button,
.tod-options #tod-opt-add-wrap > button {
  border: none;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  text-align: left;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  width: 100%;
  transition: background 160ms ease, color 160ms ease;
}
.tod-options > button:hover,
.tod-options #tod-opt-add-wrap > button:hover {
  background: rgba(255,255,255,0.035);
  color: var(--gold);
}

/* Inline "add player" expansion inside the options menu */
.tod-opt-inline {
  display: flex;
  gap: var(--space-2);
  padding: 6px 8px 4px;
}
.tod-opt-inline.hidden { display: none; }
.tod-opt-input {
  flex: 1;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
}
.tod-opt-input:focus { outline: none; border-color: var(--border-gold); }
.tod-opt-confirm {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(232,184,75,0.3);
  background: rgba(232,184,75,0.1);
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms;
}
.tod-opt-confirm:hover { background: rgba(232,184,75,0.18); }

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .tod-shell { padding: var(--space-4) 0 var(--space-8); }
  .tod-front { grid-template-columns: 1fr; }
  .tod-choice { min-height: 88px; }
  .tod-card.tod-state-front,
  .tod-card.tod-state-back { min-height: auto; }
  .tod-actions { flex-direction: column; }
  .tod-consent-actions { flex-direction: column; }
  .tod-options { left: 12px; right: 12px; bottom: 12px; min-width: 0; }
}

/* ─── Global Animation Utilities ────────────────── */
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.94) translateY(18px); filter: blur(4px); }
  60% { opacity: 1; transform: scale(1.01) translateY(-2px); filter: blur(0px); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0px); }
}

@keyframes staggerUp {
  from { opacity: 0; transform: translateY(24px) scale(0.98); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0px); }
}

.animate-pop-in {
  animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-stagger-1 { animation: staggerUp 0.7s var(--ease-out-soft) 0.1s both; }
.animate-stagger-2 { animation: staggerUp 0.7s var(--ease-out-soft) 0.2s both; }
.animate-stagger-3 { animation: staggerUp 0.7s var(--ease-out-soft) 0.3s both; }
.animate-stagger-4 { animation: staggerUp 0.7s var(--ease-out-soft) 0.4s both; }

/* Frosted glass utilities */
.glass-panel {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.glass-panel.gold {
  background: linear-gradient(155deg, rgba(232, 184, 75, 0.08) 0%, rgba(232, 184, 75, 0.02) 100%);
  border-color: rgba(232, 184, 75, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(232, 184, 75, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ─── Standard Game Entry Mode Selector ────────── */
.ea-mode-stage{display:flex;flex-direction:column;align-items:center;gap:2rem;
  padding:2rem 1rem;text-align:center;font-family:var(--font-ui);}
.ea-mode-title{font-family:var(--font-display);font-size:2.8rem;
  color:var(--gold);font-style:italic;margin:0;text-shadow:0 12px 30px rgba(232,184,75,0.2);}
.ea-mode-sub{color:var(--muted);font-size:1rem;max-width:360px;margin:0;line-height:1.5;}
.ea-mode-cards{display:flex;gap:1.5rem;flex-wrap:wrap;justify-content:center;}
.ea-mode-card{
  position: relative; overflow: hidden;
  width:min(280px,85vw);padding:32px 24px;border-radius:24px;cursor:pointer;
  background: linear-gradient(155deg, rgba(30, 30, 42, 0.4) 0%, rgba(15, 15, 20, 0.8) 100%);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  display:flex;flex-direction:column;gap:12px;align-items:center;
  transition:all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);text-align:center;
}
.ea-mode-card::before { content: ''; position: absolute; inset: 0; border-radius: 24px; background: radial-gradient(circle at top left, rgba(232,184,75,0.1), transparent 70%); opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.ea-mode-card:hover { border-color:rgba(232,184,75,0.4); transform:translateY(-6px); box-shadow:0 24px 60px rgba(0,0,0,0.7), inset 0 1px 1px rgba(232,184,75,0.2); }
.ea-mode-card:hover::before { opacity: 1; }
.ea-mode-card:active { transform: scale(0.96) translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.6); }
.ea-mode-card-icon { color: var(--gold); margin-bottom:8px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); display: flex; align-items: center; justify-content: center; }
.ea-mode-card-title { font-family:var(--font-display); font-size:1.8rem; font-weight:700; font-style:italic; color:var(--text); margin:0; }
.ea-mode-card-desc { font-size:0.95rem; color:var(--muted); line-height:1.5; margin:0; }
.ea-mode-card-tag { font-size:0.7rem; text-transform:uppercase; letter-spacing:0.15em; padding:6px 14px; border-radius:24px; font-weight:700; margin-top: 8px; }

/* ═══════════════════════════════════════════════════════════════
   TOOL MODULES (Spin Wheel, Countdown, Score)
   ═══════════════════════════════════════════════════════════════ */
.ea-tool-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-4) var(--space-4) var(--space-8);
  width: 100%;
}

.ea-tool-panel {
  background: linear-gradient(155deg, rgba(30, 30, 42, 0.4), rgba(20, 20, 27, 0.8));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ── Spin Wheel ── */
.sw-wheel-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: var(--space-2) auto var(--space-6);
  border-radius: 50%;
  padding: 8px;
  background: radial-gradient(ellipse at center, rgba(232, 184, 75, 0.1), transparent 70%);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(232, 184, 75, 0.2);
}
.sw-wheel-clipper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}
.sw-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: transform 4s cubic-bezier(0.15, 0.85, 0.15, 1);
  transform: rotate(0deg);
}
.sw-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; 
  height: 0; 
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid var(--gold-bright);
  z-index: 10;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}
.sw-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 20px;
  margin-top: -10px;
  transform-origin: 0% 50%;
  display: flex;
  align-items: center;
  padding-left: 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink);
  white-space: nowrap;
  z-index: 5;
}
.sw-label span {
  display: inline-block;
}
.sw-winner-box {
  width: 100%;
  max-width: 320px;
  min-height: 80px;
  background: linear-gradient(155deg, rgba(30,30,42,0.4) 0%, rgba(15,15,20,0.8) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(232, 184, 75, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.sw-winner-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}
.sw-winner-text.is-empty { color: var(--muted); font-style: italic; }
.sw-winner-text.is-winner { color: var(--gold-bright); }
.sw-actions {
  display: flex;
  gap: var(--space-3);
  width: 100%;
  max-width: 320px;
}

/* ── Spin Wheel Inline Editor ── */
.sw-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  margin-bottom: var(--space-4);
}
.sw-option-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.sw-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sw-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(232, 184, 75, 0.15);
}
.sw-remove-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.sw-remove-btn:hover {
  background: rgba(255, 100, 100, 0.15);
  border-color: #ff4d4d;
  color: #ff4d4d;
}
.sw-add-btn {
  width: 100%;
  margin-top: 4px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border);
  color: var(--muted);
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.sw-add-btn:hover {
  border-style: solid;
  border-color: var(--gold);
  color: var(--gold);
}
.sw-color-picker {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 38px;
  height: 38px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.sw-color-picker::-webkit-color-swatch {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* ── Score Tracker ── */
.st-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
  max-width: 440px;
}
.st-title {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}
.st-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  width: 100%;
  max-width: 440px;
  margin-bottom: var(--space-6);
}
.st-card {
  background: linear-gradient(155deg, rgba(30, 30, 42, 0.4), rgba(20, 20, 27, 0.8));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 400ms var(--ease-out-soft), box-shadow 400ms var(--ease-out-soft);
}
.st-card:active {
  transform: scale(0.98);
}
.st-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
}
.st-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-high);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-gold);
  color: var(--gold);
}
.st-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 200ms var(--ease-out-soft);
}
.st-name:hover {
  background: rgba(255,255,255,0.05);
}
.st-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.st-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-high);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.st-btn:active {
  background: var(--ink);
  color: var(--text);
}
.st-btn.plus {
  border-color: rgba(232, 184, 75, 0.3);
  color: var(--gold-bright);
}
.st-btn.plus:active {
  background: rgba(232, 184, 75, 0.15);
}
.st-score {
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 48px;
  text-align: center;
  color: var(--text);
  font-family: var(--font-display);
}

/* ── Countdown Timer ── */
.cd-display-panel {
  position: relative;
  width: 240px;
  height: 240px;
  margin: var(--space-4) auto var(--space-6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, rgba(30,30,42,0.4) 0%, rgba(15,15,20,0.8) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(232, 184, 75, 0.15);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.cd-ring {
  transform: rotate(-90deg);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cd-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 6;
}
.cd-ring-fg {
  fill: none;
  stroke: var(--gold);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke 400ms var(--ease-out-soft);
}
.cd-ring-fg.warn {
  stroke: #ff9e00;
}
.cd-ring-fg.danger {
  stroke: #FF4D00;
  animation: cd-pulse 1s ease-in-out infinite alternate;
}
@keyframes cd-pulse {
  0% { filter: drop-shadow(0 0 8px rgba(255, 77, 0, 0.5)); }
  100% { filter: drop-shadow(0 0 16px rgba(255, 77, 0, 0.9)); }
}
.cd-readout {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 5rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--text);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}
.cd-readout.warn { color: #ff9e00; }
.cd-readout.danger { color: #FF4D00; font-weight: 600; }
.cd-row {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
  width: 100%;
  max-width: 320px;
}
.cd-preset {
  padding: var(--space-2) var(--space-4);
  font-size: 0.8rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 200ms var(--ease-out-soft);
}
.cd-preset.is-active,
.cd-preset:active {
  background: rgba(232, 184, 75, 0.15);
  color: var(--gold);
  border-color: var(--border-gold);
  box-shadow: 0 0 10px rgba(232, 184, 75, 0.2);
}
.cd-sub {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
}
.cd-actions {
  display: flex;
  gap: var(--space-3);
  width: 100%;
  max-width: 280px;
}
.cd-actions .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   Mobile UX Polish — Safe Areas, Touch Targets, Overscroll
   ═══════════════════════════════════════════════════════════════ */

/* ─── Safe Area Insets (iPhone notch / home bar) ─── */
@supports (padding: env(safe-area-inset-top)) {
  .topbar {
    padding-top: env(safe-area-inset-top);
  }
  .site-footer {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .modal {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .pf-dock {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .hf-dock {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

/* ─── Touch Target Minimums (WCAG 2.5.8) ────────── */
@media (pointer: coarse) {
  .btn {
    min-height: 48px;
    min-width: 48px;
  }
  .nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .pf-btn-primary {
    min-height: 56px;
    font-size: 0.9rem;
  }
  .pf-btn-ghost {
    min-height: 48px;
  }
  .quiz-opt {
    min-height: 48px;
  }
  .tool-card {
    min-height: 48px;
  }
}

/* ─── Overscroll Containment on Modals ───────────── */
.modal-body {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ─── Bottom-Sheet Modal on Mobile ───────────────── */
@media (max-width: 640px) {
  .modal-shell .modal {
    align-self: flex-end;
    border-radius: 20px 20px 0 0;
    max-height: 95vh;
    margin: 0;
    width: 100%;
    animation: ea-modal-slide-up 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }
  @keyframes ea-modal-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }
}

/* ═══════════════════════════════════════════════════════════════
   Accessibility — Contrast, Focus, Screen Reader Support
   ═══════════════════════════════════════════════════════════════ */

/* ─── Prompt Live Region ─────────────────────────── */
[aria-live] {
  /* Ensure live regions are visually part of the flow */
  position: relative;
}

/* ─── High-Contrast Focus Rings (keyboard users) ── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(232, 184, 75, 0.2);
}

/* ─── Visually Hidden Utility ────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ═══════════════════════════════════════════════════════════════
   Game Master Commentary Bar
   ═══════════════════════════════════════════════════════════════ */
.ea-gm-bar {
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  opacity: 0;
  animation: ea-fade-in 0.5s ease-out 0.3s forwards;
  min-height: 40px;
}

.ea-gm-bar--gold {
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════════════════
   GDPR Consent Banner
   ═══════════════════════════════════════════════════════════════ */
.ea-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 180;
  padding: 16px 24px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(160deg, rgba(26, 24, 16, 0.97), rgba(17, 17, 24, 0.97));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(232, 184, 75, 0.2);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-ui);
  animation: ea-consent-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes ea-consent-rise {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.ea-consent-text {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 480px;
}

.ea-consent-text a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ea-consent-actions {
  display: flex;
  gap: 8px;
}

.ea-consent-accept {
  padding: 10px 20px;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: var(--ink);
  border: 1px solid var(--gold-deep);
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 150ms, box-shadow 150ms;
}

.ea-consent-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 184, 75, 0.3);
}

/* ─── Global Scrollbar Polish ─── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--ink);
}
::-webkit-scrollbar-thumb {
  background: rgba(232, 184, 75, 0.15);
  border: 2px solid var(--ink);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 184, 75, 0.35);
}

/* ─── Interactive Outlines (WCAG Focus ring) ─── */
:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--gold), 0 0 16px rgba(232, 184, 75, 0.3) !important;
}

/* ─── Form Elements Polish ─── */
input[type="text"], input[type="number"], select, textarea {
  transition: border-color 0.25s var(--ease-out-soft), box-shadow 0.25s var(--ease-out-soft);
}
input[type="text"]:focus, input[type="number"]:focus, select:focus, textarea:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--gold), 0 0 14px rgba(232, 184, 75, 0.3) !important;
  outline: none;
}

/* ─── Gilded Card Ornament ─── */
.gilded-card-ornament {
  position: absolute;
  inset: 12px;
  border: 1px solid var(--theme-border-color, rgba(232, 184, 75, 0.15));
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
  box-shadow: inset 0 0 12px var(--theme-glow-rgba, rgba(232, 184, 75, 0.03));
}

/* Decorative corner starburst patterns using pure CSS */
.gilded-card-ornament::before {
  content: '';
  position: absolute;
  inset: -5px;
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 0 L5 10 M0 5 L10 5 M2 2 L8 8 M2 8 L8 2' stroke='%23e8b84b' stroke-width='0.8' opacity='0.7'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 0 L5 10 M0 5 L10 5 M2 2 L8 8 M2 8 L8 2' stroke='%23e8b84b' stroke-width='0.8' opacity='0.7'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 0 L5 10 M0 5 L10 5 M2 2 L8 8 M2 8 L8 2' stroke='%23e8b84b' stroke-width='0.8' opacity='0.7'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M5 0 L5 10 M0 5 L10 5 M2 2 L8 8 M2 8 L8 2' stroke='%23e8b84b' stroke-width='0.8' opacity='0.7'/%3E%3C/svg%3E");
  background-position: 
    top left,
    top right,
    bottom left,
    bottom right;
  background-repeat: no-repeat;
  background-size: 10px 10px;
}

/* ─── Dynamic Game Themes ─── */
.modal[data-game-id] {
  --theme-accent: var(--gold);
  --theme-accent-deep: var(--gold-deep);
  --theme-accent-gradient: linear-gradient(180deg, #e6cd8b 0%, #bf9542 100%);
  --theme-glow-rgba: rgba(232, 184, 75, 0.3);
  --theme-border-color: rgba(232, 184, 75, 0.24);
  --theme-bg-gradient: linear-gradient(165deg, rgba(22, 24, 29, 0.98) 0%, rgba(9, 10, 13, 0.99) 100%);
  --theme-radial-glow: radial-gradient(ellipse at 50% -20%, rgba(232, 184, 75, 0.18) 0%, transparent 65%);
}

.modal[data-game-id="truth-dare"] {
  --theme-accent: #EF4444;
  --theme-accent-deep: #B91C1C;
  --theme-accent-gradient: linear-gradient(180deg, #F87171 0%, #EF4444 100%);
  --theme-glow-rgba: rgba(239, 68, 68, 0.35);
  --theme-border-color: rgba(239, 68, 68, 0.3);
  --theme-bg-gradient: linear-gradient(165deg, rgba(32, 18, 18, 0.6) 0%, rgba(12, 6, 6, 0.96) 100%);
  --theme-radial-glow: radial-gradient(ellipse at 50% -20%, rgba(239, 68, 68, 0.25) 0%, transparent 65%);
}

.modal[data-game-id="never-have-i-ever"] {
  --theme-accent: #06B6D4;
  --theme-accent-deep: #0891B2;
  --theme-accent-gradient: linear-gradient(180deg, #22D3EE 0%, #06B6D4 100%);
  --theme-glow-rgba: rgba(6, 182, 212, 0.35);
  --theme-border-color: rgba(6, 182, 212, 0.3);
  --theme-bg-gradient: linear-gradient(165deg, rgba(16, 28, 36, 0.65) 0%, rgba(6, 12, 18, 0.96) 100%);
  --theme-radial-glow: radial-gradient(ellipse at 50% -20%, rgba(6, 182, 212, 0.25) 0%, transparent 65%);
}

.modal[data-game-id="most-likely-to"] {
  --theme-accent: #A855F7;
  --theme-accent-deep: #7E22CE;
  --theme-accent-gradient: linear-gradient(180deg, #C084FC 0%, #A855F7 100%);
  --theme-glow-rgba: rgba(168, 85, 247, 0.35);
  --theme-border-color: rgba(168, 85, 247, 0.3);
  --theme-bg-gradient: linear-gradient(165deg, rgba(28, 18, 45, 0.6) 0%, rgba(10, 5, 18, 0.96) 100%);
  --theme-radial-glow: radial-gradient(ellipse at 50% -20%, rgba(168, 85, 247, 0.25) 0%, transparent 65%);
}

.modal[data-game-id="kings-cup"] {
  --theme-accent: #F59E0B;
  --theme-accent-deep: #B45309;
  --theme-accent-gradient: linear-gradient(180deg, #FBBF24 0%, #F59E0B 100%);
  --theme-glow-rgba: rgba(245, 158, 11, 0.35);
  --theme-border-color: rgba(245, 158, 11, 0.3);
  --theme-bg-gradient: linear-gradient(165deg, rgba(45, 30, 15, 0.6) 0%, rgba(15, 10, 5, 0.96) 100%);
  --theme-radial-glow: radial-gradient(ellipse at 50% -20%, rgba(245, 158, 11, 0.28) 0%, transparent 65%);
}

.modal[data-game-id="gilded-tongue"] {
  --theme-accent: #EC4899;
  --theme-accent-deep: #BE185D;
  --theme-accent-gradient: linear-gradient(180deg, #F472B6 0%, #EC4899 100%);
  --theme-glow-rgba: rgba(236, 72, 153, 0.35);
  --theme-border-color: rgba(236, 72, 153, 0.3);
  --theme-bg-gradient: linear-gradient(165deg, rgba(38, 20, 28, 0.6) 0%, rgba(15, 7, 10, 0.96) 100%);
  --theme-radial-glow: radial-gradient(ellipse at 50% -20%, rgba(236, 72, 153, 0.25) 0%, transparent 65%);
}

.modal[data-game-id="hot-seat"],
.modal[data-game-id="hot-take"] {
  --theme-accent: #F97316;
  --theme-accent-deep: #C2410C;
  --theme-accent-gradient: linear-gradient(180deg, #FB923C 0%, #F97316 100%);
  --theme-glow-rgba: rgba(249, 115, 22, 0.35);
  --theme-border-color: rgba(249, 115, 22, 0.3);
  --theme-bg-gradient: linear-gradient(165deg, rgba(42, 20, 10, 0.6) 0%, rgba(15, 5, 2, 0.96) 100%);
  --theme-radial-glow: radial-gradient(ellipse at 50% -20%, rgba(249, 115, 22, 0.28) 0%, transparent 65%);
}

.modal[data-game-id="trivia"] {
  --theme-accent: #10B981;
  --theme-accent-deep: #047857;
  --theme-accent-gradient: linear-gradient(180deg, #34D399 0%, #10B981 100%);
  --theme-glow-rgba: rgba(16, 185, 129, 0.35);
  --theme-border-color: rgba(16, 185, 129, 0.3);
  --theme-bg-gradient: linear-gradient(165deg, rgba(12, 35, 24, 0.6) 0%, rgba(4, 12, 8, 0.96) 100%);
  --theme-radial-glow: radial-gradient(ellipse at 50% -20%, rgba(16, 185, 129, 0.22) 0%, transparent 65%);
}

.modal[data-game-id="countdown-timer"],
.modal[data-game-id="dice-roller"],
.modal[data-game-id="score-tracker"],
.modal[data-game-id="spin-wheel"] {
  --theme-accent: #94A3B8;
  --theme-accent-deep: #475569;
  --theme-accent-gradient: linear-gradient(180deg, #CBD5E1 0%, #94A3B8 100%);
  --theme-glow-rgba: rgba(148, 163, 184, 0.25);
  --theme-border-color: rgba(148, 163, 184, 0.2);
  --theme-bg-gradient: linear-gradient(165deg, rgba(22, 22, 26, 0.7) 0%, rgba(8, 8, 10, 0.98) 100%);
  --theme-radial-glow: radial-gradient(ellipse at 50% -20%, rgba(148, 163, 184, 0.15) 0%, transparent 65%);
}

/* Theme Engine Modal Target Styles */
.modal[data-game-id] {
  background: var(--theme-bg-gradient) !important;
}
.modal[data-game-id]::after {
  background: var(--theme-radial-glow) !important;
}
.modal[data-game-id] .btn-primary {
  background: var(--theme-accent-gradient) !important;
  border-color: var(--theme-accent-deep) !important;
  box-shadow: 0 2px 0 var(--theme-accent-deep), 0 0 24px var(--theme-glow-rgba) !important;
}
.modal[data-game-id] .btn-primary:hover {
  background: var(--theme-accent-gradient) !important;
  box-shadow: 0 3px 0 var(--theme-accent-deep), 0 8px 32px var(--theme-glow-rgba) !important;
  transform: translateY(-2px);
}
.modal[data-game-id] input[type="text"]:focus,
.modal[data-game-id] input[type="number"]:focus,
.modal[data-game-id] select:focus,
.modal[data-game-id] textarea:focus {
  border-color: var(--theme-accent) !important;
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--theme-accent), 0 0 14px var(--theme-glow-rgba) !important;
}
.modal[data-game-id] ::selection {
  background: var(--theme-glow-rgba) !important;
  color: #ffffff !important;
}




/* ─── Primary Button Hover Diagonal Shine Sweep ─── */
.btn-primary, .hf-btn-primary, .pf-btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after, .hf-btn-primary::after, .pf-btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: skewX(-20deg);
  transition: none;
}

.btn-primary:hover::after, .hf-btn-primary:hover::after, .pf-btn-primary:hover::after {
  animation: buttonShineSweep 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes buttonShineSweep {
  0% { left: -150%; }
  100% { left: 150%; }
}

/* ─── Custom Cursor System ─── */
@media (hover: hover) and (pointer: fine) {
  .ea-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--cursor-accent, var(--gold-bright));
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate3d(-50%, -50%, 0);
    transition: transform 0.04s linear, width 0.2s ease, height 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 10px var(--cursor-accent, var(--gold-bright));
  }

  .ea-cursor.is-hovering {
    width: 5px;
    height: 5px;
    background-color: #ffffff;
    box-shadow: 0 0 8px #ffffff;
  }

  .ea-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--cursor-accent, rgba(232, 184, 75, 0.45));
    background-color: var(--cursor-glow, rgba(232, 184, 75, 0.03));
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-50%, -50%, 0);
    transition: 
      background-color 0.24s cubic-bezier(0.25, 1, 0.5, 1),
      border-color 0.24s cubic-bezier(0.25, 1, 0.5, 1),
      border-radius 0.24s cubic-bezier(0.25, 1, 0.5, 1),
      box-shadow 0.24s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .ea-cursor-ring.is-hovering {
    border-color: var(--cursor-accent, rgba(232, 184, 75, 0.85));
    background-color: var(--cursor-glow-hover, rgba(232, 184, 75, 0.08));
    box-shadow: 0 0 14px var(--cursor-accent, rgba(232, 184, 75, 0.2));
  }

  .ea-cursor-ring.is-snapped {
    border-color: var(--cursor-accent, var(--gold-bright));
    background-color: var(--cursor-glow-hover, rgba(232, 184, 75, 0.12));
    box-shadow: 0 0 20px var(--cursor-accent, rgba(232, 184, 75, 0.35));
  }

  /* ─── Cursor Ember Particles (Sparks) ─── */
  .ea-cursor-spark {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--cursor-accent, var(--gold-bright));
    box-shadow: 0 0 6px var(--cursor-accent, var(--gold-bright));
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: screen;
    animation: eaCursorSparkFade 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  }
}

@keyframes eaCursorSparkFade {
  0% {
    transform: translate3d(var(--x), var(--y), 0) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: translate3d(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy)), 0) scale(0.1);
    opacity: 0;
  }
}

/* ─── Body Game Theme Variables for Custom Cursor ─── */
body {
  --cursor-accent: var(--gold-bright);
  --cursor-glow: rgba(232, 184, 75, 0.03);
  --cursor-glow-hover: rgba(232, 184, 75, 0.08);
}

body[data-game-id="truth-dare"] {
  --cursor-accent: #EF4444;
  --cursor-glow: rgba(239, 68, 68, 0.05);
  --cursor-glow-hover: rgba(239, 68, 68, 0.12);
}

body[data-game-id="never-have-i-ever"] {
  --cursor-accent: #06B6D4;
  --cursor-glow: rgba(6, 182, 212, 0.05);
  --cursor-glow-hover: rgba(6, 182, 212, 0.12);
}

body[data-game-id="most-likely-to"] {
  --cursor-accent: #A855F7;
  --cursor-glow: rgba(168, 85, 247, 0.05);
  --cursor-glow-hover: rgba(168, 85, 247, 0.12);
}

body[data-game-id="kings-cup"] {
  --cursor-accent: #F59E0B;
  --cursor-glow: rgba(245, 158, 11, 0.05);
  --cursor-glow-hover: rgba(245, 158, 11, 0.12);
}

body[data-game-id="gilded-tongue"] {
  --cursor-accent: #EC4899;
  --cursor-glow: rgba(236, 72, 153, 0.05);
  --cursor-glow-hover: rgba(236, 72, 153, 0.12);
}

body[data-game-id="hot-seat"],
body[data-game-id="hot-take"] {
  --cursor-accent: #F97316;
  --cursor-glow: rgba(249, 115, 22, 0.05);
  --cursor-glow-hover: rgba(249, 115, 22, 0.12);
}

body[data-game-id="trivia"] {
  --cursor-accent: #10B981;
  --cursor-glow: rgba(16, 185, 129, 0.05);
  --cursor-glow-hover: rgba(16, 185, 129, 0.12);
}

body[data-game-id="countdown-timer"],
body[data-game-id="dice-roller"],
body[data-game-id="score-tracker"],
body[data-game-id="spin-wheel"] {
  --cursor-accent: #94A3B8;
  --cursor-glow: rgba(148, 163, 184, 0.04);
  --cursor-glow-hover: rgba(148, 163, 184, 0.1);
}

/* ─── Local Game HUD Avatars ─── */
.game-hud-avatar {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid currentColor;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-right: 8px;
  background: radial-gradient(circle at center, var(--surface-high) 0%, var(--surface) 100%);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.game-hud-avatar svg {
  display: block;
}

.game-hud-avatar:not(.has-token) {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--ink);
  background: currentColor;
}

.game-hud-name {
  vertical-align: middle;
}

/* ─── Casino & Poker Chip Utility Styles ─── */
.btn-poker-chip {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 4px dashed rgba(255, 255, 255, 0.4);
  background: radial-gradient(circle at center, var(--ca, var(--gold)) 0%, color-mix(in srgb, var(--ca, var(--gold)) 70%, #000) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 6px 14px rgba(0,0,0,0.4), inset 0 2px 4px rgba(255,255,255,0.4);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  user-select: none;
}
.btn-poker-chip:hover {
  transform: scale(1.06) rotate(15deg);
  box-shadow: 0 8px 18px rgba(0,0,0,0.5), inset 0 2px 4px rgba(255,255,255,0.4);
}
.btn-poker-chip:active {
  transform: scale(0.96);
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.gilded-playing-card {
  width: min(150px, 32vw);
  aspect-ratio: 2.5 / 3.5;
  background: #fdfbf7;
  border: 1px solid rgba(183, 147, 95, 0.35);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22), inset 0 0 10px rgba(183, 147, 95, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
  cursor: pointer;
}
.gilded-playing-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 36px rgba(0,0,0,0.32), inset 0 0 10px rgba(183, 147, 95, 0.12);
  border-color: var(--gold);
}
.gilded-playing-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a1000;
  line-height: 1.25;
  margin: 0;
}
.gilded-playing-card-desc {
  font-size: 0.65rem;
  color: #5a5448;
  line-height: 1.35;
  margin: 6px 0 0;
}
.gilded-playing-card-suit {
  font-size: 1.5rem;
  align-self: flex-end;
  color: var(--gold);
  line-height: 1;
}

/* Casino Felt Roster items */
.theme-casino .hf-player {
  background: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
  border: 2px dashed rgba(212, 175, 55, 0.2);
  border-radius: 999px; /* circular pill */
  box-shadow: 0 4px 10px rgba(0,0,0,0.2), inset 0 1px 3px rgba(255,255,255,0.1);
  padding: 6px 14px;
}
.theme-casino .hf-player.is-ready {
  border-color: var(--gold);
  background: rgba(232, 184, 75, 0.12);
}
.theme-casino .hf-player-avatar {
  border: 2px dashed currentColor;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}

/* ─── Premium Custom Toggle Switch Styles ─── */
.ea-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.ea-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ea-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: .3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 24px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ea-toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #a0a0ab;
  transition: .3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.ea-toggle-switch input:checked + .ea-toggle-slider {
  background-color: rgba(167, 139, 250, 0.25);
  border-color: #a78bfa;
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ea-toggle-switch input:checked + .ea-toggle-slider:before {
  transform: translateX(20px);
  background-color: #a78bfa;
  box-shadow: 0 0 10px #a78bfa;
}

/* Disabled Toggle Switch State */
.ea-toggle-switch input:disabled + .ea-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.pf-lobby-player-avatar-wrapper {
  position: relative;
  display: inline-block;
}

/* ─── VIP Landing Page Header & Hero ─── */

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(9, 8, 11, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 24px;
  height: 24px;
  background-image: url('/images/logo-mark-transparent.png');
  background-size: contain;
  background-repeat: no-repeat;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: #ece6dc;
  margin: 0;
}

.preview-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 1px 6px;
  line-height: 1;
  opacity: 0.7;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}


.vip-hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 48px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 40px;
  margin-top: 24px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transform: scale(1.02);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(9, 8, 11, 0.7) 0%, rgba(9, 8, 11, 0.98) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-style: italic;
  font-weight: 300;
  color: #ece6dc;
  margin: 0;
  line-height: 1.15;
  text-shadow: 0 4px 15px rgba(0,0,0,0.7);
}

.hero-subtitle {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(236, 230, 220, 0.85);
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.join-cluster {
  width: 100%;
  max-width: 320px;
  margin-top: 10px;
}

.neon-input {
  width: 100%;
  padding: 16px 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-align: center;
  background: rgba(22, 22, 29, 0.65);
  border: 1px solid rgba(0, 245, 255, 0.35);
  border-radius: 12px;
  color: #00f5ff;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.15), inset 0 0 10px rgba(0, 245, 255, 0.05);
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.neon-input::placeholder {
  color: rgba(0, 245, 255, 0.25);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

.neon-input:focus {
  border-color: #00f5ff;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.45), inset 0 0 15px rgba(0, 245, 255, 0.1);
  background: rgba(22, 22, 29, 0.85);
}

.game-shelves {
  margin-top: 56px;
}

.shelf-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: #ece6dc;
  margin: 32px 0 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

/* ─── Recovered Product Shell + Clear Home Flow ─── */
.topbar-inner {
  position: relative;
  min-height: 72px;
}

.brand-credential {
  height: auto;
}

.brand-wordmark {
  letter-spacing: 0;
}

.preview-badge {
  align-self: center;
}

.nav-link-button {
  color: var(--gold);
}

.nav-link {
  white-space: nowrap;
}

.home-hero {
  position: relative;
  min-height: 560px;
  margin: 24px 0 28px;
  padding: 64px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #0d0d10;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.55);
}

.home-hero-media,
.home-hero-media picture,
.home-hero-media img,
.home-hero-shade {
  position: absolute;
  inset: 0;
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.03) brightness(0.82);
}

.home-hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 8, 11, 0.5) 0%, rgba(9, 8, 11, 0.18) 42%, transparent 72%),
    linear-gradient(0deg, rgba(9, 8, 11, 0.8) 0%, transparent 46%);
}

.home-hero-content {
  position: relative;
  z-index: 2;
  width: min(660px, 100%);
}

.home-hero-content h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 4.4rem;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--cream);
}

.home-hero-content p {
  margin: 18px 0 0;
  max-width: 56ch;
  color: rgba(244, 239, 230, 0.86);
  font-size: 1.02rem;
  line-height: 1.68;
}

.home-primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
  max-width: 620px;
}

.home-action {
  min-height: 88px;
  padding: 18px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 17, 24, 0.74);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-ui);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  transition: transform 180ms var(--ease-out-soft), border-color 180ms var(--ease-out-soft), background 180ms var(--ease-out-soft);
}

.home-action:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 184, 75, 0.44);
  background: rgba(27, 27, 34, 0.88);
}

.home-action--primary {
  background: linear-gradient(180deg, #f8dfa0, #e8b84b);
  border-color: #c49a30;
  color: #1a1000;
}

.home-action span {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
}

.home-action small {
  color: inherit;
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0.72;
}

.home-join-card {
  margin-top: 14px;
  padding: 14px;
  max-width: 620px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(9, 8, 11, 0.68);
  display: grid;
  gap: 10px;
}

.home-join-card label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.home-join-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-code-input {
  width: 148px;
  height: 48px;
  border-radius: 7px;
  border: 1px solid rgba(232, 184, 75, 0.35);
  background: rgba(0, 0, 0, 0.28);
  color: var(--gold-bright);
  font-family: var(--font-ui);
  font-size: 1.22rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.home-code-input::placeholder {
  color: rgba(232, 184, 75, 0.32);
}

.home-code-hint {
  color: var(--dim);
  font-size: 0.78rem;
}

.home-join-submit {
  min-width: 120px;
  height: 48px;
  padding: 0 18px;
  border: 1px solid #c49a30;
  border-radius: 7px;
  color: #1a1000;
  background: linear-gradient(180deg, #f8dfa0, #e8b84b);
  font: 800 .76rem/1 var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.home-join-submit:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.home-join-submit:disabled { opacity: .38; cursor: not-allowed; }

.home-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.home-proof-row span {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(244, 239, 230, 0.72);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.74rem;
  font-weight: 700;
}

.home-mode-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 48px;
}

.mode-guide-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(17, 17, 24, 0.78);
}

.mode-guide-kicker {
  display: block;
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

.mode-guide-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
}

.mode-guide-card p {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.62;
}

.mode-guide-link.nav-link {
  display: inline-flex;
  padding: 0;
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.mode-guide-link.nav-link::after {
  display: none;
}

.catalog-section {
  margin-top: 60px;
}

#route-home + #route-play .catalog-section,
#route-play.is-active + #route-pass-play .catalog-section {
  padding-top: 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.catalog-heading {
  margin-bottom: 24px;
}

.catalog-heading h1 {
  margin: 0 0 8px;
  max-width: 760px;
  font-family: var(--font-display);
  font-size: 2.45rem;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.catalog-heading .lead,
.catalog-results {
  max-width: 620px;
}

.base-card {
  border-radius: 8px;
  background: rgba(18, 18, 24, 0.88);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
  gap: 12px;
}

.base-card:hover {
  transform: translateY(-4px);
}

.base-card::after {
  display: none;
}

.base-card-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.base-card-desc {
  color: rgba(244, 239, 230, 0.78);
  font-size: 0.86rem;
}

.base-card .btn {
  letter-spacing: 0.06em;
}

.base-card .action-row {
  justify-content: flex-start;
}

.base-card .action-row .btn {
  min-width: 136px;
}

.ea-cursor,
.ea-cursor-ring,
.ea-cursor-spark {
  display: none !important;
}

.ea-consent-banner {
  left: auto;
  right: 18px;
  bottom: 18px;
  width: min(430px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(232, 184, 75, 0.22);
  border-radius: 8px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 14px;
  background: rgba(17, 17, 24, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
}

.ea-consent-text {
  margin: 0;
  max-width: none;
  font-size: 0.78rem;
}

.ea-consent-actions {
  flex: 0 0 auto;
}

.ea-consent-accept,
.ea-consent-decline {
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 150ms, border-color 150ms, background 150ms, box-shadow 150ms;
}

.ea-consent-decline {
  color: rgba(244, 239, 230, 0.72);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ea-consent-decline:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

@media (max-width: 1100px) {
  .topbar-inner {
    height: 68px;
    min-height: 68px;
    align-items: center;
    flex-direction: row;
    gap: 14px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .site-nav {
    position: absolute;
    z-index: 20;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    transform: none;
    width: auto;
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 0;
    padding: 12px;
    overflow: visible;
    border: 1px solid rgba(232, 184, 75, .25);
    border-radius: 0 0 12px 12px;
    background: rgba(12, 12, 15, .985);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .62);
  }

  .site-nav.is-open { display: grid; }

  .site-nav .nav-link {
    min-height: 42px;
    display: grid;
    place-items: center;
    padding: 8px 10px;
    border-radius: 7px;
    text-align: center;
  }

  .site-nav .nav-link:hover,
  .site-nav .nav-link.is-active {
    background: rgba(232, 184, 75, .075);
  }

  .nav-search-wrap--mobile {
    grid-column: 1 / -1;
    display: flex;
    margin-top: 7px;
  }

  .site-nav .nav-search-wrap--mobile { display: flex; }

  .nav-search-wrap--mobile .nav-search {
    width: 100%;
    height: 42px;
  }

  .nav-search-wrap--mobile .nav-search:focus { width: 100%; }

  .top-actions {
    position: static;
    display: flex;
    margin-left: auto;
  }

  .top-actions > .nav-search-wrap { display: none; }
  .nav-menu-toggle { display: grid; }

  .topbar.is-scrolled .topbar-inner { height: 60px; min-height: 60px; }
  .nav-menu-open { overflow: hidden; }
  .nav-menu-toggle:focus-visible,
  .site-nav .nav-link:focus-visible,
  .home-join-submit:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 3px;
  }
}

@media (max-width: 820px) {
  .home-hero {
    min-height: auto;
    padding: 42px 24px;
  }

  .home-hero-content h1 {
    font-size: 3.2rem;
  }

  .home-primary-actions,
  .home-mode-guide {
    grid-template-columns: 1fr;
  }

  .game-subgrid,
  .play-utilities-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .app-shell {
    padding: 0 14px 64px;
  }

  .site-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
  }

  .site-nav.is-open { display: grid; }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex: initial;
    text-align: center;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    padding: 6px 0;
  }

  .top-actions {
    display: flex;
  }

  .home-hero {
    margin-top: 14px;
    padding: 32px 18px;
  }

  .home-hero-content h1 {
    font-size: 2.55rem;
  }

  .home-join-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-code-input {
    width: 100%;
  }

  .home-join-submit { width: 100%; }

  .catalog-heading h1 {
    font-size: 2rem;
  }

  .ea-consent-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
  }

  .ea-consent-actions {
    justify-content: flex-end;
  }

  .ea-consent-text {
    font-size: 0.74rem;
    line-height: 1.35;
  }

  .ea-consent-accept,
  .ea-consent-decline {
    min-height: 34px;
    padding: 8px 12px;
  }
}

/* Lounge Shell 2.0: phone controllers are true full-screen experiences. */
@media (max-width: 640px) {
  .modal-shell:has(.pf-root) {
    padding: 0;
    align-items: stretch;
    background: var(--ink);
  }
  .modal-shell .modal.is-game:has(.pf-root) {
    align-self: stretch;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    animation: none;
  }
  .modal.is-game:has(.pf-root)::after { display: none; }
}

/* The native mobile keyboard already provides dismissal controls. */
#kbd-accessory { display:none !important; }

/* ── src/styles/motion.css ── */
/* ==========================================================================
   Motion, transitions, and celebratory effects
   ========================================================================== */

/* ═══════════════════════════════════════════════════════════════
   Ember & Ace — Shared Animation Keyframes & Utility Classes
   Import once in main.js. Games apply via class names.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Confetti burst (CSS particles) ───────────────── */
@keyframes ea-confetti-pop {
  0%   { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--cx, 30px), var(--cy, -60px)) scale(0); opacity: 0; }
}

.ea-confetti-container {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 10;
}

.ea-confetti-particle {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  animation: ea-confetti-pop 0.8s ease-out forwards;
}

/* ─── 3D Magnetic Interactions ─────────────────────── */
.ea-magnetic-element {
  will-change: transform;
  transform-style: preserve-3d;
  transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ea-shine-overlay {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}
.ea-magnetic-element:hover .ea-shine-overlay {
  opacity: 1;
}

/* ─── King's Cup 4th King Blast ────────────────────── */
@keyframes ea-kc-blast {
  0% { transform: scale(1); opacity: 0; box-shadow: 0 0 0 rgba(231, 76, 60, 0); }
  10% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 100px rgba(231, 76, 60, 0.8), inset 0 0 60px rgba(231, 76, 60, 0.6); }
  90% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 80px rgba(231, 76, 60, 0.5), inset 0 0 30px rgba(231, 76, 60, 0.4); }
  100% { transform: scale(1); opacity: 0; box-shadow: 0 0 0 rgba(231, 76, 60, 0); }
}

.ea-kc-king-vignette {
  position: fixed; inset: 0; pointer-events: none; z-index: 50; 
  animation: ea-kc-blast 2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}


/* ─── Slide in from left (staggered list items) ────── */
@keyframes ea-slide-in-left {
  0%   { opacity: 0; transform: translateX(-24px); }
  100% { opacity: 1; transform: translateX(0); }
}

.ea-slide-in {
  opacity: 0;
  animation: ea-slide-in-left 0.35s ease-out forwards;
}

/* ─── Slide in from right ──────────────────────────── */
@keyframes ea-slide-in-right {
  0%   { opacity: 0; transform: translateX(24px); }
  100% { opacity: 1; transform: translateX(0); }
}

.ea-slide-in-right {
  opacity: 0;
  animation: ea-slide-in-right 0.35s ease-out forwards;
}

/* ─── Slide up (modals, overlays) ──────────────────── */
@keyframes ea-slide-up {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.ea-slide-up {
  opacity: 0;
  animation: ea-slide-up 0.3s ease-out forwards;
}

/* ─── Scale bounce (badges, vote counts) ───────────── */
@keyframes ea-scale-bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.ea-bounce {
  animation: ea-scale-bounce 0.35s ease-out;
}

/* ─── Pulse glow (background emphasis) ─────────────── */
@keyframes ea-pulse-glow {
  0%   { opacity: 0.03; }
  50%  { opacity: 0.12; }
  100% { opacity: 0.03; }
}

.ea-pulse-glow {
  animation: ea-pulse-glow 1.5s ease-in-out;
}

/* ─── Haptic Fallback Pulse ────────────────────────── */
@keyframes ea-pulse-turn {
  0%   { box-shadow: inset 0 0 0 rgba(232,184,75,0); }
  30%  { box-shadow: inset 0 0 100px rgba(232,184,75,0.7), 0 0 30px rgba(232,184,75,0.4); }
  100% { box-shadow: inset 0 0 0 rgba(232,184,75,0); }
}

.pulse-turn {
  animation: ea-pulse-turn 0.4s ease-out;
}

/* ─── Fade in ──────────────────────────────────────── */
@keyframes ea-fade-in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

.ea-fade-in {
  opacity: 0;
  animation: ea-fade-in 0.3s ease-out forwards;
}

/* ─── Winner crown float ───────────────────────────── */
@keyframes ea-crown-float {
  0%   { transform: translateY(0) rotate(0deg); }
  25%  { transform: translateY(-4px) rotate(-3deg); }
  75%  { transform: translateY(-4px) rotate(3deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.ea-crown-float {
  animation: ea-crown-float 2s ease-in-out infinite;
  display: inline-block;
}

/* ─── Shake (wrong answer, timer warning) ──────────── */
@keyframes ea-shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-4px); }
  40%      { transform: translateX(4px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(3px); }
}

.ea-shake {
  animation: ea-shake 0.4s ease-in-out;
}

/* ─── Timer urgency pulse ──────────────────────────── */
@keyframes ea-timer-pulse {
  0%, 100% { transform: scale(1); color: inherit; }
  50%      { transform: scale(1.08); color: #E74C3C; }
}

.ea-timer-urgent {
  animation: ea-timer-pulse 0.6s ease-in-out infinite;
}

/* ─── Stagger delay utilities ──────────────────────── */
.ea-delay-1 { animation-delay: 0.05s; }
.ea-delay-2 { animation-delay: 0.10s; }
.ea-delay-3 { animation-delay: 0.15s; }
.ea-delay-4 { animation-delay: 0.20s; }
.ea-delay-5 { animation-delay: 0.25s; }
.ea-delay-6 { animation-delay: 0.30s; }
.ea-delay-7 { animation-delay: 0.35s; }
.ea-delay-8 { animation-delay: 0.40s; }
.ea-delay-9 { animation-delay: 0.45s; }
.ea-delay-10 { animation-delay: 0.50s; }
.ea-delay-11 { animation-delay: 0.55s; }
.ea-delay-12 { animation-delay: 0.60s; }

/* ─── Spin (loading, wheel) ────────────────────────── */
@keyframes ea-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.ea-spin {
  animation: ea-spin 1s linear infinite;
}

/* ─── Settings flip card ─────────────────────────────
   Uses a crossfade + scale approach instead of 3D rotateY
   because overflow:auto on ancestor elements (modal-body)
   breaks preserve-3d / backface-visibility in all browsers.
   ──────────────────────────────────────────────────────── */
.ea-flip-wrapper {
  width: 100%;
  position: relative;
}

.ea-flip-inner {
  position: relative;
  width: 100%;
}

.ea-flip-front,
.ea-flip-back {
  width: 100%;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

.ea-flip-front {
  position: relative;
  opacity: 1;
  transform: scale(1);
  visibility: visible;
}

.ea-flip-back {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: scale(0.96);
  visibility: hidden;
}

/* Flipped state: hide front, show back */
.ea-flip-inner.is-flipped .ea-flip-front {
  opacity: 0;
  transform: scale(0.96);
  visibility: hidden;
  pointer-events: none;
}

.ea-flip-inner.is-flipped .ea-flip-back {
  opacity: 1;
  transform: scale(1);
  visibility: visible;
}

.ea-settings-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(22,22,29,0.8);
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0;
  backdrop-filter: blur(4px);
  overflow: hidden;
}
.ea-settings-btn::before {
  content: '\2699';
  font-size: 1.1rem;
  line-height: 1;
}

.ea-settings-btn:hover {
  background: rgba(232,184,75,0.12);
  border-color: rgba(232,184,75,0.3);
  color: #e8b84b;
}
.ea-settings-btn:hover::before {
  color: #e8b84b;
}

.ea-settings-panel {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--font-ui);
  min-height: 200px;
}

.ea-settings-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: #e8b84b;
  margin: 0;
}

.ea-settings-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 320px;
}

.ea-settings-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9a9180;
  font-weight: 600;
}

.ea-settings-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ea-settings-done {
  margin-top: 8px;
  padding: 10px 32px;
  font-size: 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(232,184,75,0.3);
  background: rgba(232,184,75,0.1);
  color: #e8b84b;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-ui);
  transition: all 0.2s ease;
}

.ea-settings-done:hover {
  background: rgba(232,184,75,0.18);
  border-color: rgba(232,184,75,0.5);
}

/* ─── Route transition (fade + slide) ──────────────── */
.route-section {
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.route-section:not(.is-active) {
  opacity: 0;
  transform: translateY(8px);
}

.route-section.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   Site-Level Visual Polish — Entrances, Particles, Micro-interactions
   ═══════════════════════════════════════════════════════════════ */

/* ─── Floating Ember Particles (Hero Background) ──── */
@keyframes ember-float {
  0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-420px) translateX(40px) scale(0.3); opacity: 0; }
}

@keyframes ember-float-alt {
  0%   { transform: translateY(0) translateX(0) scale(0.8); opacity: 0; }
  15%  { opacity: 0.8; }
  85%  { opacity: 0.6; }
  100% { transform: translateY(-380px) translateX(-30px) scale(0.2); opacity: 0; }
}

@keyframes ember-drift {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  12%  { opacity: 0.6; }
  88%  { opacity: 0.4; }
  100% { transform: translateY(-350px) translateX(60px) rotate(120deg); opacity: 0; }
}

@keyframes ember-swirl {
  0%   { transform: translateY(0) translateX(0) scale(0.5) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.8; }
  50%  { transform: translateY(-220px) translateX(-35px) scale(1) rotate(180deg); }
  90%  { opacity: 0.8; }
  100% { transform: translateY(-450px) translateX(35px) scale(0.4) rotate(360deg); opacity: 0; }
}

@keyframes ember-wobble {
  0%   { transform: translateY(0) translateX(0) scale(0.9); opacity: 0; }
  8%   { opacity: 0.9; }
  33%  { transform: translateY(-130px) translateX(20px) scale(1.1); }
  66%  { transform: translateY(-260px) translateX(-20px) scale(0.8); }
  90%  { opacity: 0.7; }
  100% { transform: translateY(-400px) translateX(15px) scale(0.5); opacity: 0; }
}

.hero-embers {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-ember {
  position: absolute;
  bottom: -10px;
  border-radius: 50%;
  will-change: transform, opacity;
  filter: blur(0.5px);
}

.hero-ember:nth-child(1)  { left: 8%;  width: 4px; height: 4px; background: rgba(232,184,75,0.7);  animation: ember-float 9s ease-in infinite 0s; }
.hero-ember:nth-child(2)  { left: 15%; width: 3px; height: 3px; background: rgba(255,77,0,0.6);    animation: ember-float-alt 10s ease-in infinite 1s; }
.hero-ember:nth-child(3)  { left: 25%; width: 5px; height: 5px; background: rgba(232,184,75,0.5);  animation: ember-drift 12s ease-in infinite 0.5s; }
.hero-ember:nth-child(4)  { left: 35%; width: 3px; height: 3px; background: rgba(152,18,24,0.6);   animation: ember-float 13s ease-in infinite 2s; }
.hero-ember:nth-child(5)  { left: 48%; width: 4px; height: 4px; background: rgba(255,77,0,0.5);    animation: ember-float-alt 9.5s ease-in infinite 3s; }
.hero-ember:nth-child(6)  { left: 58%; width: 3px; height: 3px; background: rgba(232,184,75,0.6);  animation: ember-drift 11s ease-in infinite 1.5s; }
.hero-ember:nth-child(7)  { left: 68%; width: 5px; height: 5px; background: rgba(152,18,24,0.5);   animation: ember-float 12s ease-in infinite 4s; }
.hero-ember:nth-child(8)  { left: 78%; width: 3px; height: 3px; background: rgba(255,77,0,0.7);    animation: ember-float-alt 10s ease-in infinite 2.5s; }
.hero-ember:nth-child(9)  { left: 88%; width: 4px; height: 4px; background: rgba(232,184,75,0.5);  animation: ember-drift 9s ease-in infinite 0.8s; }
.hero-ember:nth-child(10) { left: 95%; width: 3px; height: 3px; background: rgba(152,18,24,0.6);   animation: ember-float 14s ease-in infinite 3.5s; }
.hero-ember:nth-child(11) { left: 42%; width: 2px; height: 2px; background: rgba(232,184,75,0.8);  animation: ember-float 8s ease-in infinite 1.2s; }
.hero-ember:nth-child(12) { left: 72%; width: 2px; height: 2px; background: rgba(255,77,0,0.8);    animation: ember-drift 8.5s ease-in infinite 4.5s; }
.hero-ember:nth-child(13) { left: 12%; width: 4px; height: 4px; background: rgba(232,184,75,0.6);  animation: ember-swirl 11s ease-in infinite 0.2s; }
.hero-ember:nth-child(14) { left: 20%; width: 3px; height: 3px; background: rgba(255,77,0,0.5);    animation: ember-wobble 10.5s ease-in infinite 1.8s; }
.hero-ember:nth-child(15) { left: 30%; width: 5px; height: 5px; background: rgba(196,154,48,0.7);  animation: ember-swirl 13s ease-in infinite 2.2s; }
.hero-ember:nth-child(16) { left: 52%; width: 2px; height: 2px; background: rgba(152,18,24,0.7);   animation: ember-wobble 9s ease-in infinite 0.6s; }
.hero-ember:nth-child(17) { left: 62%; width: 4px; height: 4px; background: rgba(232,184,75,0.5);  animation: ember-swirl 10s ease-in infinite 3.1s; }
.hero-ember:nth-child(18) { left: 82%; width: 3px; height: 3px; background: rgba(255,77,0,0.6);    animation: ember-wobble 12s ease-in infinite 1.4s; }
.hero-ember:nth-child(19) { left: 90%; width: 5px; height: 5px; background: rgba(196,154,48,0.6);  animation: ember-swirl 11.5s ease-in infinite 2.8s; }
.hero-ember:nth-child(20) { left: 5%;  width: 2px; height: 2px; background: rgba(232,184,75,0.7);  animation: ember-float 7.5s ease-in infinite 4.2s; }
.hero-ember:nth-child(21) { left: 45%; width: 3px; height: 3px; background: rgba(255,77,0,0.5);    animation: ember-drift 10s ease-in infinite 3.8s; }
.hero-ember:nth-child(22) { left: 65%; width: 4px; height: 4px; background: rgba(152,18,24,0.6);   animation: ember-swirl 12.5s ease-in infinite 1.1s; }
.hero-ember:nth-child(23) { left: 75%; width: 2px; height: 2px; background: rgba(196,154,48,0.8);  animation: ember-wobble 8s ease-in infinite 2.7s; }
.hero-ember:nth-child(24) { left: 85%; width: 3px; height: 3px; background: rgba(232,184,75,0.6);  animation: ember-float-alt 9s ease-in infinite 0.4s; }

/* ─── Staggered Card Grid Entrance ────────────────── */
@keyframes card-enter {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes section-enter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.grid .card, .game-subgrid .card {
  animation: card-enter 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.grid .card:nth-child(1),  .game-subgrid .card:nth-child(1)  { animation-delay: 0s; }
.grid .card:nth-child(2),  .game-subgrid .card:nth-child(2)  { animation-delay: 0.06s; }
.grid .card:nth-child(3),  .game-subgrid .card:nth-child(3)  { animation-delay: 0.12s; }
.grid .card:nth-child(4),  .game-subgrid .card:nth-child(4)  { animation-delay: 0.18s; }
.grid .card:nth-child(5),  .game-subgrid .card:nth-child(5)  { animation-delay: 0.24s; }
.grid .card:nth-child(6),  .game-subgrid .card:nth-child(6)  { animation-delay: 0.3s; }
.grid .card:nth-child(7),  .game-subgrid .card:nth-child(7)  { animation-delay: 0.36s; }
.grid .card:nth-child(8),  .game-subgrid .card:nth-child(8)  { animation-delay: 0.42s; }
.grid .card:nth-child(9),  .game-subgrid .card:nth-child(9)  { animation-delay: 0.48s; }

.game-section {
  animation: section-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.game-section:nth-child(1) { animation-delay: 0s; }
.game-section:nth-child(2) { animation-delay: 0.1s; }
.game-section:nth-child(3) { animation-delay: 0.2s; }

/* ─── CTA Button Shimmer ─────────────────────────── */
@keyframes btn-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.hero .btn-primary {
  background: linear-gradient(
    110deg,
    var(--gold-deep) 0%,
    var(--gold-bright) 35%,
    rgba(255,255,255,0.3) 50%,
    var(--gold-bright) 65%,
    var(--gold-deep) 100%
  );
  background-size: 200% 100%;
  animation: btn-shimmer 3.5s ease-in-out infinite;
}

/* ─── Stat Number Pop ─────────────────────────────── */
@keyframes stat-pop {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.stats-strip .stat-num {
  animation: stat-pop 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.stats-strip .stat-item:nth-child(1) .stat-num { animation-delay: 0.3s; }
.stats-strip .stat-item:nth-child(2) .stat-num { animation-delay: 0.45s; }
.stats-strip .stat-item:nth-child(3) .stat-num { animation-delay: 0.6s; }
.stats-strip .stat-item:nth-child(4) .stat-num { animation-delay: 0.75s; }

/* ─── Chip Stagger ────────────────────────────────── */
@keyframes chip-enter {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.chips .chip {
  animation: chip-enter 0.3s ease both;
}
.chips .chip:nth-child(1) { animation-delay: 0.5s; }
.chips .chip:nth-child(2) { animation-delay: 0.6s; }
.chips .chip:nth-child(3) { animation-delay: 0.7s; }
.chips .chip:nth-child(4) { animation-delay: 0.8s; }

/* ─── Hero Kicker Line Draw ──────────────────────── */
@keyframes kicker-line {
  from { width: 0; }
  to   { width: 28px; }
}

.kicker::before {
  animation: kicker-line 0.6s ease 0.2s both;
}

/* ─── Step Card Stagger ──────────────────────────── */
.how .step-card {
  animation: card-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.how .step-card:nth-child(1) { animation-delay: 0.1s; }
.how .step-card:nth-child(2) { animation-delay: 0.2s; }
.how .step-card:nth-child(3) { animation-delay: 0.3s; }

/* ─── Play Smart Card Hover ──────────────────────── */
.smart-card {
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), border-color 260ms ease, box-shadow 260ms ease;
}
.smart-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ─── Highlight Card Entrance ────────────────────── */
.highlights-grid .highlight-item {
  animation: card-enter 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.highlights-grid .highlight-item:nth-child(1) { animation-delay: 0.05s; }
.highlights-grid .highlight-item:nth-child(2) { animation-delay: 0.12s; }
.highlights-grid .highlight-item:nth-child(3) { animation-delay: 0.19s; }
.highlights-grid .highlight-item:nth-child(4) { animation-delay: 0.26s; }
.highlights-grid .highlight-item:nth-child(5) { animation-delay: 0.33s; }

/* ─── Generator Card Entrance ────────────────────── */
.generators-strip .gen-card {
  animation: card-enter 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.generators-strip .gen-card:nth-child(1) { animation-delay: 0.05s; }
.generators-strip .gen-card:nth-child(2) { animation-delay: 0.1s; }
.generators-strip .gen-card:nth-child(3) { animation-delay: 0.15s; }
.generators-strip .gen-card:nth-child(4) { animation-delay: 0.2s; }
.generators-strip .gen-card:nth-child(5) { animation-delay: 0.25s; }

/* ─── Modal Rise ─────────────────────────────────── */
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-shell.open .modal {
  animation: modal-rise 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Glow Pulse for Featured Card ───────────────── */
@keyframes featured-glow {
  0%, 100% { box-shadow: 0 20px 50px rgba(0,0,0,0.45), 0 0 40px color-mix(in srgb, var(--card-accent) 8%, transparent); }
  50%      { box-shadow: 0 20px 50px rgba(0,0,0,0.45), 0 0 60px color-mix(in srgb, var(--card-accent) 16%, transparent); }
}

.card.is-featured {
  animation: featured-glow 4s ease-in-out infinite, card-enter 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ─── Hero Text Entrance ─────────────────────────── */
@keyframes hero-text-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-main .kicker     { animation: hero-text-up 0.5s ease 0.1s both; }
.hero-main h2          { animation: hero-text-up 0.6s ease 0.2s both; }
.hero-main > p         { animation: hero-text-up 0.5s ease 0.35s both; }
.hero-main .cta-row    { animation: hero-text-up 0.5s ease 0.45s both; }
.hero-main .hero-join-widget { animation: hero-text-up 0.5s ease 0.55s both; }

/* ─── Hero Image Fade-In ─────────────────────────── */
@keyframes hero-image-in {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}

.hero-side {
  animation: hero-image-in 0.8s ease 0.3s both;
}

/* ─── Coming Soon Teaser Pulse ───────────────────── */
@keyframes teaser-border-pulse {
  0%, 100% { border-color: rgba(0,245,255,0.15); }
  50%      { border-color: rgba(0,245,255,0.35); }
}

.coming-soon-teaser {
  animation: teaser-border-pulse 3s ease-in-out infinite;
}

/* ─── Coming Soon Teaser ─────────────────────────── */
.coming-soon-teaser {
  margin-top: 28px;
  padding: 32px 28px;
  border: 1px solid rgba(0,245,255,0.15);
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(0,245,255,0.03) 0%, rgba(22,22,29,0.9) 100%);
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.coming-soon-teaser::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0,245,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.teaser-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0,245,255,0.08);
  border: 1px solid rgba(0,245,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.teaser-content {
  flex: 1;
}

.teaser-badge {
  display: inline-block;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: #00F5FF;
  background: rgba(0,245,255,0.1);
  border: 1px solid rgba(0,245,255,0.2);
  border-radius: 3px;
  padding: 3px 8px;
  margin-bottom: 8px;
}

.teaser-content h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 0 0 6px;
  color: var(--text);
}

.teaser-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
  max-width: 48ch;
}

@media (max-width: 640px) {
  .coming-soon-teaser {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  .teaser-content p { max-width: none; }
}



/* ─── Skeleton Loader (Game Loading State) ────────── */
@keyframes ea-skeleton-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.ea-skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px;
  gap: 16px;
  animation: ea-fade-in 0.3s ease-out;
}

.ea-skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(
    110deg,
    rgba(232, 184, 75, 0.04) 0%,
    rgba(232, 184, 75, 0.12) 40%,
    rgba(232, 184, 75, 0.04) 60%,
    rgba(232, 184, 75, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: ea-skeleton-shimmer 1.8s ease-in-out infinite;
}

.ea-skeleton-line--title {
  width: 60%;
  height: 20px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.ea-skeleton-line--body {
  width: 80%;
}

.ea-skeleton-line--short {
  width: 40%;
}

.ea-skeleton-line--btn {
  width: 50%;
  height: 44px;
  border-radius: 12px;
  margin-top: 12px;
  border: 1px solid rgba(232, 184, 75, 0.08);
}

/* ─── Screen Shake (Dramatic Moments) ────────────── */
@keyframes ea-screen-shake {
  0%, 100% { transform: translateX(0) translateY(0); }
  10%      { transform: translateX(-3px) translateY(-1px); }
  20%      { transform: translateX(3px) translateY(1px); }
  30%      { transform: translateX(-2px) translateY(-2px); }
  40%      { transform: translateX(2px) translateY(1px); }
  50%      { transform: translateX(-1px) translateY(-1px); }
  60%      { transform: translateX(1px) translateY(0); }
}

.ea-screen-shake {
  animation: ea-screen-shake 0.5s ease-out;
}

/* ─── Dramatic Pause / Drumroll Dots ─────────────── */
@keyframes ea-drumroll-dot {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

.ea-drumroll {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 0;
}

.ea-drumroll-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  animation: ea-drumroll-dot 1.4s ease-in-out infinite;
}

.ea-drumroll-dot:nth-child(2) { animation-delay: 0.2s; }
.ea-drumroll-dot:nth-child(3) { animation-delay: 0.4s; }

/* ─── Winner Crown Entrance ──────────────────────── */
@keyframes ea-crown-entrance {
  0%   { opacity: 0; transform: translateY(-30px) scale(0.5) rotate(-15deg); }
  50%  { opacity: 1; transform: translateY(5px) scale(1.15) rotate(5deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
}

.ea-crown-entrance {
  animation: ea-crown-entrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Streak Fire Badge ──────────────────────────── */
@keyframes ea-fire-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 77, 0, 0.4)); transform: scale(1); }
  50%      { filter: drop-shadow(0 0 12px rgba(255, 77, 0, 0.8)); transform: scale(1.1); }
}

.ea-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #FF4D00;
  animation: ea-fire-pulse 1.5s ease-in-out infinite;
}

/* ─── Escalation Glow (Late-Game Visual Shift) ───── */
@keyframes ea-escalation-glow {
  0%, 100% { box-shadow: inset 0 0 0 rgba(152, 18, 24, 0); }
  50%      { box-shadow: inset 0 0 80px rgba(152, 18, 24, 0.06); }
}

.ea-escalation-active {
  animation: ea-escalation-glow 3s ease-in-out infinite;
  border-color: rgba(152, 18, 24, 0.25) !important;
}

/* ─── Confetti Burst Trigger ─────────────────────── */
.ea-confetti-trigger {
  position: relative;
}

/* ─── Reduced Motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── src/styles/frames.css ── */
/* ==========================================================================
   Shared-screen moderator frame
   ========================================================================== */

/* Ember & Ace — Lounge Shell 2.0 shared host display */
.hf-root {
  --shell-accent: var(--gold);
  position: fixed;
  inset: 0;
  z-index: var(--z-game-shell, 200);
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr) auto;
  color: var(--text);
  font-family: var(--font-ui);
  background:
    radial-gradient(ellipse 52% 42% at 50% 42%, color-mix(in srgb, var(--shell-accent) 5%, transparent), transparent 72%),
    linear-gradient(180deg, #0b0c0e 0%, #101114 48%, #090a0c 100%);
  overflow: hidden;
}
.hf-root.theme-mlt { --shell-accent: #e45d3a; }
.hf-root.theme-truth-dare { --shell-accent: #9b4bd4; }
.hf-root.theme-hot-seat { --shell-accent: #e45d3a; }
.hf-root.theme-never-have-i-ever { --shell-accent: #20b2aa; }
.hf-root.theme-rapid-fire { --shell-accent: #e45d3a; }
.hf-root::before {
  content: "";
  position: absolute;
  inset: 72px 0 0;
  pointer-events: none;
  opacity: .32;
  background-image:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--shell-accent) 28%, transparent) 0 1px, transparent 1.7px),
    radial-gradient(circle at 78% 62%, rgba(232,184,75,.3) 0 1px, transparent 1.8px);
  background-size: 57px 61px, 83px 79px;
  mask-image: radial-gradient(ellipse 65% 70% at center, #000 0%, transparent 80%);
}

.hf-header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(170px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-width: 0;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(8,9,11,.88);
  backdrop-filter: blur(18px);
}
.hf-brand-lockup { display:flex; align-items:center; gap:10px; min-width:0; }
.hf-brand-mark { width:29px; height:29px; object-fit:contain; }
.hf-brand-name { font-family:var(--font-display); color:#f2eadf; font-size:1rem; letter-spacing:.06em; white-space:nowrap; }
.hf-title-group { display:flex; align-items:baseline; gap:18px; min-width:0; padding-left:20px; border-left:1px solid rgba(255,255,255,.09); }
.hf-header-title { margin:0; font-family:var(--font-display); font-size:1.36rem; line-height:1; font-weight:600; color:#f3ede4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hf-header-subtitle { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#b7afa3; font-size:.82rem; }
.hf-header-actions { display:flex; align-items:center; gap:10px; }
.hf-fullscreen-toggle { min-height:38px; display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:0 11px; border:1px solid rgba(255,255,255,.1); border-radius:9px; color:#c9c1b6; background:rgba(255,255,255,.025); font:inherit; font-size:.7rem; font-weight:800; white-space:nowrap; cursor:pointer; transition:border-color .15s,color .15s,background .15s,transform .15s; }
.hf-fullscreen-toggle:hover:not(:disabled) { transform:translateY(-1px); border-color:rgba(212,175,55,.4); color:#f1d98c; background:rgba(212,175,55,.07); }
.hf-fullscreen-toggle.is-active { border-color:rgba(212,175,55,.46); color:#181105; background:linear-gradient(180deg,#efd47f,#c99b36); }
.hf-fullscreen-toggle:disabled { cursor:wait; opacity:.58; }
.hf-fullscreen-toggle[hidden] { display:none; }
.hf-fullscreen-toggle .ea-ui-icon { flex:0 0 auto; }
.hf-header-chip { display:flex; align-items:center; gap:8px; min-height:38px; padding:5px 11px 5px 6px; border:1px solid rgba(255,255,255,.09); border-radius:9px; color:#d9d2c8; background:rgba(255,255,255,.025); }
.hf-header-chip-dot { width:27px; height:27px; display:grid; place-items:center; border-radius:50%; background:color-mix(in srgb, var(--shell-accent) 16%, #17181b); border:1px solid color-mix(in srgb, var(--shell-accent) 62%, transparent); color:var(--shell-accent); font-size:.72rem; font-weight:800; }
.hf-header-chip-text { font-size:.73rem; font-weight:700; }

.hf-timer { width:46px; height:46px; display:grid; place-items:center; align-content:center; border-radius:50%; border:2px solid color-mix(in srgb, var(--shell-accent) 78%, #705f37); background:#121316; box-shadow:0 0 0 4px rgba(0,0,0,.35), 0 0 20px color-mix(in srgb, var(--shell-accent) 16%, transparent); }
.hf-timer-value { color:#f5eee4; font-size:.92rem; font-weight:800; line-height:1; }
.hf-timer-label { display:none; }
.hf-room-menu { position:relative; }
.hf-room-summary { list-style:none; min-height:38px; display:flex; align-items:center; gap:8px; padding:0 11px; border:1px solid rgba(255,255,255,.1); border-radius:9px; color:#e8e0d5; background:rgba(255,255,255,.025); cursor:pointer; }
.hf-room-summary::-webkit-details-marker { display:none; }
.hf-room-summary-label { color:#938b80; font-size:.65rem; text-transform:uppercase; letter-spacing:.1em; }
.hf-room-code { color:#f4d47d; font-size:.8rem; font-weight:800; letter-spacing:.16em; }
.hf-room-popover { position:absolute; right:0; top:calc(100% + 10px); width:286px; max-height:min(680px,calc(100dvh - 118px)); overflow-y:auto; padding:18px; border:1px solid rgba(212,175,55,.28); border-radius:12px; background:#141519; box-shadow:0 22px 60px rgba(0,0,0,.62); scrollbar-width:thin; }
.hf-room-popover-label { margin:0 0 4px; color:#9f9689; font-size:.65rem; text-transform:uppercase; letter-spacing:.12em; }
.hf-room-popover strong { display:block; color:#f4d47d; font-size:1.8rem; letter-spacing:.18em; }
.hf-room-scan { display:grid; justify-items:center; gap:8px; margin:10px 0 12px; }
.hf-room-scan p { margin:0 !important; text-align:center; }
.hf-room-invite-qr,.hf-lounge-join-qr { display:grid; place-items:center; overflow:hidden; border:7px solid #fffdf7; border-radius:11px; color:#5f574a; background:#fffdf7; box-shadow:0 12px 26px rgba(0,0,0,.28); }
.hf-room-invite-qr { width:220px; height:220px; }
.hf-room-invite-qr img,.hf-lounge-join-qr img { display:block; width:100%; height:100%; }
.hf-invite-qr-loading { color:#5f574a; font-size:.57rem; font-weight:800; letter-spacing:.08em; text-align:center; text-transform:uppercase; }
.hf-room-invite-qr.is-error,.hf-lounge-join-qr.is-error { border-color:rgba(255,255,255,.08); color:#9e978e; background:rgba(0,0,0,.2); font-size:.62rem; }
.hf-room-credentials { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:8px; }
.hf-room-credentials > span { padding:10px; border:1px solid rgba(212,175,55,.18); border-radius:9px; background:rgba(255,255,255,.025); }
.hf-room-credentials small { display:block; margin-bottom:4px; color:#8f877c; font-size:.58rem; text-transform:uppercase; letter-spacing:.12em; }
.hf-room-credentials strong { font-size:1.25rem; letter-spacing:.12em; }
.hf-room-credentials .hf-room-pin { color:#9ce3df; }
.hf-room-popover p:not(.hf-room-popover-label) { margin:8px 0 14px; color:#aca397; font-size:.76rem; line-height:1.5; }
.hf-room-share-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
.hf-room-more { margin-top:9px; }
.hf-room-more > summary { min-height:40px; display:grid; place-items:center; list-style:none; border:1px solid rgba(255,255,255,.09); border-radius:8px; color:#aaa195; background:rgba(255,255,255,.02); font-size:.7rem; font-weight:800; cursor:pointer; }
.hf-room-more > summary::-webkit-details-marker { display:none; }
.hf-room-more[open] > summary { border-color:rgba(212,175,55,.25); color:#d8c28a; }
.hf-room-more .hf-room-share-actions { margin-top:7px; }
.hf-room-more .hf-join-self-btn { grid-column:1 / -1; }
.hf-room-share-btn,.hf-join-self-btn,.hf-end-session { width:100%; min-height:40px; display:flex; align-items:center; justify-content:center; border-radius:8px; font:inherit; font-size:.7rem; font-weight:800; cursor:pointer; }
.hf-room-share-btn { border:1px solid rgba(255,255,255,.1); color:#d7cec2; background:rgba(255,255,255,.035); }
.hf-room-share-btn:disabled { cursor:wait; opacity:.58; }
.hf-room-share-btn:hover { border-color:rgba(212,175,55,.35); color:#f4d47d; }
.hf-room-share-btn--primary { border-color:rgba(212,175,55,.45); color:#1a1000; background:linear-gradient(180deg,#f3d989,#d6aa38); }
.hf-join-self-btn { border:1px solid rgba(212,175,55,.35); color:#f4d47d; background:rgba(212,175,55,.08); }
.hf-room-share-status { min-height:17px; margin:8px 0 0 !important; color:#d6b95f !important; font-size:.67rem !important; }
.hf-end-session { margin-top:8px; border:1px solid rgba(255,255,255,.09); color:#b7afa3; background:transparent; }

.hf-stage { position:relative; z-index:1; min-width:0; min-height:0; overflow:auto; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:26px clamp(24px,4vw,68px) 20px; scrollbar-width:thin; }
.hf-stage > * { max-width:100%; }
.hf-eyebrow { margin:0 0 10px; color:var(--shell-accent); font-size:.72rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.hf-signature { position:absolute; right:24px; bottom:16px; color:#625d55; font-family:var(--font-display); font-size:.72rem; }
.hf-stage-corners,.hf-rail,.hf-sidebar { display:none !important; }

.hf-dock { position:relative; z-index:3; display:grid; gap:0; border-top:1px solid rgba(255,255,255,.09); background:rgba(9,10,12,.94); backdrop-filter:blur(18px); }
.hf-player-rail { min-width:0; padding:11px 22px 10px; border-bottom:1px solid rgba(255,255,255,.065); overflow-x:auto; scrollbar-width:none; }
.hf-player-rail::-webkit-scrollbar { display:none; }
.hf-lounge-join-card { width:min(760px,100%); display:grid; grid-template-columns:112px minmax(0,1fr) auto; align-items:center; gap:14px; margin:0 auto 12px; padding:12px; border:1px solid rgba(212,175,55,.18); border-radius:12px; background:linear-gradient(100deg,rgba(212,175,55,.065),rgba(255,255,255,.014)); }
.hf-lounge-join-copy { min-width:0; display:grid; gap:3px; }
.hf-lounge-join-copy > span { color:#9b9388; font-size:.57rem; font-weight:850; letter-spacing:.14em; text-transform:uppercase; }
.hf-lounge-join-copy > strong { color:#eee6db; font-family:var(--font-display); font-size:1.15rem; font-weight:520; letter-spacing:-.01em; }
.hf-lounge-join-copy > small { color:#8c857b; font-size:.65rem; line-height:1.45; }
.hf-lounge-join-qr { width:112px; height:112px; border-width:5px; }
.hf-lounge-join-credentials { display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.hf-lounge-join-credentials > span { min-width:82px; padding:9px; border:1px solid rgba(255,255,255,.075); border-radius:9px; background:rgba(0,0,0,.18); }
.hf-lounge-join-credentials small { display:block; margin-bottom:3px; color:#77736c; font-size:.5rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.hf-lounge-join-credentials strong { color:#e2c779; font-size:1rem; letter-spacing:.1em; }
.hf-lounge-join-credentials .hf-room-pin { color:#9ce3df; }
.hf-player-rail-head { min-width:max-content; display:flex; align-items:center; justify-content:space-between; gap:28px; margin:0 auto 8px; color:#8f877c; font-size:.58rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.hf-player-rail-head strong { color:#e4c66f; letter-spacing:.13em; }
.hf-roster { display:flex; align-items:center; justify-content:center; gap:9px; min-width:max-content; }
.hf-player { position:relative; min-width:126px; max-width:178px; display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:8px; padding:6px 8px; border:1px solid rgba(255,255,255,.075); border-radius:10px; background:rgba(255,255,255,.022); transition:border-color .2s, background .2s, transform .2s; }
.hf-player.is-active { border-color:color-mix(in srgb,var(--shell-accent) 65%,transparent); background:color-mix(in srgb,var(--shell-accent) 8%,rgba(255,255,255,.02)); }
.hf-player.is-disconnected { opacity:.42; filter:saturate(.45); }
.hf-player-avatar { width:32px; height:32px; display:grid; place-items:center; border-radius:50%; border:2px solid var(--player-color); color:#0b0b0c; font-size:.65rem; font-weight:900; box-shadow:0 0 0 3px color-mix(in srgb,var(--player-color) 12%,transparent); }
.hf-player-avatar.has-token { color:var(--player-color); background:#111216; }
.hf-player-copy { min-width:0; display:grid; gap:0; }
.hf-player-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#e9e2d8; font-size:.72rem; font-weight:750; }
.hf-player-score,.hf-player-status { color:#847d73; font-size:.59rem; line-height:1.25; }
.hf-player-check { width:18px; height:18px; display:grid; place-items:center; border-radius:50%; color:#62d68b; font-size:.7rem; opacity:0; }
.hf-player.is-ready .hf-player-check { opacity:1; }
.hf-kick-btn { position:absolute; top:-7px; right:-7px; width:20px; height:20px; border-radius:50%; border:1px solid rgba(255,255,255,.12); background:#191a1e; color:#938b80; cursor:pointer; opacity:0; }
.hf-player:hover .hf-kick-btn,.hf-kick-btn:focus-visible { opacity:1; }
.hf-player-rank { display:none; }
.hf-open-seat { width:54px; display:grid; justify-items:center; gap:3px; color:#6f6960; font-size:.55rem; }
.hf-open-seat-ring { width:34px; height:34px; display:grid; place-items:center; border:1px dashed rgba(255,255,255,.22); border-radius:50%; color:#777066; font-size:.85rem; background:rgba(255,255,255,.012); }

.hf-control-bar { min-height:62px; display:flex; align-items:center; justify-content:space-between; gap:18px; padding:10px 22px; }
.hf-dock-status { flex:1; margin:0; color:#aaa195; font-size:.76rem; line-height:1.35; }
.hf-dock-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; }
.hf-btn-primary,.hf-btn-ghost { min-height:42px; padding:0 20px; border-radius:8px; font:inherit; font-size:.74rem; font-weight:850; letter-spacing:.03em; cursor:pointer; transition:transform .15s,background .15s,border-color .15s; }
.hf-btn-primary { border:1px solid #e5bd55; color:#171004; background:linear-gradient(180deg,#e5bd55,#b88728); box-shadow:0 5px 18px rgba(196,145,43,.2); }
.hf-btn-primary:hover:not(:disabled) { transform:translateY(-1px); filter:brightness(1.06); }
.hf-btn-primary:disabled { opacity:.42; cursor:not-allowed; box-shadow:none; }
.hf-btn-ghost { border:1px solid rgba(255,255,255,.13); color:#c2baaf; background:rgba(255,255,255,.025); }
.hf-btn-ghost:hover:not(:disabled) { border-color:rgba(212,175,55,.42); color:#f0e8dd; }

/* Shared game content becomes the visual hero. */
.hf-prompt { max-width:880px; margin:0 auto; font-family:var(--font-display); color:#f3ede4; font-size:clamp(2.1rem,4.8vw,4.8rem); line-height:1.08; text-align:center; font-weight:500; }
.hf-stage-sub { margin:16px auto 0; color:#a89f92; font-size:.86rem; text-align:center; }
.hf-stage-body { width:min(960px,100%); margin:18px auto 0; }

@media (max-width: 980px) {
  .hf-root { grid-template-rows:64px minmax(0,1fr) auto; }
  .hf-header { grid-template-columns:auto minmax(0,1fr) auto; gap:14px; padding:0 14px; }
  .hf-brand-name { display:none; }
  .hf-title-group { padding-left:12px; gap:10px; }
  .hf-header-subtitle { display:none; }
  .hf-header-chip { display:none; }
  .hf-fullscreen-toggle { width:40px; padding:0; }
  .hf-fullscreen-label { display:none; }
  .hf-stage { padding:20px 18px 16px; }
  .hf-control-bar { align-items:stretch; flex-direction:column; padding:10px 14px 14px; gap:8px; }
  .hf-dock-status { text-align:center; }
  .hf-dock-actions { width:100%; }
  .hf-btn-primary,.hf-btn-ghost { flex:1; }
  .hf-room-popover { width:min(286px,calc(100vw - 28px)); }
  .hf-room-invite-qr { width:190px; height:190px; }
}

@media (max-height: 720px) and (min-width: 981px) {
  .hf-root { grid-template-rows:62px minmax(0,1fr) auto; }
  .hf-stage { padding-top:16px; padding-bottom:12px; }
  .hf-player-rail { padding-top:7px; padding-bottom:7px; }
  .hf-control-bar { min-height:54px; padding-top:6px; padding-bottom:6px; }
  .hf-room-invite-qr { width:170px; height:170px; }
}

@media (prefers-reduced-motion: reduce) {
  .hf-root *, .hf-root *::before, .hf-root *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

/* Lounge lobby: selection and configuration are the primary task. */
.hf-root.hf-lounge { grid-template-rows:72px auto minmax(0,1fr) auto; }
.hf-root.hf-lounge .hf-header { grid-row:1; }
.hf-root.hf-lounge .hf-dock { display:contents; }
.hf-root.hf-lounge .hf-player-rail { grid-row:2; position:relative; z-index:3; padding:10px 24px 11px; border-bottom:1px solid rgba(255,255,255,.075); background:rgba(9,10,12,.92); backdrop-filter:blur(18px); }
.hf-root.hf-lounge .hf-player-rail-head { width:min(1180px,100%); }
.hf-root.hf-lounge .hf-roster { width:min(1180px,100%); justify-content:flex-start; margin:auto; }
.hf-root.hf-lounge .hf-stage { grid-row:3; justify-content:flex-start; padding-top:20px; }
.hf-root.hf-lounge .hf-control-bar { grid-row:4; position:relative; z-index:3; border-top:1px solid rgba(255,255,255,.09); background:rgba(9,10,12,.94); backdrop-filter:blur(18px); }
.ll2-lobby { width:min(1180px,100%); display:grid; grid-template-columns:minmax(260px,.78fr) minmax(460px,1.35fr); gap:18px; align-items:stretch; }
.ll2-game-library,.ll2-selected-game { min-width:0; border:1px solid rgba(255,255,255,.085); border-radius:13px; background:rgba(17,18,21,.84); box-shadow:0 18px 50px rgba(0,0,0,.28); }
.ll2-game-library { padding:16px; display:flex; flex-direction:column; }
.ll2-selected-game { padding:24px; display:flex; flex-direction:column; }
.ll2-section-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:13px; }
.ll2-section-head h2,.ll2-selected-game h2 { margin:3px 0 0; color:#f2ece3; font-family:var(--font-display); font-size:clamp(1.35rem,2vw,1.85rem); line-height:1.12; font-weight:600; }
.ll2-kicker { color:#9b9388; font-size:.6rem; font-weight:850; letter-spacing:.14em; text-transform:uppercase; }
.ll2-player-count { flex:0 0 auto; color:#d5b75e; font-size:.66rem; font-weight:750; }
.ll2-game-list { display:grid; gap:13px; overflow-y:auto; padding-right:3px; scrollbar-width:thin; }
.ll2-game-group { display:grid; gap:5px; }
.ll2-game-group h3 { position:sticky; top:0; z-index:1; margin:0; padding:5px 8px 4px; color:#81796f; background:linear-gradient(90deg,#111215 75%,transparent); font-size:.55rem; font-weight:850; letter-spacing:.13em; text-transform:uppercase; }
.ll-game-box { appearance:none; width:100%; min-height:52px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; padding:7px 9px; border:1px solid transparent; border-radius:8px; color:inherit; background:transparent; text-align:left; font:inherit; cursor:pointer; transition:background .15s,border-color .15s,transform .15s; }
.ll-game-box:hover:not(:disabled) { transform:translateX(2px); background:rgba(255,255,255,.032); border-color:rgba(255,255,255,.08); }
.ll-game-box.is-selected { border-color:rgba(212,175,55,.5); background:linear-gradient(90deg,rgba(212,175,55,.13),rgba(212,175,55,.035)); }
.ll-game-box:disabled { opacity:.42; cursor:not-allowed; }
.ll2-game-copy { min-width:0; display:grid; gap:2px; }
.ll2-game-copy strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#e9e2d8; font-size:.75rem; }
.ll2-game-copy small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#7f786e; font-size:.57rem; }
.ll2-game-meta { color:#8d857a; font-size:.54rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; white-space:nowrap; }
.ll2-game-meta.is-ready { color:#76cfa8; }
.ll-game-box.is-selected .ll2-game-meta { color:#e1bc58; }
.ll2-selected-head { display:flex; align-items:center; gap:13px; }
.ll2-readiness { margin-left:auto; flex:0 0 auto; padding:7px 10px; border:1px solid rgba(255,255,255,.1); border-radius:999px; color:#b0a79a; background:rgba(255,255,255,.025); font-size:.57rem; font-weight:850; letter-spacing:.06em; text-transform:uppercase; }
.ll2-readiness.is-ready { border-color:rgba(85,197,146,.32); color:#7bd3aa; background:rgba(85,197,146,.07); }
.ll2-readiness.is-waiting { border-color:rgba(212,175,55,.28); color:#d9ba61; background:rgba(212,175,55,.065); }
.ll2-readiness.is-locked { border-color:rgba(184,113,204,.28); color:#c99adb; background:rgba(184,113,204,.065); }
.ll2-selected-summary { max-width:690px; margin:14px 0 16px; color:#a79f94; font-size:.78rem; line-height:1.55; }
.ll2-game-facts { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:18px; }
.ll2-game-facts span { min-height:54px; display:grid; align-content:center; gap:1px; padding:8px 10px; border:1px solid rgba(255,255,255,.07); border-radius:8px; color:#858076; font-size:.57rem; text-transform:uppercase; letter-spacing:.06em; background:rgba(255,255,255,.018); }
.ll2-game-facts strong { color:#e9e2d8; font-size:.73rem; letter-spacing:0; text-transform:none; }
.ll2-settings-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; align-items:start; }
.ll2-setting-group--wide { grid-column:1 / -1; }
.ll2-setting-group--choice-wide { grid-column:span 2; }
.ll2-setting-group { display:grid; gap:7px; min-width:0; }
.ll-settings-label { color:#948c80; font-size:.59rem; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.ll-settings-btns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
.ll-settings-btns--three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.ll-settings-btn { min-height:37px; padding:6px 9px; border:1px solid rgba(255,255,255,.09); border-radius:7px; background:rgba(255,255,255,.022); color:#bdb5aa; font:inherit; font-size:.65rem; font-weight:750; cursor:pointer; }
.ll-settings-btn:hover { border-color:rgba(212,175,55,.38); color:#e8dfd3; }
.ll-settings-btn.active,.ll-settings-btn.is-active { border-color:rgba(212,175,55,.58); background:rgba(212,175,55,.12); color:#f0ca65; }
.ll-stepper { display:grid !important; grid-template-columns:38px minmax(54px,1fr) 38px !important; align-items:center; gap:7px !important; margin:0 !important; }
.ll-stepper-btn { width:38px !important; height:37px !important; display:grid !important; place-items:center !important; padding:0 !important; border:1px solid rgba(255,255,255,.1) !important; border-radius:7px !important; background:rgba(255,255,255,.025) !important; color:#e6ded3 !important; font:inherit !important; font-size:1rem !important; cursor:pointer !important; }
.ll-stepper-val { min-height:37px; display:grid; place-items:center; color:#f0e9df !important; font-size:.73rem !important; font-weight:850 !important; border:1px solid rgba(255,255,255,.06); border-radius:7px; background:#111216; }
.ll-no-setup { display:grid; gap:3px; padding:12px; border:1px solid rgba(255,255,255,.07); border-radius:8px; color:#d6cec2; background:rgba(255,255,255,.02); }
.ll-no-setup strong { font-size:.72rem; }
.ll-no-setup span { color:#7f786e; font-size:.62rem; line-height:1.45; }
.ll-room-settings { margin-top:auto; padding-top:17px; border-top:1px solid rgba(255,255,255,.07); }
.ll-room-settings > summary { list-style:none; display:flex; align-items:center; justify-content:space-between; gap:12px; color:#b9b1a6; font-size:.67rem; font-weight:800; cursor:pointer; }
.ll-room-settings > summary::-webkit-details-marker { display:none; }
.ll-room-settings > summary span:last-child { color:#766f66; font-size:.58rem; font-weight:600; }
.ll-room-settings-body { display:grid; grid-template-columns:minmax(150px,.7fr) minmax(230px,1.2fr) auto; align-items:end; gap:12px; padding-top:13px; }
.ll-toggle-row { min-height:54px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 10px; border:1px solid rgba(255,255,255,.075); border-radius:8px; background:rgba(255,255,255,.018); cursor:pointer; }
.ll-toggle-row span { display:grid; gap:1px; }
.ll-toggle-row strong { color:#ded6ca; font-size:.67rem; }
.ll-toggle-row small { color:#7d766c; font-size:.56rem; }
.ll-toggle-row input { width:19px; height:19px; accent-color:#d3a93e; }

.hf-lounge .hf-player-rail { background:rgba(255,255,255,.012); }
.hf-lounge .hf-control-bar { background:linear-gradient(90deg,rgba(255,255,255,.01),rgba(212,175,55,.025)); }

@media (max-width:1100px) {
  .ll2-lobby { grid-template-columns:minmax(235px,.7fr) minmax(390px,1.3fr); }
  .ll2-settings-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ll2-game-facts { grid-template-columns:1fr; }
  .ll2-game-facts span { min-height:38px; display:flex; align-items:center; justify-content:space-between; }
}
@media (max-width:780px) {
  .hf-root.hf-lounge { grid-template-rows:64px auto minmax(0,1fr) auto; }
  .ll2-lobby { grid-template-columns:1fr; }
  .ll2-game-library { max-height:40vh; }
  .ll-room-settings-body { grid-template-columns:1fr; }
  .ll2-selected-head { align-items:flex-start; flex-wrap:wrap; }
  .ll2-readiness { margin-left:0; }
}
@media (max-width:520px) {
  .ll2-settings-grid { grid-template-columns:1fr; }
  .ll2-setting-group--wide,
  .ll2-setting-group--choice-wide { grid-column:auto; }
}
.hf-root.hf-lounge .ll2-lobby { height:100%; min-height:0; max-height:100%; }
.hf-root.hf-lounge .ll2-game-library,
.hf-root.hf-lounge .ll2-selected-game { min-height:0; max-height:100%; }
.hf-root.hf-lounge .ll2-game-list { flex:1; min-height:0; }
.hf-brand-mark { width:34px; height:34px; object-fit:contain; }
.hf-player-name { max-width:118px; }
.ll2-session-flow { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:20px 0 16px; }
.ll2-session-flow span { min-height:45px; display:flex; align-items:center; gap:8px; padding:8px 10px; border-top:1px solid rgba(255,255,255,.07); border-bottom:1px solid rgba(255,255,255,.05); color:#8a8379; font-size:.62rem; }
.ll2-session-flow strong { width:22px; height:22px; display:grid; place-items:center; flex:0 0 auto; border:1px solid rgba(212,175,55,.3); border-radius:50%; color:#d8b453; font-size:.62rem; }

/* Lounge Shell 2.0 — Rapid Fire reference-flow polish. */
.hf-root .rfh-stage {
  width:min(900px,100%);
  gap:16px;
}
.hf-root .rfh-kicker {
  color:#8d857a;
  font-size:.61rem;
  letter-spacing:.14em;
}
.hf-root .rfh-title {
  max-width:820px;
  color:#f2ece3;
  font-family:var(--font-display);
  font-style:normal;
  font-size:clamp(2rem,3.7vw,3.35rem);
  font-weight:560;
  line-height:1.08;
}
.hf-root .rfh-title em { color:var(--shell-accent); font-style:normal; font-weight:600; }
.hf-root .rfh-copy {
  max-width:680px;
  color:#9f978b;
  font-size:.8rem;
  line-height:1.55;
}
.hf-root .rfh-category {
  width:min(760px,100%);
  padding:18px 24px;
  border:1px solid color-mix(in srgb,var(--shell-accent) 30%,rgba(255,255,255,.08));
  border-radius:12px;
  color:#f2ece3;
  background:linear-gradient(145deg,color-mix(in srgb,var(--shell-accent) 8%,#15161a),#131418);
  font-family:var(--font-display);
  font-style:normal;
  font-size:clamp(1.75rem,3.15vw,2.7rem);
  font-weight:560;
  box-shadow:0 20px 54px rgba(0,0,0,.24);
}
.hf-root .rfh-timer {
  width:116px;
  height:116px;
  border:2px solid rgba(255,255,255,.08);
  background:#111216;
  box-shadow:0 18px 44px rgba(0,0,0,.26),inset 0 0 0 1px color-mix(in srgb,var(--shell-accent) 15%,transparent);
}
.hf-root .rfh-timer::before {
  inset:-3px;
  border-width:3px;
  border-color:var(--shell-accent);
}
.hf-root .rfh-timer strong {
  color:#f2ece3;
  font-family:var(--font-ui);
  font-style:normal;
  font-size:2.55rem;
  font-weight:760;
}
.hf-root .rfh-timer span { margin-top:-3px; color:#817a70; font-size:.55rem; }
.hf-root .rfh-progress { gap:7px; }
.hf-root .rfh-player {
  min-height:55px;
  padding:10px 11px;
  border-radius:9px;
  background:#131418;
}
.hf-root .rfh-player.is-locked {
  border-color:color-mix(in srgb,var(--shell-accent) 48%,transparent);
  background:color-mix(in srgb,var(--shell-accent) 8%,#131418);
}
.hf-root .rfh-player strong { color:#ded7cd; font-size:.76rem; }
.hf-root .rfh-player span { color:#837c72; font-size:.62rem; }
.hf-root .rfh-review {
  width:min(760px,100%);
  gap:12px;
}
.hf-root .rfh-answer {
  min-height:126px;
  padding:20px;
  border-radius:11px;
  background:#131418;
}
.hf-root .rfh-answer strong {
  color:#f0e9df;
  font-family:var(--font-ui);
  font-style:normal;
  font-size:1.42rem;
  font-weight:760;
}
.hf-root .rfh-answer span { color:#837c72; font-size:.65rem; }
.hf-root .rfh-vs { color:#777067; font-size:.58rem; }
.hf-root .rfh-review-actions { gap:8px; }
.hf-root .rfh-btn {
  min-height:45px;
  border-radius:8px;
  padding:11px 18px;
  font-size:.68rem;
  letter-spacing:.02em;
  text-transform:none;
}
.hf-root .rfh-btn.primary {
  border:1px solid color-mix(in srgb,var(--shell-accent) 70%,#fff);
  color:#150d06;
  background:linear-gradient(180deg,color-mix(in srgb,var(--shell-accent) 78%,#f4d46a),color-mix(in srgb,var(--shell-accent) 78%,#8a561c));
}
.hf-root .rfh-results { gap:7px; max-height:min(42vh,380px); }
.hf-root .rfh-result {
  padding:12px 13px;
  border-radius:9px;
  background:#131418;
}
.hf-root .rfh-result.unique {
  border-color:color-mix(in srgb,var(--shell-accent) 43%,transparent);
  background:color-mix(in srgb,var(--shell-accent) 7%,#131418);
}
.hf-root .rfh-result strong { color:#e7dfd5; font-size:.84rem; }
.hf-root .rfh-result span { color:#827a70; font-size:.61rem; }
.hf-root .rfh-scores { gap:7px; }
.hf-root .rfh-score { padding:10px; border-radius:8px; background:#131418; }
.hf-root .rfh-score strong {
  color:var(--shell-accent);
  font-family:var(--font-ui);
  font-style:normal;
  font-size:1.15rem;
  font-weight:820;
}
.hf-root .rfh-score span { font-size:.61rem; }

/* Keep the lobby purposeful: settings panel ends with its content instead of
   stretching into a large decorative void. The library remains scrollable. */
.hf-root.hf-lounge .hf-stage { justify-content:center; }
.hf-root.hf-lounge .ll2-lobby {
  height:auto;
  max-height:100%;
  align-items:start;
}
.hf-root.hf-lounge .ll2-game-library {
  height:min(67vh,650px);
  min-height:430px;
}
.hf-root.hf-lounge .ll2-selected-game {
  min-height:440px;
  max-height:none;
}
.hf-root.hf-lounge .ll-room-settings { margin-top:18px; }
@media (max-height:760px) and (min-width:781px) {
  .hf-root.hf-lounge .ll2-game-library { height:min(58vh,520px); min-height:360px; }
  .hf-root.hf-lounge .ll2-selected-game { min-height:390px; }
}

/* ==========================================================================
   Phone player frame
   ========================================================================== */

/* ═══════════════════════════════════════════════════════════════
   Ember & Ace — Phone Frame (The Gilded Lounge — pocket edition)
   ═══════════════════════════════════════════════════════════════
   Mobile-first controller chrome for every multiplayer phone view.
   Shares the design language of host-frame.css but optimized for
   375-428px viewports held in one hand.

   Layout:
     ┌──────────────────┐
     │   HEADER STRIP   │  game title + phase + you chip
     ├──────────────────┤
     │                  │
     │   CENTER STAGE   │  prompt/content/actions
     │                  │
     ├──────────────────┤
     │  BOTTOM DOCK     │  primary CTA + status
     └──────────────────┘

   Token-aware: if the player has a token, the "YOU" chip renders the
   SVG glyph on a dark disc with the player color as a border.
   ─────────────────────────────────────────────────────────────── */

/* position: fixed takes over the viewport on standalone phone views.
   When rendered inside a modal (.modal-body), fall back to filling the
   modal's space naturally to avoid z-index fights with the modal chrome. */
.pf-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(ellipse 80% 40% at 50% -2%, rgba(232, 184, 75, 0.06) 0%, transparent 75%),
    radial-gradient(ellipse 90% 60% at 50% 50%, var(--surface-mid) 0%, var(--ink) 70%);
  color: var(--text);
  font-family: var(--font-ui);
  overflow: hidden;
}
/* Inside a modal, don't fight the modal's stacking context — just
   fill the body area. The modal already owns the viewport overlay. */
.modal-body .pf-root {
  position: absolute;
  inset: 0;
  z-index: 10;
}

/* When rendered inline inside the homepage hero, it becomes a seamlessly integrated card */
#hero-join-container .pf-root {
  position: relative;
  inset: auto;
  height: auto;
  background: linear-gradient(155deg, var(--surface-mid) 40%, rgba(20, 20, 27, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

#hero-join-container .pf-header {
  display: none;
}

/* ─── Header strip ─────────────────────────────────────────────── */
.pf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  gap: 10px;
  border-bottom: 1px solid var(--border-gold);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface-mid) 94%, transparent) 0%, transparent 100%);
}
.pf-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.pf-header-logo {
  display: block;
  height: 18px;
  width: auto;
  opacity: 0.95;
  object-fit: contain;
  object-position: left center;
  align-self: flex-start;
}
.pf-header-title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 0 16px rgba(232, 184, 75, 0.18);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-header-phase {
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* YOU chip — circular token avatar + name */
.pf-you {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pf-you-label {
  display: none;
}
.pf-you-name {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pf-you-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, var(--surface-high) 0%, var(--surface) 100%);
  border: 1.5px solid currentColor;
  box-shadow: 0 0 14px color-mix(in srgb, currentColor 30%, transparent);
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold);
}
.pf-you-avatar svg,
.pf-you-avatar img { display: block; }

/* ─── Center stage ─────────────────────────────────────────────── */
.pf-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 22px 20px;
  overflow-y: auto;
  min-height: 0;
  position: relative;
}

.pf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1rem;
  color: var(--gold);
  text-align: center;
  opacity: 0.88;
}
.pf-eyebrow::before,
.pf-eyebrow::after {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.pf-prompt {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  line-height: 1.16;
  letter-spacing: -0.005em;
  color: var(--text);
  text-align: center;
  max-width: 100%;
  margin: 0 auto;
  animation: popIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.pf-prompt em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
  text-shadow: 0 0 24px rgba(232, 184, 75, 0.22);
}

.pf-stage-sub {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--muted);
  text-align: center;
}

/* Body slot — any game-specific interior content (options, inputs,
   card hands) sits here below the prompt with consistent spacing. */
.pf-body {
  width: 100%;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

/* Token-avatar option buttons — used wherever a player picks another
   player (MLT voting, Trivia answers with player cards). Inherits
   color from an inline --pc var on each button. */
.pf-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  width: 100%;
  background: linear-gradient(135deg, color-mix(in srgb, var(--pc, var(--gold)) 12%, rgba(255, 255, 255, 0.05)) 0%, color-mix(in srgb, var(--pc, var(--gold)) 4%, rgba(255, 255, 255, 0.01)) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--pc, var(--gold)) 30%, rgba(255, 255, 255, 0.08));
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 400ms var(--ease-out-soft), background 400ms var(--ease-out-soft), box-shadow 400ms var(--ease-out-soft), border-color 400ms var(--ease-out-soft);
  text-align: left;
}
.pf-option:active {
  transform: scale(0.97);
  background: color-mix(in srgb, var(--pc, var(--gold)) 22%, transparent);
}
.pf-option.is-selected {
  border-color: var(--pc, var(--gold));
  background: color-mix(in srgb, var(--pc, var(--gold)) 20%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--pc, var(--gold)) 30%, transparent);
  animation: pfPulseSelected 2.5s ease-in-out infinite;
}
@keyframes pfPulseSelected {
  0%, 100% { box-shadow: 0 0 12px color-mix(in srgb, var(--pc, var(--gold)) 20%, transparent); }
  50% { box-shadow: 0 0 26px color-mix(in srgb, var(--pc, var(--gold)) 45%, transparent); }
}
.pf-option:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pf-option-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, var(--surface-high) 0%, var(--surface) 100%);
  border: 1.5px solid var(--pc, var(--gold));
  color: var(--pc, var(--gold));
  flex-shrink: 0;
}
.pf-option-icon svg { display: block; }
.pf-option-label { flex: 1; }

/* Text input — full width on phone */
.pf-input {
  width: 100%;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px; /* Heavily blurred glassmorphic pill */
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 500;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.1),
    inset 0 -1px 1px rgba(0, 0, 0, 0.2);
  text-align: center;
}
.pf-input::placeholder { color: var(--dim); }
.pf-input:focus { 
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 
    0 0 25px rgba(255, 255, 255, 0.1),
    0 4px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
}
.pf-join-pin-label { display:block; margin:12px 0 6px; color:var(--muted); font-size:.68rem; font-weight:800; text-align:center; text-transform:uppercase; letter-spacing:.14em; }
.pf-join-pin-input { max-width:190px; margin-inline:auto; font-size:1.4rem !important; font-weight:800 !important; letter-spacing:.28em; text-align:center; font-variant-numeric:tabular-nums; }
.pf-join-pin-help { margin:6px 0 2px; color:var(--dim); font-size:.67rem; line-height:1.4; text-align:center; }

/* Error shake — used when an input is invalid (empty name, etc.) */
@keyframes pfInputShake {
  0%, 100% { transform: translateX(0); border-color: color-mix(in srgb, var(--border-gold) 60%, transparent); }
  20%, 60% { transform: translateX(-6px); border-color: #e74c3c; box-shadow: 0 0 12px rgba(231,76,60,0.3); }
  40%, 80% { transform: translateX(6px); border-color: #e74c3c; box-shadow: 0 0 12px rgba(231,76,60,0.3); }
}
.pf-input--error { animation: pfInputShake 0.45s ease-in-out; }

/* ─── Bottom dock ─────────────────────────────────────────────── */
.pf-dock {
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  border-top: 1px solid var(--border-gold);
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--surface) 92%, transparent) 100%);
}
.pf-dock-status {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.94rem;
  color: var(--muted);
  text-align: center;
  min-height: 1.1em;
}
.pf-dock-actions {
  display: flex;
  gap: 10px;
}
.pf-btn-primary,
.pf-btn-ghost {
  flex: 1;
  padding: 15px 20px;
  border-radius: 11px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  touch-action: manipulation;
}
.pf-btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: var(--ink);
  border: 1px solid var(--gold-deep);
  box-shadow: 0 2px 0 var(--gold-deep), 0 0 24px rgba(232, 184, 75, 0.22);
}
.pf-btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: pfBtnShine 5s infinite;
}
@keyframes pfBtnShine {
  0%, 75% { left: -100%; }
  100% { left: 200%; }
}
.pf-btn-primary:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--gold-deep), 0 0 20px rgba(232, 184, 75, 0.18);
}
.pf-btn-primary:disabled {
  background: var(--surface-high);
  color: var(--dim);
  border-color: var(--border-gold);
  box-shadow: none;
  cursor: not-allowed;
}
.pf-btn-ghost {
  flex: 0 0 auto;
  background: none;
  color: var(--muted);
  border: 1px solid var(--border-gold);
  padding: 15px 18px;
}
.pf-btn-ghost:active {
  color: var(--text);
  border-color: var(--gold);
}

/* ─── Empty / waiting state ───────────────────────────────────── */
.pf-waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 0;
}
.pf-waiting-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--border-gold);
  border-top-color: var(--gold);
  animation: pfSpin 1.4s linear infinite;
}
@keyframes pfSpin { to { transform: rotate(360deg); } }
.pf-waiting-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
  text-align: center;
  background: linear-gradient(-60deg, var(--muted) 40%, rgba(232, 184, 75, 0.6) 50%, var(--muted) 60%);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pfTextShimmer 3s infinite linear;
}
@keyframes pfTextShimmer {
  0% { background-position: 200% center; }
  100% { background-position: -100% center; }
}

/* Signature — tiny wordmark centered under the stage */
.pf-signature {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--dim);
  opacity: 0.6;
}
.pf-signature::before,
.pf-signature::after {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  background: var(--border-gold);
}

/* ─── Desktop (tablets, laptops testing the join flow) ────────── */
@media (min-width: 640px) {
  .pf-root {
    max-width: 440px;
    margin: 0 auto;
    border-left: 1px solid var(--border-gold);
    border-right: 1px solid var(--border-gold);
  }
}

/* ─── Lobby UI Styles ─── */
.pf-lobby-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.pf-lobby-room-card {
  position: relative;
  background: linear-gradient(155deg, rgba(30, 30, 42, 0.5) 0%, rgba(15, 15, 20, 0.9) 100%);
  border: 1px solid rgba(232, 184, 75, 0.15);
  border-radius: 14px;
  padding: 22px 20px 18px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin-bottom: 8px;
}

.pf-lobby-room-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(232, 184, 75, 0.1) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}

.pf-lobby-room-code {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-shadow: 0 0 24px rgba(232, 184, 75, 0.3);
}

.pf-lobby-qr {
  display: block;
  width: 130px;
  height: 130px;
  margin: 6px auto 10px;
  padding: 6px;
  background: var(--text);
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(232, 184, 75, 0.15);
}

.pf-lobby-roster {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.pf-lobby-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: border-color 0.3s, background 0.3s;
}

.pf-lobby-player.is-me {
  border-color: rgba(232, 184, 75, 0.35);
  background: linear-gradient(150deg, rgba(232, 184, 75, 0.1), rgba(232, 184, 75, 0.02));
  box-shadow: 0 0 14px rgba(232, 184, 75, 0.1);
}

.pf-lobby-player-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(9, 8, 11, 0.2);
}

.pf-lobby-player-avatar.has-token {
  background: radial-gradient(circle at center, var(--surface-high) 0%, var(--surface) 100%);
  border: 1.5px solid currentColor;
  box-shadow: none;
}

.pf-lobby-player-avatar:not(.has-token) {
  color: var(--ink);
  background: currentColor;
}

.pf-lobby-player-name {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-lobby-player-badge {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
}

.pf-lobby-player-badge--host {
  color: var(--gold);
  border: 1px solid rgba(232, 184, 75, 0.3);
  background: rgba(232, 184, 75, 0.05);
}

.pf-lobby-player-badge--you {
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.pf-lobby-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.pf-lobby-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.pf-lobby-dot[data-status="filled"] {
  background-color: var(--gold);
  box-shadow: 0 0 8px var(--gold-bright);
}

.pf-lobby-dot[data-status="empty"] {
  background-color: rgba(255, 255, 255, 0.12);
}

/* ─── Join & Lobby Customizer Styles ─── */
.pf-customizer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-top: 14px;
}

.pf-customizer-preview-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  width: 100%;
}

.pf-customizer-preview {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2.5px solid var(--c, var(--gold));
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(31, 31, 38, 0.4) 0%, rgba(10, 10, 12, 0.95) 100%);
  color: var(--c, var(--gold));
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-style: italic;
  font-weight: 700;
  box-shadow: 
    0 0 4px var(--c, var(--gold)),
    0 0 12px var(--c, var(--gold)),
    0 0 30px var(--c, var(--gold)),
    0 10px 30px rgba(0, 0, 0, 0.8);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pf-customizer-preview.has-token {
  font-style: normal;
}

.pf-customizer-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pf-customizer-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 2px;
}

.pf-customizer-grid {
  display: grid;
  gap: 12px;
  width: 100%;
}

.pf-customizer-grid--colors {
  grid-template-columns: repeat(5, 1fr);
  justify-items: center;
}

.pf-customizer-grid--tokens {
  grid-template-columns: repeat(5, 1fr);
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
  justify-items: center;
  /* Scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) rgba(0,0,0,0.2);
}

.pf-customizer-grid--tokens::-webkit-scrollbar {
  width: 4px;
}
.pf-customizer-grid--tokens::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2);
  border-radius: 2px;
}
.pf-customizer-grid--tokens::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.pf-customizer-color-btn {
  width: 36px;
  height: 36px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
  position: relative;
  justify-self: center;
}

.pf-customizer-color-btn:hover {
  transform: scale(1.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.pf-customizer-color-btn.is-selected {
  border: 2px solid #ffffff;
  box-shadow: 
    0 0 4px var(--c),
    0 0 12px var(--c),
    0 0 30px var(--c),
    inset 0 2px 4px rgba(0,0,0,0.3);
  transform: scale(1.2);
}

.pf-customizer-token-btn {
  height: 42px;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.4;
  justify-self: center;
  color: var(--muted);
}

.pf-customizer-token-btn:hover:not(:disabled) {
  opacity: 0.8;
  border-color: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.pf-customizer-token-btn.is-selected {
  opacity: 1;
  border: 1.5px solid currentColor;
  box-shadow: 
    0 0 6px currentColor,
    0 0 16px currentColor;
  transform: scale(1.15);
}

.pf-customizer-token-btn:disabled {
  opacity: 0.12;
  cursor: not-allowed;
  background: transparent;
  border-color: transparent;
}

/* ─── Bottom Slide-up Customizer Sheet ─── */
.pf-customizer-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(165deg, rgba(22, 22, 29, 0.96) 0%, rgba(10, 10, 12, 0.99) 100%);
  border-top: 1px solid rgba(232, 184, 75, 0.25);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 20000;
  padding: 24px 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translate3d(0, 100%, 0);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
  max-height: 85vh;
  overflow-y: auto;
}

.pf-customizer-sheet.is-open {
  transform: translate3d(0, 0, 0);
}

.pf-customizer-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 19999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.pf-customizer-sheet-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.pf-lobby-player.is-me {
  cursor: pointer;
  position: relative;
}

.pf-lobby-player.is-me:hover {
  border-color: rgba(232, 184, 75, 0.5);
  background: linear-gradient(150deg, rgba(232, 184, 75, 0.15), rgba(232, 184, 75, 0.04));
}

/* ─── Emoji Cannon Soundboard Row ─── */
.pf-emoji-cannon {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(22, 22, 29, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 184, 75, 0.2);
  border-radius: 50px;
  padding: 8px 16px;
  margin: 20px auto 0;
  width: 90%;
  max-width: 280px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pf-emoji-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  padding: 8px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
  -webkit-user-select: none;
}

.pf-emoji-btn:active {
  transform: scale(1.4) translateY(-4px);
}

/* --- Pause Button and Overlay --- */
.pf-header-pause-btn {
  background: none;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 4px;
  padding: 0;
  line-height: 1;
}
.pf-header-pause-btn:hover {
  border-color: var(--gold);
  background: rgba(232, 184, 75, 0.1);
  box-shadow: 0 0 8px rgba(232, 184, 75, 0.2);
}
.pf-header-pause-btn.is-paused {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  animation: pause-pulse 2s infinite ease-in-out;
}
@keyframes pause-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(232, 184, 75, 0.4); }
  50% { box-shadow: 0 0 12px rgba(232, 184, 75, 0.8); }
}

.pf-pause-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 8, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  animation: fadeIn 0.4s ease-out forwards;
}
.pf-pause-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--gold);
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(232, 184, 75, 0.3);
}
.pf-pause-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
  max-width: 280px;
  margin-bottom: 24px;
}
.pf-pause-overlay-resume {
  margin-top: 8px;
  width: auto;
  min-width: 180px;
}
.pf-pause-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--dim);
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pf-pause-brand::before,
.pf-pause-brand::after {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--border-gold);
}


/* ═══════════════════════════════════════════════════════════════
   Lounge Shell 2.0 — player phone experience
   One task, full-bleed, readable, and thumb-friendly.
   ═══════════════════════════════════════════════════════════════ */
.pf-root {
  --phone-accent: var(--gold);
  grid-template-rows: 62px minmax(0,1fr) auto;
  background:
    radial-gradient(ellipse 100% 55% at 50% 8%, color-mix(in srgb,var(--phone-accent) 6%,transparent), transparent 70%),
    linear-gradient(180deg,#0b0c0e 0%,#111216 48%,#090a0c 100%);
}
.pf-root::before {
  content:"";
  position:absolute;
  inset:62px 0 0;
  pointer-events:none;
  opacity:.24;
  background-image:radial-gradient(circle,rgba(232,184,75,.34) 0 1px,transparent 1.6px);
  background-size:67px 71px;
  mask-image:radial-gradient(ellipse at 50% 35%,#000 0%,transparent 72%);
}
.modal-body .pf-root { border-radius:0; }
.pf-header {
  position:relative;
  z-index:2;
  min-height:62px;
  padding:9px 14px;
  border-bottom:1px solid rgba(255,255,255,.085);
  background:rgba(9,10,12,.92);
  backdrop-filter:blur(18px);
}
.pf-header-left { display:grid; grid-template-columns:minmax(0,1fr); gap:1px; }
.pf-header-logo { display:none; }
.pf-header-title {
  margin:0;
  color:#f0e9df;
  font-family:var(--font-display);
  font-style:normal;
  font-size:1rem;
  line-height:1.15;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pf-header-phase {
  color:#8d857a;
  font-size:.57rem;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.pf-you { gap:7px; }
.pf-you-name { max-width:76px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#aaa195; font-size:.64rem; font-weight:700; }
.pf-you-avatar { width:31px; height:31px; border:1.5px solid currentColor; background:#141519 !important; box-shadow:0 0 0 3px color-mix(in srgb,currentColor 11%,transparent); }
.pf-header-pause-btn { width:32px; height:32px; border-radius:8px; }

.pf-stage {
  position:relative;
  z-index:1;
  min-height:0;
  justify-content:flex-start;
  padding:clamp(22px,5vh,42px) 18px 24px;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-width:none;
}
.pf-stage::-webkit-scrollbar { display:none; }
.pf-eyebrow {
  margin:0 0 8px;
  color:var(--phone-accent);
  font-family:var(--font-ui);
  font-style:normal;
  font-size:.61rem;
  font-weight:850;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.pf-prompt {
  width:100%;
  max-width:370px;
  margin:0 auto;
  color:#f2ebe1;
  font-family:var(--font-display);
  font-style:normal;
  font-size:clamp(1.75rem,8.4vw,2.55rem);
  font-weight:500;
  line-height:1.13;
  text-align:center;
}
.pf-prompt em { color:inherit; font-style:normal; }
.pf-stage-sub {
  width:100%;
  max-width:330px;
  margin:12px auto 0;
  color:#a39b90;
  font-family:var(--font-ui);
  font-style:normal;
  font-size:.78rem;
  line-height:1.5;
  text-align:center;
}
.pf-body { width:100%; max-width:390px; margin:22px auto 0; }
.pf-signature { margin-top:auto; padding-top:22px; color:#625d55; font-style:normal; }

.pf-dock {
  position:relative;
  z-index:3;
  padding:10px 14px max(12px,env(safe-area-inset-bottom));
  border-top:1px solid rgba(255,255,255,.085);
  background:rgba(9,10,12,.95);
  backdrop-filter:blur(18px);
  box-shadow:0 -16px 36px rgba(0,0,0,.22);
}
.pf-dock-status { margin:0 0 7px; color:#8d857a; font-family:var(--font-ui); font-style:normal; font-size:.65rem; line-height:1.35; text-align:center; }
.pf-dock-actions { display:grid; grid-template-columns:auto minmax(0,1fr); gap:8px; }
.pf-dock-actions:has(.pf-btn-primary:only-child) { grid-template-columns:1fr; }
.pf-btn-primary,.pf-btn-ghost {
  min-height:48px;
  border-radius:9px;
  font:inherit;
  font-size:.74rem;
  font-weight:850;
  letter-spacing:.025em;
}
.pf-btn-primary { border:1px solid #e2b84e; color:#171004; background:linear-gradient(180deg,#e4bd55,#b98527); box-shadow:0 6px 20px rgba(190,137,35,.18); }
.pf-btn-primary:disabled { opacity:.4; box-shadow:none; }
.pf-btn-ghost { min-width:86px; border:1px solid rgba(255,255,255,.11); color:#aba397; background:rgba(255,255,255,.02); }

.pf-input {
  min-height:49px;
  padding:11px 13px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:9px;
  background:#15161a;
  color:#f0e9df;
  font-family:var(--font-ui);
  font-size:1rem;
  box-shadow:none;
}
.pf-input:focus { border-color:color-mix(in srgb,var(--phone-accent) 65%,#fff); background:#18191d; box-shadow:0 0 0 3px color-mix(in srgb,var(--phone-accent) 13%,transparent); }
.pf-option {
  min-height:50px;
  padding:9px 11px;
  border:1px solid rgba(255,255,255,.095);
  border-radius:8px;
  background:rgba(255,255,255,.022);
  box-shadow:none;
}
.pf-option:hover:not(:disabled),.pf-option:focus-visible { border-color:color-mix(in srgb,var(--pc,var(--phone-accent)) 55%,transparent); background:color-mix(in srgb,var(--pc,var(--phone-accent)) 8%,rgba(255,255,255,.02)); }
.pf-option.is-selected { border-color:var(--pc,var(--phone-accent)); background:color-mix(in srgb,var(--pc,var(--phone-accent)) 15%,rgba(255,255,255,.02)); box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pc,var(--phone-accent)) 28%,transparent); }
.pf-option-icon { width:30px; height:30px; border-width:1px; }
.pf-option-label { color:#e5ddd2; font-size:.78rem; font-weight:700; }

.pf-lobby-container { width:100%; max-width:390px; margin:0 auto; }
.pf-lobby-room-card { padding:18px; border:1px solid rgba(212,175,55,.24); border-radius:11px; background:rgba(212,175,55,.045); box-shadow:none; }
.pf-lobby-room-code { font-style:normal; }
.pf-lobby-roster { gap:7px; }
.pf-lobby-player { min-height:48px; padding:7px 9px; border:1px solid rgba(255,255,255,.075); border-radius:8px; background:rgba(255,255,255,.02); }
.pf-lobby-player-avatar { width:31px; height:31px; }
.pf-lobby-player-name { font-size:.75rem; }
.pf-lobby-player-badge { font-size:.52rem; }

.pf-waiting-ring { box-shadow:0 0 0 5px color-mix(in srgb,var(--phone-accent) 10%,transparent); }
.pf-waiting-text { color:#aaa195; font-style:normal; }
.pf-pause-overlay { padding:28px 20px; background:rgba(9,10,12,.97); }
.pf-pause-title { font-style:normal; }

/* Homepage join card remains a contained preview rather than taking over. */
#hero-join-container .pf-root { grid-template-rows:1fr auto; border-radius:12px; background:#141519; }
#hero-join-container .pf-stage { padding:24px 18px 18px; }
#hero-join-container .pf-dock { position:relative; }

@media (max-height:650px) {
  .pf-root { grid-template-rows:56px minmax(0,1fr) auto; }
  .pf-header { min-height:56px; padding-top:7px; padding-bottom:7px; }
  .pf-stage { padding-top:18px; }
  .pf-prompt { font-size:clamp(1.55rem,7vw,2.1rem); }
}
@media (prefers-reduced-motion:reduce) {
  .pf-root *, .pf-root *::before, .pf-root *::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
}

.pf-prompt { animation:none !important; filter:none !important; text-shadow:none; }
@media (max-width:640px) {
  .pf-you-name { max-width:96px; }
}

/* Lounge Shell 2.0 — Rapid Fire phone workspace. */
.rfp-workspace { width:100%; display:grid; gap:12px; }
.rfp-round-meta { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.rfp-timer {
  display:inline-flex;
  align-items:baseline;
  gap:2px;
  color:#f0e9df;
  font-family:var(--font-ui);
  font-size:1.85rem;
  font-weight:850;
  font-variant-numeric:tabular-nums;
  line-height:1;
}
.rfp-timer span { color:#7f786e; font-size:.7rem; font-weight:750; }
.rfp-timer.is-urgent { color:#ff776c; }
.rfp-count { color:#8b8378; font-size:.66rem; font-weight:760; }
.rfp-entry { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.rfp-input { min-width:0; }
.rfp-add {
  min-width:67px;
  min-height:49px;
  border:1px solid color-mix(in srgb,var(--phone-accent) 62%,#fff);
  border-radius:9px;
  color:#160f05;
  background:linear-gradient(180deg,#e4bd55,#b98527);
  font:800 .73rem var(--font-ui);
  cursor:pointer;
}
.rfp-answer-list {
  display:grid;
  gap:6px;
  max-height:min(31vh,260px);
  overflow:auto;
  padding-right:2px;
  scrollbar-width:thin;
}
.rfp-answer {
  min-height:45px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px 8px 12px;
  border:1px solid rgba(255,255,255,.085);
  border-radius:8px;
  background:#15161a;
}
.rfp-answer span { min-width:0; color:#e5ded4; font-size:.79rem; line-height:1.3; text-align:left; overflow-wrap:anywhere; }
.rfp-answer button {
  width:34px;
  height:34px;
  flex:0 0 auto;
  border:0;
  border-radius:7px;
  color:#8d857a;
  background:transparent;
  font-size:1.15rem;
  cursor:pointer;
}
.rfp-answer button:hover,.rfp-answer button:focus-visible { color:#f0e9df; background:rgba(255,255,255,.055); }
.rfp-empty { margin:7px 0; color:#69635b; font-size:.7rem; text-align:center; }
.rfp-locked-card {
  min-height:104px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:4px;
  padding:16px;
  border:1px solid color-mix(in srgb,var(--phone-accent) 40%,rgba(255,255,255,.08));
  border-radius:10px;
  background:color-mix(in srgb,var(--phone-accent) 6%,#131418);
  text-align:center;
}
.rfp-lock-icon { width:30px; height:30px; display:grid; place-items:center; border-radius:50%; color:#120c03; background:var(--phone-accent); font-weight:900; }
.rfp-locked-card strong { color:#eee7dd; font-size:.82rem; }
.rfp-locked-card p { margin:0; color:#8e867b; font-size:.68rem; }

/* ─── Illustrated player token system ────────────────────────────
   Tokens use the supplied individual SVG files. Their native gold, silver,
   neon, and jewel finishes stay intact at every rendered size. */
.ea-player-portrait {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
}

.pf-customizer-preview {
  width: 96px;
  height: 96px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--c, var(--gold)) 14%, #17181d) 0%, #090a0d 72%);
}
.pf-customizer-preview .ea-player-portrait {
  width: 86px;
  height: 86px;
}

.pf-customizer-grid--tokens {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-height: none;
  overflow: visible;
  gap: 10px;
  padding: 2px;
}

.pf-customizer-token-btn {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  opacity: .72;
  overflow: hidden;
  background: rgba(255,255,255,.025);
  border-color: rgba(255,255,255,.08);
}
.pf-customizer-token-btn .ea-player-portrait {
  width: 48px;
  height: 48px;
}
.pf-customizer-token-btn:hover:not(:disabled) {
  opacity: 1;
  border-color: color-mix(in srgb, currentColor 46%, rgba(255,255,255,.16));
  background: color-mix(in srgb, currentColor 7%, rgba(255,255,255,.025));
}
.pf-customizer-token-btn.is-selected {
  border-radius: 18px;
  background: color-mix(in srgb, currentColor 10%, rgba(255,255,255,.025));
  box-shadow: 0 0 0 2px #090a0d, 0 0 0 3.5px currentColor, 0 0 22px color-mix(in srgb, currentColor 28%, transparent);
}
.pf-customizer-token-btn:disabled {
  filter: grayscale(.75);
  opacity: .16;
}

.pf-lobby-player-avatar.has-token,
.pf-you-avatar,
.hf-player-avatar.has-token,
.game-hud-avatar.has-token {
  overflow: hidden;
}
.pf-lobby-player-avatar .ea-player-portrait,
.pf-you-avatar .ea-player-portrait,
.hf-player-avatar .ea-player-portrait,
.game-hud-avatar .ea-player-portrait {
  width: 100%;
  height: 100%;
}

@media (max-width: 360px) {
  .pf-customizer-token-btn { width: 50px; height: 50px; }
  .pf-customizer-token-btn .ea-player-portrait { width: 43px; height: 43px; }
}

/* ─── Unified interface icon family ───────────────────────────── */
.ea-ui-icon {
  display: block;
  flex: 0 0 auto;
  vector-effect: non-scaling-stroke;
}

.pf-avatar-edit-pencil {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid #111216;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #111216;
  box-shadow: 0 3px 9px rgba(0,0,0,.45);
  pointer-events: none;
}

.pf-emoji-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 20%, rgba(255,255,255,.08));
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 5%, rgba(255,255,255,.025));
  color: var(--gold-bright);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.pf-emoji-btn[data-emoji="fire"] { color: #ff7a36; }
.pf-emoji-btn[data-emoji="heart"] { color: #ff6f91; }
.pf-emoji-btn[data-emoji="laugh"] { color: #72d9ff; }
.pf-emoji-btn[data-emoji="clap"] { color: #e8c765; }
.pf-emoji-btn:hover { background: color-mix(in srgb, currentColor 11%, rgba(255,255,255,.025)); }
.pf-emoji-btn .ea-ui-icon { width: 23px; height: 23px; }

.pf-header-pause-btn .ea-ui-icon { width: 16px; height: 16px; }

.ll-flying-emoji {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  filter: drop-shadow(0 0 12px currentColor);
}
.ll-flying-emoji.ll-emoji-fire { color: #ff6a2a; }
.ll-flying-emoji.ll-emoji-heart { color: #ff6688; }
.ll-flying-emoji.ll-emoji-laugh { color: #66d6ff; }
.ll-flying-emoji.ll-emoji-clap { color: #e8c765; }
.ll-flying-emoji .ea-ui-icon { width: 42px; height: 42px; }

/* ─── Authoritative intermission state ──────────────────────────
   The server freezes timers and mutations; this surface makes that
   state equally unambiguous on the phone. Underlying chrome is inert. */
.pf-pause-overlay {
  position: absolute;
  inset: 0;
  z-index: 30000;
  display: grid;
  grid-template-rows: auto auto auto auto auto auto;
  place-content: center;
  justify-items: center;
  gap: 0;
  min-height: 100%;
  padding: 34px 24px max(30px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 32%, rgba(210,175,98,.12), transparent 31%),
    linear-gradient(180deg, rgba(8,9,11,.995), rgba(13,14,17,.995));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #f2ebe1;
  text-align: center;
  outline: none;
  animation: pfIntermissionIn .24s ease-out both;
}
.pf-pause-overlay::before,
.pf-pause-overlay::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210,175,98,.34), transparent);
}
.pf-pause-overlay::before { top: max(22px, env(safe-area-inset-top)); }
.pf-pause-overlay::after { bottom: max(22px, env(safe-area-inset-bottom)); }
.pf-pause-seal {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(210,175,98,.46);
  border-radius: 50%;
  color: #dfbd69;
  background: radial-gradient(circle, rgba(210,175,98,.11), rgba(210,175,98,.025));
  box-shadow: 0 0 0 7px rgba(210,175,98,.035), 0 18px 52px rgba(0,0,0,.38);
}
.pf-pause-seal .ea-ui-icon { width: 24px; height: 24px; }
.pf-pause-kicker {
  margin: 0 0 10px;
  color: #d2af62;
  font-size: .61rem;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.pf-pause-title {
  max-width: 330px;
  margin: 0;
  color: #f3ece2;
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 2.8rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.06;
  text-shadow: none;
}
.pf-pause-text {
  max-width: 320px;
  margin: 18px 0 0;
  color: #b5ada1;
  font-size: .87rem;
  line-height: 1.58;
}
.pf-pause-assurance {
  margin: 13px 0 0;
  color: #d8c9b2;
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .02em;
}
.pf-pause-overlay-resume {
  width: min(100%, 270px);
  min-height: 50px;
  margin-top: 26px;
}
.pf-pause-brand {
  margin-top: 30px;
  color: #716a61;
  font-family: var(--font-display);
  font-size: .72rem;
  font-style: normal;
  letter-spacing: .08em;
  text-transform: uppercase;
}
@keyframes pfIntermissionIn {
  from { opacity: 0; transform: scale(1.012); }
  to { opacity: 1; transform: scale(1); }
}
@media (max-height: 590px) {
  .pf-pause-overlay { place-content: start center; padding-top: 44px; }
  .pf-pause-seal { width: 48px; height: 48px; margin-bottom: 14px; }
  .pf-pause-title { font-size: 1.9rem; }
  .pf-pause-text { margin-top: 12px; }
  .pf-pause-overlay-resume { margin-top: 18px; }
  .pf-pause-brand { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .pf-pause-overlay { animation: none; }
}

/* ==========================================================================
   Midnight salon — host room, shared game screen, and phone controller
   ========================================================================== */
.hf-root {
  --salon-bg:#090c0f;
  --salon-surface:#11151a;
  --salon-ivory:#f3eee5;
  --salon-gold:#d9b75f;
  --salon-muted:#99938a;
  background:
    radial-gradient(ellipse 54% 48% at 48% 38%,color-mix(in srgb,var(--shell-accent) 6%,transparent),transparent 72%),
    linear-gradient(180deg,#0a0d10,#090c0f);
}
.hf-root::before { opacity:.12; }
.hf-header {
  min-height:72px;
  border-bottom-color:rgba(217,183,95,.16);
  background:rgba(8,11,14,.94);
}
.hf-brand-name,.hf-header-title { color:var(--salon-ivory);font-weight:520; }
.hf-header-subtitle { color:#8e8981; }
.hf-live-status { color:#a49e94; }
.hf-room-summary,.hf-header-chip { border-color:rgba(217,183,95,.18);border-radius:8px;background:rgba(255,255,255,.018); }
.hf-room-code { color:#e1c06e; }
.hf-header-chip-text { color:#bcb4a8; }
.hf-stage-ambient i { opacity:.62; }
.hf-stage-status { color:#918b82; }
.hf-stage-status > span:first-child { color:#d0c5b4; }
.hf-eyebrow { color:var(--shell-accent); }
.hf-dock { border-top-color:rgba(217,183,95,.15);background:rgba(8,11,14,.96); }
.hf-control-bar { min-height:68px;border-top-color:rgba(217,183,95,.14); }
.hf-dock-status { color:#aaa39a;font-size:.78rem; }
.hf-btn-primary,.hf-btn-ghost { min-height:46px;border-radius:8px; }
.hf-btn-primary { border-color:#e0bd64;background:linear-gradient(180deg,#e2c069,#bd9137);box-shadow:0 10px 26px rgba(189,145,55,.16); }

/* Active games use a stable right-side roster on wide shared screens. */
@media (min-width:1001px) {
  .hf-root:not(.hf-lounge) .hf-stage { padding-right:clamp(292px,23vw,340px); }
  .hf-root:not(.hf-lounge) .hf-player-rail {
    position:fixed;
    z-index:4;
    top:72px;
    right:0;
    bottom:68px;
    width:clamp(250px,21vw,300px);
    padding:22px 18px;
    overflow-y:auto;
    border:0;
    border-left:1px solid rgba(217,183,95,.16);
    background:rgba(12,16,20,.9);
    backdrop-filter:blur(18px);
  }
  .hf-root:not(.hf-lounge) .hf-player-rail-head { min-width:0;margin:0 0 14px; }
  .hf-root:not(.hf-lounge) .hf-player-rail-head span:last-child { display:none; }
  .hf-root:not(.hf-lounge) .hf-ready-progress { margin-bottom:14px; }
  .hf-root:not(.hf-lounge) .hf-roster { min-width:0;display:grid;gap:9px;justify-content:stretch; }
  .hf-root:not(.hf-lounge) .hf-player { width:100%;max-width:none;min-width:0;min-height:52px;border-radius:8px;background:rgba(255,255,255,.018); }
  .hf-root:not(.hf-lounge) .hf-open-seat { display:none; }
  .hf-root:not(.hf-lounge) .hf-control-bar { padding-right:calc(clamp(250px,21vw,300px) + 20px); }
}

/* Host room: three deliberate rails and one obvious action. */
.hf-root.hf-lounge { grid-template-rows:72px minmax(0,1fr) 68px; }
.hf-root.hf-lounge .hf-header { grid-row:1; }
.hf-root.hf-lounge .hf-stage {
  grid-row:2;
  justify-content:center;
  padding:24px clamp(20px,3vw,46px);
}
.hf-root.hf-lounge .hf-stage:has(.ll2-invite-guide) { justify-content:flex-start; }
.hf-root.hf-lounge .ll2-invite-guide {
  width:min(1420px,100%);
  flex:0 0 auto;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px 20px;
  margin:0 0 14px;
  padding:16px 20px;
  border:0;
  border-block:1px solid rgba(217,183,95,.16);
  border-radius:0;
  background:rgba(14,18,22,.76);
  box-shadow:none;
}
.hf-root.hf-lounge .ll2-invite-copy h2 { margin:3px 0 5px;font-size:1.65rem; }
.hf-root.hf-lounge .ll2-invite-copy p { font-size:.68rem; }
.hf-root.hf-lounge .ll2-invite-scan {
  grid-column:1;
  min-height:128px;
  gap:16px;
  padding:10px;
  border-color:rgba(217,183,95,.12);
  border-radius:8px;
}
.hf-root.hf-lounge .ll2-invite-qr { width:112px;height:112px;flex-basis:112px;border-width:5px;border-radius:8px; }
.hf-root.hf-lounge .ll2-invite-scan-copy > strong { font-size:1.25rem; }
.hf-root.hf-lounge .ll2-invite-actions { grid-column:2;align-self:center;min-width:210px; }
.hf-root.hf-lounge .ll2-invite-actions .hf-room-share-btn { min-height:48px; }
.hf-root.hf-lounge .ll2-invite-guide .hf-room-share-status { grid-column:2; }
.hf-root.hf-lounge .hf-dock { display:contents; }
.hf-root.hf-lounge .hf-player-rail { display:none; }
.hf-root.hf-lounge .hf-control-bar { grid-row:3; }
.hf-root.hf-lounge .ll2-lobby {
  width:min(1420px,100%);
  height:min(650px,100%);
  max-height:100%;
  display:grid;
  grid-template-columns:minmax(280px,.82fr) minmax(460px,1.48fr) minmax(220px,.68fr);
  gap:0;
  align-items:stretch;
  border-block:1px solid rgba(217,183,95,.15);
}
.hf-root.hf-lounge .ll2-game-library,
.hf-root.hf-lounge .ll2-selected-game,
.hf-root.hf-lounge .ll2-room-roster {
  min-height:0;
  max-height:100%;
  border:0;
  border-radius:0;
  background:rgba(14,18,22,.78);
  box-shadow:none;
}
.hf-root.hf-lounge .ll2-game-library { height:auto;padding:24px 20px;border-right:1px solid rgba(217,183,95,.14); }
.hf-root.hf-lounge .ll2-selected-game { min-height:0;padding:30px clamp(24px,3vw,44px); }
.hf-root.hf-lounge .ll2-room-roster { padding:24px 18px;border-left:1px solid rgba(217,183,95,.14); }
.hf-root.hf-lounge .ll2-section-head { margin-bottom:20px;align-items:flex-start; }
.hf-root.hf-lounge .ll2-section-head h2,
.hf-root.hf-lounge .ll2-selected-game h2,
.hf-root.hf-lounge .ll2-room-roster h2 { color:var(--salon-ivory);font-size:clamp(1.45rem,2vw,2rem);font-weight:500; }
.hf-root.hf-lounge .ll2-player-count { display:none; }
.hf-root.hf-lounge .ll2-game-list { gap:7px;padding-right:6px; }
.hf-root.hf-lounge .ll2-game-group { gap:7px; }
.hf-root.hf-lounge .ll2-game-group h3 { display:none; }
.hf-root.hf-lounge .ll-game-box {
  min-height:67px;
  grid-template-columns:48px minmax(0,1fr) auto;
  gap:12px;
  padding:7px 8px;
  border:1px solid transparent;
  border-radius:8px;
}
.hf-root.hf-lounge .ll-game-box:hover:not(:disabled) { transform:none;border-color:rgba(255,255,255,.09);background:rgba(255,255,255,.025); }
.hf-root.hf-lounge .ll-game-box.is-selected { border-color:rgba(217,183,95,.42);background:rgba(217,183,95,.075); }
.ll2-game-thumb { width:48px;height:52px;border-radius:6px;background-position:center;background-size:cover;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); }
.hf-root.hf-lounge .ll2-game-copy strong { color:#ece5da;font-size:.8rem; }
.hf-root.hf-lounge .ll2-game-copy small { color:#817c75;font-size:.58rem; }
.hf-root.hf-lounge .ll2-game-meta { font-size:.5rem; }
.hf-root.hf-lounge .ll2-selected-head { align-items:flex-start; }
.hf-root.hf-lounge .ll2-readiness { margin-top:2px;border-radius:6px; }
.hf-root.hf-lounge .ll2-selected-summary { max-width:62ch;margin:15px 0 28px;color:#9b958c;font-size:.82rem; }
.hf-root.hf-lounge .ll2-settings-grid { grid-template-columns:minmax(0,1.6fr) minmax(180px,.72fr);gap:24px; }
.hf-root.hf-lounge .ll2-setting-group--choice-wide { grid-column:auto; }
.hf-root.hf-lounge .ll-settings-label { margin-bottom:4px;color:#aaa297;font-size:.62rem; }
.hf-root.hf-lounge .ll-settings-btns { gap:8px; }
.hf-root.hf-lounge .ll-settings-btn { min-height:50px;padding:8px 12px;border-radius:8px;font-size:.7rem; }
.hf-root.hf-lounge .ll-settings-btn:disabled { position:relative;color:#696660;opacity:1;background:rgba(255,255,255,.012); }
.hf-root.hf-lounge .ll-settings-btn:disabled::after { content:"Locked";display:block;margin-top:3px;color:#7e7161;font-size:.45rem;letter-spacing:.08em;text-transform:uppercase; }
.hf-root.hf-lounge .ll-stepper { grid-template-columns:50px minmax(72px,1fr) 50px !important;gap:8px !important; }
.hf-root.hf-lounge .ll-stepper-btn { width:50px !important;height:50px !important;border-radius:8px !important; }
.hf-root.hf-lounge .ll-stepper-val { min-height:50px;font-size:1rem !important; }
.hf-root.hf-lounge .ll-room-settings { margin-top:auto;padding-top:22px; }
.hf-root.hf-lounge .ll-room-settings > summary { min-height:44px;color:#b9b1a6; }
.ll2-room-roster { min-width:0;display:flex;flex-direction:column; }
.ll2-room-roster-head { display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:20px; }
.ll2-room-roster-head h2 { margin:3px 0 0; }
.ll2-room-roster-head > strong { width:34px;height:34px;display:grid;place-items:center;border:1px solid rgba(217,183,95,.3);border-radius:50%;color:#dfc26f;font-size:.72rem; }
.ll2-room-players { display:grid;gap:6px;overflow-y:auto; }
.ll2-room-player { min-height:54px;display:grid;grid-template-columns:36px minmax(0,1fr) 8px;align-items:center;gap:10px;padding:7px 4px;border-bottom:1px solid rgba(255,255,255,.055); }
.ll2-room-player-token { width:34px;height:34px;display:grid;place-items:center;border:1px solid currentColor;border-radius:50%;background:#101419;font-size:.62rem;font-weight:800; }
.ll2-room-player > span:nth-child(2) { min-width:0;display:grid;gap:2px; }
.ll2-room-player strong { overflow:hidden;color:#e4ddd2;font-size:.74rem;text-overflow:ellipsis;white-space:nowrap; }
.ll2-room-player small { color:#7e7972;font-size:.55rem; }
.ll2-room-player i { width:7px;height:7px;border-radius:50%;background:#68c895;box-shadow:0 0 8px rgba(104,200,149,.5); }
.ll2-room-player i.is-watching { background:#7c7a76;box-shadow:none; }
.ll2-room-empty { margin:12px 0;color:#7e7972;font-size:.68rem;line-height:1.55; }
.ll2-room-roster-note { margin:auto 0 0;padding-top:16px;border-top:1px solid rgba(255,255,255,.055);color:#77736d;font-size:.6rem;line-height:1.5; }

/* Phone room: obvious identity, real roster, and reactions with labels. */
.pf-root {
  --salon-ivory:#f3eee5;
  --salon-gold:#d9b75f;
  background:radial-gradient(ellipse 120% 60% at 50% 0%,color-mix(in srgb,var(--phone-accent) 6%,transparent),transparent 68%),#090c0f;
}
.pf-root::before { opacity:.08; }
.pf-header { min-height:68px;padding:11px 16px;border-bottom-color:rgba(217,183,95,.15);background:rgba(8,11,14,.96); }
.pf-header-brand { display:flex; }
.pf-header-logo { display:block;width:22px;height:22px; }
.pf-header-brand span { color:var(--salon-ivory);font-family:var(--font-display);font-size:.78rem;letter-spacing:.05em; }
.pf-header-title { color:var(--salon-ivory);font-size:1rem;font-weight:520; }
.pf-root[data-game-theme="ember-and-ace"] .pf-header-title { display:none; }
.pf-header-phase { color:#8f8981; }
.pf-you-name { color:#b4ada3; }
.pf-you-avatar { width:34px;height:34px; }
.pf-stage { padding:clamp(28px,5vh,44px) 20px 28px; }
.pf-root[data-game-theme="ember-and-ace"] .pf-stage { padding-top:34px; }
.pf-prompt { color:var(--salon-ivory);font-size:clamp(2.4rem,11vw,3.35rem);line-height:.98;font-weight:500;letter-spacing:-.035em; }
.pf-prompt em { color:#e1c06e;font-style:italic; }
.pf-stage-sub { margin-top:14px;color:#969087;font-size:.76rem; }
.pf-stage-sub p { margin:0; }
.pf-body { margin-top:28px; }
.pf-lobby-container {
  gap:0;
  padding:18px 0 0;
  border-top:1px solid rgba(217,183,95,.16);
  border-bottom:1px solid rgba(217,183,95,.12);
}
.pf-lobby-roster-head { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px; }
.pf-lobby-roster-head h2 { margin:0;color:#eee7dc;font-family:var(--font-display);font-size:1.12rem;font-weight:520; }
.pf-lobby-roster-head span { color:#817c75;font-size:.6rem;letter-spacing:.08em;text-transform:uppercase; }
.pf-lobby-roster { gap:0;margin:0; }
.pf-lobby-player {
  min-height:52px;
  padding:8px 2px;
  gap:11px;
  border:0;
  border-top:1px solid rgba(255,255,255,.05);
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.pf-lobby-player.is-me { border-color:rgba(217,183,95,.14);background:transparent;box-shadow:none; }
.pf-lobby-player-avatar { width:34px;height:34px; }
.pf-lobby-player-name { color:#ded7cd;font-size:.82rem; }
.pf-lobby-player-badge { border-radius:4px;font-size:.52rem; }
.pf-lobby-night-score { color:#8a857d;font-size:.6rem;white-space:nowrap; }
.pf-reactions { margin-top:30px;text-align:center; }
.pf-reactions-heading { margin:0 0 13px;color:#7f7a73;font-size:.56rem;font-weight:800;letter-spacing:.14em;text-transform:uppercase; }
.pf-emoji-cannon {
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
}
.pf-emoji-btn {
  width:auto;
  height:auto;
  min-height:72px;
  padding:0;
  display:grid;
  place-items:center;
  align-content:start;
  gap:7px;
  border:0;
  border-radius:8px;
  background:transparent;
  box-shadow:none;
  transition:transform .15s ease;
}
.pf-emoji-icon { width:46px;height:46px;display:grid;place-items:center;border:1px solid color-mix(in srgb,currentColor 30%,rgba(255,255,255,.08));border-radius:50%;background:color-mix(in srgb,currentColor 5%,rgba(255,255,255,.015)); }
.pf-emoji-label { color:#928d85;font-size:.56rem;font-weight:720;letter-spacing:.02em; }
.pf-emoji-btn:hover { background:transparent; }
.pf-emoji-btn:active,.pf-emoji-btn.is-sent { transform:translateY(-2px); }
.pf-emoji-btn.is-sent .pf-emoji-icon { background:color-mix(in srgb,currentColor 15%,rgba(255,255,255,.02));box-shadow:0 0 20px color-mix(in srgb,currentColor 16%,transparent); }
.pf-reaction-feedback { min-height:18px;margin:9px 0 0;color:#bea967;font-size:.58rem; }
.pf-dock { border-top-color:rgba(217,183,95,.15);background:rgba(8,11,14,.97); }
.pf-dock-status { color:#858078; }
.pf-btn-primary,.pf-btn-ghost { border-radius:8px; }

@media (max-width:1100px) {
  .hf-root.hf-lounge .ll2-lobby { grid-template-columns:minmax(250px,.8fr) minmax(420px,1.35fr); }
  .hf-root.hf-lounge .ll2-room-roster { display:none; }
}
@media (max-width:780px) {
  .hf-root.hf-lounge { grid-template-rows:64px minmax(0,1fr) auto; }
  .hf-root.hf-lounge .ll2-lobby { display:block;height:auto;border-block:0; }
  .hf-root.hf-lounge .ll2-game-library { height:auto;max-height:38vh;border-right:0;border-bottom:1px solid rgba(217,183,95,.14); }
  .hf-root.hf-lounge .ll2-selected-game { padding:22px 18px; }
  .hf-root.hf-lounge .ll2-settings-grid { grid-template-columns:1fr; }
  .hf-root.hf-lounge .ll2-game-thumb { width:42px;height:44px; }
  .hf-root.hf-lounge .ll-game-box { grid-template-columns:42px minmax(0,1fr) auto; }
}
@media (prefers-reduced-motion:reduce) {
  .pf-emoji-btn { transition:none; }
}

/* ── src/styles/multiplayer.css ── */
/* Shared Party Lounge and multiplayer coordinator surfaces. */
.mp-stage{display:flex;flex-direction:column;align-items:center;
    padding:20px 16px 28px;position:relative;min-height:360px;
    font-family:var(--font-ui);}
  .mp-headline{font-family:var(--font-display);font-size:1.2rem;
    font-style:italic;color:#ece6dc;text-align:center;margin:0 0 6px;}
  .mp-sub{font-size:0.72rem;color:#9a9180;text-align:center;margin:0 0 16px;
    text-transform:uppercase;letter-spacing:0.1em;}

  /* Lobby — host */
  .mp-lobby-code-wrap{display:flex;gap:24px;align-items:center;
    justify-content:center;flex-wrap:wrap;margin:16px 0;}
  .mp-code-block{display:flex;flex-direction:column;align-items:center;gap:6px;}
  .mp-code{font-size:3.2rem;font-weight:900;letter-spacing:0.2em;
    color:#00f5ff;text-shadow:0 0 28px rgba(0,245,255,0.35);line-height:1;}
  .mp-code-label{font-size:0.62rem;color:#6e685e;text-transform:uppercase;
    letter-spacing:0.14em;}
  .mp-qr{border-radius:10px;overflow:hidden;opacity:0.92;}
  .mp-join-hint{font-size:0.7rem;color:#6e685e;text-align:center;margin-top:4px;}

  /* Player pill list */
  .mp-players{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;
    margin:12px 0;max-width:440px;}
  .mp-player-pill{padding:8px 14px;border-radius:20px;border:1px solid;
    font-size:0.82rem;font-weight:700;display:flex;align-items:center;gap:6px;
    transition:all 0.3s;animation:mp-pop-in 0.25s ease-out;}
  @keyframes mp-pop-in{from{opacity:0;transform:scale(0.7);}to{opacity:1;transform:scale(1);}}
  .mp-player-check{opacity:0;font-size:0.9em;transition:opacity 0.2s;}
  .mp-player-pill.voted .mp-player-check{opacity:1;}
  .mp-waiting{font-size:0.75rem;color:#6e685e;text-align:center;font-style:italic;margin:8px 0;}

  /* Progress bar */
  .mp-progress{width:100%;max-width:380px;height:4px;border-radius:2px;
    background:rgba(255,255,255,0.06);margin:8px 0;overflow:hidden;}
  .mp-progress-fill{height:100%;border-radius:2px;background:#00f5ff;
    transition:width 0.4s ease-out;}
  .mp-progress-label{font-size:0.65rem;color:#6e685e;text-align:center;margin-top:4px;}

  /* Input */
  .mp-input{
    padding: 14px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px; /* Heavily blurred glassmorphic pill */
    background: rgba(255, 255, 255, 0.03);
    color: #ece6dc;
    font-size: 1.15rem;
    font-family: var(--font-ui);
    font-weight: 500;
    width: 100%;
    max-width: 280px;
    text-align: center;
    outline: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
      0 4px 30px rgba(0, 0, 0, 0.4),
      inset 0 1px 1px rgba(255, 255, 255, 0.1),
      inset 0 -1px 1px rgba(0, 0, 0, 0.2);
  }
  .mp-input:focus{
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 
      0 0 25px rgba(255, 255, 255, 0.1),
      0 4px 30px rgba(0, 0, 0, 0.5),
      inset 0 1px 1px rgba(255, 255, 255, 0.2);
  }

  /* Waiting (phone, after submit) */
  .mp-phone-waiting{
    font-family:var(--font-display);font-size:1.3rem;font-style:italic;
    color:#e8b84b;text-align:center;margin:24px 0;
  }
  .mp-phone-score{font-size:0.75rem;color:#d4af37;border:1px solid rgba(212,175,55,0.2);
    border-radius:16px;padding:4px 14px;margin-top:12px;display:inline-block;}
  .mp-phone-prompt{
    font-family:var(--font-display);font-style:italic;
    font-size:1.2rem;color:#ece6dc;text-align:center;margin:8px 0 20px;
    line-height:1.4;padding:0 8px;
  }

  /* Actions */
  .mp-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:16px 0;}
  .mp-btn{min-width:120px;}
  .mp-hint{color:#6e685e;font-size:0.62rem;text-transform:uppercase;
    letter-spacing:0.1em;text-align:center;margin-top:4px;}

  /* Error */
  .mp-error{color:#ff6b7a;font-size:0.8rem;text-align:center;margin-top:8px;
    min-height:1.2em;}

  /* Customizer styles for Host name entry */
  .pf-customizer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-top: 14px;
    max-width: 320px;
  }
  .pf-customizer-preview-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
  }
  .pf-customizer-preview {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 2.5px solid var(--c, #e8b84b);
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, rgba(31, 31, 38, 0.4) 0%, rgba(10, 10, 12, 0.95) 100%);
    color: var(--c, #e8b84b);
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-style: italic;
    font-weight: 700;
    box-shadow: 
      0 0 4px var(--c, #e8b84b),
      0 0 12px var(--c, #e8b84b),
      0 0 30px var(--c, #e8b84b),
      0 10px 30px rgba(0, 0, 0, 0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .pf-customizer-preview.has-token {
    font-style: normal;
  }
  .pf-customizer-preview .ea-player-portrait {
    width: 86px;
    height: 86px;
  }
  .pf-customizer-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .pf-customizer-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9a9180;
    margin-bottom: 2px;
  }
  .pf-customizer-grid {
    display: grid;
    gap: 12px;
    width: 100%;
  }
  .pf-customizer-grid--colors {
    grid-template-columns: repeat(5, 1fr);
    justify-items: center;
  }
  .pf-customizer-grid--tokens {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
    padding: 2px;
    gap: 10px;
    justify-items: center;
  }
  .pf-customizer-color-btn {
    width: 36px;
    height: 36px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    justify-self: center;
  }
  .pf-customizer-color-btn:hover {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.4);
  }
  .pf-customizer-color-btn.is-selected {
    border: 2px solid #ffffff;
    box-shadow: 
      0 0 4px var(--c),
      0 0 12px var(--c),
      0 0 30px var(--c),
      inset 0 2px 4px rgba(0,0,0,0.3);
    transform: scale(1.2);
  }
  .pf-customizer-token-btn {
    height: 56px;
    width: 56px;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.72;
    justify-self: center;
    color: var(--muted);
  }
  .pf-customizer-token-btn .ea-player-portrait {
    width: 48px;
    height: 48px;
  }
  .pf-customizer-token-btn:hover:not(:disabled) {
    opacity: 1;
    border-color: color-mix(in srgb, currentColor 46%, rgba(255,255,255,.16));
    background: color-mix(in srgb, currentColor 7%, rgba(255,255,255,.025));
    transform: translateY(-1px);
  }
  .pf-customizer-token-btn.is-selected {
    opacity: 1;
    border-radius: 18px;
    border: 1px solid currentColor;
    background: color-mix(in srgb, currentColor 10%, rgba(255,255,255,.025));
    box-shadow: 0 0 0 2px #090a0d, 0 0 0 3.5px currentColor, 0 0 22px color-mix(in srgb, currentColor 28%, transparent);
    transform: none;
  }
  .pf-customizer-token-btn:disabled {
    opacity: 0.12;
    cursor: not-allowed;
    background: transparent;
    border-color: transparent;
  }

  /* --- TV Intermission Pause Overlay --- */
  .ll-pause-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 8, 11, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 100000;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
    justify-items: center;
    padding: 60px 80px;
    color: #ece6dc;
    font-family: var(--font-ui);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
  }

  .ll-pause-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  .ll-pause-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    max-width: 480px;
  }

  .ll-pause-badge {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gold, #d4af37);
    border: 1px solid rgba(232, 184, 75, 0.25);
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    background: rgba(232, 184, 75, 0.05);
  }

  .ll-pause-header {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 3.8rem;
    color: #ece6dc;
    line-height: 1.1;
    margin: 0 0 16px;
  }

  .ll-pause-header em {
    font-style: italic;
    color: var(--gold, #d4af37);
    text-shadow: 0 0 30px rgba(232, 184, 75, 0.25);
  }

  .ll-pause-desc {
    font-family: var(--font-ui);
    font-size: 1.1rem;
    color: #9a9180;
    line-height: 1.6;
    margin-bottom: 30px;
  }

  .ll-pause-btn {
    padding: 14px 32px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(180deg, var(--gold-bright, #fff) 0%, var(--gold, #d4af37) 100%);
    color: #09080b;
    border: 1px solid var(--gold-deep, #aa841c);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3), 0 0 20px rgba(232, 184, 75, 0.2);
  }

  .ll-pause-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4), 0 0 25px rgba(232, 184, 75, 0.35);
  }

  .ll-pause-btn:active {
    transform: translateY(0);
  }

  .ll-pause-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
  }

  .ll-pause-standings-card {
    width: 100%;
    max-width: 380px;
    background: linear-gradient(155deg, rgba(30, 30, 42, 0.4) 0%, rgba(15, 15, 20, 0.8) 100%);
    border: 1px solid rgba(232, 184, 75, 0.12);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  }

  .ll-pause-standings-title {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--gold, #d4af37);
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(232, 184, 75, 0.15);
    padding-bottom: 8px;
    text-align: center;
  }

  .ll-pause-roster {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 6px;
  }

  .ll-pause-player-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
  }

  .ll-pause-rank {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.95rem;
    color: #9a9180;
    width: 20px;
  }

  .ll-pause-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1.5px solid var(--seat-color);
    color: var(--seat-color);
    background: radial-gradient(circle at center, #1b1b22 0%, #0d0d0f 100%);
  }

  .ll-pause-name {
    font-size: 0.85rem;
    font-weight: 600;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ll-pause-score {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold, #d4af37);
  }

  .ll-pause-join-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(232, 184, 75, 0.15);
    border-radius: 16px;
    padding: 16px 24px;
    max-width: 380px;
  }

  .ll-pause-qr {
    width: 90px;
    height: 90px;
    padding: 4px;
    background: white;
    border-radius: 8px;
  }

  .ll-pause-join-text {
    display: flex;
    flex-direction: column;
  }

  .ll-pause-join-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #9a9180;
    letter-spacing: 0.08em;
  }

  .ll-pause-join-code {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 2.2rem;
    color: var(--gold, #d4af37);
    font-weight: 600;
    line-height: 1.1;
    margin: 4px 0;
    letter-spacing: 0.05em;
  }

  .ll-pause-join-hint {
    font-size: 0.7rem;
    color: #9a9180;
  }

/* ─── Room connection recovery ─────────────────────────────── */
.ea-connection-notice {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 12000;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(560px, calc(100vw - 28px));
  padding: 11px 13px;
  border: 1px solid rgba(216, 179, 96, 0.34);
  border-radius: 14px;
  background: rgba(15, 15, 21, 0.96);
  color: var(--paper, #f5efe2);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1.4;
}
.ea-connection-notice.is-player {
  bottom: calc(118px + env(safe-area-inset-bottom));
}
.ea-connection-notice.is-offline,
.ea-connection-notice.is-stalled {
  border-color: rgba(203, 108, 94, 0.5);
}
.ea-connection-notice.is-recovered {
  border-color: rgba(116, 176, 132, 0.5);
}
.ea-connection-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold, #d8b360);
  box-shadow: 0 0 0 4px rgba(216, 179, 96, 0.12);
}
.is-offline .ea-connection-dot,
.is-stalled .ea-connection-dot {
  background: #cb6c5e;
  box-shadow: 0 0 0 4px rgba(203, 108, 94, 0.12);
}
.is-recovered .ea-connection-dot {
  background: #74b084;
  box-shadow: 0 0 0 4px rgba(116, 176, 132, 0.12);
}
.ea-connection-copy { flex: 1 1 auto; min-width: 0; }
.ea-connection-copy strong { color: inherit; }
.ea-connection-retry {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(216, 179, 96, 0.48);
  border-radius: 10px;
  background: rgba(216, 179, 96, 0.1);
  color: var(--gold, #d8b360);
  font: 700 0.72rem/1 var(--font-ui);
  cursor: pointer;
}
.ea-connection-retry:disabled { opacity: 0.65; cursor: wait; }
@media (max-width: 520px) {
  .ea-connection-notice {
    align-items: flex-start;
    bottom: max(10px, env(safe-area-inset-bottom));
    padding: 11px;
  }
  .ea-connection-notice.is-player {
    bottom: calc(122px + env(safe-area-inset-bottom));
  }
  .ea-connection-retry { min-height: 44px; }
}

/* ── src/styles/player-components.css ── */
/* Shared player drawer and Pass & Play roster surfaces. */

/* Collapsed chip — a tight pill showing dots + count + plus */
    .pd-drawer { display: inline-block; font-family: var(--font-ui); }
    .pd-bar {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 8px 14px;
      background: linear-gradient(180deg, rgba(232,184,75,0.08) 0%, rgba(232,184,75,0.02) 100%);
      border: 1px solid var(--border-gold);
      border-radius: 999px;
      color: var(--text);
      font-size: 0.78rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s, transform 0.15s;
    }
    .pd-bar:hover { border-color: var(--gold); transform: translateY(-1px); }
    .pd-bar-dots { display: inline-flex; gap: 5px; align-items: center; }
    .pd-bar-token {
      display: inline-grid; place-items: center;
      width: 18px; height: 18px;
      line-height: 1;
    }
    .pd-dot {
      display: inline-block; width: 8px; height: 8px; border-radius: 50%;
      box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
    }
    .pd-token-svg {
      display: block;
    }
    .pd-bar-label {
      font-family: var(--font-ui);
      font-size: 0.58rem; font-weight: 700;
      letter-spacing: 0.16em; text-transform: uppercase;
      color: var(--gold);
    }
    .pd-bar-n {
      font-family: var(--font-display);
      font-style: italic; font-weight: 600;
      font-size: 1rem; color: var(--gold);
      font-variant-numeric: tabular-nums;
    }
    .pd-bar-plus {
      display: inline-grid; place-items: center;
      width: 20px; height: 20px;
      border-radius: 50%;
      background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
      color: var(--ink);
      font-size: 0.88rem; font-weight: 700; line-height: 1;
      box-shadow: 0 0 10px rgba(232,184,75,0.25);
    }

    /* Popover — shown when the chip is tapped */
    .pd-pop-overlay {
      position: fixed; inset: 0; z-index: 1200;
      background: rgba(9,8,11,0.72);
      display: flex; align-items: flex-end; justify-content: center;
      backdrop-filter: blur(8px);
      animation: pdFadeIn 0.2s ease-out;
    }
    @keyframes pdFadeIn { from { opacity: 0; } to { opacity: 1; } }
    .pd-pop {
      width: 100%; max-width: 440px;
      background: linear-gradient(160deg, var(--surface-high) 0%, var(--surface-mid) 100%);
      border: 1px solid var(--border-gold);
      border-bottom: none;
      border-radius: 18px 18px 0 0;
      padding: 24px 22px 20px;
      box-shadow: 0 -20px 60px rgba(0,0,0,0.5);
      transform: translateY(0);
      animation: pdSlideUp 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.1);
      max-height: 80vh;
      display: flex; flex-direction: column;
    }
    @keyframes pdSlideUp { from { transform: translateY(20px); opacity: 0.5; } to { transform: translateY(0); opacity: 1; } }
    @media (min-width: 640px) {
      .pd-pop-overlay { align-items: center; }
      .pd-pop {
        border-radius: 18px;
        border-bottom: 1px solid var(--border-gold);
        padding: 28px 26px 24px;
      }
    }

    .pd-pop-head {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 14px;
    }
    .pd-pop-title {
      font-family: var(--font-display);
      font-style: italic; font-weight: 600;
      font-size: 1.4rem; color: var(--gold);
      margin: 0; line-height: 1;
    }
    .pd-pop-close {
      width: 32px; height: 32px; border-radius: 50%;
      background: none; border: 1px solid var(--border-gold);
      color: var(--muted); font-size: 1rem; cursor: pointer;
      display: grid; place-items: center;
      transition: color 0.2s, border-color 0.2s;
    }
    .pd-pop-close:hover { color: var(--text); border-color: var(--gold); }

    /* Input row — single line: name input + add button */
    .pd-input-row {
      display: flex; gap: 8px; margin-bottom: 12px;
    }
    .pd-input {
      flex: 1; padding: 12px 16px;
      background: rgba(9,8,11,0.6);
      border: 1px solid var(--border-gold);
      border-radius: 10px;
      color: var(--text);
      font-family: var(--font-ui);
      font-size: 0.92rem;
      outline: none;
      transition: border-color 0.2s;
    }
    .pd-input::placeholder { color: var(--dim); }
    .pd-input:focus { border-color: var(--gold); }
    .pd-add-btn {
      padding: 0 18px;
      background: linear-gradient(180deg, #fcecae 0%, var(--gold-bright) 35%, var(--gold) 100%);
      color: var(--gold-ink);
      border: 1px solid var(--gold-deep);
      border-radius: 8px;
      font-size: 1.1rem; font-weight: 800;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 20px rgba(232,184,75,0.18);
      transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
      min-width: 48px;
    }
    .pd-add-btn:hover:not(:disabled) {
      background: linear-gradient(180deg, #fff3c4 0%, #f7d668 50%, var(--gold) 100%);
      transform: translateY(-1.5px);
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35), 0 0 24px rgba(232,184,75,0.3);
    }
    .pd-add-btn:active:not(:disabled) {
      transform: translateY(0) scale(0.98);
    }
    .pd-add-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

    /* Player pills — compact tags in a flex-wrap row */
    .pd-list {
      display: flex; flex-wrap: wrap; gap: 10px;
      margin-bottom: 14px;
      overflow-y: auto;
      min-height: 48px;
      max-height: 44vh;
      align-content: flex-start;
    }
    /* Wrapper lets the token-picker grid sit directly under each pill */
    .pd-tag-wrap {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
    }
    .pd-tag {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 6px 8px 6px 6px;
      background: color-mix(in srgb, var(--pc, var(--gold)) 14%, transparent);
      border: 1px solid color-mix(in srgb, var(--pc, var(--gold)) 50%, transparent);
      border-radius: 999px;
      color: var(--text);
      font-size: 0.82rem;
      font-weight: 500;
      animation: pdPop 0.22s ease-out;
    }
    .pd-tag.is-picking {
      border-color: var(--pc, var(--gold));
      box-shadow: 0 0 14px color-mix(in srgb, var(--pc, var(--gold)) 30%, transparent);
    }
    @keyframes pdPop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
    .pd-tag-token {
      display: grid; place-items: center;
      width: 28px; height: 28px;
      border-radius: 50%;
      background: rgba(9, 8, 11, 0.55);
      border: 1px solid color-mix(in srgb, var(--pc, var(--gold)) 40%, transparent);
      cursor: pointer;
      transition: transform 0.15s, border-color 0.15s, background 0.15s;
      padding: 0;
    }
    .pd-tag-token:hover {
      transform: scale(1.08);
      border-color: var(--pc, var(--gold));
      background: rgba(9, 8, 11, 0.75);
    }
    .pd-tag-token .pd-token-svg { width: 18px; height: 18px; }
    .pd-tag-name {
      padding: 0 2px;
      letter-spacing: 0.01em;
    }
    .pd-tag .pd-dot { width: 8px; height: 8px; }
    .pd-x {
      display: grid; place-items: center;
      width: 20px; height: 20px; border-radius: 50%;
      background: rgba(255,255,255,0.06);
      color: var(--muted);
      border: none; cursor: pointer;
      font-size: 0.96rem; line-height: 1;
      padding: 0;
      transition: background 0.15s, color 0.15s;
    }
    .pd-x:hover { background: rgba(255,255,255,0.16); color: var(--text); }

    /* Inline token picker — 4-column grid that unfolds below a pill */
    .pd-token-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 6px;
      padding: 10px;
      background: linear-gradient(180deg, rgba(9,8,11,0.75) 0%, rgba(9,8,11,0.9) 100%);
      border: 1px solid var(--border-gold);
      border-radius: 12px;
      animation: pdFadeIn 0.18s ease-out;
      max-width: 280px;
    }
    .pd-token-option {
      display: grid; place-items: center;
      width: 46px; height: 46px;
      background: rgba(255,255,255,0.02);
      border: 1px solid transparent;
      border-radius: 10px;
      cursor: pointer;
      padding: 0;
      transition: background 0.15s, border-color 0.15s, transform 0.15s, color 0.15s;
    }
    .pd-token-option:hover:not(.is-taken) {
      background: rgba(232,184,75,0.08);
      border-color: var(--border-gold);
      transform: translateY(-1px);
    }
    .pd-token-option.is-current {
      background: linear-gradient(180deg, rgba(232,184,75,0.18) 0%, rgba(232,184,75,0.06) 100%);
      border-color: var(--gold);
      box-shadow: 0 0 14px rgba(232,184,75,0.2);
    }
    .pd-token-option.is-taken {
      opacity: 0.45;
    }
    .pd-token-option .pd-token-svg { width: 38px; height: 38px; }

    /* Hint + done footer */
    .pd-foot {
      display: flex; align-items: center; justify-content: space-between;
      gap: 12px;
      padding-top: 14px;
      border-top: 1px solid var(--border-gold);
    }
    .pd-hint {
      margin: 0;
      font-family: var(--font-display);
      font-style: italic;
      font-size: 0.96rem;
      color: var(--muted);
      letter-spacing: 0.01em;
    }
    .pd-hint.is-ready { color: var(--gold); }
    .pd-done {
      padding: 11px 24px;
      background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 100%);
      color: var(--ink);
      border: 1px solid var(--gold-deep);
      border-radius: 8px;
      font-family: var(--font-ui);
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      cursor: pointer;
      box-shadow: 0 2px 0 var(--gold-deep), 0 0 20px rgba(232,184,75,0.15);
      transition: transform 0.15s, box-shadow 0.2s;
    }
    .pd-done:hover:not(:disabled) {
      transform: translateY(-1px);
      box-shadow: 0 3px 0 var(--gold-deep), 0 0 28px rgba(232,184,75,0.22);
    }
    .pd-done:disabled {
      background: var(--surface-high); color: var(--dim);
      box-shadow: none; cursor: not-allowed;
      border-color: var(--border-gold);
    }

    /* Error shake — used on duplicate name entry */
    @keyframes pdShake {
      0%, 100% { transform: translateX(0); border-color: var(--border-gold); }
      20%, 60% { transform: translateX(-5px); border-color: #e74c3c; }
      40%, 80% { transform: translateX(5px); border-color: #e74c3c; }
    }
    .pd-input--shake { animation: pdShake 0.45s ease-in-out; }

.ea-roster { font-family:var(--font-ui); display:flex; flex-direction:column;
      width:100%; max-width:460px; margin:0 auto 8px; box-sizing:border-box; }
    .ea-roster-bar { display:flex; align-items:center; gap:8px; padding:8px 12px;
      background:rgba(22,22,29,0.7); border:1px solid rgba(255,255,255,0.06);
      border-radius:12px; font-size:0.72rem; min-height:36px; }
    .ea-roster-empty { background:none; border:1px dashed rgba(255,255,255,0.12);
      color:#6e685e; cursor:pointer; justify-content:center; transition:all 0.2s; }
    .ea-roster-empty:hover { border-color:rgba(232,184,75,0.35); color:#9a9180; }
    .ea-roster-turn-label { color:#6e685e; font-size:0.62rem; text-transform:uppercase;
      letter-spacing:0.1em; }
    .ea-roster-turn-name { font-family:var(--font-display); font-style:italic;
      font-size:1rem; color:#e8b84b; font-weight:600; flex:1;
      white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .ea-roster-dots { display:flex; gap:4px; }
    .ea-roster-dot { width:8px; height:8px; border-radius:50%; opacity:0.3;
      transition:all 0.25s; }
    .ea-roster-dot.active { opacity:1; transform:scale(1.3);
      box-shadow:0 0 8px currentColor; }
    .ea-roster-edit-btn, .ea-roster-next-btn {
      background:transparent; border:0; color:#9a9180; cursor:pointer;
      font-family:var(--font-ui); font-size:0.68rem; font-weight:700;
      text-transform:uppercase; letter-spacing:0.08em; padding:4px 8px;
      border-radius:6px; transition:all 0.15s; }
    .ea-roster-edit-btn:hover, .ea-roster-next-btn:hover {
      background:rgba(255,255,255,0.05); color:#ece6dc; }
    .ea-roster-next-btn { color:#e8b84b; }
    .ea-roster-expanded { padding:10px 12px; background:rgba(22,22,29,0.7);
      border:1px solid rgba(255,255,255,0.06); border-radius:12px;
      display:flex; flex-direction:column; gap:8px; }
    .ea-roster-input-row { display:flex; gap:6px; }
    .ea-roster-input { flex:1; padding:8px 12px; border-radius:8px;
      background:rgba(0,0,0,0.3); color:#ece6dc;
      border:1px solid rgba(255,255,255,0.08); font-size:0.82rem;
      font-family:var(--font-ui); outline:none; }
    .ea-roster-input:focus { border-color:rgba(232,184,75,0.4); }
    .ea-roster-add { padding:8px 14px; border-radius:8px; border:0; cursor:pointer;
      background:linear-gradient(135deg,#f2ca50,#c49a28); color:#0a0a0c;
      font-weight:700; font-size:0.78rem; }
    .ea-roster-pills { display:flex; flex-wrap:wrap; gap:5px; }
    .ea-roster-pill { display:inline-flex; align-items:center; gap:5px;
      padding:4px 8px 4px 10px; border-radius:20px; font-size:0.72rem;
      color:#ece6dc; background:rgba(255,255,255,0.04);
      border:1px solid rgba(255,255,255,0.08); }
    .ea-roster-pill-dot { width:6px; height:6px; border-radius:50%; }
    .ea-roster-pill-x { background:none; border:0; color:#6e685e; cursor:pointer;
      font-size:1rem; line-height:1; padding:0 2px; }
    .ea-roster-pill-x:hover { color:#ff6b7a; }
    .ea-roster-done { align-self:flex-end; background:none; border:0; color:#6e685e;
      cursor:pointer; font-size:0.68rem; text-transform:uppercase;
      letter-spacing:0.08em; font-family:var(--font-ui); }
    .ea-roster-done:hover { color:#e8b84b; }

/* ── src/styles/experience.css ── */
/* ==========================================================================
   Shared game themes and surface polish
   ========================================================================== */

/* Ember & Ace — Gilded Obsidian shared polish layer
   One visual contract for the public site, lounge, host boards, and phones. */

:root {
  --ink: #08090b;
  --surface: #101216;
  --surface-mid: #15181d;
  --surface-high: #1c2026;
  --text: #f3eee6;
  --muted: #aaa297;
  --dim: #777167;
  --gold: #d4af37;
  --gold-bright: #f1ce68;
  --gold-deep: #9f761e;
  --cream: #f3eee6;
  --border: rgba(255,255,255,.09);
  --border-gold: rgba(212,175,55,.32);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --focus-ring: 0 0 0 3px rgba(241,206,104,.42);
}

html { background:#08090b; }
body {
  background:
    radial-gradient(ellipse 70% 45% at 50% -15%, rgba(212,175,55,.09), transparent 72%),
    radial-gradient(ellipse 38% 34% at 8% 72%, rgba(32,178,170,.055), transparent 75%),
    linear-gradient(180deg,#090a0c 0%,#0d0f12 48%,#08090b 100%);
}
body::before {
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  opacity:.24;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.014) 1px,transparent 1px);
  background-size:64px 64px;
  mask-image:linear-gradient(to bottom,#000,transparent 86%);
}

button,input,select,textarea { font:inherit; }
button { -webkit-tap-highlight-color:transparent; }
:where(button,a,input,select,textarea) { touch-action:manipulation; }

.topbar {
  border-bottom:1px solid rgba(255,255,255,.07);
  background:rgba(8,9,11,.78);
  backdrop-filter:blur(22px) saturate(1.15);
}
.topbar-inner { max-width:1320px; min-height:76px; }
.brand-mark img { filter:drop-shadow(0 0 14px rgba(212,175,55,.24)); }
.brand-wordmark {
  color:#f3eee6;
  font-family:var(--font-display);
  font-size:1.05rem;
  letter-spacing:.045em;
}
.preview-badge {
  border-color:rgba(212,175,55,.28);
  background:rgba(212,175,55,.065);
  color:#c9b77f;
}
.site-nav { gap:clamp(14px,2.1vw,30px); }
.nav-link {
  color:#aaa297;
  font-size:.72rem;
  font-weight:750;
  letter-spacing:.065em;
  text-transform:none;
}
.nav-link:hover,.nav-link.is-active { color:#f3eee6; }
.nav-link-button {
  min-height:38px;
  padding:0 15px;
  border:1px solid rgba(212,175,55,.34);
  border-radius:8px;
  background:rgba(212,175,55,.075);
  color:#efd172;
}
.nav-search-wrap { border-color:rgba(255,255,255,.095); background:rgba(255,255,255,.025); }
.nav-search:focus { border-color:rgba(212,175,55,.38); }

.app-shell { max-width:1320px; }
.home-hero {
  min-height:min(690px,calc(100vh - 116px));
  margin:22px 0 0;
  padding:clamp(42px,6vw,84px);
  align-items:center;
  border-color:rgba(212,175,55,.18);
  border-radius:14px;
  box-shadow:0 36px 100px rgba(0,0,0,.58),inset 0 1px 0 rgba(255,255,255,.04);
}
.home-hero::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border:1px solid rgba(255,255,255,.045);
  border-radius:inherit;
  background:linear-gradient(115deg,rgba(255,255,255,.028),transparent 24% 76%,rgba(212,175,55,.025));
}
.home-hero-media img {
  object-position:center 44%;
  filter:saturate(.72) contrast(1.08) brightness(.66);
  transform:scale(1.015);
}
.home-hero-shade {
  background:
    linear-gradient(90deg,rgba(7,8,10,.97) 0%,rgba(7,8,10,.9) 38%,rgba(7,8,10,.4) 69%,rgba(7,8,10,.18) 100%),
    linear-gradient(0deg,rgba(7,8,10,.85),transparent 54%);
}
.home-hero-content { width:min(700px,100%); }
.home-hero-content .section-eyebrow {
  display:block;
  margin:0 0 18px;
  color:#dbbd62;
  font-size:.66rem;
  letter-spacing:.18em;
}
.home-hero-content h1 {
  max-width:680px;
  font-size:clamp(3.2rem,6.4vw,6.2rem);
  line-height:.92;
  letter-spacing:-.035em;
  text-wrap:balance;
}
.home-hero-content h1 em { color:#e5c667; font-style:italic; font-weight:480; }
.home-hero-content p {
  max-width:58ch;
  font-size:clamp(.97rem,1.35vw,1.12rem);
  color:rgba(243,238,230,.78);
}
.home-primary-actions { max-width:650px; margin-top:32px; }
.home-action {
  min-height:82px;
  border-color:rgba(255,255,255,.13);
  border-radius:10px;
  background:rgba(15,17,21,.82);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 12px 30px rgba(0,0,0,.22);
}
.home-action:hover { transform:translateY(-3px); border-color:rgba(212,175,55,.52); }
.home-action--primary {
  border-color:#d6ad3c;
  background:linear-gradient(180deg,#f0cf6d,#c99b2f);
  box-shadow:0 13px 34px rgba(177,127,24,.25),inset 0 1px 0 rgba(255,255,255,.45);
}
.home-action span { font-size:.92rem; }
.home-join-card {
  max-width:650px;
  grid-template-columns:minmax(160px,.8fr) minmax(260px,1.2fr);
  align-items:center;
  padding:11px 12px 11px 16px;
  border-color:rgba(255,255,255,.1);
  border-radius:10px;
  background:rgba(8,9,11,.74);
}
.home-join-card label { font-size:.73rem; }
.home-join-copy { display:grid; gap:4px; }
.home-join-row { justify-content:flex-end; }
.home-code-input { height:46px; border-radius:8px; background:#0d0f12; }
.home-code-hint { max-width:22ch; font-size:.68rem; line-height:1.35; }
.home-proof-row { gap:0; margin-top:18px; color:#aaa297; }
.home-proof-row span {
  position:relative;
  padding:3px 15px 3px 0;
  border:0;
  border-radius:0;
  background:transparent;
  font-size:.7rem;
  font-weight:650;
}
.home-proof-row span + span { padding-left:15px; }
.home-proof-row span + span::before { content:""; position:absolute; left:0; top:50%; width:3px; height:3px; border-radius:50%; background:#d4af37; }

.home-mode-guide {
  margin:0;
  padding:54px 0 68px;
  gap:0;
  border-bottom:1px solid rgba(255,255,255,.07);
}
.mode-guide-card {
  position:relative;
  min-height:250px;
  padding:30px clamp(22px,3vw,42px);
  border:0;
  border-left:1px solid rgba(255,255,255,.08);
  border-radius:0;
  background:transparent;
  transition:background .25s,border-color .25s;
}
.mode-guide-card:last-child { border-right:1px solid rgba(255,255,255,.08); }
.mode-guide-card:hover { background:linear-gradient(180deg,rgba(212,175,55,.045),transparent); border-color:rgba(212,175,55,.22); }
.mode-guide-number { display:block; margin-bottom:26px; color:#6f695f; font-family:var(--font-display); font-size:.85rem; }
.mode-guide-kicker { color:#c5a94f; font-size:.58rem; }
.mode-guide-card h2 { font-size:clamp(1.65rem,2.4vw,2.25rem); }
.mode-guide-card p { max-width:36ch; color:#928b81; }
.mode-guide-link.nav-link { color:#e2c25e; }

.catalog-section { margin-top:70px; }
.catalog-heading h1 { font-size:clamp(2.4rem,4.2vw,4.3rem); max-width:850px; letter-spacing:-.025em; }
.game-section { margin-top:36px; }
.game-section-header { border-bottom-color:rgba(255,255,255,.075); }
.game-subgrid { gap:16px; }
.base-card {
  --game-accent:#d4af37;
  position:relative;
  overflow:hidden;
  min-height:330px;
  padding:22px;
  border:1px solid rgba(255,255,255,.085);
  border-radius:12px;
  background:
    radial-gradient(circle at 85% 10%,color-mix(in srgb,var(--game-accent) 12%,transparent),transparent 32%),
    linear-gradient(145deg,rgba(25,28,33,.94),rgba(13,15,18,.96));
  box-shadow:0 18px 50px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.03);
}
.base-card::before {
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:2px;
  background:linear-gradient(transparent,var(--game-accent),transparent);
  opacity:.52;
}
.base-card:hover { transform:translateY(-5px); border-color:color-mix(in srgb,var(--game-accent) 35%,rgba(255,255,255,.1)); box-shadow:0 26px 64px rgba(0,0,0,.38); }
.base-card .card-icon { color:var(--game-accent); filter:drop-shadow(0 0 14px color-mix(in srgb,var(--game-accent) 24%,transparent)); }
.base-card-title { margin-top:18px; font-size:clamp(1.55rem,2.1vw,2rem); }
.base-card-desc { margin-top:auto; color:#9f978d; line-height:1.58; }
.base-card .btn-primary { border-color:color-mix(in srgb,var(--game-accent) 58%,#d4af37); background:linear-gradient(180deg,color-mix(in srgb,var(--game-accent) 72%,#f0ce68),color-mix(in srgb,var(--game-accent) 72%,#9f761e)); }

[data-game-id="truth-dare"],[data-game-id="confessional"] { --game-accent:#a82be2; }
[data-game-id="hot-seat"],[data-game-id="hot-take"] { --game-accent:#e45b32; }
[data-game-id="never-have-i-ever"] { --game-accent:#20b2aa; }
[data-game-id="rapid-fire"] { --game-accent:#f59e32; }
[data-game-id="drawing"] { --game-accent:#3bbbe8; }
[data-game-id="trivia"] { --game-accent:#5c8df6; }
[data-game-id="two-truths"] { --game-accent:#8f68e8; }
[data-game-id="charades"] { --game-accent:#e9863a; }
[data-game-id="kings-cup"] { --game-accent:#c93d4d; }
[data-game-id="gilded-tongue"],[data-game-id="most-likely-to"] { --game-accent:#d4af37; }

.hf-root { --shell-accent:var(--game-accent,var(--gold)); }
.hf-root.theme-mlt,.hf-root.theme-most-likely-to { --game-accent:#e1b84c; }
.hf-root.theme-truth-dare,.hf-root.theme-confessional { --game-accent:#a82be2; }
.hf-root.theme-hot-seat,.hf-root.theme-hot-take { --game-accent:#e45b32; }
.hf-root.theme-never-have-i-ever { --game-accent:#20b2aa; }
.hf-root.theme-rapid-fire { --game-accent:#f59e32; }
.hf-root.theme-drawing { --game-accent:#3bbbe8; }
.hf-root.theme-trivia { --game-accent:#5c8df6; }
.hf-root.theme-two-truths { --game-accent:#8f68e8; }
.hf-root.theme-charades { --game-accent:#e9863a; }
.hf-root.theme-kings-cup { --game-accent:#c93d4d; }
.hf-root.theme-gilded-tongue { --game-accent:#d4af37; }

.hf-root {
  background:
    radial-gradient(ellipse 58% 52% at 50% 42%,color-mix(in srgb,var(--shell-accent) 7%,transparent),transparent 72%),
    linear-gradient(180deg,#090b0e,#111318 48%,#08090b);
}
.hf-header { min-height:72px; border-bottom-color:rgba(255,255,255,.075); }
.hf-stage { padding-inline:clamp(24px,5vw,84px); }
.hf-player { border-radius:9px; }
.hf-btn-primary { min-height:46px; border-radius:9px; background:linear-gradient(180deg,color-mix(in srgb,var(--shell-accent) 70%,#efd276),color-mix(in srgb,var(--shell-accent) 72%,#9d711b)); }

.pf-root {
  --shell-accent:var(--game-accent,var(--gold));
  background:
    radial-gradient(ellipse 95% 42% at 50% -8%,color-mix(in srgb,var(--shell-accent) 10%,transparent),transparent 72%),
    linear-gradient(180deg,#0c0e11,#111318 58%,#090a0d);
}
.pf-header { min-height:70px; border-bottom-color:rgba(255,255,255,.08); background:rgba(9,11,14,.82); backdrop-filter:blur(18px); }
.pf-header-title,.pf-eyebrow,.pf-prompt em,.pf-you-name { color:var(--shell-accent); }
.pf-you-avatar { border-color:var(--shell-accent); box-shadow:0 0 16px color-mix(in srgb,var(--shell-accent) 22%,transparent); }
.pf-stage { padding:clamp(22px,5vh,42px) 20px 24px; }
.pf-prompt { font-size:clamp(1.85rem,7.4vw,2.7rem); line-height:1.1; }
.pf-body { margin-top:24px; }
.pf-option { min-height:52px; border-radius:12px; }
.pf-btn-primary { min-height:50px; border-radius:10px; background:linear-gradient(180deg,color-mix(in srgb,var(--shell-accent) 70%,#efd276),color-mix(in srgb,var(--shell-accent) 72%,#9d711b)); }
.pf-btn-ghost { min-height:48px; border-radius:10px; }

.cf-write-wrap { position:relative; width:100%; }
.cf-write-input {
  min-height:132px;
  padding:16px 16px 30px;
  resize:none;
  font-family:var(--font-ui);
  font-size:1rem;
  line-height:1.5;
  border-color:color-mix(in srgb,#a82be2 38%,rgba(255,255,255,.12));
  background:linear-gradient(145deg,rgba(168,43,226,.07),rgba(255,255,255,.025));
}
.cf-character-count { position:absolute;right:13px;bottom:9px;font-size:.68rem;letter-spacing:.06em;color:var(--muted); }
.cf-private-receipt { width:100%;padding:18px;border:1px solid rgba(168,43,226,.28);border-radius:14px;background:rgba(168,43,226,.06);font-family:var(--font-display);font-style:italic;line-height:1.45;color:var(--text);overflow-wrap:anywhere; }
.cf-redraw-option { margin-top:12px; color:var(--muted); }
.cf-sealed-mark { width:76px;aspect-ratio:1;display:grid;place-items:center;margin:2px auto;border:1px solid rgba(232,184,75,.28);border-radius:50%;background:radial-gradient(circle,rgba(168,43,226,.18),rgba(12,13,18,.88));box-shadow:0 0 42px rgba(168,43,226,.14);font-family:var(--font-display);font-size:2rem;color:var(--gold); }
.cf-player-options { display:flex;flex-direction:column;gap:9px;width:100%; }
.cf-reveal-verdict { display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:16px 18px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(255,255,255,.035); }
.cf-reveal-verdict span { color:var(--muted);font-size:.82rem; }
.cf-reveal-verdict strong { color:var(--gold);font-family:var(--font-display);font-style:italic; }
.cf-reveal-verdict.is-correct { border-color:rgba(52,211,153,.35);background:rgba(52,211,153,.06); }
.cf-reveal-verdict.is-fooled { border-color:rgba(168,43,226,.35);background:rgba(168,43,226,.07); }
.cf-phone-scoreboard { display:flex;flex-direction:column;width:100%; }
.cf-phone-score-row { display:grid;grid-template-columns:24px minmax(0,1fr) auto auto;align-items:center;gap:9px;padding:11px 5px;border-bottom:1px solid rgba(255,255,255,.065); }
.cf-phone-score-row.is-leader { background:rgba(232,184,75,.055); }
.cf-phone-rank { color:var(--muted);font-family:var(--font-display);font-style:italic; }
.cf-phone-player { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-weight:650; }
.cf-phone-gain { color:#6ee7b7;font-size:.76rem;font-weight:750; }
.cf-phone-total { min-width:26px;text-align:right;color:var(--gold);font-family:var(--font-display);font-style:italic;font-size:1.15rem; }

.site-footer { border-top-color:rgba(255,255,255,.07); background:#08090b; }

@media (max-width:820px) {
  .home-hero { min-height:640px; padding:44px 24px; align-items:flex-end; }
  .home-hero-media img { object-position:63% center; }
  .home-hero-shade { background:linear-gradient(0deg,rgba(7,8,10,.98) 0%,rgba(7,8,10,.82) 57%,rgba(7,8,10,.34) 100%); }
  .home-hero-content h1 { font-size:clamp(3rem,12vw,4.8rem); }
  .home-join-card { grid-template-columns:1fr; }
  .home-join-row { justify-content:flex-start; }
  .home-mode-guide { grid-template-columns:1fr; }
  .mode-guide-card { min-height:0; border-right:1px solid rgba(255,255,255,.08); border-bottom:1px solid rgba(255,255,255,.08); }
  .mode-guide-number { margin-bottom:16px; }
}

@media (max-width:1100px) {
  .topbar-inner { min-height:68px; }
  .site-nav { gap:4px; }
  .nav-search-wrap--mobile { display:flex; }
}

@media (max-width:560px) {
  .topbar-inner { min-height:68px; }
  .home-hero { margin-top:12px; min-height:620px; border-radius:12px; }
  .home-primary-actions { grid-template-columns:1fr; }
  .home-code-hint { max-width:none; }
  .home-proof-row span { width:100%; padding-left:0 !important; }
  .home-proof-row span::before { display:none; }
  .base-card { min-height:290px; }
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}

/* ==========================================================================
   Interaction, accessibility, and responsive repairs
   ========================================================================== */

/* Ember & Ace — catalog, modal, and accessibility refinements.
   Kept separate from the original visual layer so responsive behavior and
   safety-critical UI remain easy to audit. */

:root {
  --muted: #b2aa9d;
  --dim: #8f887d;
  --ghost-text: #9f978b;
  --ghost-text-hover: #d1c8b9;
}

/* ─── In-flow storage preferences ─────────────────────────── */
.consent-slot {
  width: min(1200px, calc(100% - 48px));
  margin: 12px auto 0;
}
.consent-slot:empty { display: none; }

.ea-consent-banner {
  position: relative !important;
  z-index: auto !important;
  inset: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(232, 184, 75, 0.2);
  border-radius: 10px;
  background: rgba(17, 17, 24, 0.96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}
.ea-consent-text { color: var(--muted); }
.ea-consent-text a { color: var(--gold-bright); }

/* ─── Catalog search and mobile discovery ─────────────────── */
.catalog-search {
  width: min(470px, 100%);
  min-height: 48px;
  margin-top: 24px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(8, 9, 12, 0.62);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.catalog-search:focus-within {
  color: var(--gold-bright);
  border-color: rgba(232, 184, 75, 0.5);
  background: rgba(12, 13, 17, 0.88);
  box-shadow: var(--focus-ring);
}
.catalog-search input {
  min-width: 0;
  min-height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none !important;
  color: var(--text);
  font-size: 0.92rem;
}
.catalog-search input::placeholder { color: var(--dim); }

.catalog-mobile { display: none; }
.catalog-desktop { display: block; }
.catalog-empty { padding: 24px; }
.catalog-empty h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 500;
}
.catalog-empty p { margin: 0; }

.play-utilities-mobile-link { display: none; }

/* Catalog color is a navigation cue, not a fireworks permit. */
.base-card {
  --game-accent: var(--ca, #d4af37);
  background:
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--ca, #d4af37) 5%, transparent), transparent 28%),
    linear-gradient(145deg, rgba(25, 27, 31, 0.96), rgba(13, 14, 17, 0.98));
  border-color: rgba(255, 255, 255, 0.09);
}
.base-card::before {
  width: 2px;
  height: auto;
  inset: 10% auto 10% 0;
  background: var(--ca, #d4af37);
  box-shadow: none;
  opacity: 0.34;
}
.base-card::after { opacity: 0.18; }
.base-card:hover {
  border-color: color-mix(in srgb, var(--ca, #d4af37) 24%, rgba(255, 255, 255, 0.12));
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.4);
}
.base-card:hover::before { opacity: 0.75; width: 3px; height: auto; }
.base-card .card-icon {
  color: var(--ca, var(--gold));
  filter: none;
  opacity: 0.92;
}
.base-card:hover .card-icon { filter: none; }
.base-card-desc { color: #b8b0a5; }
.base-card .btn-primary {
  color: var(--gold-ink);
  border-color: #b78929;
  background: linear-gradient(180deg, #efc75c, #c9972d);
  box-shadow: 0 2px 0 #8b651c, 0 8px 22px rgba(232, 184, 75, 0.12);
}
.game-section { --section-accent: #b7935f !important; }

/* ─── Game preview and modal lifecycle ────────────────────── */
.modal.is-game {
  width: min(540px, calc(100vw - 32px));
  height: auto;
  max-height: min(90dvh, 780px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal.is-game .modal-head { display: flex; }

.modal.is-game.is-tool {
  width: min(760px, calc(100vw - 32px));
  max-height: min(90dvh, 820px);
}
.modal.is-game.is-tool .modal-body {
  flex: 1 1 auto;
  min-height: 0;
}
.modal.is-game .modal-body {
  height: auto;
  min-height: 0;
  flex: 0 1 auto;
  padding: 0;
  overflow-y: auto;
}
.modal.is-game.is-running,
.modal.is-game[data-game-id="lobby"] {
  height: 90vh;
  max-height: 90vh;
}
.modal.is-game.is-running .modal-head,
.modal.is-game[data-game-id="lobby"] .modal-head,
.modal.is-game:has(.pf-root) .modal-head,
.modal.is-game:has(.hf-root) .modal-head {
  display: none;
}
.modal.is-game.is-running.has-shell-help .modal-head {
  position: absolute;
  top: 12px;
  right: 88px;
  z-index: 90;
  display: flex;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}
.modal.is-game.is-running.has-shell-help .modal-head-brand,
.modal.is-game.is-running.has-shell-help #close-modal {
  display: none;
}
.modal.is-game.is-running.has-shell-help .modal-head-actions,
.modal.is-game.is-running.has-shell-help #help-trigger {
  pointer-events: auto;
}
.modal.is-game.is-running.has-shell-help #help-trigger {
  color: var(--cream);
  border-color: rgba(239,217,155,.28);
  background: rgba(7,9,12,.88);
  box-shadow: 0 8px 24px rgba(0,0,0,.34);
  backdrop-filter: blur(12px);
}
.modal.is-game.is-running .modal-body,
.modal.is-game[data-game-id="lobby"] .modal-body,
.modal.is-game:has(.pf-root) .modal-body,
.modal.is-game:has(.hf-root) .modal-body {
  height: 100%;
  flex: 1;
}

.game-preview-stage {
  min-height: 0;
  padding: clamp(24px, 5vw, 38px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  animation: gp-fade-in 240ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes gp-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.game-preview-icon {
  display: grid;
  place-items: center;
  color: var(--theme-accent, var(--gold));
  opacity: 0.94;
}
.game-preview-copy h2 {
  margin: 0 0 8px;
  color: var(--text);
  font: 600 clamp(2rem, 7vw, 2.55rem)/1.05 var(--font-display);
}
.game-preview-copy p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.62;
}
.game-preview-meta {
  width: 100%;
  max-width: 390px;
  margin: 0;
  padding: 18px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
  text-align: left;
  border-block: 1px solid rgba(255, 255, 255, 0.09);
}
.game-preview-meta div { min-width: 0; }
.game-preview-meta dt {
  margin-bottom: 3px;
  color: var(--dim);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.game-preview-meta dd {
  margin: 0;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.game-preview-actions {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 10px;
}
.game-preview-actions .btn { min-height: 48px; }
.modal-load-error {
  min-height: 280px;
  padding: 32px 24px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--muted);
  text-align: center;
}
.modal-load-error p { max-width: 40ch; margin: 0; }


/* Keep wheel labels outside the crowded hub and legible at party distance. */
.sw-label {
  padding-left: 42px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.sw-label span {
  max-width: 82px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* ─── Most Likely To legibility ───────────────────────────── */
.modal[data-game-id="most-likely-to"] {
  --theme-bg-gradient: linear-gradient(165deg, rgba(23, 17, 32, 0.98), rgba(8, 6, 12, 0.99));
  --theme-radial-glow: radial-gradient(ellipse at 50% -18%, rgba(168, 85, 247, 0.12), transparent 62%);
}
.modal[data-game-id="most-likely-to"] .mlt-face {
  background: linear-gradient(155deg, rgba(30, 28, 37, 0.97), rgba(12, 12, 16, 0.99)) !important;
  backdrop-filter: none !important;
}
.modal[data-game-id="most-likely-to"] .mlt-prompt {
  color: #f6f0e7 !important;
  font-size: clamp(1.16rem, 4.2vw, 1.6rem) !important;
}
.modal[data-game-id="most-likely-to"] .mlt-eyebrow,
.modal[data-game-id="most-likely-to"] .mlt-hint,
.modal[data-game-id="most-likely-to"] .mlt-leaderboard-title,
.modal[data-game-id="most-likely-to"] .hmlt-bar-label,
.modal[data-game-id="most-likely-to"] .hmlt-hint {
  color: #b9b0a3 !important;
  opacity: 1 !important;
}
.modal[data-game-id="most-likely-to"] .mlt-cat-btn {
  color: #c2baae !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.055) !important;
}
.modal[data-game-id="most-likely-to"] .mlt-back-actions .btn-secondary,
.modal[data-game-id="most-likely-to"] .mlt-choices .btn-secondary {
  color: #eee7dd !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

@media (max-width: 700px) {
  .consent-slot { width: calc(100% - 28px); margin-top: 10px; }
  .ea-consent-banner {
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    padding: 11px 12px !important;
  }
  .ea-consent-actions { justify-content: flex-end; }

  .catalog-heading .catalog-search { margin-top: 20px; }
  .catalog-desktop { display: none; }
  .catalog-mobile { display: block; margin-top: 24px; }
  .catalog-results { margin-top: 10px; }
  .mobile-catalog-block + .mobile-catalog-block { margin-top: 34px; }
  .mobile-catalog-heading {
    margin-bottom: 12px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
  }
  .mobile-catalog-heading h2 {
    margin: 0;
    color: var(--text);
    font: 550 1.35rem/1.15 var(--font-display);
  }
  .mobile-catalog-heading p {
    max-width: 22ch;
    margin: 0;
    color: var(--dim);
    font-size: 0.72rem;
    line-height: 1.35;
    text-align: right;
  }
  .mobile-game-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .mobile-game-row {
    --ca: var(--gold);
    width: 100%;
    min-height: 70px;
    padding: 12px 12px 12px 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px;
    align-items: center;
    gap: 11px;
    color: var(--text);
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-left: 2px solid color-mix(in srgb, var(--ca) 60%, transparent);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(25, 27, 31, 0.94), rgba(13, 14, 17, 0.97));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    cursor: pointer;
  }
  .mobile-game-row.is-featured {
    background:
      radial-gradient(circle at 0 50%, color-mix(in srgb, var(--ca) 7%, transparent), transparent 40%),
      linear-gradient(145deg, rgba(28, 30, 34, 0.96), rgba(13, 14, 17, 0.98));
  }
  .mobile-game-row.is-recent { border-color: rgba(232, 184, 75, 0.24); }
  .mobile-game-row__copy { min-width: 0; display: grid; gap: 3px; }
  .mobile-game-row__copy strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.91rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-game-row__copy span {
    overflow: hidden;
    color: var(--dim);
    font-size: 0.68rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-game-row__arrow { display: grid; place-items: center; color: var(--dim); }

  .mobile-catalog-block--browse { margin-bottom: 8px; }
  .mobile-game-group {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .mobile-game-group:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .mobile-game-group summary {
    min-height: 54px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 750;
    cursor: pointer;
    list-style: none;
  }
  .mobile-game-group summary::-webkit-details-marker { display: none; }
  .mobile-game-group summary::after {
    content: "+";
    color: var(--gold);
    font: 400 1.2rem/1 var(--font-display);
  }
  .mobile-game-group[open] summary::after { content: "−"; }
  .mobile-game-group__count {
    margin-left: auto;
    color: var(--dim);
    font-size: 0.7rem;
    font-weight: 650;
  }
  .mobile-game-group .mobile-game-list { padding: 0 0 12px; }

  .play-utilities-grid { display: none !important; }
  .play-utilities-mobile-link {
    min-height: 68px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(232, 184, 75, 0.2);
    border-radius: 10px;
    background: rgba(232, 184, 75, 0.045);
    color: var(--text);
  }
  .play-utilities-mobile-link span { display: grid; gap: 3px; }
  .play-utilities-mobile-link strong { font-size: 0.86rem; }
  .play-utilities-mobile-link small { color: var(--dim); font-size: 0.7rem; }
  .play-utilities-mobile-link svg { color: var(--gold); }

  .modal-shell { padding: 12px; align-items: center; }

  .modal.is-game.is-tool {
    width: min(100%, 620px);
    height: min(92dvh, 820px);
    max-height: calc(100dvh - 24px);
    border-radius: 14px;
  }
  .modal.is-game:not(.is-running):not(:has(.pf-root)):not(:has(.hf-root)) {
    width: min(100%, 520px);
    height: auto;
    max-height: calc(100dvh - 24px);
    border-radius: 14px;
  }
  .modal.is-game.is-running:not([data-game-id="lobby"]):not(:has(.pf-root)):not(:has(.hf-root)) {
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 14px;
  }
  .modal.is-game[data-game-id="lobby"],
  .modal.is-game:has(.pf-root),
  .modal.is-game:has(.hf-root) {
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .game-preview-stage { padding: 22px 18px 20px; gap: 18px; }
  .game-preview-meta { gap: 13px 16px; padding: 15px 0; }
  .game-preview-actions { grid-template-columns: 1fr; }
  .game-preview-actions #gp-start-btn { order: -1; }
}

@media (max-width: 430px) {
  .mobile-catalog-heading { align-items: start; flex-direction: column; gap: 4px; }
  .mobile-catalog-heading p { max-width: none; text-align: left; }
  .game-preview-meta { grid-template-columns: 1fr 1fr; }
  .game-preview-meta dd { font-size: 0.8rem; }
}

/* ==========================================================================
   Product shell, catalog, previews, and tools
   ========================================================================== */

/* Ember & Ace — 2026 visual system overhaul.
   Loaded last so the product can move forward without another excavation of
   the legacy stylesheet. Functional selectors remain untouched. */

:root {
  --ink: #08090c;
  --surface: #0e1116;
  --surface-mid: #141820;
  --surface-high: #1a2029;
  --border: rgba(255,255,255,.085);
  --border-gold: rgba(215,171,76,.26);
  --text: #f3eee5;
  --muted: #aaa69d;
  --dim: #777a7d;
  --cream: #f5ecdd;
  --gold: #d7ab4c;
  --gold-bright: #f1cf79;
  --gold-deep: #a97225;
  --ember: #da4e2f;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Baskerville, Georgia, serif;
  --font-ui: "Avenir Next", Avenir, Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  --shadow-1: 0 12px 34px rgba(0,0,0,.28);
  --shadow-2: 0 22px 58px rgba(0,0,0,.42);
  --shadow-3: 0 40px 100px rgba(0,0,0,.62);
}

html { background: var(--ink); }
body {
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 38% at 50% -8%, rgba(215,171,76,.075), transparent 70%),
    radial-gradient(circle at 0 65%, rgba(110,30,22,.08), transparent 35%),
    linear-gradient(180deg, #090a0d 0%, #07080a 62%, #090a0d 100%);
  background-attachment: fixed;
  letter-spacing: -.006em;
}
#noise-layer { opacity: .018; mix-blend-mode: soft-light; }
::selection { color: #171006; background: var(--gold-bright); }

.app-shell,
.topbar-inner,
.site-footer-inner {
  width: min(1380px, calc(100% - 48px));
  max-width: none;
  margin-inline: auto;
}
.app-shell { padding: 0 0 88px; }
.route-section { animation: route-arrive .38s cubic-bezier(.16,1,.3,1) both; }
@keyframes route-arrive { from { opacity: 0; transform: translateY(8px); } }

/* ─── Navigation ───────────────────────────────────────────── */
.topbar {
  height: 68px;
  border-bottom: 1px solid rgba(215,171,76,.18);
  background: rgba(7,9,12,.88);
  box-shadow: none;
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}
.topbar.is-scrolled {
  background: rgba(7,9,12,.97);
  border-bottom-color: rgba(215,171,76,.32);
  box-shadow: 0 14px 38px rgba(0,0,0,.32);
}
.topbar-inner {
  height: 68px;
  min-height: 68px;
  padding: 0;
  gap: 28px;
}
.brand-credential { gap: 10px; }
.brand-mark {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.brand-mark img { width: 34px; height: 34px; object-fit: contain; }
.brand-wordmark {
  color: var(--cream);
  font: 600 1.1rem/1 var(--font-display);
  letter-spacing: .015em;
  text-transform: uppercase;
}
.brand-amp { color: var(--gold-bright); }
.preview-badge {
  margin-left: 1px;
  padding: 2px 6px;
  border-color: rgba(215,171,76,.22);
  color: #bba97f;
  background: rgba(215,171,76,.05);
  font-size: .54rem;
  letter-spacing: .13em;
}
.site-nav { gap: 3px; }
.site-nav > .nav-link {
  min-height: 68px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  color: #aaa69e;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .015em;
  text-transform: none;
}
.site-nav > .nav-link::after {
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--gold);
  box-shadow: 0 -4px 16px rgba(215,171,76,.22);
}
.site-nav > .nav-link:hover,
.site-nav > .nav-link.is-active { color: var(--cream); }
.nav-link-button {
  margin-left: 8px;
  min-height: 38px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(215,171,76,.48) !important;
  border-radius: 9px !important;
  color: var(--gold-bright) !important;
  background: rgba(215,171,76,.055) !important;
}
.nav-link-button::after { display: none !important; }
.nav-link-button:hover { background: rgba(215,171,76,.11) !important; }
.nav-search-wrap {
  width: 170px;
  height: 38px;
  border-color: rgba(255,255,255,.095);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
}
.nav-search { font-size: .75rem; }
body[data-route="home"] .top-actions .nav-search-wrap { opacity: 0; pointer-events: none; }

/* ─── Home ─────────────────────────────────────────────────── */
.home-hero {
  min-height: clamp(610px, 71vh, 760px);
  margin: 18px 0 14px;
  padding: clamp(44px, 6vw, 82px);
  align-items: center;
  border: 1px solid rgba(255,255,255,.095);
  border-radius: 18px;
  background: #0b0d10;
  box-shadow: 0 34px 90px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.035);
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(215,171,76,.045);
}
.home-hero-media img {
  object-position: 68% 48%;
  filter: saturate(.78) contrast(1.07) brightness(.62);
  transform: scale(1.015);
}
.home-hero-shade {
  background:
    linear-gradient(90deg, rgba(7,8,11,.98) 0%, rgba(7,8,11,.94) 29%, rgba(7,8,11,.62) 52%, rgba(7,8,11,.12) 78%),
    linear-gradient(0deg, rgba(7,8,11,.92) 0%, transparent 42%),
    radial-gradient(circle at 76% 46%, transparent 0 30%, rgba(7,8,11,.32) 72%);
}
.home-hero-content { width: min(575px, 100%); margin-bottom: 66px; }
.home-hero-content h1 {
  max-width: 9ch;
  color: var(--cream);
  font-size: clamp(3.55rem, 6vw, 5.75rem);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 6px 28px rgba(0,0,0,.5);
}
.home-hero-content h1 em { color: #f2dfbd; font-style: normal; }
.home-hero-content > p {
  max-width: 34ch;
  margin: 24px 0 0;
  color: rgba(245,236,221,.87);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.55;
}
.home-primary-actions {
  max-width: 540px;
  margin-top: 32px;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.home-action {
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border-color: rgba(215,171,76,.46);
  border-radius: 10px;
  color: var(--cream);
  background: rgba(6,8,11,.67);
  box-shadow: 0 12px 26px rgba(0,0,0,.24);
  backdrop-filter: blur(12px);
}
.home-action:hover {
  transform: translateY(-2px);
  border-color: rgba(241,207,121,.72);
  background: rgba(21,19,17,.88);
  box-shadow: 0 18px 36px rgba(0,0,0,.35);
}
.home-action--primary {
  color: #171008;
  border-color: #e3b95c;
  background: linear-gradient(180deg, #f2d38b 0%, #d8a746 68%, #be842a 100%);
  box-shadow: 0 2px 0 #8e5d1e, 0 14px 30px rgba(215,171,76,.22);
}
.home-action--primary:hover { background: linear-gradient(180deg, #f7dd9c, #e0b252 68%, #c88d2f); }
.home-action__icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 26px;
}
.home-action__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-action__copy { min-width: 0; display: grid; gap: 1px; }
.home-action__copy strong { font-size: .84rem; font-weight: 800; letter-spacing: .015em; }
.home-action__copy small { font-size: .66rem; opacity: .68; }
.home-join-card {
  max-width: 540px;
  margin-top: 12px;
  padding: 11px 12px 11px 16px;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  border-color: rgba(255,255,255,.11);
  border-radius: 10px;
  background: rgba(5,7,10,.68);
  box-shadow: 0 14px 32px rgba(0,0,0,.22);
  backdrop-filter: blur(12px);
}
.home-join-copy { min-width: 0; display: grid; gap: 2px; }
.home-join-card label { color: var(--cream); font-size: .73rem; font-weight: 750; }
.home-code-hint { color: #8d8982; font-size: .66rem; }
.home-join-row { gap: 8px; }
.home-code-input {
  width: 112px;
  height: 42px;
  border-color: rgba(215,171,76,.34);
  border-radius: 8px;
  color: var(--gold-bright);
  background: rgba(255,255,255,.035);
  font-size: 1rem;
}
.home-join-submit {
  min-width: 96px;
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: .66rem;
}
.home-hero-detail {
  position: absolute;
  z-index: 2;
  left: clamp(36px, 5vw, 72px);
  right: clamp(36px, 5vw, 72px);
  bottom: 28px;
  padding-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
  border-top: 1px solid rgba(255,255,255,.11);
}
.home-hero-detail > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: baseline;
}
.home-hero-detail strong {
  grid-row: 1 / 3;
  color: var(--gold-bright);
  font: 500 1.55rem/1 var(--font-display);
}
.home-hero-detail span { color: var(--cream); font-size: .76rem; font-weight: 750; }
.home-hero-detail small { color: #8b8881; font-size: .64rem; }

.home-lane-strip {
  min-height: 92px;
  margin-bottom: 22px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(150px,.8fr)) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(215,171,76,.17);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(23,19,16,.82), rgba(13,15,19,.9));
  box-shadow: var(--shadow-1), inset 0 1px rgba(255,255,255,.03);
}
.home-lane-intro h2 {
  margin: 0;
  color: var(--cream);
  font: 600 1rem/1.15 var(--font-display);
}
.home-lane-intro p { margin: 4px 0 0; color: var(--dim); font-size: .7rem; }
.home-lane-item { display: flex; align-items: center; gap: 10px; }
.home-lane-age {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #b9c56c;
  background: rgba(185,197,108,.05);
  font-size: .68rem;
  font-weight: 850;
}
.home-lane-age--dark { color: #9b8cd9; background: rgba(155,140,217,.05); }
.home-lane-age--drink { color: #dd685d; background: rgba(221,104,93,.05); }
.home-lane-item > div { display: grid; gap: 2px; }
.home-lane-item strong { color: var(--cream); font-size: .75rem; }
.home-lane-item small { color: var(--dim); font-size: .64rem; }
.home-lane-link.nav-link {
  padding: 8px 0 8px 12px;
  color: var(--gold-bright);
  font-size: .7rem;
  font-weight: 750;
  white-space: nowrap;
}
.home-lane-link.nav-link::after { display: none; }

.home-mode-guide {
  margin: 0 0 54px;
  gap: 0;
  border-block: 1px solid rgba(255,255,255,.075);
}
.mode-guide-card {
  min-height: 245px;
  padding: 30px 34px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  align-content: start;
  gap: 20px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.075);
  border-radius: 0;
  background: transparent;
  transition: background .2s ease;
}
.mode-guide-card:last-child { border-right: 0; }
.mode-guide-card:hover { background: rgba(255,255,255,.025); }
.mode-guide-number {
  color: rgba(215,171,76,.52);
  font: 500 .7rem/1 var(--font-ui);
  letter-spacing: .08em;
}
.mode-guide-kicker { margin: 0 0 9px; color: var(--gold); font-size: .6rem; }
.mode-guide-card h2 { font-size: 1.8rem; }
.mode-guide-card p { max-width: 34ch; color: #a8a39a; }
.mode-guide-link.nav-link { color: #dfbc6d; }

/* ─── Consent preference bar ───────────────────────────────── */
.consent-slot { width: min(1380px, calc(100% - 48px)); margin-top: 12px; }
.ea-consent-banner {
  border-color: rgba(215,171,76,.16) !important;
  border-radius: 12px !important;
  background: rgba(15,18,23,.94) !important;
  box-shadow: 0 12px 34px rgba(0,0,0,.22) !important;
}

/* ─── Catalog shell ────────────────────────────────────────── */
.catalog-section { margin-top: 0; padding-top: 42px; }
.catalog-heading {
  min-height: 250px;
  margin: 0 0 22px;
  padding: clamp(32px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 40px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background:
    radial-gradient(circle at 76% 14%, rgba(215,171,76,.11), transparent 27%),
    linear-gradient(135deg, rgba(20,23,29,.96), rgba(10,12,16,.98));
  box-shadow: var(--shadow-2), inset 0 1px rgba(255,255,255,.035);
}
.catalog-heading::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -110px;
  top: -190px;
  border: 1px solid rgba(215,171,76,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 58px rgba(215,171,76,.025), 0 0 0 116px rgba(215,171,76,.018);
  pointer-events: none;
}
.catalog-heading-copy,
.catalog-heading-actions { position: relative; z-index: 1; }
.section-eyebrow {
  color: var(--gold);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .18em;
}
.catalog-heading h1 {
  max-width: 690px;
  margin: 12px 0 14px;
  color: var(--cream);
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: .94;
  letter-spacing: -.04em;
}
.catalog-heading h1 em { color: #e7c886; font-style: normal; }
.catalog-heading .lead {
  max-width: 66ch;
  margin: 0;
  color: #aba69c;
  font-size: .95rem;
  line-height: 1.62;
}
.catalog-stats { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.catalog-stats span {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 999px;
  color: #98938b;
  background: rgba(255,255,255,.025);
  font-size: .67rem;
}
.catalog-stats strong { color: var(--cream); }
.catalog-heading-actions {
  width: 240px;
  display: grid;
  gap: 11px;
  justify-items: stretch;
}
.catalog-heading-actions small { color: #777a7d; font-size: .64rem; line-height: 1.5; text-align: center; }
.btn-room-create { min-height: 52px; gap: 9px; border-radius: 10px; }
.btn-room-create svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.catalog-heading--local { min-height: 230px; grid-template-columns: 1fr; }

.catalog-toolbar {
  position: sticky;
  z-index: 20;
  top: 80px;
  margin-bottom: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(12,15,19,.88);
  box-shadow: 0 16px 34px rgba(0,0,0,.23);
  backdrop-filter: blur(18px) saturate(125%);
}
.catalog-search {
  width: 235px;
  min-height: 40px;
  margin: 0;
  padding: 0 12px;
  border-color: rgba(255,255,255,.09);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
}
.catalog-search input { min-height: 38px; font-size: .76rem; }
.catalog-filters {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.catalog-filters::-webkit-scrollbar { display: none; }
.catalog-filter {
  min-height: 34px;
  padding: 0 12px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #8d8d8c;
  background: transparent;
  font: 650 .67rem/1 var(--font-ui);
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.catalog-filter:hover { color: var(--cream); background: rgba(255,255,255,.035); }
.catalog-filter.is-active {
  color: #171008;
  border-color: #d9ad51;
  background: linear-gradient(180deg, #efd07f, #d3a244);
}
.catalog-results { min-height: 20px; margin: 2px 0 4px; color: var(--dim); font-size: .7rem; }

#games-section {
  display: grid;
  grid-template-columns: minmax(0,1fr) 250px;
  column-gap: 18px;
  align-items: start;
}
#games-section > .catalog-heading,
#games-section > .catalog-toolbar,
#games-section > .catalog-results { grid-column: 1 / -1; }
#games-grid { grid-column: 1; min-width: 0; }
#play-utilities { grid-column: 2; grid-row: 4; }
.games-container { margin-top: 0; }
.game-section { padding: 0; margin: 0 0 30px; border: 0; }
.game-section + .game-section { padding-top: 6px; }
.game-section-header {
  min-height: 48px;
  margin: 0 0 12px;
  padding: 0 2px 10px;
  align-items: end;
  border-bottom: 1px solid rgba(255,255,255,.075);
}
.game-section-title {
  color: var(--cream);
  font: 600 1rem/1.2 var(--font-display);
  letter-spacing: .01em;
}
.game-section-count {
  padding: 0;
  border: 0;
  color: var(--dim);
  background: transparent;
  font-size: .61rem;
  letter-spacing: .08em;
}
.game-subgrid {
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}

/* ─── Game cards ───────────────────────────────────────────── */
.base-card {
  min-height: 348px;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.095);
  border-radius: 13px;
  background: #101319;
  box-shadow: 0 14px 34px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.025);
  transform: translateZ(0);
  transition: transform .2s cubic-bezier(.16,1,.3,1), border-color .2s ease, box-shadow .2s ease;
}
.base-card::before,
.base-card::after { display: none !important; }
.base-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--art-a, var(--gold)) 48%, rgba(255,255,255,.12));
  box-shadow: 0 24px 54px rgba(0,0,0,.38), 0 0 0 1px color-mix(in srgb, var(--art-a, var(--gold)) 10%, transparent);
}
.card-top {
  position: relative;
  min-height: 132px;
  margin: 0;
  padding: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.075);
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--art-a, #d7ab4c) 22%, transparent), transparent 30%),
    linear-gradient(135deg, var(--art-b, #2a1913), #0d1015 74%);
}
.card-top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,7,10,.45));
  pointer-events: none;
}
.card-art-grid {
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at 50% 48%, black 0 34%, transparent 78%);
}
.card-icon {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  color: var(--art-a, var(--gold-bright));
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--art-a, var(--gold)) 34%, transparent));
  opacity: 1;
  transform: translateY(2px);
}
.card-icon svg { width: 56px; height: 56px; stroke-width: 1.4; }
.base-card-tags {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  pointer-events: none;
}
.base-card-tag {
  padding: 4px 6px;
  border-color: rgba(255,255,255,.14);
  border-radius: 5px;
  color: rgba(245,236,221,.78);
  background: rgba(5,7,10,.56);
  backdrop-filter: blur(8px);
  font-size: .5rem;
  letter-spacing: .07em;
}
.base-card-tag.tag-instant { color: #f3d57f; border-color: rgba(215,171,76,.42); }
.card-art-category {
  position: absolute;
  z-index: 3;
  left: 12px;
  bottom: 9px;
  color: rgba(245,236,221,.58);
  font-size: .54rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.base-card-body {
  min-height: 214px;
  padding: 16px 16px 15px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.base-card-title {
  margin: 0;
  color: var(--cream);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.15;
}
.base-card-meta {
  color: #8c8a85;
  font-size: .62rem;
  letter-spacing: .015em;
}
.card-modes { margin: 1px 0 0; }
.mode-tag {
  padding: 3px 6px;
  border-color: rgba(255,255,255,.09);
  border-radius: 999px;
  color: #a29e96;
  background: rgba(255,255,255,.025);
  font-size: .49rem;
  letter-spacing: .07em;
}
.base-card-desc {
  min-height: 38px;
  margin: 3px 0 0;
  display: -webkit-box;
  overflow: hidden;
  color: #aaa59d;
  font-size: .68rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.base-card .action-row { margin-top: auto; padding-top: 8px; }
.base-card .action-row .btn {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border-radius: 8px;
  font-size: .59rem;
  letter-spacing: .055em;
}

/* Per-game art direction: enough personality to navigate, not a casino carpet. */
.base-card[data-game-theme="most-likely-to"] { --art-a:#ffc64e; --art-b:#4a173a; }
.base-card[data-game-theme="never-have-i-ever"] { --art-a:#ff7f6d; --art-b:#451418; }
.base-card[data-game-theme="rapid-fire"] { --art-a:#ff9b53; --art-b:#452016; }
.base-card[data-game-theme="gilded-tongue"] { --art-a:#e7c77d; --art-b:#43311b; }
.base-card[data-game-theme="confessional"] { --art-a:#d06c92; --art-b:#3e1427; }
.base-card[data-game-theme="hot-take"] { --art-a:#62b2ff; --art-b:#182b4c; }
.base-card[data-game-theme="hot-seat"] { --art-a:#ff8d7f; --art-b:#47231d; }
.base-card[data-game-theme="charades"] { --art-a:#c59cff; --art-b:#2d1f45; }
.base-card[data-game-theme="trivia"] { --art-a:#ffd45f; --art-b:#3f3413; }
.base-card[data-game-theme="truth-dare"] { --art-a:#ff6b75; --art-b:#47111b; }
.base-card[data-game-theme="two-truths"] { --art-a:#5dd6af; --art-b:#173b35; }
.base-card[data-game-theme="kings-cup"] { --art-a:#e6b85a; --art-b:#452417; }
.base-card[data-game-theme="drawing"] { --art-a:#ff79b5; --art-b:#3b1830; }

/* ─── Catalog utility rail ─────────────────────────────────── */
.play-utilities-section {
  position: sticky;
  top: 148px;
  margin: 48px 0 0;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(20,24,31,.96), rgba(11,13,17,.98));
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
}
.play-utilities-header { margin-bottom: 12px; align-items: center; }
.play-utilities-title { font-size: 1rem; font-weight: 600; }
.play-utilities-sub { margin-top: 3px; color: var(--dim); font-size: .62rem; line-height: 1.35; }
.play-utilities-all { color: var(--gold); font-size: .62rem; }
.play-utilities-grid { margin: 0; display: grid; grid-template-columns: 1fr; gap: 7px; }
.play-utilities-grid .tool-card {
  min-height: 68px;
  padding: 10px;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 9px;
  background: rgba(255,255,255,.022);
  box-shadow: none;
}
.play-utilities-grid .tool-card:hover { transform: none; border-color: rgba(215,171,76,.24); background: rgba(215,171,76,.035); }
.play-utilities-grid .tool-card .card-top,
.play-utilities-grid .tool-card p,
.play-utilities-grid .tool-card .mini-actions { display: none; }
.play-utilities-grid .tool-card-icon { margin: 0; grid-column: 1; grid-row: 1; }
.play-utilities-grid .tool-card-icon svg { width: 24px; height: 24px; }
.play-utilities-grid .tool-card h4 { grid-column: 2; grid-row: 1; margin: 0; font-size: .72rem; }
.play-utilities-grid .tool-card .action-row { grid-column: 3; grid-row: 1; margin: 0; padding: 0; }
.play-utilities-grid .tool-card .btn {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  overflow: hidden;
  color: transparent;
  border-color: rgba(215,171,76,.28);
  background: rgba(215,171,76,.07);
  box-shadow: none;
}
.play-utilities-grid .tool-card .btn::after { content: "→"; color: var(--gold-bright); font-size: .82rem; }

/* ─── Tools route ──────────────────────────────────────────── */
#tools-grid-section { padding-top: 42px; }
.tools-hero {
  min-height: 230px;
  padding: 46px 50px;
  display: flex;
  align-items: end;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background:
    radial-gradient(circle at 85% 12%, rgba(215,171,76,.12), transparent 28%),
    linear-gradient(135deg, #171b22, #0b0d11);
  box-shadow: var(--shadow-2);
}
.tools-hero h1 { margin: 8px 0 4px; color: var(--cream); font-size: clamp(3rem,6vw,5rem); letter-spacing: -.04em; }
.tools-board { margin-top: 18px; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.tool-expand-wrap {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(22,26,33,.95), rgba(11,13,17,.98));
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}
.tool-card {
  min-height: 112px;
  padding: 20px;
  border: 0;
  background: transparent;
}
.tc-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(215,171,76,.22);
  border-radius: 11px;
  color: var(--gold-bright);
  background: rgba(215,171,76,.055);
}
.tc-body h4 { color: var(--cream); font: 600 1.22rem/1.2 var(--font-display); }
.tc-body p { color: #9f9a92; }
.tc-arrow { color: var(--gold); }

/* ─── Modal and game preview ───────────────────────────────── */
.modal-shell { background: rgba(2,4,7,.82); backdrop-filter: blur(18px) saturate(80%); }
.modal {
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 17px;
  background: #0d1015;
  box-shadow: 0 50px 130px rgba(0,0,0,.7), inset 0 1px rgba(255,255,255,.035);
}
.modal-head {
  min-height: 60px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.075);
  background: rgba(9,11,15,.96);
}
.modal-brand { display: flex; align-items: center; gap: 8px; }
.modal-logo { width: 28px; height: 28px; object-fit: contain; }
.modal-brand span { color: var(--cream); font: 600 .84rem/1 var(--font-display); text-transform: uppercase; }
.modal-brand b { color: var(--gold); }
.modal-head .btn { min-height: 34px; border-radius: 8px; }
.modal.is-game:not(.is-running):not(.is-tool) { width: min(820px, calc(100vw - 36px)); }
.game-preview-stage {
  position: relative;
  min-height: 470px;
  padding: 36px;
  display: grid;
  grid-template-columns: minmax(230px,.8fr) minmax(300px,1.2fr);
  grid-template-rows: auto auto 1fr auto;
  align-items: start;
  column-gap: 38px;
  row-gap: 0;
  text-align: left;
  overflow: hidden;
}
.game-preview-stage::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 41%;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--theme-accent, var(--gold)) 18%, transparent), transparent 32%),
    linear-gradient(145deg, rgba(39,27,20,.95), rgba(12,14,18,.98));
  border-right: 1px solid rgba(255,255,255,.075);
}
.game-preview-stage::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 41%;
  height: 100%;
  opacity: .15;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 50% 42%, black, transparent 72%);
  pointer-events: none;
}
.game-preview-icon {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1 / 5;
  align-self: center;
  justify-self: center;
  width: 152px;
  height: 152px;
  display: grid;
  place-items: center;
  color: var(--theme-accent, var(--gold-bright));
  filter: drop-shadow(0 0 30px color-mix(in srgb, var(--theme-accent, var(--gold)) 28%, transparent));
}
.game-preview-icon svg { width: 118px; height: 118px; stroke-width: 1.15; }
.game-preview-copy { position: relative; z-index: 2; grid-column: 2; }
.game-preview-copy h2 { margin: 0 0 12px; font-size: clamp(2.3rem,5vw,3.45rem); letter-spacing: -.035em; }
.game-preview-copy p { max-width: 48ch; font-size: .88rem; }
.game-preview-meta {
  position: relative;
  z-index: 2;
  grid-column: 2;
  width: 100%;
  max-width: none;
  margin-top: 24px;
  padding: 18px 0;
  grid-template-columns: repeat(3,minmax(0,1fr));
  border-block-color: rgba(255,255,255,.08);
}
.game-preview-meta dt { color: #777b80; }
.game-preview-meta dd { color: #e5dfd6; font-size: .78rem; }
.game-preview-actions {
  position: relative;
  z-index: 2;
  grid-column: 2;
  align-self: end;
  margin-top: 24px;
}
.game-preview-actions .btn { border-radius: 9px; }

/* ─── Footer ──────────────────────────────────────────────── */
.site-footer { border-top: 1px solid rgba(255,255,255,.07); background: #08090c; }
.site-footer-inner { padding: 34px 0 44px; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; }
.footer-logo { width: 34px; height: 34px; object-fit: contain; }
.footer-brand span { color: var(--cream); font: 600 1rem/1 var(--font-display); text-transform: uppercase; }
.footer-brand b { color: var(--gold); }
.footer-nav-links a,
.footer-legal-links a { color: #8d8b86; }
.footer-nav-links a:hover,
.footer-legal-links a:hover { color: var(--gold-bright); }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 1240px) {
  .game-subgrid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  #games-section { grid-template-columns: minmax(0,1fr) 230px; }
  .home-lane-strip { grid-template-columns: 1fr repeat(3,minmax(135px,.8fr)); }
  .home-lane-link { display: none !important; }
}

@media (max-width: 1020px) {
  .topbar { height: 68px; }
  .topbar-inner { width: min(100% - 32px, 1380px); }
  .site-nav > .nav-link { padding-inline: 9px; }
  .nav-search-wrap { display: none; }
  .home-hero { min-height: 650px; padding: 48px; }
  .home-hero-content { margin-bottom: 80px; }
  .home-lane-strip { grid-template-columns: 1fr repeat(3,minmax(0,.8fr)); }
  .home-lane-intro p,
  .home-lane-item small { display: none; }
  #games-section { display: block; }
  #play-utilities { position: static; margin-top: 18px; }
  .play-utilities-section { position: static; }
  .play-utilities-grid { grid-template-columns: repeat(3,1fr); }
  .play-utilities-grid .tool-card { min-height: 68px; }
  .game-subgrid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .app-shell,
  .topbar-inner,
  .site-footer-inner,
  .consent-slot { width: calc(100% - 28px); }
  .app-shell { padding-bottom: 56px; }
  .topbar-inner { width: calc(100% - 28px); }
  .brand-wordmark { font-size: .98rem; }
  .preview-badge { display: none; }
  .home-hero {
    min-height: 670px;
    margin-top: 12px;
    padding: 36px 24px;
    align-items: end;
    border-radius: 15px;
  }
  .home-hero-media img { object-position: 63% 40%; filter: saturate(.72) contrast(1.08) brightness(.53); }
  .home-hero-shade {
    background:
      linear-gradient(0deg, rgba(7,8,11,.99) 0%, rgba(7,8,11,.95) 37%, rgba(7,8,11,.36) 72%, rgba(7,8,11,.12)),
      linear-gradient(90deg, rgba(7,8,11,.55), transparent 72%);
  }
  .home-hero-content { margin-bottom: 122px; }
  .home-hero-content h1 { max-width: 7.5ch; font-size: clamp(3.3rem,15vw,4.8rem); }
  .home-hero-content > p { margin-top: 18px; font-size: .98rem; }
  .home-primary-actions { grid-template-columns: 1fr; margin-top: 24px; }
  .home-action { min-height: 56px; }
  .home-join-card { grid-template-columns: 1fr; }
  .home-join-copy { display: none; }
  .home-join-row { width: 100%; }
  .home-code-input { flex: 1; width: auto; }
  .home-join-submit { min-width: 104px; }
  .home-hero-detail {
    left: 20px;
    right: 20px;
    bottom: 22px;
    gap: 10px;
  }
  .home-hero-detail > div { display: grid; grid-template-columns: 1fr; gap: 2px; }
  .home-hero-detail strong { grid-row: auto; font-size: 1.1rem; }
  .home-hero-detail span { font-size: .62rem; }
  .home-hero-detail small { display: none; }
  .home-lane-strip {
    padding: 16px;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
  }
  .home-lane-intro { grid-column: 1/-1; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .home-lane-item { gap: 7px; }
  .home-lane-age { width: 34px; height: 34px; flex-basis: 34px; }
  .home-lane-item strong { font-size: .64rem; }
  .home-mode-guide { grid-template-columns: 1fr; border-block: 0; }
  .mode-guide-card {
    min-height: 0;
    padding: 24px 4px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.075);
  }
  .catalog-section { padding-top: 20px; }
  .catalog-heading {
    min-height: 0;
    padding: 30px 24px;
    display: block;
    border-radius: 15px;
  }
  .catalog-heading h1 { font-size: clamp(2.85rem,14vw,4.2rem); }
  .catalog-heading-actions { width: 100%; margin-top: 24px; }
  .catalog-stats { gap: 6px; }
  .catalog-toolbar {
    top: 76px;
    margin-top: 10px;
    padding: 8px;
    display: grid;
    gap: 8px;
  }
  .catalog-search { width: 100%; }
  .catalog-filters { margin: 0 -2px; padding-bottom: 1px; }
  .catalog-filter { min-height: 32px; padding-inline: 10px; }
  .catalog-mobile { margin-top: 18px; }
  .mobile-game-row {
    min-height: 76px;
    border-radius: 11px;
    background:
      radial-gradient(circle at 0 50%, color-mix(in srgb, var(--ca) 8%, transparent), transparent 44%),
      linear-gradient(145deg, rgba(23,27,34,.98), rgba(12,14,18,.99));
  }
  .mobile-game-row__copy strong { color: var(--cream); }
  .play-utilities-section { display: block; padding: 16px; }
  .play-utilities-header,
  .play-utilities-grid { display: none !important; }
  .play-utilities-mobile-link { display: flex; }
  .tools-board { grid-template-columns: 1fr; }
  .tools-hero { min-height: 190px; padding: 34px 26px; }
  .modal.is-game:not(.is-running):not(.is-tool) { width: min(100%, 520px); }
  .game-preview-stage {
    min-height: 0;
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }
  .game-preview-stage::before {
    position: relative;
    order: -2;
    width: calc(100% + 40px);
    min-height: 190px;
    margin: 0 -20px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.075);
  }
  .game-preview-stage::after { width: 100%; height: 190px; }
  .game-preview-icon {
    position: absolute;
    z-index: 3;
    top: 28px;
    left: 50%;
    width: 132px;
    height: 132px;
    transform: translateX(-50%);
  }
  .game-preview-icon svg { width: 96px; height: 96px; }
  .game-preview-copy { margin-top: 8px; }
  .game-preview-copy h2 { font-size: 2.25rem; }
  .game-preview-copy p { margin-inline: auto; }
  .game-preview-meta { margin-top: 0; grid-template-columns: repeat(2,1fr); text-align: left; }
  .game-preview-actions { width: 100%; margin-top: 0; grid-template-columns: 1fr; }
  .game-preview-actions #gp-start-btn { order: -1; }
}

@media (max-width: 430px) {
  .brand-mark,
  .brand-mark img { width: 30px; height: 30px; }
  .brand-wordmark { font-size: .9rem; }
  .home-hero { min-height: 650px; }
  .home-hero-content h1 { font-size: 3.55rem; }
  .home-lane-item { flex-direction: column; align-items: flex-start; }
  .home-lane-item strong { font-size: .6rem; }
  .catalog-heading h1 { font-size: 3.2rem; }
  .catalog-stats span { font-size: .61rem; }
  .mobile-catalog-heading { align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .route-section,
  .base-card,
  .home-action { animation: none !important; transition: none !important; }
}

/* Final layout corrections after responsive visual QA. */
html,
body { overflow-x: clip; }
.app-shell { padding-bottom: 36px; }
#games-grid { grid-column: 1; grid-row: 4; }
#play-utilities { grid-column: 2; grid-row: 4; align-self: start; }
.site-footer {
  margin-top: 24px;
  padding: 0;
}
.site-footer-inner { padding: 38px 0 44px; }
body[data-route="home"] .home-mode-guide { margin-bottom: 8px; }
body[data-route="home"] .app-shell { padding-bottom: 20px; }

@media (max-width: 1020px) {
  #games-grid,
  #play-utilities { grid-column: auto; grid-row: auto; }
}

@media (max-width: 760px) {
  .app-shell { padding-bottom: 28px; }
  .site-footer { margin-top: 14px; }
  .site-footer-inner { padding: 42px 0 46px; }
  body[data-route="home"] .home-mode-guide { margin-bottom: 0; }
}

.play-utilities-grid .tool-card .utility-open {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(215,171,76,.28);
  border-radius: 8px;
  color: var(--gold-bright);
  background: rgba(215,171,76,.07);
  font: 700 .9rem/1 var(--font-ui);
  cursor: pointer;
}
.play-utilities-grid .tool-card .utility-open:hover {
  border-color: rgba(241,207,121,.55);
  background: rgba(215,171,76,.13);
}

/* ─── Shared host and phone gameplay chrome ────────────────── */
.hf-root {
  grid-template-rows: 64px minmax(0,1fr) auto;
  background:
    radial-gradient(ellipse 55% 42% at 50% 36%, color-mix(in srgb, var(--shell-accent) 6%, transparent), transparent 70%),
    linear-gradient(180deg,#090b0f,#0d1117 52%,#080a0d);
}
.hf-root::before { inset: 64px 0 0; opacity: .22; }
.hf-header {
  padding: 0 20px;
  gap: 18px;
  border-bottom-color: rgba(255,255,255,.075);
  background: rgba(7,9,12,.94);
}
.hf-brand-mark { width: 31px; height: 31px; }
.hf-brand-name {
  color: var(--cream);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hf-title-group { padding-left: 18px; }
.hf-header-title { color: var(--cream); font-size: 1.2rem; }
.hf-header-subtitle { color: #888a8b; font-size: .72rem; }
.hf-room-summary,
.hf-header-chip {
  min-height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,.025);
}
.hf-stage { padding-top: 22px; }
.hf-dock { background: rgba(7,9,12,.96); }
.hf-player-rail { padding-block: 10px 9px; }
.hf-player {
  border-radius: 9px;
  background: rgba(255,255,255,.024);
}
.hf-control-bar { min-height: 58px; }
.hf-btn-primary,
.hf-btn-ghost { border-radius: 9px; }
.hf-btn-primary {
  color: #171008;
  border-color: #dcb159;
  background: linear-gradient(180deg,#f0d07f,#d2a043);
  box-shadow: 0 2px 0 #8c5c1e,0 10px 24px rgba(215,171,76,.18);
}

.pf-root {
  background:
    radial-gradient(ellipse 90% 42% at 50% -5%, color-mix(in srgb,var(--theme-accent,var(--gold)) 8%,transparent),transparent 72%),
    linear-gradient(180deg,#090b0f,#0d1117 48%,#080a0d);
}
.pf-header {
  min-height: 72px;
  padding: 12px 16px 10px;
  border-bottom-color: rgba(255,255,255,.075);
  background: rgba(7,9,12,.94);
}
.pf-header-left { gap: 3px; }
.pf-header-brand { display: flex; align-items: center; gap: 7px; }
.pf-header-logo { width: 22px; height: 22px; opacity: 1; }
.pf-header-brand span {
  color: var(--cream);
  font: 600 .72rem/1 var(--font-display);
  letter-spacing: .015em;
  text-transform: uppercase;
}
.pf-header-brand b { color: var(--gold); }
.pf-header-title {
  margin-top: 4px;
  color: var(--theme-accent,var(--gold-bright));
  font-size: 1.05rem;
  font-style: normal;
  letter-spacing: -.01em;
  text-shadow: none;
}
.pf-header-phase { color: #777b7e; }
.pf-you-name { color: #bab6ae; font-size: .61rem; letter-spacing: .08em; }
.pf-you-avatar {
  width: 36px;
  height: 36px;
  background: #11151b;
  box-shadow: 0 0 0 3px rgba(0,0,0,.3),0 0 18px color-mix(in srgb,currentColor 18%,transparent);
}
.pf-stage { padding: 26px 20px 22px; }
.pf-eyebrow {
  color: var(--theme-accent,var(--gold));
  font-family: var(--font-ui);
  font-size: .62rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pf-prompt {
  color: var(--cream);
  font-size: clamp(1.85rem,7vw,2.55rem);
  line-height: 1.1;
  letter-spacing: -.025em;
}
.pf-prompt em { color: var(--theme-accent,var(--gold-bright)); font-style: normal; text-shadow: none; }
.pf-stage-sub { color: #a39f97; font-family: var(--font-ui); font-size: .82rem; font-style: normal; line-height: 1.55; }
.pf-option {
  min-height: 58px;
  padding: 11px 13px;
  border-radius: 11px;
  background: linear-gradient(145deg,color-mix(in srgb,var(--pc,var(--gold)) 8%,#171b22),#101319);
  box-shadow: 0 10px 22px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.035);
}
.pf-dock {
  border-top-color: rgba(255,255,255,.075);
  background: rgba(7,9,12,.96);
  backdrop-filter: blur(18px);
}
.pf-btn-primary,
.pf-btn-ghost { min-height: 48px; border-radius: 10px; }
.pf-btn-primary {
  color: #171008;
  border-color: #dcb159;
  background: linear-gradient(180deg,#f0d07f,#d2a043);
  box-shadow: 0 2px 0 #8c5c1e,0 10px 26px rgba(215,171,76,.19);
}
.pf-btn-ghost { color: #d0cbc2; border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.035); }
.hf-root.theme-mlt { --shell-accent:#b45cff; }
.hf-root.theme-truth-dare { --shell-accent:#ff6275; }
.hf-root.theme-hot-seat { --shell-accent:#ff8d7f; }
.hf-root.theme-never-have-i-ever { --shell-accent:#ff7f6d; }
.hf-root.theme-rapid-fire { --shell-accent:#ff9b53; }
@media (max-width: 760px) {
  .catalog-heading { padding: 26px 22px; }
  .catalog-heading h1 { margin: 10px 0 12px; font-size: clamp(2.7rem,12vw,3.45rem); }
  .catalog-heading .lead { font-size: .86rem; line-height: 1.52; }
  .catalog-stats { margin-top: 16px; }
  .catalog-heading-actions { margin-top: 18px; }
  .catalog-heading-actions small { display: none; }
}

/* ==========================================================================
   Editorial hierarchy and responsive refinement
   ========================================================================== */

/* Ember & Ace — second refinement pass
   This layer deliberately corrects hierarchy, legibility, density, and
   gameplay presence without rewriting the stable interaction system. */

:root {
  --ea-canvas: #08090c;
  --ea-surface: #101318;
  --ea-surface-2: #151922;
  --ea-surface-3: #1a2029;
  --ea-cream: #f6efe3;
  --ea-copy: #c9c2b7;
  --ea-muted: #958f86;
  --ea-faint: #6f716f;
  --ea-gold: #e4b858;
  --ea-gold-hi: #f4d98f;
  --ea-line: rgba(255,255,255,.105);
  --ea-line-soft: rgba(255,255,255,.068);
}

body {
  background:
    radial-gradient(ellipse 75% 44% at 50% -8%, rgba(228,184,88,.095), transparent 68%),
    radial-gradient(ellipse 48% 40% at 4% 48%, rgba(135,47,35,.075), transparent 72%),
    linear-gradient(180deg, #090a0d 0%, #07080a 58%, #090a0e 100%);
}

/* ─── Global chrome ─────────────────────────────────────────── */
.app-shell,
.topbar-inner,
.site-footer-inner,
.consent-slot {
  width: min(1420px, calc(100% - 56px));
}

.topbar,
.topbar-inner { height: 72px; min-height: 72px; }
.topbar {
  border-bottom-color: rgba(228,184,88,.2);
  background: rgba(7,8,11,.91);
}
.brand-credential { gap: 11px; }
.brand-mark,
.brand-mark img { width: 38px; height: 38px; }
.brand-wordmark { font-size: 1.18rem; letter-spacing: .025em; }
.preview-badge { display: none; }
.site-nav > .nav-link { min-height: 72px; padding-inline: 16px; font-size: .79rem; }
.site-nav > .nav-link::after { left: 16px; right: 16px; }
.nav-link-button { min-height: 40px !important; }
.nav-search-wrap { width: 185px; }

.btn,
button,
input { font-family: var(--font-ui); }
.btn-primary {
  color: #1a1107;
  border-color: #e2b657;
  background: linear-gradient(180deg, #f3d98d 0%, #e0b250 62%, #c58a2f 100%);
  box-shadow: 0 2px 0 #8e5a1c, 0 12px 28px rgba(228,184,88,.2);
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.04);
  box-shadow: 0 2px 0 #8e5a1c, 0 18px 38px rgba(228,184,88,.26);
}
.btn-secondary {
  color: #e6ded2;
  border-color: rgba(255,255,255,.15);
  background: rgba(255,255,255,.038);
}

/* ─── Home: two-line promise, brighter people, calmer controls ─ */
.home-hero {
  min-height: clamp(650px, 74vh, 790px);
  margin-top: 22px;
  padding: clamp(46px, 6vw, 86px);
  border-color: rgba(255,255,255,.115);
  border-radius: 22px;
  box-shadow: 0 38px 110px rgba(0,0,0,.54), inset 0 1px rgba(255,255,255,.045);
}
.home-hero-media img {
  object-position: 68% 46%;
  filter: saturate(.9) contrast(1.04) brightness(.78);
  transform: scale(1.01);
}
.home-hero-shade {
  background:
    linear-gradient(90deg, rgba(6,7,10,.98) 0%, rgba(6,7,10,.91) 31%, rgba(6,7,10,.54) 54%, rgba(6,7,10,.1) 82%),
    linear-gradient(0deg, rgba(6,7,10,.92) 0%, transparent 43%),
    radial-gradient(circle at 77% 44%, transparent 0 34%, rgba(6,7,10,.2) 74%);
}
.home-hero-content { width: min(650px,100%); margin-bottom: 64px; }
.home-hero-content h1 {
  max-width: 12.5ch;
  font-size: clamp(4rem, 6.1vw, 6rem);
  line-height: .93;
  letter-spacing: -.052em;
}
.home-hero-content h1 em { color: #f3dfb8; }
.home-hero-content > p {
  max-width: 38ch;
  margin-top: 25px;
  color: rgba(246,239,227,.9);
  font-size: clamp(1.05rem,1.45vw,1.24rem);
}
.home-primary-actions { max-width: 590px; margin-top: 34px; gap: 12px; }
.home-action { min-height: 64px; padding-inline: 20px; border-radius: 12px; }
.home-action__copy strong { font-size: .9rem; }
.home-action__copy small { margin-top: 2px; font-size: .69rem; }
.home-join-card {
  max-width: 590px;
  min-height: 68px;
  margin-top: 12px;
  padding: 12px 13px 12px 18px;
  border-color: rgba(255,255,255,.13);
  border-radius: 12px;
  background: rgba(7,9,12,.76);
}
.home-join-card label { font-size: .76rem; }
.home-code-hint { color: #9a958c; font-size: .68rem; }
.home-code-input { width: 118px; height: 44px; font-size: 1.05rem; }
.home-join-submit { min-width: 104px; height: 44px; }
.home-hero-detail {
  left: clamp(42px,5vw,78px);
  right: clamp(42px,5vw,78px);
  bottom: 30px;
  padding-top: 20px;
}
.home-hero-detail > div { grid-template-columns: auto minmax(0,1fr); }
.home-hero-detail strong { font-size: 1.75rem; }
.home-hero-detail span { font-size: .79rem; }
.home-hero-detail small { color: #99948b; font-size: .66rem; }
.home-lane-strip {
  min-height: 100px;
  padding: 20px 24px;
  border-color: rgba(228,184,88,.2);
  background: linear-gradient(100deg, rgba(26,21,17,.9), rgba(14,17,22,.96));
}
.home-lane-intro h2 { font-size: 1.08rem; }
.home-lane-intro p,
.home-lane-item small { color: #8f8b84; }
.mode-guide-card { min-height: 225px; }
.mode-guide-card h2 { font-size: 1.95rem; }
.mode-guide-card p { color: #b4aea4; font-size: .84rem; line-height: 1.58; }

/* ─── Catalog introduction: use the right side, lose the void ── */
.catalog-section { padding-top: 34px; }
.catalog-heading {
  min-height: 330px;
  margin-bottom: 18px;
  padding: clamp(34px,4vw,56px);
  grid-template-columns: minmax(0,1fr) minmax(330px,390px);
  align-items: center;
  gap: clamp(38px,5vw,76px);
  border-color: rgba(255,255,255,.105);
  border-radius: 20px;
  background:
    radial-gradient(circle at 82% 22%, rgba(228,184,88,.12), transparent 31%),
    linear-gradient(135deg, rgba(22,26,34,.98), rgba(9,11,15,.99));
}
.catalog-heading::after {
  width: 510px;
  height: 510px;
  right: -170px;
  top: -275px;
  opacity: .72;
}
.section-eyebrow { color: #dfb454; font-size: .66rem; }
.catalog-heading h1 {
  max-width: 770px;
  margin: 13px 0 16px;
  font-size: clamp(3.45rem,5.35vw,5.4rem);
}
.catalog-heading .lead { max-width: 62ch; color: #bbb4a9; font-size: 1rem; }
.catalog-stats { margin-top: 22px; gap: 8px; }
.catalog-stats span { padding: 8px 12px; color: #a7a198; font-size: .69rem; }
.catalog-heading-actions { width: auto; gap: 14px; }
.catalog-night-flow {
  display: grid;
  gap: 2px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(7,9,12,.52);
  box-shadow: 0 18px 44px rgba(0,0,0,.22);
}
.catalog-night-flow > div {
  min-height: 70px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: 32px minmax(0,1fr);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.065);
}
.catalog-night-flow > div:last-child { border-bottom: 0; }
.catalog-night-flow > div > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(228,184,88,.32);
  border-radius: 50%;
  color: var(--ea-gold-hi);
  background: rgba(228,184,88,.07);
  font-size: .68rem;
  font-weight: 850;
}
.catalog-night-flow p { margin: 0; display: grid; gap: 2px; }
.catalog-night-flow strong { color: #eee6da; font-size: .78rem; }
.catalog-night-flow small { color: #89867f; font-size: .64rem; line-height: 1.35; }
.btn-room-create { min-height: 54px; font-size: .71rem; }

.catalog-heading--local { min-height: 300px; grid-template-columns: minmax(0,1fr) 260px; }
.catalog-local-mark {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  place-items: center;
  gap: 9px;
  text-align: center;
}
.catalog-local-mark::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228,184,88,.12), transparent 67%);
  filter: blur(4px);
}
.catalog-local-mark img {
  position: relative;
  width: 82px;
  height: 82px;
  filter: drop-shadow(0 16px 28px rgba(215,171,76,.2));
}
.catalog-local-mark strong { position: relative; color: var(--ea-cream); font: 600 1.35rem/1.1 var(--font-display); }
.catalog-local-mark span { position: relative; max-width: 180px; color: #8f8c86; font-size: .68rem; line-height: 1.45; }

/* ─── Catalog controls and section rhythm ───────────────────── */
.catalog-toolbar {
  top: 84px;
  min-height: 62px;
  margin-bottom: 20px;
  padding: 10px 12px;
  border-color: rgba(255,255,255,.1);
  background: rgba(10,12,16,.92);
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
}
.catalog-search { width: 260px; min-height: 42px; }
.catalog-search input { font-size: .78rem; }
.catalog-filter { min-height: 36px; padding-inline: 14px; font-size: .69rem; }
.catalog-results { margin-bottom: 0; }
#games-section { grid-template-columns: minmax(0,1fr) 270px; column-gap: 22px; }
.game-section { margin-bottom: 38px; }
.game-section-header {
  min-height: 66px;
  margin-bottom: 16px;
  padding: 0 3px 13px;
  align-items: end;
  border-bottom-color: rgba(255,255,255,.09);
}
.game-section-header > div { display: grid; gap: 4px; }
.game-section-title { font-size: 1.42rem; letter-spacing: -.01em; }
.game-section-description { margin: 0; color: #81817e; font-size: .69rem; line-height: 1.45; }
.game-section-count { align-self: center; color: #7c7c79; }
.game-subgrid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.game-section--featured .game-subgrid { grid-template-columns: repeat(4,minmax(0,1fr)); }

/* ─── Game cards: readable menu objects, not tiny dashboards ── */
.base-card {
  min-height: 390px;
  border-color: rgba(255,255,255,.105);
  border-radius: 16px;
  background: linear-gradient(180deg,#12161d,#0f1217);
  box-shadow: 0 16px 42px rgba(0,0,0,.26), inset 0 1px rgba(255,255,255,.035);
}
.base-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 64px rgba(0,0,0,.4), 0 0 0 1px color-mix(in srgb,var(--art-a,var(--ea-gold)) 16%,transparent);
}
.card-top { min-height: 160px; padding: 14px; }
.card-top::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid color-mix(in srgb,var(--art-a,#d7ab4c) 18%,transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 24px color-mix(in srgb,var(--art-a,#d7ab4c) 4%,transparent);
  opacity: .8;
}
.card-art-grid { opacity: .11; background-size: 22px 22px; }
.card-icon { width: 82px; height: 82px; }
.card-icon svg { width: 66px; height: 66px; stroke-width: 1.3; }
.card-art-category { left: 14px; bottom: 11px; font-size: .56rem; }
.base-card-tags { top: 12px; left: 12px; right: 12px; }
.base-card-tag { padding: 4px 7px; font-size: .51rem; }
.base-card-body { min-height: 230px; padding: 18px 18px 16px; gap: 10px; }
.base-card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.base-card-title { min-width: 0; font-size: 1.34rem; line-height: 1.12; }
.base-card-mode {
  flex: 0 0 auto;
  color: #7f817f;
  font-size: .52rem;
  font-weight: 750;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.base-card-desc {
  min-height: 58px;
  margin-top: 0;
  color: #b1aba2;
  font-size: .74rem;
  line-height: 1.55;
  -webkit-line-clamp: 3;
}
.base-card-facts {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin-top: auto;
}
.base-card-facts > span {
  min-width: 0;
  padding: 9px 10px;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 8px;
  background: rgba(255,255,255,.018);
}
.base-card-facts small {
  color: #6f7474;
  font-size: .49rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.base-card-facts strong {
  overflow: hidden;
  color: #d8d1c7;
  font-size: .63rem;
  font-weight: 650;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.base-card .action-row { padding-top: 2px; }
.base-card .action-row .btn {
  min-height: 43px;
  padding-inline: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .64rem;
}
.base-card--featured { min-height: 360px; }
.base-card--featured .card-top { min-height: 148px; }
.base-card--featured .base-card-body { min-height: 212px; }
.base-card--featured .base-card-desc { -webkit-line-clamp: 2; min-height: 38px; }

/* ─── Useful tools rail ─────────────────────────────────────── */
.play-utilities-section {
  padding: 18px;
  border-color: rgba(255,255,255,.1);
  border-radius: 16px;
  background: linear-gradient(180deg,rgba(20,24,31,.96),rgba(12,14,18,.98));
  box-shadow: 0 18px 46px rgba(0,0,0,.25);
}
.play-utilities-title { color: var(--ea-cream); font-size: 1.12rem; }
.play-utilities-sub { color: #85847f; font-size: .66rem; }
.play-utilities-grid { gap: 9px; }
.play-utilities-grid .tool-card {
  min-height: 66px;
  padding: 10px 9px;
  border-color: rgba(255,255,255,.075);
  border-radius: 10px;
  background: rgba(255,255,255,.018);
}
.play-utilities-grid .tool-card h4 { color: #ddd5ca; font-size: .75rem; }

/* ─── Preview modal: less chrome, stronger explanation ─────── */
.modal.is-game:not(.is-running):not(.is-tool) {
  width: min(940px,calc(100vw - 40px));
  max-height: min(760px,calc(100dvh - 32px));
  border-color: rgba(255,255,255,.13);
  border-radius: 20px;
  background: #0e1116;
  box-shadow: 0 46px 130px rgba(0,0,0,.72);
}
.modal-head {
  min-height: 62px;
  padding: 0 18px;
  border-bottom-color: rgba(255,255,255,.085);
  background: rgba(8,10,13,.96);
}
.modal-brand { font-size: .85rem; }
#close-modal { min-width: 82px; min-height: 36px; }
.game-preview-stage {
  min-height: 540px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(300px,.86fr) minmax(0,1.14fr);
  gap: 0;
}
.game-preview-stage::before,
.game-preview-stage::after { display: none; }
.game-preview-art {
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,.085);
  background:
    radial-gradient(circle at 50% 44%, color-mix(in srgb,var(--game-accent,var(--ca,#b45cff)) 24%,transparent),transparent 32%),
    linear-gradient(145deg,color-mix(in srgb,var(--game-accent,var(--ca,#b45cff)) 12%,#19131f),#090c11 72%);
}
.game-preview-art::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid color-mix(in srgb,var(--game-accent,var(--ca,#b45cff)) 25%,transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 48px color-mix(in srgb,var(--game-accent,var(--ca,#b45cff)) 4%,transparent), 0 0 0 96px color-mix(in srgb,var(--game-accent,var(--ca,#b45cff)) 2%,transparent);
}
.game-preview-art__grid {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at center,#000,transparent 72%);
}
.game-preview-icon {
  position: relative;
  z-index: 2;
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  color: var(--game-accent,var(--ca,#c779ff));
  filter: drop-shadow(0 0 34px color-mix(in srgb,var(--game-accent,var(--ca,#c779ff)) 34%,transparent));
}
.game-preview-icon svg { width: 138px; height: 138px; stroke-width: 1.05; }
.game-preview-art__label {
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 22px;
  color: rgba(246,239,227,.6);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.game-preview-content {
  min-width: 0;
  padding: clamp(32px,4vw,54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.game-preview-copy { grid-column: auto; }
.game-preview-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--game-accent,var(--ea-gold));
  font-size: .61rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.game-preview-copy h2 { margin-bottom: 14px; font-size: clamp(2.7rem,5vw,4rem); line-height: .98; }
.game-preview-copy p { max-width: 48ch; color: #b8b1a7; font-size: .9rem; line-height: 1.62; }
.game-preview-meta {
  margin: 27px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
  border: 0;
}
.game-preview-meta > div {
  min-height: 62px;
  padding: 11px 12px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 9px;
  background: rgba(255,255,255,.018);
}
.game-preview-meta dt { color: #727678; font-size: .52rem; letter-spacing: .11em; }
.game-preview-meta dd { color: #e0d9cf; font-size: .72rem; line-height: 1.3; }
.game-preview-note {
  margin: 18px 0 0;
  padding-left: 13px;
  border-left: 2px solid color-mix(in srgb,var(--game-accent,var(--ea-gold)) 48%,transparent);
  color: #888985;
  font-size: .69rem;
  line-height: 1.55;
}
.game-preview-actions { margin-top: 24px; display: grid; grid-template-columns: .82fr 1.18fr; gap: 10px; }
.game-preview-actions .btn { min-height: 48px; }

/* Game-specific preview accent stays decorative; the action remains Ember gold. */
.modal[data-game-id="most-likely-to"] { --game-accent:#bd67ff; }
.modal[data-game-id="rapid-fire"] { --game-accent:#ff9d59; }
.modal[data-game-id="never-have-i-ever"] { --game-accent:#ff8271; }
.modal[data-game-id="truth-dare"] { --game-accent:#ff697a; }
.modal[data-game-id="hot-seat"] { --game-accent:#ff9183; }
.modal[data-game-id="drawing"] { --game-accent:#ff7fbc; }
.modal[data-game-id="trivia"] { --game-accent:#ffd66b; }
.modal .game-preview-actions .btn-primary { color:#1a1107; border-color:#e2b657; background:linear-gradient(180deg,#f3d98d,#dfaf4d 65%,#c4892e); }

/* ─── Host display: make the prompt the event ───────────────── */
.hf-root {
  grid-template-rows: 72px minmax(0,1fr) auto;
  background:
    radial-gradient(ellipse 62% 54% at 50% 42%, color-mix(in srgb,var(--shell-accent) 9%,transparent),transparent 70%),
    linear-gradient(180deg,#080a0e,#0d1117 54%,#07090c);
}
.hf-root::before { inset: 72px 0 0; opacity: .32; }
.hf-header { padding-inline: 26px; background: rgba(6,8,11,.96); }
.hf-brand-mark { width: 34px; height: 34px; }
.hf-brand-name { font-size: .96rem; }
.hf-header-title { font-size: 1.3rem; }
.hf-stage { padding: 36px clamp(28px,5vw,82px) 28px; }
.hf-eyebrow {
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb,var(--shell-accent) 25%,transparent);
  border-radius: 999px;
  background: color-mix(in srgb,var(--shell-accent) 6%,transparent);
  font-size: .65rem;
}
.hf-prompt { max-width: 960px; font-size: clamp(3rem,5.5vw,5.8rem); line-height: .98; letter-spacing: -.035em; }
.hf-stage-sub { margin-top: 20px; color: #b2aba1; font-size: .92rem; }
.hmlt-stage {
  width: min(1080px,100%) !important;
  min-height: 0 !important;
  padding: clamp(30px,5vh,58px) clamp(28px,4vw,54px) !important;
  border: 1px solid color-mix(in srgb,var(--shell-accent) 34%,rgba(255,255,255,.08));
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0,color-mix(in srgb,var(--shell-accent) 9%,transparent),transparent 48%),
    rgba(12,15,20,.74);
  box-shadow: 0 32px 90px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.04);
}
.hmlt-label { color: var(--shell-accent) !important; font-size: .69rem !important; }
.hmlt-prompt {
  max-width: 900px;
  margin: 18px 0 24px !important;
  color: var(--ea-cream) !important;
  font-style: normal !important;
  font-size: clamp(2.9rem,5.1vw,5rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -.035em;
}
.hmlt-hint { color: #8d8a84 !important; font-size: .66rem !important; }
.hf-dock { background: rgba(6,8,11,.97); }
.hf-player-rail { padding: 13px 24px 12px; }
.hf-player-rail-head { max-width: 1180px; margin-bottom: 9px; font-size: .6rem; }
.hf-roster { gap: 10px; }
.hf-player {
  min-width: 142px;
  padding: 8px 10px;
  border-color: rgba(255,255,255,.095);
  border-radius: 11px;
  background: rgba(255,255,255,.03);
}
.hf-player-avatar { width: 36px; height: 36px; }
.hf-player-name { font-size: .76rem; }
.hf-control-bar { min-height: 68px; padding: 11px 24px; }
.hf-dock-status { color: #aaa49b; font-size: .78rem; }
.hf-btn-primary,.hf-btn-ghost { min-height: 46px; padding-inline: 22px; }

/* ─── Phone controller: clearer prompt and less empty black ─── */
.pf-root {
  background:
    radial-gradient(ellipse 110% 48% at 50% -4%,color-mix(in srgb,var(--theme-accent,var(--ea-gold)) 12%,transparent),transparent 70%),
    radial-gradient(ellipse 90% 52% at 50% 55%,rgba(31,38,48,.5),transparent 80%),
    linear-gradient(180deg,#080a0e,#0d1117 48%,#07090c);
}
.pf-header { min-height: 78px; padding: 13px 17px 11px; }
.pf-header-brand span { font-size: .75rem; }
.pf-header-title { margin-top: 5px; font-size: 1.12rem; }
.pf-header-phase { margin-top: 1px; font-size: .57rem; }
.pf-you-avatar { width: 39px; height: 39px; }
.pf-stage { justify-content: flex-start; padding: 30px 20px 28px; }
.pf-eyebrow {
  margin-bottom: 16px;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb,var(--theme-accent,var(--ea-gold)) 24%,transparent);
  border-radius: 999px;
  background: color-mix(in srgb,var(--theme-accent,var(--ea-gold)) 5%,transparent);
  font-size: .6rem;
}
.pf-eyebrow::before,.pf-eyebrow::after { display:none; }
.pf-prompt { max-width: 12.5em; font-size: clamp(2.05rem,8vw,2.75rem); line-height: 1.08; }
.pf-stage-sub { max-width: 31ch; margin-top: 14px; color: #aaa59c; font-size: .82rem; }
.pf-body { margin-top: 26px; gap: 11px; }
.pf-option {
  min-height: 62px;
  padding: 12px 14px;
  border-color: color-mix(in srgb,var(--pc,var(--ea-gold)) 28%,rgba(255,255,255,.08));
  border-radius: 13px;
  background: linear-gradient(145deg,color-mix(in srgb,var(--pc,var(--ea-gold)) 8%,#171c23),#101319);
}
.pf-option:hover:not(:disabled) { transform: translateY(-1px); }
.pf-option.is-selected {
  border-color: var(--pc,var(--ea-gold));
  background: linear-gradient(145deg,color-mix(in srgb,var(--pc,var(--ea-gold)) 18%,#1a1e24),color-mix(in srgb,var(--pc,var(--ea-gold)) 7%,#11151a));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--pc,var(--ea-gold)) 25%,transparent),0 12px 28px rgba(0,0,0,.25);
  animation: none;
}
.pf-option-icon { width: 36px; height: 36px; }
.pf-option-label { font-size: .92rem; }
.pf-dock { padding: 12px 14px calc(14px + env(safe-area-inset-bottom,0px)); background: rgba(6,8,11,.97); }
.pf-dock-status { color: #888985; }
.pf-dock-actions { gap: 9px; }
.pf-btn-primary,.pf-btn-ghost { min-height: 52px; }

/* ─── Footer and utilities ──────────────────────────────────── */
.site-footer { background: #07080a; }
.site-footer-inner { border-top-color: rgba(255,255,255,.075); }
.footer-brand { font-size: 1rem; }
.footer-nav-links a,.footer-legal-links a { color: #96918a; }

/* ─── Responsive refinement ─────────────────────────────────── */
@media (max-width: 1280px) {
  .game-section--featured .game-subgrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .game-subgrid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 1060px) {
  .app-shell,.topbar-inner,.site-footer-inner,.consent-slot { width: min(100% - 36px,1420px); }
  .catalog-heading { grid-template-columns: minmax(0,1fr) 330px; gap: 34px; }
  #games-section { grid-template-columns: 1fr; }
  #play-utilities { grid-column: 1; grid-row: auto; }
  .play-utilities-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .catalog-heading { grid-template-columns: 1fr; }
  .catalog-heading-actions { margin-top: 10px; }
  .catalog-night-flow { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .catalog-night-flow > div { min-height: 108px; padding: 13px; grid-template-columns: 1fr; align-content: start; }
  .catalog-heading--local { grid-template-columns: minmax(0,1fr) 190px; }
}

@media (max-width: 760px) {
  .app-shell,.topbar-inner,.site-footer-inner,.consent-slot { width: min(100% - 24px,1420px); }
  .topbar,.topbar-inner { height: 66px; min-height: 66px; }
  .brand-mark,.brand-mark img { width: 33px; height: 33px; }
  .brand-wordmark { font-size: .96rem; }

  .home-hero {
    min-height: 700px;
    margin-top: 12px;
    padding: 42px 22px 124px;
    align-items: flex-start;
    border-radius: 17px;
  }
  .home-hero-media img { object-position: 61% 37%; filter: saturate(.82) contrast(1.03) brightness(.58); }
  .home-hero-shade {
    background:
      linear-gradient(180deg,rgba(6,7,10,.58) 0%,rgba(6,7,10,.74) 27%,rgba(6,7,10,.98) 65%),
      linear-gradient(90deg,rgba(6,7,10,.7),rgba(6,7,10,.15));
  }
  .home-hero-content { margin: 0; }
  .home-hero-content h1 { max-width: 10ch; font-size: clamp(3.35rem,15vw,4.25rem); }
  .home-hero-content > p { max-width: 30ch; margin-top: 20px; font-size: .98rem; }
  .home-primary-actions { margin-top: 26px; grid-template-columns: 1fr; }
  .home-action { min-height: 58px; }
  .home-join-card { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .home-join-row { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .home-code-input { width: 100%; }
  .home-code-hint { display: none; }
  .home-hero-detail { left: 20px; right: 20px; bottom: 20px; padding-top: 15px; gap: 8px; }
  .home-hero-detail > div { grid-template-columns: 1fr; justify-items: center; gap: 2px; text-align: center; }
  .home-hero-detail strong { grid-row: auto; font-size: 1.3rem; }
  .home-hero-detail span { font-size: .61rem; }
  .home-hero-detail small { display: none; }
  .home-lane-strip { border-radius: 13px; }

  .catalog-section { padding-top: 18px; }
  .catalog-heading { min-height: 0; padding: 28px 22px; display: block; border-radius: 16px; }
  .catalog-heading h1 { font-size: clamp(3rem,13vw,3.75rem); }
  .catalog-heading .lead { font-size: .88rem; }
  .catalog-night-flow { margin-top: 18px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; }
  .catalog-night-flow > div {
    min-height: 82px;
    padding: 10px 7px;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    gap: 7px;
    border-right: 1px solid rgba(255,255,255,.065);
    border-bottom: 0;
    text-align: center;
  }
  .catalog-night-flow > div:last-child { border-right: 0; }
  .catalog-night-flow > div > span { width: 27px; height: 27px; }
  .catalog-night-flow p { justify-items: center; }
  .catalog-night-flow strong { font-size: .65rem; line-height: 1.2; }
  .catalog-night-flow small { display: none; }
  .btn-room-create { margin-top: 10px; }
  .catalog-heading--local { display: block; }
  .catalog-local-mark { display: none; }
  .catalog-toolbar { top: 74px; margin-bottom: 10px; }
  .catalog-mobile { margin-top: 12px; }
  .game-section-description { display: none; }
  .play-utilities-section { margin-top: 14px; }

  .modal.is-game:not(.is-running):not(.is-tool) { width: min(100% - 18px,540px); max-height: calc(100dvh - 18px); border-radius: 17px; }
  .modal-head { min-height: 54px; padding: 0 13px; }
  .modal-brand { font-size: .75rem; }
  #close-modal {
    min-width: 38px;
    width: 38px;
    min-height: 38px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
  }
  #close-modal::after { content: "×"; font-size: 1.25rem; font-weight: 500; line-height: 1; }
  .game-preview-stage { min-height: 0; display: block; }
  .game-preview-art { min-height: 210px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .game-preview-art::before { width: 180px; height: 180px; box-shadow: 0 0 0 30px color-mix(in srgb,var(--game-accent,var(--ca,#b45cff)) 4%,transparent); }
  .game-preview-icon { width: 120px; height: 120px; }
  .game-preview-icon svg { width: 92px; height: 92px; }
  .game-preview-art__label { left: 18px; bottom: 14px; }
  .game-preview-content { padding: 25px 20px 20px; }
  .game-preview-copy { text-align: left; }
  .game-preview-copy h2 { font-size: 2.55rem; }
  .game-preview-copy p { font-size: .82rem; }
  .game-preview-meta { margin-top: 20px; }
  .game-preview-meta > div { min-height: 56px; padding: 9px 10px; }
  .game-preview-note { display: none; }
  .game-preview-actions { margin-top: 18px; grid-template-columns: 1fr; }
  .game-preview-actions #gp-start-btn { order: -1; }

  .hf-header { padding-inline: 14px; }
  .hf-stage { padding: 22px 16px 18px; }
  .hmlt-stage { padding: 24px 18px !important; border-radius: 18px; }
  .hmlt-prompt { font-size: clamp(2.25rem,10vw,3.4rem) !important; }
  .hf-player { min-width: 130px; }
}

@media (max-width: 430px) {
  .home-hero { min-height: 730px; }
  .home-hero-content h1 { font-size: 3.45rem; }
  .home-lane-strip { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .home-lane-item { align-items: center; text-align: center; }
  .home-lane-item strong { font-size: .61rem; }
  .catalog-heading h1 { font-size: 3rem; }
  .game-preview-art { min-height: 185px; }
  .game-preview-copy h2 { font-size: 2.3rem; }
  .game-preview-meta dd { font-size: .67rem; }
}

@media (prefers-reduced-motion: reduce) {
  .base-card:hover,
  .pf-option:hover { transform: none !important; }
}

/* ─── Editorial featured cards and visible room state ─ */
@media (min-width: 821px) {
  .game-section--featured .game-subgrid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .base-card--featured {
    min-height: 286px;
    display: grid;
    grid-template-columns: minmax(170px,.82fr) minmax(0,1.18fr);
    overflow: hidden;
  }

  .base-card--featured .card-top {
    min-height: 100%;
    border-right: 1px solid rgba(255,255,255,.075);
    border-bottom: 0;
  }

  .base-card--featured .card-top::before {
    width: 188px;
    height: 188px;
    box-shadow:
      0 0 0 34px color-mix(in srgb,var(--art-a,#d7ab4c) 4%,transparent),
      0 0 70px color-mix(in srgb,var(--art-a,#d7ab4c) 10%,transparent);
  }

  .base-card--featured .card-icon {
    width: 98px;
    height: 98px;
  }

  .base-card--featured .card-icon svg {
    width: 78px;
    height: 78px;
  }

  .base-card--featured .base-card-body {
    min-height: 0;
    padding: 22px 20px 18px;
  }

  .base-card--featured .base-card-title { font-size: 1.55rem; }
  .base-card--featured .base-card-desc {
    min-height: 58px;
    font-size: .78rem;
    -webkit-line-clamp: 3;
  }
}

.base-card-title { color: #eee6da; }
.base-card-desc { color: #bbb4aa; }
.base-card-mode { color: #94958f; }
.base-card-facts small { color: #858985; }
.base-card-facts strong { color: #e1d9ce; }
.game-section-title { color: #e9e1d5; }
.game-section-description { color: #92918c; }

.hmlt-progress-wrap {
  width: min(520px,100%) !important;
  max-width: 520px !important;
  margin: 22px 0 0 !important;
}
.hmlt-bar {
  height: 8px !important;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 999px !important;
  background: rgba(255,255,255,.055) !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.35);
}
.hmlt-fill {
  min-width: 8px;
  border-radius: inherit !important;
  background: linear-gradient(90deg,var(--shell-accent),color-mix(in srgb,var(--shell-accent) 58%,#fff)) !important;
  box-shadow: 0 0 18px color-mix(in srgb,var(--shell-accent) 30%,transparent);
}
.hmlt-bar-label {
  margin-top: 9px !important;
  color: #aaa59c !important;
  font-size: .66rem !important;
  letter-spacing: .02em;
}

@media (max-width: 980px) and (min-width: 821px) {
  .base-card--featured {
    grid-template-columns: 150px minmax(0,1fr);
  }
  .base-card--featured .base-card-body { padding-inline: 17px; }
}

/* Keep the brand action color stable even when a game supplies its own accent. */
.modal[data-game-id] .game-preview-actions .btn-primary {
  color: #1a1107 !important;
  border-color: #e2b657 !important;
  background: linear-gradient(180deg,#f3d98d,#dfaf4d 65%,#c4892e) !important;
  box-shadow: 0 2px 0 #8e5a1c, 0 14px 30px rgba(228,184,88,.22) !important;
}
.modal[data-game-id] .game-preview-actions .btn-primary:hover {
  background: linear-gradient(180deg,#f7e2a4,#e4b957 65%,#ca9035) !important;
  box-shadow: 0 2px 0 #8e5a1c, 0 18px 38px rgba(228,184,88,.3) !important;
}

@media (max-width: 760px) {
  .home-hero {
    min-height: 640px;
    padding-bottom: 96px;
  }
}

@media (max-width: 430px) {
  .home-hero { min-height: 650px; }
}

.hmlt-fill {
  background: var(--shell-accent,#bd67ff) !important;
}

/* ==========================================================================
   Game identities and live-play experience
   ========================================================================== */

/* ═══════════════════════════════════════════════════════════════
   Ember & Ace — Experience System
   Distinct game identities, brighter material contrast, live-room
   feedback, and unmistakable phone interactions.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ea-paper: #f1e6d2;
  --ea-paper-deep: #d8c5a7;
  --ea-oxblood: #38131d;
  --ea-teal: #153a39;
  --ea-blue: #172d4a;
  --ea-stage: #10141a;
  --ea-stage-hi: #171d25;
}

/* ─── More ownable home composition ─────────────────────────── */
.home-hero {
  isolation: isolate;
  overflow: hidden;
}
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 57%, rgba(242,193,79,.035) 57% 57.1%, transparent 57.1%),
    radial-gradient(circle at 77% 50%, rgba(242,193,79,.12), transparent 33%);
  mix-blend-mode: screen;
}
.home-hero-content,
.home-hero-detail { z-index: 3; }

.home-lane-strip {
  border-color: rgba(62,43,22,.2);
  color: #211810;
  background:
    linear-gradient(90deg, rgba(255,255,255,.28), transparent 28%),
    var(--ea-paper);
  box-shadow: 0 20px 58px rgba(0,0,0,.24);
}
.home-lane-intro h2,
.home-lane-item strong { color: #20170f; }
.home-lane-intro p,
.home-lane-item small { color: #71634f; }
.home-lane-age { background: rgba(37,25,15,.055); }
.home-lane-age--all { color:#526b18; border-color:#718b2c; }
.home-lane-age--dark { color:#5b447a; border-color:#7c5da4; }
.home-lane-age--drink { color:#913c34; border-color:#ad5148; }
.home-lane-link { color:#6d4912; }

.home-mode-guide { gap: 14px; }
.mode-guide-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: linear-gradient(145deg,#171b22,#0d1015);
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}
.mode-guide-card::after {
  content:"";
  position:absolute;
  width:190px;
  height:190px;
  right:-70px;
  bottom:-100px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:50%;
  box-shadow:0 0 0 28px rgba(255,255,255,.018),0 0 0 58px rgba(255,255,255,.012);
}
.mode-guide-card--lounge { background: linear-gradient(145deg,#38141f,#12141a 78%); }
.mode-guide-card--pass { background: linear-gradient(145deg,#153a39,#11161b 78%); }
.mode-guide-card--tools {
  color:#251b12;
  border-color:rgba(80,55,25,.22);
  background:linear-gradient(145deg,#eadbc1,#cbb68f);
}
.mode-guide-card--tools h2,
.mode-guide-card--tools p { color:#261b12; }
.mode-guide-card--tools .mode-guide-kicker,
.mode-guide-card--tools .mode-guide-link,
.mode-guide-card--tools .mode-guide-number { color:#6f4811; }
.mode-guide-card--tools::after { border-color:rgba(56,37,17,.12); box-shadow:0 0 0 28px rgba(56,37,17,.035),0 0 0 58px rgba(56,37,17,.02); }

/* ─── Game identity system ──────────────────────────────────── */
.card-top { isolation:isolate; overflow:hidden; }
.card-top::before,
.card-top::after,
.card-art-grid,
.card-icon { display:none; }
.card-art-category { z-index:6; }
[class*="game-art--"] {
  min-width:0;
}
.game-art {
  position:absolute;
  inset:0;
  z-index:1;
  overflow:hidden;
  color:var(--art-a,#f2c14f);
  background:
    radial-gradient(circle at 72% 20%,color-mix(in srgb,var(--art-a) 17%,transparent),transparent 30%),
    radial-gradient(circle at 30% 70%,color-mix(in srgb,var(--art-b) 36%,transparent),transparent 50%),
    linear-gradient(145deg,color-mix(in srgb,var(--art-b) 56%,#10131a),#090b0f 74%);
}
.game-art__wash {
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,.055),transparent 32%,rgba(0,0,0,.18));
}
.game-art__grain {
  position:absolute;
  inset:0;
  opacity:.21;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode:soft-light;
}
.game-art__caption {
  position:absolute;
  right:13px;
  bottom:11px;
  z-index:5;
  max-width:60%;
  color:rgba(248,239,225,.63);
  font-size:.5rem;
  font-weight:800;
  letter-spacing:.1em;
  text-align:right;
  text-transform:uppercase;
}
.base-card-hook {
  margin:0;
  color:var(--art-a,#e6bd59);
  font:600 .86rem/1.35 var(--font-display);
}
.base-card-desc { margin-top:0; }
.base-card {
  border-color:color-mix(in srgb,var(--art-a) 14%,rgba(255,255,255,.085));
  background:linear-gradient(180deg,color-mix(in srgb,var(--art-b) 8%,#151922),#0e1116);
}
.base-card:hover {
  border-color:color-mix(in srgb,var(--art-a) 42%,rgba(255,255,255,.12));
  box-shadow:0 28px 70px rgba(0,0,0,.46),0 0 38px color-mix(in srgb,var(--art-a) 10%,transparent);
}
.base-card .btn-primary {
  color:#171008;
  border-color:color-mix(in srgb,var(--art-a) 65%,#8e5a1c);
  background:linear-gradient(180deg,color-mix(in srgb,var(--art-a) 70%,white),var(--art-a) 64%,color-mix(in srgb,var(--art-a) 78%,#7d4d1c));
  box-shadow:0 2px 0 color-mix(in srgb,var(--art-a) 55%,#4c2c12),0 12px 24px color-mix(in srgb,var(--art-a) 14%,transparent);
}
.base-card--featured .card-top { min-height:176px; }
.base-card--featured .base-card-hook { font-size:.92rem; }

/* Orbit vote */
.ga-orbit { position:absolute; border:1px solid color-mix(in srgb,var(--art-a) 45%,transparent); border-radius:50%; }
.ga-orbit--one { width:154px;height:154px;left:50%;top:50%;transform:translate(-50%,-50%); }
.ga-orbit--two { width:104px;height:104px;left:50%;top:50%;transform:translate(-50%,-50%) rotate(22deg);border-style:dashed;opacity:.62; }
.ga-person { position:absolute;width:34px;height:34px;border:2px solid #0c0e12;border-radius:50%;background:color-mix(in srgb,var(--art-a) 20%,#151921);box-shadow:0 0 0 1px var(--art-a),0 0 20px color-mix(in srgb,var(--art-a) 26%,transparent); }
.ga-person::after { content:"";position:absolute;left:50%;top:8px;width:8px;height:8px;border-radius:50%;background:var(--art-a);transform:translateX(-50%);box-shadow:0 11px 0 3px color-mix(in srgb,var(--art-a) 65%,transparent); }
.ga-person--one { left:23%;top:56%; }
.ga-person--two { right:22%;top:29%;transform:scale(.86); }
.ga-person--three { right:19%;bottom:18%;transform:scale(.72);opacity:.8; }
.ga-vote-beam { position:absolute;left:35%;top:51%;width:38%;height:2px;background:linear-gradient(90deg,var(--art-a),transparent);transform:rotate(-22deg);box-shadow:0 0 16px var(--art-a); }

/* Rapid Fire */
.ga-timer { position:absolute;left:19px;top:45%;color:#fff;font:700 2.6rem/1 var(--font-display);text-shadow:0 0 24px var(--art-a); }
.ga-timer::after { content:"SEC";display:block;margin-top:2px;color:var(--art-a);font:800 .46rem/1 var(--font-ui);letter-spacing:.18em; }
.ga-streak { position:absolute;right:-10%;height:7px;border-radius:99px;background:linear-gradient(90deg,transparent,var(--art-a),white);box-shadow:0 0 20px color-mix(in srgb,var(--art-a) 55%,transparent);transform:skewX(-22deg); }
.ga-streak--one{top:28%;width:58%;}.ga-streak--two{top:49%;width:72%;opacity:.72}.ga-streak--three{top:68%;width:45%;opacity:.45}
.ga-streak-word { position:absolute;right:14%;color:rgba(255,255,255,.82);font-size:.58rem;font-weight:900;letter-spacing:.18em;transform:skewX(-12deg); }
.ga-streak-word--one{top:35%}.ga-streak-word--two{top:57%;right:25%;color:var(--art-a)}

/* Hot Seat */
.ga-spotlight { position:absolute;left:50%;top:-20%;width:66%;height:110%;transform:translateX(-50%);clip-path:polygon(35% 0,65% 0,100% 100%,0 100%);background:linear-gradient(180deg,color-mix(in srgb,var(--art-a) 30%,transparent),transparent 77%);filter:blur(2px); }
.ga-chair { position:absolute;left:50%;bottom:21%;width:62px;height:50px;border:2px solid var(--art-a);border-radius:13px 13px 5px 5px;transform:translateX(-50%);box-shadow:0 0 30px color-mix(in srgb,var(--art-a) 22%,transparent); }
.ga-chair::before { content:"";position:absolute;left:8px;right:8px;top:-39px;height:38px;border:2px solid var(--art-a);border-bottom:0;border-radius:18px 18px 0 0; }
.ga-chair i::before,.ga-chair i::after { content:"";position:absolute;bottom:-21px;width:2px;height:21px;background:var(--art-a); }.ga-chair i::before{left:8px}.ga-chair i::after{right:8px}
.ga-question { position:absolute;color:rgba(255,255,255,.5);font:600 1.8rem/1 var(--font-display); }.ga-question--one{left:17%;top:29%;transform:rotate(-13deg)}.ga-question--two{right:14%;top:21%;transform:scale(.72) rotate(14deg)}.ga-question--three{right:21%;bottom:17%;transform:scale(.55)}

/* Gilded Tongue */
.ga-card { position:absolute;left:50%;top:50%;width:70px;height:96px;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--art-a) 55%,transparent);border-radius:9px;color:var(--art-a);background:linear-gradient(150deg,#f1e6d2,#bda57a);box-shadow:0 20px 34px rgba(0,0,0,.32);font:700 2rem/1 var(--font-display); }
.ga-card--one{transform:translate(-88%,-46%) rotate(-16deg)}.ga-card--two{z-index:2;transform:translate(-50%,-54%) rotate(1deg);color:#4b3415}.ga-card--three{transform:translate(-12%,-42%) rotate(15deg);color:#5d3e12}
.ga-ink-line { position:absolute;left:12%;height:1px;background:linear-gradient(90deg,transparent,var(--art-a),transparent); }.ga-ink-line--one{bottom:18%;width:76%}.ga-ink-line--two{bottom:13%;width:48%;left:28%;opacity:.55}

/* Confessional */
.ga-envelope { position:absolute;left:50%;top:50%;width:118px;height:76px;border:1px solid color-mix(in srgb,var(--art-a) 62%,white);border-radius:5px;background:linear-gradient(145deg,#ead9ca,#cbb0a3);transform:translate(-50%,-45%) rotate(-3deg);box-shadow:0 22px 42px rgba(0,0,0,.34); }
.ga-envelope::before,.ga-envelope::after { content:"";position:absolute;inset:0;clip-path:polygon(0 0,50% 58%,100% 0);background:color-mix(in srgb,var(--art-a) 10%,#e9d9c9); }.ga-envelope::after{clip-path:polygon(0 100%,50% 42%,100% 100%);opacity:.65}
.ga-seal { position:absolute;left:50%;top:52%;z-index:3;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;color:#f4e7d6;background:var(--art-b);box-shadow:0 0 0 2px color-mix(in srgb,var(--art-a) 55%,transparent);transform:translate(-50%,-50%);font:700 1.15rem/1 var(--font-display); }
.ga-confession { position:absolute;width:42px;height:3px;border-radius:99px;background:var(--art-a);box-shadow:0 0 14px var(--art-a);opacity:.48; }.ga-confession--one{left:13%;top:31%;transform:rotate(-11deg)}.ga-confession--two{right:11%;bottom:24%;transform:rotate(12deg)}

/* Hot Take */
.ga-meter { position:absolute;left:50%;bottom:18%;width:72%;height:58%;overflow:hidden;border:1px solid color-mix(in srgb,var(--art-a) 45%,transparent);border-bottom:0;border-radius:999px 999px 0 0;transform:translateX(-50%);background:linear-gradient(90deg,#404b67,#6d5f92,#b24e73,#ff8a58); }
.ga-meter::after { content:"";position:absolute;inset:13%;bottom:-2px;border-radius:999px 999px 0 0;background:#0d1015; }
.ga-meter i { position:absolute;z-index:2;left:50%;bottom:0;width:3px;height:80%;background:linear-gradient(#fff,var(--art-a));transform-origin:bottom;transform:rotate(31deg);box-shadow:0 0 15px var(--art-a); }
.ga-meter b { position:absolute;z-index:3;left:50%;bottom:-9px;width:22px;height:22px;border:4px solid var(--art-a);border-radius:50%;background:#11151a;transform:translateX(-50%); }
.ga-meter-number { position:absolute;bottom:9%;color:rgba(255,255,255,.55);font-size:.5rem;font-weight:800; }.ga-meter-number--one{left:10%}.ga-meter-number--five{left:48%}.ga-meter-number--ten{right:8%}
.ga-meter-average { position:absolute;left:50%;top:19%;color:#fff;font:700 1.75rem/1 var(--font-display);transform:translateX(-50%);text-shadow:0 0 20px var(--art-a); }

/* Never Have I Ever */
.ga-hand { position:absolute;bottom:15%;width:34px;height:69px;border:2px solid var(--art-a);border-radius:17px 17px 9px 9px;background:color-mix(in srgb,var(--art-a) 12%,#161a20);box-shadow:0 0 22px color-mix(in srgb,var(--art-a) 18%,transparent); }
.ga-hand::before { content:"";position:absolute;left:6px;top:-28px;width:5px;height:34px;border-radius:99px;background:var(--art-a);box-shadow:8px -6px 0 var(--art-a),16px -2px 0 var(--art-a); }
.ga-hand--one{left:20%;transform:rotate(-8deg)}.ga-hand--two{left:45%;height:82px;transform:rotate(2deg)}.ga-hand--three{right:17%;height:59px;transform:rotate(11deg);opacity:.72}
.ga-total { position:absolute;right:19px;top:19px;color:#fff;font:700 2.3rem/1 var(--font-display); }.ga-total-label{position:absolute;right:20px;top:58px;color:var(--art-a);font-size:.48rem;font-weight:850;letter-spacing:.16em;text-transform:uppercase}

/* Two Truths */
.ga-statement { position:absolute;left:13%;right:13%;height:32px;border:1px solid color-mix(in srgb,var(--art-a) 34%,rgba(255,255,255,.12));border-radius:8px;background:rgba(255,255,255,.045);box-shadow:0 9px 20px rgba(0,0,0,.15); }
.ga-statement::before { content:"";position:absolute;left:11px;top:9px;width:12px;height:12px;border:1px solid var(--art-a);border-radius:50%; }.ga-statement i{position:absolute;left:35px;right:14px;top:10px;height:4px;border-radius:99px;background:linear-gradient(90deg,color-mix(in srgb,var(--art-a) 55%,transparent),rgba(255,255,255,.07));}
.ga-statement--one{top:21%}.ga-statement--two{top:43%}.ga-statement--three{top:65%;border-color:#ef6d78}.ga-statement--three b{position:absolute;right:13px;top:8px;width:16px;height:16px}.ga-statement--three b::before,.ga-statement--three b::after{content:"";position:absolute;left:7px;top:0;width:2px;height:17px;background:#ef6d78;transform:rotate(45deg)}.ga-statement--three b::after{transform:rotate(-45deg)}

/* Truth or Dare */
.ga-choice { position:absolute;top:44%;width:70px;height:70px;display:grid;place-items:center;border:1px solid var(--art-a);border-radius:50%;font:700 2rem/1 var(--font-display);box-shadow:0 0 28px color-mix(in srgb,var(--art-a) 18%,transparent);transform:translateY(-50%); }
.ga-choice--truth{left:17%;color:#f5e7d4;background:color-mix(in srgb,var(--art-a) 12%,#1c1721)}.ga-choice--dare{right:17%;color:#171008;background:var(--art-a)}
.ga-choice-divider{position:absolute;left:50%;top:20%;bottom:25%;width:1px;background:linear-gradient(transparent,rgba(255,255,255,.22),transparent)}
.ga-choice-skip{position:absolute;left:50%;bottom:13%;color:rgba(255,255,255,.57);font-size:.5rem;letter-spacing:.08em;transform:translateX(-50%);white-space:nowrap}

/* Charades */
.ga-curtain { position:absolute;top:0;bottom:0;width:38%;background:linear-gradient(90deg,color-mix(in srgb,var(--art-b) 84%,#241632),color-mix(in srgb,var(--art-a) 16%,#241632));box-shadow:inset -10px 0 18px rgba(0,0,0,.28); }.ga-curtain::after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 18px,rgba(255,255,255,.035) 19px 22px)}
.ga-curtain--left{left:0;clip-path:polygon(0 0,100% 0,72% 100%,0 100%)}.ga-curtain--right{right:0;clip-path:polygon(0 0,100% 0,100% 100%,28% 100%);transform:scaleX(-1)}
.ga-performer { position:absolute;left:50%;bottom:19%;width:36px;height:62px;border-radius:50% 50% 20% 20%;background:#090b0f;transform:translateX(-50%);box-shadow:0 -34px 0 -7px #090b0f,0 0 32px color-mix(in srgb,var(--art-a) 25%,transparent); }
.ga-performer::before,.ga-performer::after{content:"";position:absolute;top:15px;width:46px;height:8px;border-radius:99px;background:#090b0f}.ga-performer::before{right:15px;transform:rotate(-35deg)}.ga-performer::after{left:15px;transform:rotate(28deg)}
.ga-stage-floor{position:absolute;left:10%;right:10%;bottom:12%;height:2px;background:linear-gradient(90deg,transparent,var(--art-a),transparent);box-shadow:0 0 20px var(--art-a)}

/* Trivia */
.ga-tile { position:absolute;width:54px;height:44px;display:grid;place-items:center;border:1px solid color-mix(in srgb,var(--art-a) 52%,transparent);border-radius:9px;color:#fff;background:linear-gradient(145deg,color-mix(in srgb,var(--art-a) 16%,#171b22),#0f1217);box-shadow:0 10px 24px rgba(0,0,0,.28);font:700 1.1rem/1 var(--font-display); }
.ga-tile--one{left:18%;top:23%}.ga-tile--two{right:18%;top:23%}.ga-tile--three{left:18%;bottom:19%}.ga-tile--four{right:18%;bottom:19%;background:var(--art-a);color:#21170a;box-shadow:0 0 30px color-mix(in srgb,var(--art-a) 26%,transparent)}
.ga-buzzer{position:absolute;left:50%;top:50%;width:28px;height:28px;border:5px solid color-mix(in srgb,var(--art-a) 65%,white);border-radius:50%;background:#9b3f32;box-shadow:0 0 0 6px rgba(0,0,0,.25),0 0 26px color-mix(in srgb,var(--art-a) 26%,transparent);transform:translate(-50%,-50%)}

/* Drawing */
.ga-paper { position:absolute;left:50%;top:50%;width:68%;height:70%;border:1px solid rgba(92,57,46,.22);border-radius:4px;background:#efe2d0;box-shadow:0 18px 34px rgba(0,0,0,.34);transform:translate(-50%,-50%) rotate(-2deg); }
.ga-scribble { position:absolute;z-index:2;left:50%;top:50%;width:60%;height:56%;fill:none;stroke:var(--art-a);stroke-width:7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 8px color-mix(in srgb,var(--art-a) 22%,transparent));transform:translate(-50%,-50%) rotate(-2deg); }
.ga-pencil { position:absolute;z-index:3;right:13%;bottom:15%;width:74px;height:9px;border-radius:99px;background:linear-gradient(90deg,#d8b15e 0 78%,#eee 78% 89%,#ef7fae 89%);box-shadow:0 8px 17px rgba(0,0,0,.3);transform:rotate(-42deg); }
.ga-pencil::before{content:"";position:absolute;left:-10px;border-top:4.5px solid transparent;border-bottom:4.5px solid transparent;border-right:11px solid #d7b48a}

/* King's Cup */
.ga-playing-card { position:absolute;left:50%;top:50%;width:64px;height:88px;padding:8px;border:1px solid #d8c7aa;border-radius:7px;color:#8e2f35;background:#f0e6d6;box-shadow:0 18px 34px rgba(0,0,0,.34);font:700 1.35rem/1 var(--font-display); }
.ga-playing-card--one{transform:translate(-85%,-50%) rotate(-13deg)}.ga-playing-card--two{transform:translate(-18%,-45%) rotate(11deg);color:#1f1d20}
.ga-crown { position:absolute;z-index:3;left:50%;top:26%;width:72px;height:40px;background:var(--art-a);clip-path:polygon(0 100%,0 25%,24% 66%,38% 0,53% 66%,72% 8%,100% 64%,100% 100%);transform:translateX(-50%);filter:drop-shadow(0 0 18px color-mix(in srgb,var(--art-a) 38%,transparent)); }
.ga-cup { position:absolute;z-index:4;left:50%;bottom:10%;width:44px;height:34px;border:2px solid var(--art-a);border-radius:4px 4px 18px 18px;background:rgba(95,39,32,.82);transform:translateX(-50%); }

/* ─── Preview becomes a genuine game poster ─────────────────── */
.game-preview-art { overflow:hidden; }
.game-preview-art .game-art { position:absolute; inset:0; }
.game-preview-art .game-art__caption { display:none; }
.game-preview-hook {
  margin:0 0 10px;
  color:var(--art-a,var(--ea-gold));
  font:600 1.02rem/1.35 var(--font-display);
}
.game-preview-content > .game-preview-copy > p:last-child { margin-top:0; }
.game-preview-art__label { z-index:8; }
.modal[data-game-id] .game-preview-stage { --theme-accent:var(--art-a); }

/* ─── Shared-screen live momentum ───────────────────────────── */
.hf-root { --shell-accent:var(--game-accent,var(--shell-accent)); }
.hf-header-actions { gap:10px; }
.hf-live-status {
  min-height:32px;
  padding:0 11px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  border:1px solid color-mix(in srgb,var(--shell-accent) 24%,rgba(255,255,255,.08));
  border-radius:999px;
  color:#bcb7af;
  background:color-mix(in srgb,var(--shell-accent) 5%,rgba(255,255,255,.025));
  font-size:.56rem;
  font-weight:800;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.hf-live-status i,
.hf-stage-status i {
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--shell-accent);
  box-shadow:0 0 12px var(--shell-accent);
  animation:eaLivePulse 1.8s ease-in-out infinite;
}
@keyframes eaLivePulse { 0%,100%{opacity:.55;transform:scale(.8)} 50%{opacity:1;transform:scale(1.12)} }
.hf-room-summary {
  min-width:132px;
  grid-template-columns:auto 1fr auto;
  gap:7px;
  border-color:color-mix(in srgb,var(--shell-accent) 28%,rgba(255,255,255,.1));
  background:linear-gradient(145deg,color-mix(in srgb,var(--shell-accent) 9%,#161a20),#0c0f13);
}
.hf-room-summary-label { color:#898b88; }
.hf-room-code { color:#f6df9e;font-size:1rem;letter-spacing:.13em; }
.hf-room-summary-arrow { color:#8b8e8a;font-size:.7rem; }
.hf-stage { isolation:isolate; }
.hf-stage-ambient { position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none; }
.hf-stage-ambient i { position:absolute;left:50%;top:45%;width:min(62vw,820px);aspect-ratio:1;border:1px solid color-mix(in srgb,var(--shell-accent) 11%,transparent);border-radius:50%;box-shadow:0 0 0 80px color-mix(in srgb,var(--shell-accent) 2.7%,transparent),0 0 0 160px color-mix(in srgb,var(--shell-accent) 1.6%,transparent);transform:translate(-50%,-50%); }
.hf-stage-ambient b { position:absolute;left:50%;bottom:8%;width:48%;height:1px;background:linear-gradient(90deg,transparent,var(--shell-accent),transparent);filter:blur(.3px);opacity:.38;transform:translateX(-50%); }
.hf-stage-status {
  position:absolute;
  left:24px;
  right:24px;
  top:18px;
  display:flex;
  justify-content:space-between;
  color:#777c7c;
  font-size:.54rem;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.hf-stage-status > span { display:inline-flex;align-items:center;gap:7px; }
.hf-ready-progress {
  height:4px;
  margin-bottom:11px;
  overflow:hidden;
  border-radius:99px;
  background:rgba(255,255,255,.055);
}
.hf-ready-progress i {
  width:var(--ready-progress,0%);
  height:100%;
  display:block;
  border-radius:inherit;
  background:linear-gradient(90deg,color-mix(in srgb,var(--shell-accent) 62%,#6c3bcd),var(--shell-accent));
  box-shadow:0 0 16px color-mix(in srgb,var(--shell-accent) 42%,transparent);
  transition:width .45s cubic-bezier(.2,.8,.2,1);
}
.hf-player.is-ready {
  border-color:color-mix(in srgb,var(--shell-accent) 38%,rgba(255,255,255,.1));
  background:linear-gradient(145deg,color-mix(in srgb,var(--shell-accent) 9%,#171b21),#101318);
}
.hf-player.is-ready .hf-player-check { display:grid;place-items:center;width:19px;height:19px;border-radius:50%;color:#111;background:var(--shell-accent);font-size:.62rem;font-weight:900; }

/* Game-wide host accents even when older callers only provide theme classes. */
.hf-root.theme-mlt,.hf-root.theme-most-likely-to { --shell-accent:#f2c14f; }
.hf-root.theme-rapid-fire { --shell-accent:#ff9858; }
.hf-root.theme-hot-seat { --shell-accent:#ff7d6e; }
.hf-root.theme-gilded-tongue { --shell-accent:#e9c778; }
.hf-root.theme-confessional { --shell-accent:#ee7fa8; }
.hf-root.theme-hot-take { --shell-accent:#68b8ff; }
.hf-root.theme-never-have-i-ever { --shell-accent:#ff806f; }
.hf-root.theme-two-truths { --shell-accent:#64d9b2; }
.hf-root.theme-truth-dare { --shell-accent:#ff687b; }
.hf-root.theme-charades { --shell-accent:#c7a2ff; }
.hf-root.theme-trivia { --shell-accent:#ffd467; }
.hf-root.theme-drawing { --shell-accent:#ff7fbc; }
.hf-root.theme-kings-cup { --shell-accent:#e4b75b; }

/* ─── Phone controller: selection must be obvious ───────────── */
.pf-root { --phone-accent:var(--gold); }
.pf-root[data-game-theme="most-likely-to"]{--phone-accent:#f2c14f}.pf-root[data-game-theme="rapid-fire"]{--phone-accent:#ff9858}.pf-root[data-game-theme="hot-seat"]{--phone-accent:#ff7d6e}.pf-root[data-game-theme="gilded-tongue"]{--phone-accent:#e9c778}.pf-root[data-game-theme="confessional"]{--phone-accent:#ee7fa8}.pf-root[data-game-theme="hot-take"]{--phone-accent:#68b8ff}.pf-root[data-game-theme="never-have-i-ever"]{--phone-accent:#ff806f}.pf-root[data-game-theme="two-truths"]{--phone-accent:#64d9b2}.pf-root[data-game-theme="truth-dare"]{--phone-accent:#ff687b}.pf-root[data-game-theme="charades"]{--phone-accent:#c7a2ff}.pf-root[data-game-theme="trivia"]{--phone-accent:#ffd467}.pf-root[data-game-theme="drawing"]{--phone-accent:#ff7fbc}.pf-root[data-game-theme="kings-cup"]{--phone-accent:#e4b75b}
.pf-root {
  background:
    radial-gradient(circle at 50% -10%,color-mix(in srgb,var(--phone-accent) 17%,transparent),transparent 35%),
    radial-gradient(circle at 50% 60%,color-mix(in srgb,var(--phone-accent) 4%,transparent),transparent 48%),
    linear-gradient(180deg,#080a0e,#10151c 52%,#07090c);
}
.pf-header-phase { display:inline-flex;align-items:center;gap:6px;color:color-mix(in srgb,var(--phone-accent) 72%,#9c9c97); }
.pf-header-phase i { width:6px;height:6px;border-radius:50%;background:var(--phone-accent);box-shadow:0 0 10px var(--phone-accent); }
.pf-stage { isolation:isolate; }
.pf-stage-ambient { position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none; }
.pf-stage-ambient i { position:absolute;left:50%;top:24%;width:280px;height:280px;border:1px solid color-mix(in srgb,var(--phone-accent) 10%,transparent);border-radius:50%;box-shadow:0 0 0 42px color-mix(in srgb,var(--phone-accent) 2.4%,transparent),0 0 0 82px color-mix(in srgb,var(--phone-accent) 1.2%,transparent);transform:translate(-50%,-50%); }
.pf-eyebrow { color:var(--phone-accent);border-color:color-mix(in srgb,var(--phone-accent) 30%,transparent);background:color-mix(in srgb,var(--phone-accent) 7%,transparent); }
.pf-prompt em { color:var(--phone-accent);text-shadow:0 0 24px color-mix(in srgb,var(--phone-accent) 24%,transparent); }
.pf-option { position:relative;min-height:68px;padding-right:52px; }
.pf-option::after { content:"";position:absolute;inset:4px;border:1px solid transparent;border-radius:10px;pointer-events:none; }
.pf-option-check {
  position:absolute;
  right:14px;
  top:50%;
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  border:1px solid color-mix(in srgb,var(--pc,var(--phone-accent)) 26%,rgba(255,255,255,.08));
  border-radius:50%;
  color:transparent;
  background:rgba(255,255,255,.025);
  transform:translateY(-50%);
  transition:.2s ease;
}
.pf-option.is-selected {
  opacity:1;
  border-color:var(--pc,var(--phone-accent));
  background:linear-gradient(145deg,color-mix(in srgb,var(--pc,var(--phone-accent)) 26%,#20242b),color-mix(in srgb,var(--pc,var(--phone-accent)) 12%,#11151a));
  box-shadow:0 0 0 2px color-mix(in srgb,var(--pc,var(--phone-accent)) 22%,transparent),0 16px 34px rgba(0,0,0,.32),0 0 34px color-mix(in srgb,var(--pc,var(--phone-accent)) 15%,transparent);
  transform:translateY(-2px);
}
.pf-option.is-selected::after { border-color:color-mix(in srgb,var(--pc,var(--phone-accent)) 20%,transparent); }
.pf-option.is-selected .pf-option-check {
  color:#15100a;
  border-color:var(--pc,var(--phone-accent));
  background:var(--pc,var(--phone-accent));
  box-shadow:0 0 16px color-mix(in srgb,var(--pc,var(--phone-accent)) 38%,transparent);
  transform:translateY(-50%) scale(1.06);
}
.pf-option:disabled:not(.is-selected) { opacity:.34;filter:saturate(.55); }
.pf-option--card { min-height:84px;justify-content:center;padding:20px 54px 20px 18px;text-align:center; }
.pf-option--card .pf-option-label { flex:none; }
.pf-btn-primary { background:linear-gradient(180deg,color-mix(in srgb,var(--phone-accent) 70%,white),var(--phone-accent));border-color:color-mix(in srgb,var(--phone-accent) 62%,#704518);box-shadow:0 2px 0 color-mix(in srgb,var(--phone-accent) 55%,#4c2c12),0 12px 26px color-mix(in srgb,var(--phone-accent) 18%,transparent); }

/* ─── Compact mobile rows inherit game identity ─────────────── */
.mobile-game-row { border-left:3px solid color-mix(in srgb,var(--art-a) 62%,transparent); }
.mobile-game-row.is-featured { background:linear-gradient(145deg,color-mix(in srgb,var(--art-b) 16%,#171b21),#0f1217); }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width:1180px) {
  .home-hero-content { width:min(590px,60%); }
}
@media (max-width:920px) {
  .home-hero-content { width:min(650px,100%); }
  .home-hero-shade { background:linear-gradient(90deg,rgba(6,7,10,.98),rgba(6,7,10,.84) 55%,rgba(6,7,10,.32)),linear-gradient(0deg,rgba(6,7,10,.92),transparent 44%); }
  .home-mode-guide { grid-template-columns:1fr; }
  .mode-guide-card { min-height:190px; }
}
@media (max-width:760px) {
  .home-lane-strip { color:#211810; }
  .home-lane-link { border-top-color:rgba(67,43,18,.14); }
  .game-art__caption { font-size:.47rem; }
  .base-card-hook { font-size:.84rem; }
  .hf-live-status { display:none; }
  .hf-stage-status { left:14px;right:14px;top:12px; }
  .hf-stage-status span:last-child { display:none; }
  .pf-option { min-height:66px; }
}
@media (prefers-reduced-motion: reduce) {
  .hf-live-status i,.hf-stage-status i { animation:none; }
  .hf-ready-progress i,.pf-option,.pf-option-check { transition:none; }
}

/* Featured games read like an editorial menu, not four tiny SKUs. */
.game-section--featured .game-subgrid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.base-card--featured {
  min-height:342px;
  display:grid;
  grid-template-columns:minmax(180px,.88fr) minmax(0,1.12fr);
}
.base-card--featured .card-top { min-height:100%; }
.base-card--featured .base-card-body { min-height:342px;padding:24px 22px 20px; }
.base-card--featured .base-card-title { font-size:1.6rem; }
.base-card--featured .base-card-hook { font-size:1rem; }
.base-card--featured .base-card-desc { min-height:58px;-webkit-line-clamp:3; }
.base-card--featured .game-art__caption { max-width:72%; }

@media (max-width:760px) {
  .game-section--featured .game-subgrid { grid-template-columns:1fr; }
  .base-card--featured { display:flex;min-height:0; }
  .base-card--featured .card-top { min-height:180px; }
  .base-card--featured .base-card-body { min-height:0;padding:19px 17px 17px; }
}

/* Final contrast and density calibration after rendered QA. */
.game-section-title { color:#eee4d5; }
.game-section-description { color:#aaa49a; }
.game-section-count { color:#8e918d; }
.base-card {
  background:linear-gradient(180deg,color-mix(in srgb,var(--art-b) 12%,#181d25),#11151b 72%);
}
.base-card-title { color:#f5ecdf; }
.base-card-mode { color:#9a9e9a; }
.base-card-desc { color:#c3bcb2; }
.base-card-facts > span { border-color:rgba(255,255,255,.09);background:rgba(255,255,255,.026); }
.base-card-facts small { color:#888d8b; }
.base-card-facts strong { color:#e7dfd4; }
.game-art { filter:saturate(1.08) brightness(1.04); }
.home-lane-link { color:#6b4510;font-weight:850; }

@media (max-width:760px) {
  body[data-route="home"] .home-mode-guide,
  .home-mode-guide {
    padding-top:34px;
    padding-bottom:30px;
    margin-bottom:18px;
    gap:12px;
  }
  .site-footer { margin-top:0; }
  .site-footer-inner { padding-top:34px;padding-bottom:30px;gap:18px; }
  .footer-nav-links { gap:14px 18px; }
  .footer-legal { max-width:32ch;line-height:1.5; }
}

/* ==========================================================================
   Midnight salon — public play surface
   The room is the product. Keep the invitation open, quiet, and immediate.
   ========================================================================== */
#route-play { background:#090c0f; }
#route-play .catalog-section { padding-top:0; }
#games-section { display:block; }
#games-section > .catalog-heading {
  position:relative;
  min-height:clamp(390px,56vh,560px);
  margin:0 0 42px;
  padding:clamp(38px,4vw,58px) clamp(30px,6vw,82px);
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(330px,.72fr);
  align-items:center;
  gap:clamp(42px,7vw,100px);
  overflow:hidden;
  border:0;
  border-block:1px solid rgba(217,183,95,.18);
  border-radius:0;
  background:
    linear-gradient(90deg,rgba(6,8,10,.96) 0%,rgba(6,8,10,.88) 45%,rgba(6,8,10,.3) 76%,rgba(6,8,10,.58) 100%),
    linear-gradient(0deg,#090c0f 0%,transparent 38%),
    url('/images/lounge-hero-v3.png') center/cover no-repeat;
  box-shadow:none;
}
#games-section > .catalog-heading::after {
  content:"";
  position:absolute;
  inset:auto 0 0;
  width:auto;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(217,183,95,.36),transparent);
  opacity:1;
}
#route-play .catalog-heading-copy,
#route-play .catalog-heading-actions { position:relative;z-index:1; }
#route-play .section-eyebrow {
  color:#d9b75f;
  font-size:.63rem;
  letter-spacing:.2em;
}
#route-play .catalog-heading h1 {
  max-width:760px;
  margin:14px 0 20px;
  color:#f3eee5;
  font-size:clamp(3.5rem,5vw,5rem);
  font-weight:500;
  line-height:.91;
  letter-spacing:-.04em;
}
#route-play .catalog-heading h1 em { color:#e1c06e;font-style:italic;font-weight:450; }
#route-play .catalog-heading .lead {
  max-width:570px;
  margin:0;
  color:#aaa49a;
  font-size:1rem;
  line-height:1.7;
}
#route-play .catalog-heading-actions {
  width:100%;
  max-width:390px;
  align-self:center;
  justify-self:end;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:center;
}
#route-play .catalog-night-flow {
  overflow:visible;
  display:grid;
  align-content:center;
  gap:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
#route-play .catalog-night-flow > div {
  position:relative;
  min-height:72px;
  padding:11px 0;
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  gap:16px;
  border:0;
  border-bottom:1px solid rgba(217,183,95,.16);
}
#route-play .catalog-night-flow > div:last-child { border-bottom:0; }
#route-play .catalog-night-flow > div > span {
  width:34px;
  height:34px;
  border:1px solid rgba(217,183,95,.42);
  border-radius:50%;
  color:#e1c06e;
  background:rgba(217,183,95,.055);
  font-size:.68rem;
}
#route-play .catalog-night-flow p { gap:5px; }
#route-play .catalog-night-flow strong { color:#f0e9df;font-size:.86rem;letter-spacing:.01em; }
#route-play .catalog-night-flow small { max-width:31ch;color:#8e8981;font-size:.68rem;line-height:1.5; }
#route-play .btn-room-create {
  flex:0 0 auto;
  width:100%;
  min-height:54px;
  margin-top:16px;
  border-color:#e0be66;
  border-radius:8px;
  color:#171107;
  background:linear-gradient(180deg,#e4c36f,#bd9137);
  box-shadow:0 12px 34px rgba(190,139,47,.18);
  font-size:.72rem;
  letter-spacing:.04em;
}
#route-play .catalog-heading-copy .btn-room-create { width:min(360px,100%);margin-top:28px; }

#route-play .game-section { margin-bottom:48px; }
#route-play .game-section-header {
  min-height:0;
  margin-bottom:18px;
  padding:0 0 14px;
  align-items:end;
  border-bottom:1px solid rgba(217,183,95,.17);
}
#route-play .game-section-title { color:#f3eee5;font-size:1.8rem;font-weight:520; }
#route-play .game-section-description { max-width:65ch;color:#8e8981;font-size:.73rem; }
#route-play .game-subgrid,
#route-play .game-section--featured .game-subgrid {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}
#route-play .base-card,
#route-play .base-card--featured {
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.085);
  border-radius:10px;
  background:#101419;
  box-shadow:0 18px 44px rgba(0,0,0,.24);
}
#route-play .base-card:hover {
  transform:translateY(-3px);
  border-color:color-mix(in srgb,var(--art-a) 42%,rgba(255,255,255,.1));
  box-shadow:0 26px 58px rgba(0,0,0,.36);
}
#route-play .card-top,
#route-play .base-card--featured .card-top { min-height:236px;padding:0; }
#route-play .card-top::before { display:none; }
#route-play .game-art--image { position:absolute;inset:0;overflow:hidden; }
#route-play .game-art--image img {
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center 47%;
  filter:saturate(.88) contrast(1.05) brightness(.86);
  transition:transform .55s cubic-bezier(.16,1,.3,1),filter .3s ease;
}
#route-play .base-card:hover .game-art--image img { transform:scale(1.035);filter:saturate(1) contrast(1.06) brightness(.94); }
#route-play .game-art__image-shade {
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 48%,rgba(7,9,11,.92) 100%);
}
#route-play .game-art__caption {
  left:13px;
  right:13px;
  bottom:12px;
  color:#d8ccba;
  font-size:.55rem;
  letter-spacing:.1em;
}
#route-play .card-art-category { display:none; }
#route-play .base-card-tags { top:10px;left:10px;right:10px; }
#route-play .base-card-tag { border-color:rgba(255,255,255,.14);background:rgba(7,9,11,.72);backdrop-filter:blur(8px); }
#route-play .base-card-body,
#route-play .base-card--featured .base-card-body {
  min-height:176px;
  padding:17px 15px 14px;
  gap:8px;
}
#route-play .base-card-heading { display:block; }
#route-play .base-card-title,
#route-play .base-card--featured .base-card-title { color:#f3eee5;font-size:1.24rem;line-height:1.08; }
#route-play .base-card-mode,
#route-play .base-card-desc,
#route-play .base-card-facts { display:none; }
#route-play .base-card-hook,
#route-play .base-card--featured .base-card-hook {
  min-height:38px;
  margin:0;
  color:#99938a;
  font-size:.75rem;
  line-height:1.45;
}
#route-play .base-card .action-row { margin-top:auto;padding-top:6px; }
#route-play .base-card .action-row .btn {
  min-height:42px;
  border-color:rgba(217,183,95,.35);
  border-radius:7px;
  color:#dfc272;
  background:rgba(217,183,95,.055);
  box-shadow:none;
}
#route-play .base-card .action-row .btn:hover { color:#171107;background:#ddba5e; }

@media (max-width:1120px) {
  #games-section > .catalog-heading { grid-template-columns:minmax(0,1fr) 330px;gap:44px; }
  #route-play .game-subgrid,
  #route-play .game-section--featured .game-subgrid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:760px) {
  #games-section > .catalog-heading {
    min-height:0;
    margin-bottom:28px;
    padding:44px 22px 32px;
    display:block;
    background:
      linear-gradient(180deg,rgba(6,8,10,.74),#090c0f 82%),
      url('/images/lounge-hero-v3.png') 67% center/cover no-repeat;
  }
  #route-play .catalog-heading h1 { margin-top:12px;font-size:clamp(3.2rem,15vw,4.55rem); }
  #route-play .catalog-heading .lead { font-size:.88rem; }
  #route-play .catalog-heading-actions { display:block;margin-top:24px; }
  #route-play .catalog-night-flow { grid-template-columns:repeat(3,minmax(0,1fr));gap:0;border-top:1px solid rgba(217,183,95,.15); }
  #route-play .catalog-night-flow > div { min-height:94px;padding:14px 8px;grid-template-columns:1fr;place-items:start center;text-align:center;border-right:1px solid rgba(217,183,95,.12);border-bottom:0; }
  #route-play .catalog-night-flow > div:last-child { border-right:0; }
  #route-play .catalog-night-flow small { display:none; }
  #route-play .catalog-night-flow strong { font-size:.65rem;line-height:1.3; }
  #route-play .btn-room-create { margin-top:14px; }
  #route-play .game-section-header { display:block; }
  #route-play .game-section-title { font-size:1.55rem; }
}

@media (prefers-reduced-motion:reduce) {
  #route-play .game-art--image img { transition:none; }
}

/* ── src/styles/premium.css ── */
/* ========================================================================== 
   Ember & Ace — Premium surface system
   --------------------------------------------------------------------------
   This layer deliberately overrides the older polish passes without deleting
   their game-specific styling. The shared shell becomes quieter, richer, and
   more editorial; individual games keep their own accent personalities.
   ========================================================================== */

:root {
  --premium-obsidian: #07080a;
  --premium-champagne: #d2af62;
  --ink: var(--premium-obsidian);
  --surface: #0f1115;
  --surface-mid: #15181d;
  --surface-high: #1c2026;
  --border: rgba(244, 235, 218, 0.085);
  --border-gold: rgba(210, 175, 98, 0.30);
  --text: #f2ece2;
  --muted: #aaa297;
  --dim: #77736d;
  --gold: var(--premium-champagne);
  --gold-bright: #efd99b;
  --gold-deep: #9d7437;
  --gold-ink: #171106;
  --cream: #f5eee3;
  --ember: #8d2e27;
  --radius-sm: 7px;
  --radius: 13px;
  --radius-lg: 22px;
  --shadow-1: 0 4px 14px rgba(0,0,0,.25);
  --shadow-2: 0 16px 44px rgba(0,0,0,.38);
  --shadow-3: 0 34px 90px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.035);
  --shadow-gold: 0 16px 44px rgba(167,126,54,.22);
  --focus-ring: 0 0 0 2px rgba(239,217,155,.58), 0 0 0 5px rgba(7,8,10,.82);
}

body {
  color: var(--text);
  background-color: #07080a;
  background-image:
    radial-gradient(ellipse 70% 46% at 50% -18%, rgba(210,175,98,.10), transparent 64%),
    radial-gradient(ellipse 42% 54% at 10% 32%, rgba(70,41,50,.16), transparent 70%),
    radial-gradient(ellipse 46% 58% at 92% 72%, rgba(32,59,58,.11), transparent 72%),
    linear-gradient(180deg,#08090b 0%,#07080a 52%,#09090b 100%);
}

#noise-layer { opacity: .017; mix-blend-mode: soft-light; }

::selection { color:#171106; background:#d7b96f; }

/* ─── Global chrome ─────────────────────────────────────────── */
.app-shell,
.topbar-inner,
.site-footer-inner { max-width: 1360px; }

.topbar {
  height: 76px;
  border-bottom: 1px solid rgba(210,175,98,.16);
  background: rgba(7,8,10,.87);
  box-shadow: 0 12px 34px rgba(0,0,0,.18);
  backdrop-filter: blur(24px) saturate(118%);
  -webkit-backdrop-filter: blur(24px) saturate(118%);
}
.topbar.is-scrolled { background: rgba(7,8,10,.96); }
.topbar-inner { min-height:76px; height:76px; padding-inline:26px; }
.brand-credential { gap:12px; }
.brand-mark,
.brand-mark img { width:40px; height:40px; }
.brand-mark img { filter: drop-shadow(0 7px 15px rgba(210,175,98,.20)); }
.brand-wordmark {
  color:#f4eee4;
  font-family:var(--font-display);
  font-size:1.16rem;
  font-weight:650;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.brand-amp { color:#d5b76e; }
.preview-badge {
  display:inline-flex !important;
  min-height:22px;
  align-items:center;
  padding:0 8px;
  border:1px solid rgba(210,175,98,.26);
  border-radius:999px;
  color:#b9a781;
  background:rgba(210,175,98,.045);
  font-size:.48rem;
  font-weight:800;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.site-nav { gap:2px; }
.site-nav > .nav-link {
  min-height:76px;
  padding-inline:17px;
  color:#aaa49a;
  font-size:.76rem;
  font-weight:720;
  letter-spacing:.015em;
}
.site-nav > .nav-link::after {
  left:17px;
  right:17px;
  bottom:0;
  height:1px;
  background:linear-gradient(90deg,transparent,#d7b96f,transparent);
}
.site-nav > .nav-link:hover,
.site-nav > .nav-link.is-active { color:#f2ece3; }
.nav-link-button {
  min-height:40px !important;
  margin-left:10px;
  padding:0 17px !important;
  border:1px solid rgba(239,217,155,.48) !important;
  border-radius:9px !important;
  color:#171106 !important;
  background:linear-gradient(180deg,#e6cc89 0%,#c69f4d 100%) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.34), 0 8px 20px rgba(0,0,0,.22) !important;
  text-shadow:0 1px 0 rgba(255,255,255,.2);
}
.nav-link-button:hover {
  transform:translateY(-1px);
  background:linear-gradient(180deg,#f0d99b,#d0aa58) !important;
}
.nav-search-wrap { border-color:rgba(255,255,255,.09); background:rgba(255,255,255,.025); }
.nav-search-wrap:focus-within { border-color:rgba(210,175,98,.42); box-shadow:0 0 0 3px rgba(210,175,98,.08); }

/* ─── Premium home hero ─────────────────────────────────────── */
.route-section#route-home { padding-top:18px; }
.home-hero {
  min-height:700px;
  padding:70px 72px 118px;
  border:1px solid rgba(239,217,155,.14);
  border-radius:24px;
  background:
    linear-gradient(rgba(210,175,98,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(210,175,98,.035) 1px,transparent 1px),
    radial-gradient(circle at 78% 35%,rgba(210,175,98,.14),transparent 25%),
    radial-gradient(circle at 86% 72%,rgba(82,32,45,.24),transparent 29%),
    linear-gradient(135deg,#090a0c 0%,#0b0c0f 56%,#111016 100%);
  background-size:54px 54px,54px 54px,auto,auto,auto;
  box-shadow:0 40px 120px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.04);
  isolation:isolate;
}
.home-hero::before {
  content:"";
  position:absolute;
  inset:10px;
  z-index:2;
  pointer-events:none;
  border:1px solid rgba(255,255,255,.035);
  border-radius:16px;
}
.home-hero::after {
  background:
    linear-gradient(90deg,rgba(7,8,10,.96) 0%,rgba(7,8,10,.82) 44%,rgba(7,8,10,.18) 72%,rgba(7,8,10,.04) 100%),
    linear-gradient(180deg,transparent 68%,rgba(0,0,0,.34));
  opacity:1;
}
.home-hero-content { width:min(625px,100%); margin:0 0 46px; }
.home-hero-content h1 {
  max-width:8.4ch;
  margin:0;
  color:#f3ede4;
  font-size:clamp(4rem,6.3vw,6.15rem);
  font-weight:500;
  line-height:.91;
  letter-spacing:-.055em;
  text-wrap:balance;
}
.home-hero-content h1 em {
  color:#d7b96f;
  font-style:italic;
  font-weight:490;
  letter-spacing:-.045em;
}
.home-hero-content > p {
  max-width:38ch;
  margin:25px 0 0;
  color:#b8b0a5;
  font-size:1.02rem;
  line-height:1.65;
}
.home-primary-actions { margin-top:32px; gap:12px; }
.home-action {
  min-height:64px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:11px;
  color:#ddd5ca;
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.018));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 10px 28px rgba(0,0,0,.22);
  backdrop-filter:blur(14px);
}
.home-action:hover { transform:translateY(-2px); border-color:rgba(210,175,98,.30); background:rgba(255,255,255,.055); }
.home-action--primary {
  border-color:rgba(239,217,155,.66);
  color:#171106;
  background:linear-gradient(180deg,#e8cf8c 0%,#c49b48 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.42), inset 0 -1px 0 rgba(81,53,9,.28), 0 18px 34px rgba(104,72,20,.24);
}
.home-action--primary:hover { border-color:#f3dda5; background:linear-gradient(180deg,#f1daa0,#d0a955); }
.home-action__icon { width:38px; height:38px; border-color:currentColor; background:rgba(0,0,0,.055); }
.home-action__copy strong { font-size:.82rem; letter-spacing:.005em; }
.home-action__copy small { opacity:.68; font-size:.59rem; }
.home-join-card {
  max-width:620px;
  margin-top:12px;
  padding:13px 14px 13px 16px;
  border:1px solid rgba(255,255,255,.085);
  border-radius:11px;
  background:rgba(8,9,11,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter:blur(18px);
}
.home-join-copy label { color:#d9d1c5; font-size:.67rem; }
.home-code-hint { color:#817b72; font-size:.59rem; }
.home-code-input {
  min-height:43px;
  border-color:rgba(210,175,98,.24);
  border-radius:8px;
  color:#e6c97f;
  background:#0d0f12;
  font-family:var(--font-ui);
  font-weight:760;
  letter-spacing:.18em;
}
.home-code-input:focus { border-color:rgba(239,217,155,.62); box-shadow:0 0 0 3px rgba(210,175,98,.08); }
.home-join-submit {
  min-height:43px;
  border-radius:8px;
  border:1px solid rgba(210,175,98,.24);
  color:#d9c28d;
  background:rgba(210,175,98,.07);
  font-size:.6rem;
  letter-spacing:.07em;
}
.home-join-submit:not(:disabled) { color:#171106; background:linear-gradient(180deg,#e4ca87,#bf9341); }

.home-hero-detail {
  left:72px;
  right:72px;
  bottom:29px;
  padding-top:20px;
  border-top:1px solid rgba(239,217,155,.15);
}
.home-hero-detail > div { gap:7px 11px; }
.home-hero-detail strong { color:#d7b96f; font-size:1.58rem; font-weight:500; }
.home-hero-detail span { color:#e6dfd5; font-size:.72rem; }
.home-hero-detail small { color:#77736d; }

.home-lane-strip {
  margin-top:16px;
  padding:20px 22px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  color:#e9e1d6;
  background:linear-gradient(180deg,rgba(24,26,30,.94),rgba(14,16,19,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03), 0 14px 34px rgba(0,0,0,.18);
}
.home-lane-intro h2 { color:#e9e1d6; font-size:1rem; }
.home-lane-intro p { color:#7f7b74; }
.home-lane-item { border-left:1px solid rgba(255,255,255,.065); padding-left:20px; }
.home-lane-item strong { color:#ddd6cc; }
.home-lane-item small { color:#77736d; }
.home-lane-age {
  border-width:1px;
  background:rgba(255,255,255,.025);
  font-size:.64rem;
}
.home-lane-link { color:#d0b671 !important; }

.home-mode-guide {
  margin-top:16px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  background:#0d0f12;
  box-shadow:0 22px 60px rgba(0,0,0,.28);
}
.mode-guide-card {
  min-height:245px;
  border-color:rgba(255,255,255,.075) !important;
  background:
    linear-gradient(180deg,rgba(255,255,255,.018),transparent 48%),
    #0f1115 !important;
}
.mode-guide-card::before {
  content:"";
  position:absolute;
  left:24px;
  right:24px;
  top:0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(210,175,98,.52),transparent);
  opacity:.55;
}
.mode-guide-card:hover { background:#13161a !important; }
.mode-guide-card::after { opacity:.12; }
.mode-guide-number { color:#6f6759; font-family:var(--font-display); font-size:1.15rem; }
.mode-guide-kicker { color:#9f8e66; }
.mode-guide-card h2 { color:#f1e9de !important; font-size:2rem; font-weight:520; }
.mode-guide-card p { color:#9d968c !important; }
.mode-guide-link { color:#d5b96f; }

/* ─── Catalog and cards ─────────────────────────────────────── */
.catalog-section { padding-top:34px; }
.catalog-heading {
  min-height:310px;
  padding:44px 46px;
  border:1px solid rgba(239,217,155,.12);
  border-radius:22px;
  background:
    radial-gradient(circle at 92% 12%,rgba(210,175,98,.08),transparent 28%),
    linear-gradient(145deg,#121419 0%,#0b0d10 72%);
  box-shadow:0 28px 78px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.035);
}
.catalog-heading::after { opacity:.22; }
.section-eyebrow { color:#ae9868; font-size:.6rem; letter-spacing:.18em; }
.catalog-heading h1 {
  max-width:750px;
  color:#f3ece2;
  font-size:clamp(3rem,4.7vw,5rem);
  font-weight:500;
  line-height:.95;
  letter-spacing:-.045em;
}
.catalog-heading h1 em { color:#d7b96f; font-style:italic; font-weight:480; }
.catalog-heading .lead { color:#aaa297; }
.catalog-stats span { color:#87827a; border-color:rgba(255,255,255,.08); background:rgba(255,255,255,.018); }
.catalog-stats strong { color:#d8be7c; }
.catalog-night-flow {
  border:1px solid rgba(255,255,255,.075);
  border-radius:13px;
  background:rgba(255,255,255,.018);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.catalog-night-flow > div + div { border-top-color:rgba(255,255,255,.06); }
.catalog-night-flow span { color:#151006; background:linear-gradient(180deg,#e2c77f,#b88b3b); }
.btn-room-create,
.btn-primary {
  border-color:rgba(239,217,155,.54) !important;
  color:#171106 !important;
  background:linear-gradient(180deg,#e6cd8b 0%,#bf9542 100%) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.38), 0 12px 25px rgba(0,0,0,.22) !important;
}
.btn-room-create:hover,
.btn-primary:hover { background:linear-gradient(180deg,#efdaa2,#cda44f) !important; }
.catalog-toolbar {
  border:1px solid rgba(255,255,255,.075);
  border-radius:13px;
  background:#0e1013;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.catalog-search { border-color:rgba(255,255,255,.08); background:#0a0c0f; }
.catalog-search:focus-within { border-color:rgba(210,175,98,.38); box-shadow:0 0 0 3px rgba(210,175,98,.07); }
.catalog-filter {
  border-color:transparent;
  color:#8f8a82;
  background:transparent;
}
.catalog-filter:hover { color:#e8e0d5; background:rgba(255,255,255,.035); }
.catalog-filter.is-active {
  border-color:rgba(210,175,98,.22);
  color:#ead49b;
  background:rgba(210,175,98,.075);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.game-section-header { border-bottom-color:rgba(255,255,255,.075); }
.game-section-title { color:#eee6db; font-weight:520; }
.game-section-description { color:#88837b; }
.game-section-count { color:#716d67; }
.game-subgrid { gap:16px; }
.base-card {
  overflow:hidden;
  border:1px solid rgba(255,255,255,.085);
  border-radius:16px;
  background:linear-gradient(180deg,#15181d 0%,#0f1115 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03), 0 18px 38px rgba(0,0,0,.18);
}
.base-card:hover {
  transform:translateY(-3px);
  border-color:color-mix(in srgb,var(--game-accent) 34%,rgba(239,217,155,.20));
  box-shadow:0 26px 58px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.04);
}
.card-top {
  border-bottom:1px solid rgba(255,255,255,.065);
  background:#101216;
}
.game-art { filter:saturate(.78) contrast(1.02); }
.game-art__wash { opacity:.62; }
.game-art__grain { opacity:.18; }
.game-art__caption {
  color:rgba(245,238,227,.72);
  background:rgba(8,9,11,.58);
  backdrop-filter:blur(8px);
}
.base-card-tags { gap:5px; }
.base-card-tag {
  border-color:rgba(255,255,255,.11);
  color:#c5beb3;
  background:rgba(9,10,12,.70);
  backdrop-filter:blur(8px);
}
.base-card-body { background:linear-gradient(180deg,rgba(255,255,255,.012),transparent 34%); }
.base-card-title { color:#f1e9de; font-weight:520; }
.base-card-mode { color:#807c76; }
.base-card-hook { color:color-mix(in srgb,var(--game-accent) 65%,#e3d7c4); }
.base-card-desc { color:#aaa39a; }
.base-card-facts > span { border-color:rgba(255,255,255,.07); background:rgba(255,255,255,.018); }
.base-card-facts small { color:#77756f; }
.base-card-facts strong { color:#dcd5ca; }
.base-card .action-row .btn { border-radius:9px; }
.mobile-game-row { border-color:rgba(255,255,255,.075); background:#101216; }

/* ─── Shared-screen host shell ──────────────────────────────── */
.hf-root {
  background:
    radial-gradient(ellipse 55% 56% at 50% 38%,color-mix(in srgb,var(--shell-accent) 5%,transparent),transparent 72%),
    linear-gradient(180deg,#0b0d10,#08090b 68%,#0a0b0d);
}
.hf-root::before { opacity:.12; }
.hf-header {
  min-height:78px;
  padding:0 26px;
  border-bottom:1px solid rgba(239,217,155,.12);
  background:rgba(7,8,10,.94);
  box-shadow:0 10px 30px rgba(0,0,0,.14);
  backdrop-filter:blur(22px);
}
.hf-brand-mark { width:38px; height:38px; filter:drop-shadow(0 6px 12px rgba(210,175,98,.19)); }
.hf-brand-name { color:#b6a47c; font-size:.59rem; letter-spacing:.18em; }
.hf-header-title { color:#f3ece2; font-weight:520; }
.hf-header-subtitle { color:#7b7872; }
.hf-live-status {
  border-color:color-mix(in srgb,var(--shell-accent) 18%,rgba(255,255,255,.08));
  color:#a19c94;
  background:rgba(255,255,255,.018);
  box-shadow:none;
}
.hf-live-status i,
.hf-stage-status i { box-shadow:none; }
.hf-room-summary {
  border-color:rgba(210,175,98,.24);
  border-radius:9px;
  background:linear-gradient(180deg,#17191d,#0f1114);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.hf-room-code { color:#e7cd87; }
.hf-header-chip { border-color:rgba(255,255,255,.08); background:rgba(255,255,255,.018); }
.hf-stage { padding:34px 34px 28px; }
.hf-stage-ambient i { opacity:.42; box-shadow:0 0 0 90px color-mix(in srgb,var(--shell-accent) 1.7%,transparent),0 0 0 180px color-mix(in srgb,var(--shell-accent) 1%,transparent); }
.hf-stage-ambient b { opacity:.22; }
.hf-stage-status { color:#666962; }
.hf-eyebrow { color:color-mix(in srgb,var(--shell-accent) 60%,#c2b28d); }
.hf-signature { color:#5f5c57; }
.hf-control-bar {
  min-height:76px;
  padding:13px 24px;
  border-top:1px solid rgba(255,255,255,.075);
  background:rgba(8,9,11,.95);
  box-shadow:0 -12px 28px rgba(0,0,0,.12);
}
.hf-btn-primary {
  min-height:46px;
  padding-inline:24px;
  border:1px solid color-mix(in srgb,var(--shell-accent) 42%,#d7b96f);
  border-radius:9px;
  color:#171106;
  background:linear-gradient(180deg,#e6cd8b,#bd9140);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.34),0 10px 20px rgba(0,0,0,.2);
}
.hf-btn-ghost { min-height:46px; border-radius:9px; border-color:rgba(255,255,255,.10); background:rgba(255,255,255,.02); }

@media (min-width: 1040px) {
  .hf-root.hf-lounge {
    grid-template-columns:minmax(0,1fr) 330px;
    grid-template-rows:78px minmax(0,1fr) 78px;
  }
  .hf-root.hf-lounge .hf-header { grid-column:1 / -1; grid-row:1; }
  .hf-root.hf-lounge .hf-stage { grid-column:1; grid-row:2; min-width:0; }
  .hf-root.hf-lounge .hf-dock { display:contents; }
  .hf-root.hf-lounge .hf-player-rail {
    grid-column:2;
    grid-row:2 / 4;
    min-width:0;
    padding:24px 22px;
    overflow-y:auto;
    border:0;
    border-left:1px solid rgba(239,217,155,.10);
    background:linear-gradient(180deg,rgba(17,19,23,.98),rgba(10,11,14,.99));
    box-shadow:-18px 0 40px rgba(0,0,0,.16);
    backdrop-filter:none;
  }
  .hf-root.hf-lounge .hf-lounge-join-card {
    width:100%;
    grid-template-columns:1fr;
    justify-items:center;
    gap:10px;
    margin-bottom:20px;
    padding:16px;
  }
  .hf-root.hf-lounge .hf-lounge-join-qr { width:210px; height:210px; border-width:7px; }
  .hf-root.hf-lounge .hf-lounge-join-copy { justify-items:center; text-align:center; }
  .hf-root.hf-lounge .hf-lounge-join-copy > strong { font-size:1.32rem; }
  .hf-root.hf-lounge .hf-lounge-join-credentials { width:100%; }
  .hf-root.hf-lounge .hf-player-rail-head {
    width:100%;
    min-width:0;
    display:grid;
    gap:5px;
    margin:0 0 16px;
    color:#77736d;
    font-size:.55rem;
  }
  .hf-root.hf-lounge .hf-player-rail-head span:first-child {
    color:#d7b96f;
    font-family:var(--font-display);
    font-size:1.48rem;
    font-weight:520;
    letter-spacing:-.015em;
    text-transform:none;
  }
  .hf-root.hf-lounge .hf-player-rail-head span:last-child { display:none; }
  .hf-root.hf-lounge .hf-ready-progress { margin-bottom:14px; height:2px; }
  .hf-root.hf-lounge .hf-roster {
    width:100%;
    display:grid;
    gap:0;
    margin:0;
  }
  .hf-root.hf-lounge .hf-player {
    width:100%;
    max-width:none;
    min-width:0;
    min-height:64px;
    grid-template-columns:42px minmax(0,1fr) auto;
    gap:11px;
    padding:9px 5px;
    border:0;
    border-bottom:1px solid rgba(255,255,255,.065);
    border-radius:0;
    background:transparent;
  }
  .hf-root.hf-lounge .hf-player:hover { transform:none; background:linear-gradient(90deg,rgba(255,255,255,.028),transparent); }
  .hf-root.hf-lounge .hf-player.is-active,
  .hf-root.hf-lounge .hf-player.is-ready {
    border-color:rgba(255,255,255,.065);
    background:linear-gradient(90deg,color-mix(in srgb,var(--player-color,var(--shell-accent)) 8%,transparent),transparent 82%);
  }
  .hf-root.hf-lounge .hf-player-avatar { width:40px; height:40px; border-width:0; box-shadow:none; background:#111318; }
  .hf-root.hf-lounge .hf-player-name { color:#eee6dc; font-size:.76rem; }
  .hf-root.hf-lounge .hf-player-score,
  .hf-root.hf-lounge .hf-player-status { color:#77736d; font-size:.57rem; }
  .hf-root.hf-lounge .hf-player-check { color:#c7a960; background:transparent; }
  .hf-root.hf-lounge .hf-open-seat {
    width:100%;
    min-width:0;
    min-height:54px;
    justify-content:flex-start;
    gap:11px;
    padding:7px 5px;
    border:0;
    border-bottom:1px solid rgba(255,255,255,.045);
    border-radius:0;
    color:#5f5d58;
    background:transparent;
  }
  .hf-root.hf-lounge .hf-open-seat-ring { border-color:rgba(255,255,255,.11); }
  .hf-root.hf-lounge .hf-control-bar { grid-column:1; grid-row:3; }

  /* Once the room is populated, prioritize the roster over onboarding chrome. */
  .hf-root.hf-lounge.is-crowded-roster .hf-player-rail {
    padding:16px 16px 14px;
    scrollbar-gutter:stable;
  }
  .hf-root.hf-lounge.is-crowded-roster .hf-lounge-join-card {
    grid-template-columns:128px minmax(0,1fr);
    grid-template-rows:auto auto;
    justify-items:stretch;
    align-items:center;
    gap:8px 12px;
    margin-bottom:10px;
    padding:10px;
  }
  .hf-root.hf-lounge.is-crowded-roster .hf-lounge-join-qr {
    grid-row:1 / span 2;
    width:128px;
    height:128px;
    border-width:5px;
  }
  .hf-root.hf-lounge.is-crowded-roster .hf-lounge-join-copy {
    justify-items:start;
    text-align:left;
  }
  .hf-root.hf-lounge.is-crowded-roster .hf-lounge-join-copy > strong { font-size:1rem; }
  .hf-root.hf-lounge.is-crowded-roster .hf-lounge-join-copy > small { display:none; }
  .hf-root.hf-lounge.is-crowded-roster .hf-lounge-join-credentials { width:100%; }
  .hf-root.hf-lounge.is-crowded-roster .hf-player-rail-head { margin-bottom:8px; }
  .hf-root.hf-lounge.is-crowded-roster .hf-ready-progress { margin-bottom:6px; }
  .hf-root.hf-lounge.is-crowded-roster .hf-player {
    min-height:50px;
    grid-template-columns:36px minmax(0,1fr) auto;
    padding:4px 5px;
  }
  .hf-root.hf-lounge.is-crowded-roster .hf-player-avatar { width:34px; height:34px; }
  .hf-root.hf-lounge.is-crowded-roster .hf-open-seat { display:none; }

  /* At maximum capacity, keep every guest visible instead of relying on an
     invisible shared-screen scroll position. */
  .hf-root.hf-lounge.is-max-roster .hf-roster {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 8px;
    min-width:0;
  }
  .hf-root.hf-lounge.is-max-roster .hf-player {
    min-height:44px;
    grid-template-columns:30px minmax(0,1fr) auto;
    gap:7px;
    padding:3px 4px;
  }
  .hf-root.hf-lounge.is-max-roster .hf-player-avatar { width:28px; height:28px; }
  .hf-root.hf-lounge.is-max-roster .hf-player-name { font-size:.7rem; }
  .hf-root.hf-lounge.is-max-roster .hf-player-score,
  .hf-root.hf-lounge.is-max-roster .hf-player-status { font-size:.52rem; }

  .hf-root:not(.hf-lounge).is-max-roster .hf-player-rail {
    padding-inline:12px;
    overflow-x:hidden;
  }
  .hf-root:not(.hf-lounge).is-max-roster .hf-roster {
    display:grid;
    grid-template-columns:repeat(var(--max-roster-columns, 12),minmax(0,1fr));
    gap:5px;
    min-width:0;
  }
  .hf-root:not(.hf-lounge).is-max-roster .hf-player {
    min-width:0;
    grid-template-columns:28px minmax(0,1fr);
    gap:6px;
    padding:5px 6px;
  }
  .hf-root:not(.hf-lounge).is-max-roster .hf-player-avatar { width:28px; height:28px; }
  .hf-root:not(.hf-lounge).is-max-roster .hf-player-check { display:none; }
}


/* ─── Persistent Lounge lobby ──────────────────────────────── */
.hf-root.hf-lounge .ll2-lobby {
  width:100%;
  gap:0;
  overflow:hidden;
  border:1px solid rgba(239,217,155,.10);
  border-radius:17px;
  background:linear-gradient(145deg,rgba(18,20,24,.92),rgba(10,11,14,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 24px 60px rgba(0,0,0,.24);
}
.hf-root.hf-lounge .ll2-game-library,
.hf-root.hf-lounge .ll2-selected-game {
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.hf-root.hf-lounge .ll2-game-library {
  padding:24px 20px;
  border-right:1px solid rgba(239,217,155,.085);
  background:linear-gradient(180deg,rgba(255,255,255,.012),transparent 32%);
}
.hf-root.hf-lounge .ll2-selected-game { padding:30px 32px 26px; }
.ll2-section-head { margin-bottom:17px; align-items:flex-start; }
.ll2-section-head h2,
.ll2-selected-game h2 {
  color:#f1e9de;
  font-size:clamp(1.55rem,2.1vw,2.15rem);
  font-weight:500;
  letter-spacing:-.025em;
}
.ll2-kicker { color:#a18e63; font-size:.55rem; letter-spacing:.17em; }
.ll2-player-count { color:#77736c; font-size:.58rem; font-weight:700; }
.ll2-game-list { gap:16px; padding-right:7px; }
.ll2-game-group { gap:2px; }
.ll2-game-group h3 {
  padding:7px 9px;
  color:#716d66;
  background:linear-gradient(90deg,#111318 74%,transparent);
  font-size:.52rem;
  letter-spacing:.17em;
}
.ll-game-box {
  min-height:58px;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  padding:8px 9px;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.052);
  border-radius:0;
}
.ll-game-box:hover:not(:disabled) {
  transform:none;
  border-color:rgba(255,255,255,.052);
  background:linear-gradient(90deg,rgba(255,255,255,.028),transparent 88%);
}
.ll-game-box.is-selected {
  border-color:rgba(255,255,255,.052);
  background:linear-gradient(90deg,rgba(210,175,98,.12),rgba(210,175,98,.025) 70%,transparent);
  box-shadow:inset 2px 0 0 #d2af62;
}
.ll2-game-copy strong { color:#e8e0d5; font-size:.76rem; font-weight:680; }
.ll2-game-copy small { color:#76726b; font-size:.56rem; }
.ll2-game-meta { color:#706d67; font-size:.50rem; letter-spacing:.11em; }
.ll2-game-meta.is-ready { color:#8fbba4; }
.ll-game-box.is-selected .ll2-game-meta { color:#cdb16f; }
.ll2-selected-head { gap:15px; padding-bottom:17px; border-bottom:1px solid rgba(255,255,255,.065); }
.ll2-readiness {
  border-color:rgba(255,255,255,.085);
  color:#a39d93;
  background:rgba(255,255,255,.018);
  box-shadow:none;
}
.ll2-readiness.is-ready { border-color:rgba(83,168,117,.25); color:#8bc2a3; background:rgba(83,168,117,.045); }
.ll2-selected-summary { margin:18px 0; color:#a69f95; font-size:.81rem; line-height:1.65; }
.ll2-game-facts { gap:0; margin-bottom:22px; border-block:1px solid rgba(255,255,255,.06); }
.ll2-game-facts span {
  min-height:56px;
  border:0;
  border-right:1px solid rgba(255,255,255,.055);
  border-radius:0;
  background:transparent;
}
.ll2-game-facts span:last-child { border-right:0; }
.ll2-game-facts strong { color:#e8e0d5; font-weight:620; }
.ll2-session-flow { gap:0; margin:22px 0 17px; }
.ll2-session-flow span { border-color:rgba(255,255,255,.055); color:#77736c; }
.ll2-session-flow strong { border-color:rgba(210,175,98,.24); color:#c9aa62; }
.ll-room-settings { border-top-color:rgba(255,255,255,.065); }
.ll-room-settings > summary { color:#b4ada3; }
.ll-toggle-row { border-color:rgba(255,255,255,.07); border-radius:9px; background:rgba(255,255,255,.014); }
.ll-settings-btn { border-radius:9px; }

@media (max-width: 1039px) {
  .hf-root.hf-lounge .ll2-lobby { overflow:visible; border:0; background:transparent; box-shadow:none; }
  .hf-root.hf-lounge .ll2-game-library,
  .hf-root.hf-lounge .ll2-selected-game {
    border:1px solid rgba(239,217,155,.09);
    border-radius:14px;
    background:linear-gradient(180deg,#14171b,#0f1115);
  }
  .hf-root.hf-lounge .ll2-game-library { border-right:1px solid rgba(239,217,155,.09); }
}

/* ─── Phone shell and premium player identity ───────────────── */
.consent-slot {
  position:fixed;
  right:18px;
  bottom:calc(18px + env(safe-area-inset-bottom,0px));
  left:auto;
  z-index:180;
  width:min(430px,calc(100vw - 32px)) !important;
  margin:0 !important;
  pointer-events:none;
}
.consent-slot .ea-consent-banner {
  width:100% !important;
  padding:12px 14px !important;
  border-color:rgba(215,171,76,.22) !important;
  background:rgba(12,14,18,.97) !important;
  box-shadow:0 18px 46px rgba(0,0,0,.42) !important;
  pointer-events:auto;
}
.consent-slot .ea-consent-text {
  margin:0;
  color:#b9b2a7;
  font-size:.78rem;
  line-height:1.45;
}
@media (max-width:700px) {
  .consent-slot {
    right:10px;
    bottom:calc(10px + env(safe-area-inset-bottom,0px));
    width:calc(100vw - 20px) !important;
  }
}

.pf-root {
  background:
    radial-gradient(ellipse 90% 38% at 50% 0%,color-mix(in srgb,var(--phone-accent) 7%,transparent),transparent 72%),
    linear-gradient(180deg,#0b0d10 0%,#111419 48%,#090a0c 100%);
}
.pf-root::before { opacity:.10; background-size:83px 91px; }
.pf-header {
  min-height:64px;
  border-bottom:1px solid rgba(239,217,155,.10);
  background:rgba(7,8,10,.94);
  box-shadow:0 10px 28px rgba(0,0,0,.12);
}
.pf-header-title { color:#f2ebe1; font-weight:520; }
.pf-header-phase { color:#7c7871; letter-spacing:.13em; }
.pf-header-phase i { box-shadow:none; }
.pf-you-avatar {
  width:34px;
  height:34px;
  border:0;
  background:#111318 !important;
  box-shadow:0 0 0 1px color-mix(in srgb,currentColor 52%,transparent),0 6px 14px rgba(0,0,0,.22);
}
.pf-stage { padding:30px 20px 28px; }
.pf-stage-ambient i { opacity:.38; box-shadow:0 0 0 48px color-mix(in srgb,var(--phone-accent) 1.5%,transparent),0 0 0 96px color-mix(in srgb,var(--phone-accent) .8%,transparent); }
.pf-eyebrow {
  color:color-mix(in srgb,var(--phone-accent) 65%,#d3c7b0);
  border:0;
  background:transparent;
  letter-spacing:.17em;
}
.pf-prompt {
  max-width:390px;
  color:#f3ece2;
  font-size:clamp(1.95rem,8.8vw,2.75rem);
  font-weight:500;
  line-height:1.02;
  letter-spacing:-.025em;
}
.pf-prompt em { color:#d8bb76; font-style:italic; text-shadow:none; }
.pf-body { width:min(100%,400px); }
.pf-input {
  min-height:52px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:10px;
  color:#f1e9de;
  background:#0c0e11;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}
.pf-input:focus { border-color:rgba(210,175,98,.48); box-shadow:0 0 0 3px rgba(210,175,98,.075); }
.pf-option {
  border:1px solid rgba(255,255,255,.085);
  border-radius:11px;
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.012));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.pf-option.is-selected { border-color:color-mix(in srgb,var(--phone-accent) 54%,rgba(239,217,155,.18)); background:color-mix(in srgb,var(--phone-accent) 7%,#12151a); }
.pf-actions {
  border-top:1px solid rgba(239,217,155,.10);
  background:rgba(8,9,11,.95);
  box-shadow:0 -14px 32px rgba(0,0,0,.16);
  backdrop-filter:blur(20px);
}
.pf-btn-primary {
  min-height:52px;
  border:1px solid rgba(239,217,155,.58);
  border-radius:10px;
  color:#171106;
  background:linear-gradient(180deg,#e7ce8b,#bd9140);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.38),0 10px 22px rgba(0,0,0,.2);
}
.pf-btn-secondary,
.pf-btn-ghost { min-height:52px; border-radius:10px; border-color:rgba(255,255,255,.10); background:rgba(255,255,255,.02); }

.pf-customizer { margin-top:20px; gap:20px; }
.pf-customizer-section { gap:10px; }
.pf-customizer-label {
  color:#8e8981;
  font-size:.59rem;
  letter-spacing:.16em;
  font-weight:820;
}
.pf-customizer-preview-wrap { margin:18px auto 24px; }
.pf-customizer-preview {
  position:relative;
  width:118px;
  height:118px;
  display:grid;
  place-items:center;
  overflow:visible;
  border:0;
  border-radius:50%;
  background:
    radial-gradient(circle at 50% 45%,color-mix(in srgb,var(--c,var(--gold)) 8%,#1a1d22),#0b0d10 72%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 0 0 7px rgba(8,9,11,.78),
    0 0 0 8px color-mix(in srgb,var(--c,var(--gold)) 48%,transparent),
    0 24px 54px rgba(0,0,0,.42);
}
.pf-customizer-preview::after {
  content:"";
  position:absolute;
  inset:-13px;
  z-index:-1;
  border-radius:50%;
  background:radial-gradient(circle,color-mix(in srgb,var(--c,var(--gold)) 11%,transparent),transparent 68%);
}
.pf-customizer-preview .ea-player-portrait { width:108px; height:108px; }
.pf-customizer-grid--colors {
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
  padding:3px 1px;
}
.pf-customizer-color-btn {
  width:38px;
  height:38px;
  justify-self:center;
  border:5px solid #111419;
  box-shadow:0 0 0 1px rgba(255,255,255,.10),inset 0 2px 4px rgba(255,255,255,.16),0 6px 14px rgba(0,0,0,.22);
}
.pf-customizer-color-btn.is-selected {
  transform:scale(1.02);
  box-shadow:0 0 0 1px #0a0b0d,0 0 0 3px #f2e5c6,0 8px 20px rgba(0,0,0,.30);
}
.pf-customizer-grid--tokens {
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:11px;
  padding:3px;
}
.pf-customizer-token-btn {
  width:64px;
  height:70px;
  justify-self:center;
  border:1px solid rgba(255,255,255,.075);
  border-radius:12px;
  opacity:.86;
  background:linear-gradient(180deg,#171a1f,#0f1115);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 9px 18px rgba(0,0,0,.15);
}
.pf-customizer-token-btn .ea-player-portrait { width:55px; height:55px; }
.pf-customizer-token-btn:hover:not(:disabled) { transform:translateY(-1px); border-color:color-mix(in srgb,currentColor 36%,rgba(255,255,255,.11)); background:#191c21; }
.pf-customizer-token-btn.is-selected {
  border-radius:12px;
  border-color:color-mix(in srgb,currentColor 62%,#ead9b4);
  background:color-mix(in srgb,currentColor 7%,#15181d);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.035),0 0 0 2px #08090b,0 0 0 3px color-mix(in srgb,currentColor 72%,#ead9b4),0 12px 28px rgba(0,0,0,.30);
}
.pf-customizer-token-btn:disabled { opacity:.12; filter:grayscale(.9); }
.pf-customizer-sheet {
  border:1px solid rgba(239,217,155,.14);
  border-radius:22px 22px 0 0;
  background:linear-gradient(180deg,#171a1f,#0b0d10 72%);
  box-shadow:0 -30px 80px rgba(0,0,0,.54),inset 0 1px 0 rgba(255,255,255,.04);
}
.ea-player-portrait { filter:drop-shadow(0 7px 10px rgba(0,0,0,.18)); }
.hf-player-avatar.has-token,
.pf-lobby-player-avatar.has-token,
.game-hud-avatar.has-token { background:#111318 !important; border:0 !important; box-shadow:0 0 0 1px color-mix(in srgb,var(--player-color,currentColor) 52%,transparent); }
.pf-lobby-player {
  border-color:rgba(255,255,255,.075);
  border-radius:11px;
  background:linear-gradient(180deg,rgba(255,255,255,.026),rgba(255,255,255,.012));
}
.pf-lobby-player.is-me { border-color:rgba(210,175,98,.28); background:rgba(210,175,98,.045); }
.pf-emoji-btn {
  border-color:rgba(255,255,255,.095);
  background:#12151a;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 8px 16px rgba(0,0,0,.18);
}
.pf-emoji-btn:hover { transform:translateY(-1px); }

/* ─── Modal and footer finish ───────────────────────────────── */
.modal:not(.is-game) {
  border:1px solid rgba(239,217,155,.14);
  border-radius:20px;
  background:linear-gradient(180deg,#15181d,#0b0d10);
  box-shadow:0 40px 120px rgba(0,0,0,.62),inset 0 1px 0 rgba(255,255,255,.04);
}
.modal-head { border-bottom-color:rgba(255,255,255,.075); background:#0c0e11; }
.site-footer { border-top-color:rgba(239,217,155,.12); background:#08090b; }
.footer-brand span { color:#d9c59a; }
.footer-nav-links a,
.footer-legal-links a { color:#85817a; }
.footer-nav-links a:hover,
.footer-legal-links a:hover { color:#d8bd79; }

/* ─── Responsive premium behavior ───────────────────────────── */
@media (max-width: 1100px) {
  .home-hero { padding-left:52px; padding-right:52px; }
  .home-hero-detail { left:52px; right:52px; }
}

@media (max-width: 900px) {
  .preview-badge { display:none !important; }
  .home-hero::after { background:linear-gradient(90deg,rgba(7,8,10,.96),rgba(7,8,10,.68) 76%,rgba(7,8,10,.28)),linear-gradient(0deg,rgba(7,8,10,.94),transparent 52%); }
  .home-hero-content { width:min(640px,100%); }
  .home-lane-strip { grid-template-columns:1fr repeat(3,minmax(0,.8fr)); }
}

@media (max-width: 720px) {
  .topbar,
  .topbar-inner { height:64px; min-height:64px; }
  .topbar-inner { padding-inline:16px; }
  .brand-mark,
  .brand-mark img { width:34px; height:34px; }
  .brand-wordmark { font-size:.92rem; }
  .route-section#route-home { padding-top:10px; }
  .home-hero {
    min-height:690px;
    padding:48px 20px 130px;
    border-radius:17px;
  }
  .home-hero::before { inset:7px; border-radius:12px; }
  .home-hero::after { background:linear-gradient(0deg,rgba(7,8,10,.96),rgba(7,8,10,.58)); }
  .home-hero-content { margin:0; }
  .home-hero-content h1 { max-width:8.6ch; font-size:clamp(3.55rem,15.2vw,4.7rem); }
  .home-hero-content > p { max-width:31ch; margin-top:20px; font-size:.95rem; }
  .home-primary-actions { margin-top:26px; grid-template-columns:1fr; }
  .home-action { width:100%; min-height:58px; }
  .home-join-card { grid-template-columns:1fr; gap:10px; padding:13px; }
  .home-join-copy { text-align:left; }
  .home-join-row { width:100%; }
  .home-code-input { flex:1; min-width:0; }
  .home-hero-detail { left:20px; right:20px; bottom:20px; gap:6px; padding-top:16px; }
  .home-hero-detail > div { justify-items:center; text-align:center; }
  .home-hero-detail strong { font-size:1.22rem; }
  .home-hero-detail span { font-size:.58rem; }
  .home-hero-detail small { display:none; }
  .home-lane-strip { grid-template-columns:repeat(3,1fr); padding:15px 10px; }
  .home-lane-intro,
  .home-lane-link { grid-column:1 / -1; }
  .home-lane-intro { padding:0 4px 12px; border-bottom:1px solid rgba(255,255,255,.06); }
  .home-lane-item { padding:12px 4px 0; border-left:0; justify-content:center; text-align:center; }
  .home-lane-item small { display:none; }
  .home-mode-guide { grid-template-columns:1fr; }
  .mode-guide-card { min-height:0; padding:28px 24px; }
  .catalog-section { padding-top:18px; }
  .catalog-heading { min-height:0; padding:32px 22px; border-radius:17px; }
  .catalog-heading h1 { font-size:clamp(3rem,13vw,4.2rem); }
  .catalog-toolbar { border-radius:11px; }
  .pf-customizer-grid--colors { grid-template-columns:repeat(6,minmax(0,1fr)); gap:7px; }
  .pf-customizer-color-btn { width:34px; height:34px; border-width:4px; }
  .pf-customizer-token-btn { width:61px; height:66px; }
  .pf-customizer-token-btn .ea-player-portrait { width:52px; height:52px; }
}

@media (max-width: 370px) {
  .home-hero-content h1 { font-size:3.25rem; }
  .pf-customizer-grid--colors { grid-template-columns:repeat(6,1fr); }
  .pf-customizer-color-btn { width:31px; height:31px; }
  .pf-customizer-token-btn { width:56px; height:62px; }
  .pf-customizer-token-btn .ea-player-portrait { width:48px; height:48px; }
}

@media (prefers-reduced-motion: reduce) {
  .base-card:hover,
  .home-action:hover,
  .pf-emoji-btn:hover { transform:none; }
}

/* ─── Identity setup roleplay refinements ───────────────────── */
.pf-customizer-identity-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 1px 2px;
}
.pf-customizer-identity-label {
  margin:0;
  color:#d8cdbd;
  font-family:var(--font-display);
  font-size:1rem;
  line-height:1.2;
}
.pf-customizer-surprise {
  min-height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:7px 10px;
  border:1px solid rgba(239,217,155,.15);
  border-radius:9px;
  color:#b7aa95;
  background:rgba(255,255,255,.025);
  font-family:var(--font-ui);
  font-size:.66rem;
  font-weight:760;
  letter-spacing:.02em;
  cursor:pointer;
  transition:border-color .18s ease,color .18s ease,background .18s ease,transform .18s ease;
}
.pf-customizer-surprise:hover {
  color:#eee3d1;
  border-color:rgba(239,217,155,.32);
  background:rgba(239,217,155,.055);
  transform:translateY(-1px);
}
.pf-customizer-token-btn,
.pf-customizer-color-btn { position:relative; }
.pf-customizer-selected-mark {
  position:absolute;
  z-index:3;
  top:3px;
  right:3px;
  width:17px;
  height:17px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#151108;
  background:#efe1bf;
  box-shadow:0 3px 8px rgba(0,0,0,.35);
  opacity:0;
  transform:scale(.7);
  transition:opacity .16s ease,transform .16s ease;
  pointer-events:none;
}
.pf-customizer-color-btn .pf-customizer-selected-mark {
  top:50%;
  left:50%;
  right:auto;
  transform:translate(-50%,-50%) scale(.72);
  color:#17130b;
  background:rgba(255,255,255,.88);
}
.pf-customizer-token-btn.is-selected .pf-customizer-selected-mark {
  opacity:1;
  transform:scale(1);
}
.pf-customizer-color-btn.is-selected .pf-customizer-selected-mark {
  opacity:1;
  transform:translate(-50%,-50%) scale(1);
}
.pf-customizer-taken-mark {
  position:absolute;
  z-index:3;
  inset:50% auto auto 50%;
  transform:translate(-50%,-50%);
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.13);
  border-radius:50%;
  color:#a7a19a;
  background:rgba(7,8,10,.88);
  box-shadow:0 5px 14px rgba(0,0,0,.35);
}
.pf-customizer-token-btn.is-taken { opacity:.34; }
.pf-customizer-token-btn.is-taken .ea-player-portrait { filter:grayscale(.9) brightness(.58); }
.pf-setup-error {
  margin:9px 0 0;
  color:#e98c91;
  font-family:var(--font-ui);
  font-size:.76rem;
  line-height:1.45;
  text-align:center;
}
.pf-setup-error[hidden] { display:none; }
.pf-customizer-sheet {
  padding-top:28px;
}
.pf-customizer-sheet-close {
  position:absolute;
  top:14px;
  right:14px;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.09);
  border-radius:10px;
  color:#9c958a;
  background:rgba(255,255,255,.025);
  cursor:pointer;
}
.pf-customizer-sheet-close:hover { color:#f1e8da; border-color:rgba(239,217,155,.24); }
.pf-customizer-sheet-title {
  margin:0 42px 5px;
  color:#e0c276;
  font-family:var(--font-display);
  font-size:1.65rem;
  font-weight:500;
  line-height:1.1;
  text-align:center;
}
.pf-customizer-sheet-copy {
  margin:0 36px 7px;
  color:#958e84;
  font-size:.75rem;
  line-height:1.45;
  text-align:center;
}
.pf-customizer-sheet-preview { margin-top:12px; margin-bottom:18px; }
#customizer-name-input { text-align:center; font-weight:650; }
#customizer-save-btn { width:100%; min-height:50px; margin-top:8px; font-weight:780; }

@media (max-width: 380px) {
  .pf-customizer-identity-row { align-items:flex-start; flex-direction:column; gap:8px; }
  .pf-customizer-surprise { align-self:flex-end; }
}

.pf-lobby-identity-notice {
  margin:0 0 12px;
  padding:11px 12px;
  border:1px solid rgba(239,217,155,.15);
  border-radius:10px;
  color:#c9bda9;
  background:rgba(210,175,98,.055);
  font-size:.72rem;
  line-height:1.45;
  text-align:left;
}


/* v0.9.7 setup roleplay: keep identity choices visible and editor above dock. */
.pf-root--player-setup .pf-stage {
  padding-top:18px;
  padding-bottom:18px;
}
.pf-root--player-setup .pf-prompt { font-size:clamp(1.7rem,7.5vw,2.15rem); }
.pf-root--player-setup .pf-stage-sub { margin-top:9px; }
.pf-root--player-setup .pf-body { margin-top:14px; gap:8px; }
.pf-root--player-setup .pf-customizer-preview-wrap { margin:8px auto 15px; }
.pf-root--player-setup .pf-customizer-preview { width:94px; height:94px; }
.pf-root--player-setup .pf-customizer-preview .ea-player-portrait { width:86px; height:86px; }
.pf-root--player-setup .pf-customizer { margin-top:14px; gap:15px; }
.pf-root--player-setup .pf-customizer-grid--tokens { max-height:148px; }
.pf-root--player-setup .pf-quick-token {
  display:grid;
  grid-template-columns:58px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  width:100%;
  margin:7px 0 2px;
  padding:9px 10px;
  border:1px solid rgba(239,217,155,.14);
  border-radius:13px;
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.015));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.pf-root--player-setup .pf-quick-token-preview.pf-customizer-preview {
  width:58px;
  height:58px;
  border-radius:11px;
  background:#111419;
  box-shadow:0 0 0 1px color-mix(in srgb,var(--c,var(--gold)) 38%,rgba(255,255,255,.06)),0 8px 18px rgba(0,0,0,.24);
}
.pf-root--player-setup .pf-quick-token-preview::after { display:none; }
.pf-root--player-setup .pf-quick-token-preview .ea-player-portrait { width:52px; height:52px; }
.pf-quick-token-copy { display:grid; gap:3px; min-width:0; text-align:left; }
.pf-quick-token-copy small {
  color:#847f77;
  font-size:.56rem;
  font-weight:800;
  letter-spacing:.15em;
  text-transform:uppercase;
}
.pf-quick-token-name {
  overflow:hidden;
  color:#e8dfd0;
  font-family:var(--font-display);
  font-size:.92rem;
  font-weight:520;
  line-height:1.15;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pf-quick-token-change {
  min-width:62px;
  min-height:44px;
  padding:0 11px;
  border:1px solid rgba(239,217,155,.19);
  border-radius:9px;
  color:#d8c8aa;
  background:rgba(210,175,98,.055);
  font-size:.66rem;
  font-weight:780;
  letter-spacing:.04em;
  cursor:pointer;
}
.pf-quick-token-change:hover,
.pf-quick-token-change:focus-visible { border-color:rgba(239,217,155,.42); background:rgba(210,175,98,.10); }
.pf-quick-token-options[hidden] { display:none; }
.pf-quick-token-options { width:100%; }
.pf-root--player-setup .pf-quick-token-options .pf-customizer { margin-top:5px; }
.pf-root--player-setup .pf-quick-token-options .pf-customizer-grid--tokens { max-height:none; }
.pf-root > .pf-customizer-sheet-backdrop,
.pf-root > .pf-customizer-sheet { z-index:30000; }
.pf-root > .pf-customizer-sheet {
  max-height:min(90dvh,760px);
  padding-bottom:max(24px,env(safe-area-inset-bottom));
  overscroll-behavior:contain;
}
.pf-root > .pf-customizer-sheet-backdrop { z-index:29999; }

/* Setup touch and availability clarity — verified at 390px and 360px widths. */
.pf-customizer-surprise { min-height:44px; padding-inline:12px; }
@media (max-width: 720px) {
  .pf-customizer-color-btn { width:44px; height:44px; }
}
.pf-customizer-sheet-close { width:44px; height:44px; }
.pf-customizer-token-btn.is-taken { opacity:.46; }
.pf-customizer-token-btn.is-taken .ea-player-portrait { filter:grayscale(.82) brightness(.72); }

/* v0.9.7 host setup roleplay: honest states and phone-sized controls. */
.ll-settings-btn,
.ll-stepper-btn {
  min-height:44px;
}
.ll-stepper-btn {
  width:44px !important;
  height:44px !important;
}
.ll-stepper-btn .ea-ui-icon { pointer-events:none; }
.ll-stepper-val[role="status"] { min-width:3.2rem; font-variant-numeric:tabular-nums; }
.ll-settings-btn[aria-pressed="true"] {
  box-shadow:inset 0 0 0 1px rgba(239,217,155,.16),0 8px 24px rgba(0,0,0,.14);
}
.ll-settings-btn:disabled {
  cursor:not-allowed;
  opacity:.48;
}

/* ──────────────────────────────────────────────────────────────
   Session results, game winners, and night championship
   ────────────────────────────────────────────────────────────── */
.sr-game-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-session-result, 1000);
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 56px);
  background:
    radial-gradient(circle at 50% 18%, rgba(210, 175, 98, 0.15), transparent 32%),
    rgba(7, 8, 10, 0.94);
  backdrop-filter: blur(18px);
}
.sr-game-card {
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  height: min(820px, calc(100dvh - 40px));
  overflow: hidden;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid rgba(222, 194, 126, 0.24);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(27, 28, 31, 0.98), rgba(12, 13, 15, 0.99)),
    var(--surface);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.62), inset 0 1px rgba(255, 255, 255, 0.035);
  text-align: center;
}
.sr-game-seal,
.sr-night-crown {
  display: inline-grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
  border: 1px solid rgba(222, 194, 126, 0.36);
  border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle at 35% 28%, rgba(238, 211, 145, 0.18), rgba(210, 175, 98, 0.04) 62%, transparent 64%);
  box-shadow: 0 15px 42px rgba(0, 0, 0, 0.34), inset 0 0 22px rgba(210, 175, 98, 0.06);
}
.sr-game-card .sr-game-seal {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  align-self: center;
}
.sr-kicker {
  margin: 0 0 9px;
  color: var(--gold);
  font: 650 0.71rem/1.2 var(--font-ui);
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.sr-game-card h2,
.sr-night-stage h2 {
  margin: 0;
  color: var(--text);
  font: 500 clamp(2.2rem, 5vw, 4.7rem)/0.98 var(--font-display);
  letter-spacing: -0.035em;
}
.sr-game-card h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.sr-game-detail,
.sr-night-stage > p {
  max-width: 580px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}
.sr-game-card .sr-game-detail { margin-top: 12px; line-height: 1.45; }
.sr-winner-portraits {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 25px 0 16px;
}
.sr-game-card .sr-winner-portraits { flex: 0 0 auto; margin: 14px 0 10px; }
.sr-game-card .sr-winner-portraits .sr-avatar { width: 60px; height: 60px; }
.sr-winner-portraits .sr-avatar + .sr-avatar { margin-left: -12px; }
.sr-avatar {
  --sr-color: var(--gold);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--sr-color) 68%, #f3dfaa 32%);
  border-radius: 50%;
  color: var(--sr-color);
  background: #121316;
  box-shadow: 0 8px 23px rgba(0, 0, 0, 0.35);
}
.sr-avatar > svg,
.sr-avatar > img { width: 100%; height: 100%; display: block; object-fit: contain; }
.sr-winner-portraits .sr-avatar { width: 74px; height: 74px; border-width: 3px; }
.sr-winner-portraits--night .sr-avatar { width: 88px; height: 88px; }
.sr-standings,
.sr-phone-standings {
  display: grid;
  gap: 7px;
  width: min(530px, 100%);
  margin: 24px auto 0;
}
.sr-game-card .sr-standings {
  flex: 1 1 auto;
  min-height: 124px;
  margin-top: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.sr-game-card .sr-standing-row { min-height: 46px; padding-block: 6px; }
.sr-standing-row,
.sr-night-row {
  display: grid;
  grid-template-columns: 34px auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}
.sr-standing-row.is-winner,
.sr-night-row.is-champion {
  border-color: rgba(222, 194, 126, 0.34);
  color: var(--text);
  background: linear-gradient(90deg, rgba(210, 175, 98, 0.11), rgba(210, 175, 98, 0.025));
}
.sr-rank {
  color: #7f7a70;
  font: 650 0.7rem/1 var(--font-ui);
  letter-spacing: 0.12em;
}
.sr-standing-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-standing-row strong,
.sr-night-row > b { color: var(--gold); font-size: 0.84rem; white-space: nowrap; }
.sr-award-note {
  display: grid;
  gap: 4px;
  width: min(600px, 100%);
  margin: 22px auto 0;
  padding: 14px 18px;
  border-left: 2px solid rgba(210, 175, 98, 0.58);
  color: var(--muted);
  background: rgba(210, 175, 98, 0.045);
  text-align: left;
}
.sr-game-card .sr-award-note { flex: 0 0 auto; margin-top: 14px; padding-block: 10px; }
.sr-award-note strong { color: var(--text); font-size: 0.8rem; }
.sr-award-note span { font-size: 0.75rem; line-height: 1.45; }
.sr-actions {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.sr-game-card .sr-actions { flex: 0 0 auto; }
.sr-btn {
  min-height: 48px;
  padding: 0 17px;
  border-radius: 999px;
  font: 650 0.77rem/1 var(--font-ui);
  letter-spacing: 0.035em;
  cursor: pointer;
}
.sr-btn--primary {
  border: 1px solid #ddbd71;
  color: #15130f;
  background: linear-gradient(180deg, #e6cb8c, #cfa958);
  box-shadow: 0 10px 26px rgba(210, 175, 98, 0.16);
}
.sr-btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
}
@media (max-height: 760px) and (min-width: 761px) {
  .sr-game-overlay { padding: 12px; }
  .sr-game-card { height: 100%; padding: 16px 22px; border-radius: 24px; }
  .sr-game-card .sr-game-seal { width: 42px; height: 42px; margin-bottom: 6px; }
  .sr-game-card .sr-game-seal .ea-ui-icon { width: 23px; height: 23px; }
  .sr-game-card .sr-kicker { margin-bottom: 4px; font-size: .64rem; }
  .sr-game-card h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); line-height: 1; }
  .sr-game-card .sr-game-detail { margin-top: 5px; font-size: .82rem; line-height: 1.25; }
  .sr-game-card .sr-winner-portraits { margin: 6px 0 4px; }
  .sr-game-card .sr-winner-portraits .sr-avatar { width: 44px; height: 44px; }
  .sr-game-card .sr-standings { min-height: 80px; margin-top: 6px; }
  .sr-game-card .sr-standing-row { min-height: 40px; padding-block: 4px; }
  .sr-game-card .sr-award-note { margin-top: 6px; padding: 6px 12px; }
  .sr-game-card .sr-award-note span { font-size: .66rem; line-height: 1.25; }
  .sr-game-card .sr-actions { margin-top: 7px; }
  .sr-game-card .sr-btn { min-height: 40px; }
}
.sr-night-stage { width: min(900px, 100%); margin: auto; text-align: center; }
.sr-night-table {
  display: grid;
  gap: 8px;
  width: min(660px, 100%);
  margin: 28px auto 0;
}
.sr-night-row { grid-template-columns: 36px auto minmax(0, 1fr) auto; min-height: 62px; }
.sr-night-copy { display: grid; gap: 3px; min-width: 0; }
.sr-night-row small { color: var(--muted); font-size: 0.7rem; }
.sr-history-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}
.sr-history-line span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.67rem;
}
.ll-night-recap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
  padding: 17px 20px;
  border: 1px solid rgba(222, 194, 126, 0.2);
  border-radius: 18px;
  background: linear-gradient(100deg, rgba(210, 175, 98, 0.085), rgba(255, 255, 255, 0.018));
}
.ll-night-recap-copy { display: grid; gap: 4px; }
.ll-night-recap-copy strong { color: var(--text); font: 500 1.05rem/1.25 var(--font-display); }
.ll-night-recap-copy small { color: var(--muted); font-size: 0.7rem; }
.ll-night-recap-leaders { display: flex; gap: 7px; }
.ll-night-recap-leaders > span {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 7px;
  align-items: center;
  min-width: 132px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
}
.ll-night-recap-leaders b { color: var(--text); font-size: 0.72rem; }
.ll-night-recap-leaders em { grid-column: 2; color: var(--muted); font-size: 0.62rem; font-style: normal; }
.ll-night-recap-leaders > .ll-night-recap-shared {
  min-width: 210px;
  border-color: rgba(222, 194, 126, 0.14);
}
.ll-night-recap-shared > svg {
  grid-row: 1 / 3;
  color: var(--gold);
}
.sr-phone-standings { margin-top: 12px; }
.pf-body .sr-standing-row { grid-template-columns: 27px auto minmax(0, 1fr) auto; min-height: 48px; padding: 6px 9px; }

@media (max-width: 760px) {
  .sr-game-overlay { padding: 12px; align-items: end; }
  .sr-game-card { height: calc(100dvh - 24px); max-height: none; padding: 25px 17px 18px; border-radius: 24px; }
  .sr-game-card h2, .sr-night-stage h2 { font-size: clamp(2rem, 12vw, 3.1rem); }
  .sr-actions { grid-template-columns: 1fr; }
  .sr-actions .sr-btn--primary { order: -1; }
  .ll-night-recap { grid-template-columns: 1fr; }
  .ll-night-recap-leaders { overflow-x: auto; padding-bottom: 3px; }
  .ll-night-recap-leaders > span { min-width: 145px; }
  .sr-night-row { grid-template-columns: 28px auto minmax(0, 1fr) auto; }
}

.pf-lobby-player { grid-template-columns: auto minmax(0, 1fr) auto; }
.pf-lobby-night-score {
  grid-column: 2 / -1;
  color: var(--gold);
  font: 650 0.6rem/1.2 var(--font-ui);
  letter-spacing: 0.05em;
}
.pf-night-recap {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  padding: 14px 15px;
  border: 1px solid rgba(222, 194, 126, 0.22);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(210, 175, 98, 0.1), rgba(255,255,255,0.02));
}
.pf-night-recap span {
  color: var(--gold);
  font: 650 0.62rem/1.2 var(--font-ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pf-night-recap strong { color: var(--text); font: 500 1rem/1.25 var(--font-display); }
.pf-night-recap small { color: var(--muted); font-size: 0.68rem; line-height: 1.4; }

/* ── Reliability surfaces: updates and resumable sessions ───────────── */
.ea-update-banner,
#ea-resume-banner {
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 1250;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(680px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--gold) 32%, transparent);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(28, 26, 22, 0.98), rgba(15, 14, 17, 0.98));
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  font-family: var(--font-ui);
  animation: eaReliabilityBannerIn 280ms cubic-bezier(0.22, 1, 0.36, 1);
}
.ea-update-banner[hidden] { display: none; }
@keyframes eaReliabilityBannerIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.ea-update-banner__copy,
#ea-resume-banner .ea-resume-text { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.ea-update-banner__copy strong,
#ea-resume-banner .ea-resume-eyebrow { color: var(--gold-bright); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.ea-update-banner__copy span,
#ea-resume-banner .ea-resume-meta { color: var(--muted); font-size: 0.75rem; line-height: 1.45; }
.ea-update-banner__actions { display: flex; gap: 8px; flex: 0 0 auto; }
.ea-update-banner__actions button { min-height: 44px; white-space: nowrap; }
#ea-resume-banner .ea-resume-code { color: var(--gold-bright); }
#ea-resume-banner button { min-height: 44px; padding: 8px 14px; border-radius: 8px; cursor: pointer; font-family: var(--font-ui); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
#ea-resume-banner .ea-resume-go { background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep)); color: var(--gold-ink); border: 0; }
#ea-resume-banner .ea-resume-x { display: grid; place-items: center; width: 44px; padding: 0; background: transparent; color: var(--muted); border: 1px solid var(--border); }
@media (max-width: 620px) {
  .ea-update-banner,
  #ea-resume-banner { align-items: stretch; flex-wrap: wrap; gap: 10px; }
  .ea-update-banner__copy,
  #ea-resume-banner .ea-resume-text { flex-basis: 100%; }
  .ea-update-banner__actions { width: 100%; }
  .ea-update-banner__actions button { flex: 1; }
  #ea-resume-banner .ea-resume-go { flex: 1; }
}

/* Final room-layout authority: the room itself owns the full shared screen.
   Older premium layers used a second roster sidebar; the current three-rail
   room keeps that information inside the main decision surface. */
@media (min-width:1040px) {
  .hf-root.hf-lounge {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:72px minmax(0,1fr) 68px;
  }
  .hf-root.hf-lounge .hf-header { grid-column:1;grid-row:1; }
  .hf-root.hf-lounge .hf-stage {
    grid-column:1;
    grid-row:2;
    width:100%;
    min-width:0;
    padding:24px clamp(20px,3vw,46px);
  }
  .hf-root.hf-lounge .hf-dock { display:contents; }
  .hf-root.hf-lounge .hf-player-rail { display:none; }
  .hf-root.hf-lounge .hf-control-bar { grid-column:1;grid-row:3; }
  .hf-root.hf-lounge .ll2-lobby,
  .hf-root.hf-lounge .ll2-invite-guide { width:min(1420px,100%);align-self:center; }
}

/* ─── Cold-start discovery and first-room guidance ──────────── */
.home-trust-line {
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  margin:14px 0 0;
  color:#aaa297;
  font-size:.64rem;
  font-weight:680;
  letter-spacing:.015em;
}
.home-trust-line span { display:inline-flex; align-items:center; gap:6px; }
.home-trust-line .ea-ui-icon { color:#c7a960; }

.host-preflight {
  width:min(860px,calc(100% - 28px));
  margin:auto;
  padding:42px 44px 34px;
  border:1px solid rgba(239,217,155,.13);
  border-radius:20px;
  color:#eee7dc;
  background:
    radial-gradient(circle at 50% 0%,rgba(210,175,98,.095),transparent 38%),
    linear-gradient(150deg,rgba(22,24,29,.98),rgba(9,10,13,.99));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 30px 80px rgba(0,0,0,.42);
}
.host-preflight__mark {
  width:68px;
  height:68px;
  display:grid;
  place-items:center;
  margin:0 auto 12px;
}
.host-preflight__mark img { width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 12px 24px rgba(0,0,0,.35)); }
.host-preflight__copy { max-width:660px; margin:auto; text-align:center; }
.host-preflight__kicker {
  display:block;
  margin-bottom:8px;
  color:#aa9465;
  font-size:.58rem;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.host-preflight h2 {
  margin:0;
  color:#f2eadf;
  font-family:var(--font-display);
  font-size:clamp(2rem,4.2vw,3.25rem);
  font-weight:500;
  line-height:1.02;
  letter-spacing:-.035em;
}
.host-preflight__copy > p { max-width:590px; margin:16px auto 0; color:#a9a198; font-size:.84rem; line-height:1.65; }
.host-preflight__steps {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:0;
  margin:30px 0 20px;
  border-block:1px solid rgba(255,255,255,.07);
}
.host-preflight__steps > div { min-width:0; padding:22px 24px; border-right:1px solid rgba(255,255,255,.065); }
.host-preflight__steps > div:last-child { border-right:0; }
.host-preflight__steps span { width:42px; height:42px; display:grid; place-items:center; margin:0 auto 12px; border:1px solid rgba(210,175,98,.18); border-radius:12px; color:#c9aa63; background:rgba(210,175,98,.045); }
.host-preflight__steps .host-preflight__number { font-family:var(--font-display); font-size:.72rem; font-style:italic; font-weight:760; letter-spacing:.08em; }
.host-preflight__steps strong { display:block; color:#e9e1d7; font-size:.74rem; text-align:center; }
.host-preflight__steps small { display:block; margin-top:7px; color:#79756f; font-size:.61rem; line-height:1.5; text-align:center; }
.host-preflight__first-game { display:flex; align-items:center; justify-content:center; gap:9px; max-width:650px; margin:0 auto 22px; color:#aaa298; font-size:.69rem; }
.host-preflight__first-game .ea-ui-icon { flex:0 0 auto; color:#c7a960; }
.host-preflight__first-game p { margin:0; }
.host-preflight__first-game strong { color:#ded1b4; }
.host-preflight__actions { display:flex; justify-content:center; gap:10px; }
.host-preflight__actions .btn { min-width:190px; min-height:48px; }
.host-preflight__trust { margin:18px 0 0; color:#706d67; font-size:.59rem; text-align:center; }

/* Keep the room-creation decision visible on 720p laptops and projector
   control screens without turning the preflight into a second scroll task. */
@media (max-height: 820px) and (min-width: 781px) {
  .host-preflight { padding:16px 22px 18px; }
  .host-preflight__mark { width:42px; height:42px; margin-bottom:6px; }
  .host-preflight__kicker { margin-bottom:4px; }
  .host-preflight h2 { font-size:clamp(1.75rem,4vw,2.2rem); }
  .host-preflight__copy > p { margin-top:8px; font-size:.72rem; line-height:1.4; }
  .host-preflight__steps { margin:14px 0 10px; }
  .host-preflight__steps > div { padding:12px 14px; }
  .host-preflight__steps span { width:34px; height:34px; margin-bottom:6px; }
  .host-preflight__steps strong { font-size:.68rem; }
  .host-preflight__steps small { margin-top:4px; font-size:.55rem; line-height:1.35; }
  .host-preflight__first-game { margin-bottom:10px; font-size:.62rem; }
  .host-preflight__actions .btn { min-height:42px; }
  .host-preflight__trust { margin-top:8px; }
}

.hf-root.hf-lounge .hf-stage { overflow-y:auto; align-content:start; }
.hf-root.hf-lounge .hf-stage:has(.ll2-invite-guide) { justify-content:flex-start; }
.hf-root.hf-lounge .hf-stage:has(.ll2-invite-guide) .ll2-lobby {
  height:auto;
  max-height:none;
  flex:0 0 auto;
}
.ll2-invite-guide {
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px 28px;
  margin:0 0 16px;
  padding:22px 24px;
  border:1px solid rgba(210,175,98,.18);
  border-radius:15px;
  background:
    radial-gradient(circle at 85% 0%,rgba(210,175,98,.075),transparent 34%),
    linear-gradient(135deg,rgba(22,24,28,.96),rgba(12,13,16,.98));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 18px 40px rgba(0,0,0,.2);
}
.ll2-invite-copy h2 { margin:4px 0 8px; color:#eee6db; font-family:var(--font-display); font-size:clamp(1.55rem,2.5vw,2.2rem); font-weight:500; letter-spacing:-.025em; }
.ll2-invite-copy p { max-width:620px; margin:0; color:#9e978e; font-size:.73rem; line-height:1.6; }
.ll2-invite-copy strong { color:#ddd0b1; }
.ll2-invite-credentials { display:flex; align-self:start; border:1px solid rgba(255,255,255,.075); border-radius:12px; overflow:hidden; background:rgba(0,0,0,.18); }
.ll2-invite-credentials span { min-width:122px; display:grid; gap:4px; padding:12px 17px; border-right:1px solid rgba(255,255,255,.07); }
.ll2-invite-credentials span:last-child { border-right:0; }
.ll2-invite-credentials small { color:#77736c; font-size:.5rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.ll2-invite-credentials strong { color:#e2c779; font-size:1.28rem; letter-spacing:.12em; }
.ll2-invite-scan { grid-column:1 / -1; display:flex; align-items:center; gap:18px; padding:14px; border:1px solid rgba(210,175,98,.16); border-radius:12px; background:linear-gradient(100deg,rgba(210,175,98,.065),rgba(255,255,255,.014)); }
.ll2-invite-qr { width:220px; height:220px; flex:0 0 220px; display:grid; place-items:center; overflow:hidden; border:8px solid #fffdf7; border-radius:12px; color:#5f574a; background:#fffdf7; box-shadow:0 12px 26px rgba(0,0,0,.28); }
.ll2-invite-qr img { display:block; width:100%; height:100%; }
.ll2-invite-qr.is-error { border-color:rgba(255,255,255,.08); color:#9e978e; background:rgba(0,0,0,.2); font-size:.62rem; }
.ll2-invite-scan-copy { max-width:590px; }
.ll2-invite-scan-copy > strong { display:block; margin:3px 0 6px; color:#eee6db; font-family:var(--font-display); font-size:1.55rem; font-weight:520; }
.ll2-invite-scan-copy p { margin:0; color:#aaa198; font-size:.72rem; line-height:1.55; }
.ll2-invite-scan-copy small { display:block; margin-top:9px; color:#766f66; font-size:.56rem; line-height:1.45; }
.ll2-invite-steps { grid-column:1 / -1; display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:0; padding:0; list-style:none; }
.ll2-invite-steps li { display:flex; align-items:center; gap:10px; min-width:0; padding:10px 12px; border:1px solid rgba(255,255,255,.055); border-radius:10px; background:rgba(255,255,255,.012); }
.ll2-invite-steps li > span { width:26px; height:26px; flex:0 0 auto; display:grid; place-items:center; border:1px solid rgba(210,175,98,.2); border-radius:50%; color:#c8aa63; font-size:.61rem; font-weight:850; }
.ll2-invite-steps p { min-width:0; margin:0; }
.ll2-invite-steps strong { display:block; color:#ddd6cc; font-size:.66rem; }
.ll2-invite-steps small { display:block; margin-top:2px; color:#716e68; font-size:.53rem; white-space:normal; }
.ll2-invite-actions { grid-column:1 / -1; display:flex; align-items:center; gap:8px; }
.ll2-invite-actions .hf-room-share-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:40px; text-decoration:none; }
.ll2-invite-guide .hf-room-share-status { grid-column:1 / -1; min-height:1em; margin:0; }
.ll2-first-game-note { margin:-6px 0 17px; padding:9px 11px; border-left:2px solid rgba(210,175,98,.45); color:#88827a; background:linear-gradient(90deg,rgba(210,175,98,.055),transparent); font-size:.65rem; line-height:1.5; }
.ll2-first-game-note strong { color:#cbb77f; }

@media (max-width: 780px) {
  .home-trust-line { gap:7px 12px; font-size:.61rem; }
  .host-preflight { width:calc(100% - 18px); padding:28px 18px 24px; border-radius:16px; }
  .host-preflight__mark { width:56px; height:56px; }
  .host-preflight h2 { font-size:2.25rem; }
  .host-preflight__copy > p { font-size:.76rem; }
  .host-preflight__steps { grid-template-columns:1fr; margin:22px 0 17px; }
  .host-preflight__steps > div { display:grid; grid-template-columns:42px 1fr; column-gap:13px; padding:14px 5px; border-right:0; border-bottom:1px solid rgba(255,255,255,.06); }
  .host-preflight__steps > div:last-child { border-bottom:0; }
  .host-preflight__steps span { grid-row:1 / 3; margin:0; }
  .host-preflight__steps strong,.host-preflight__steps small { text-align:left; }
  .host-preflight__steps small { margin-top:3px; }
  .host-preflight__first-game { align-items:flex-start; font-size:.64rem; line-height:1.5; }
  .host-preflight__actions { display:grid; }
  .host-preflight__actions .btn { width:100%; min-width:0; }
  .host-preflight__trust { line-height:1.5; }

  .ll2-invite-guide { grid-template-columns:1fr; padding:18px 16px; }
  .ll2-invite-credentials { width:100%; }
  .ll2-invite-credentials span { flex:1; min-width:0; }
  .ll2-invite-scan { align-items:flex-start; gap:13px; padding:12px; }
  .ll2-invite-qr { width:112px; height:112px; flex-basis:112px; border-width:5px; }
  .ll2-invite-scan-copy > strong { font-size:1.3rem; }
  .ll2-invite-scan-copy p { font-size:.65rem; }
  .ll2-invite-steps { grid-template-columns:1fr; }
  .ll2-invite-actions { display:grid; }
  .ll2-invite-actions .hf-room-share-btn { width:100%; }
}

@media (max-width: 430px) {
  .ll2-invite-scan { display:grid; justify-items:center; text-align:center; }
  .ll2-invite-qr { width:148px; height:148px; flex-basis:148px; }
}

/* ─── Widescreen television scale ───────────────────────────
   Host boards are read from across a room, not at laptop distance. Scale the
   shared host typography and lounge rail only on genuinely large 16:9-style
   displays so phones, tablets, and ordinary control screens stay unchanged. */
@media (min-width: 1600px) and (min-height: 900px) {
  html:has(.hf-root) { font-size:clamp(22px,.84vw,32px); }

  .hf-root { grid-template-rows:clamp(88px,5.5vh,128px) minmax(0,1fr) auto; }
  .hf-header { min-height:clamp(88px,5.5vh,128px); padding-inline:clamp(30px,2vw,72px); }
  .hf-brand-mark { width:clamp(42px,2.1vw,72px); height:clamp(42px,2.1vw,72px); }
  .hf-header-title { font-size:clamp(1.4rem,1.15vw,2rem); }
  .hf-header-subtitle { font-size:.78rem; }
  .hf-header-chip-text,
  .hf-room-summary-label,
  .hf-live-status { font-size:.68rem; }
  .hf-room-code { font-size:.82rem; }

  .hf-stage { padding:clamp(34px,2.2vw,84px); }
  .hf-prompt { max-width:min(82vw,1800px); font-size:clamp(4rem,5.6vw,7rem); }
  .hf-stage-sub,
  .hf-stage-status,
  .hf-dock-status { font-size:.82rem; }
  .hf-eyebrow { font-size:.72rem; }
  .hf-control-bar { min-height:clamp(88px,5.5vh,128px); padding-inline:clamp(30px,2vw,72px); }
  .hf-btn-primary,
  .hf-btn-ghost { min-height:clamp(52px,3.1vw,72px); padding-inline:clamp(24px,1.8vw,54px); font-size:.72rem; }

  .hf-player-rail-head { font-size:.68rem; }
  .hf-player-name { max-width:none; font-size:.76rem; }
  .hf-player-score,
  .hf-player-status { font-size:.62rem; }
  .hf-open-seat { font-size:.62rem; }
  .hf-player-avatar { width:clamp(38px,2vw,58px); height:clamp(38px,2vw,58px); font-size:.66rem; }
  .hf-open-seat-ring { width:clamp(38px,2vw,58px); height:clamp(38px,2vw,58px); }

  .hf-root.hf-lounge {
    grid-template-columns:minmax(0,1fr) clamp(420px,18vw,640px);
    grid-template-rows:clamp(88px,5.5vh,128px) minmax(0,1fr) clamp(88px,5.5vh,128px);
  }
  .hf-root.hf-lounge .hf-player-rail { padding:clamp(28px,2vw,62px) clamp(24px,1.7vw,50px); }
  .hf-root.hf-lounge .hf-lounge-join-qr {
    width:clamp(240px,10vw,360px);
    height:clamp(240px,10vw,360px);
  }
  .hf-root.hf-lounge .hf-lounge-join-copy > strong { font-size:1.35rem; }
  .hf-root.hf-lounge .hf-player-rail-head span:first-child { font-size:1.55rem; }
  .hf-root.hf-lounge .hf-player { min-height:clamp(72px,4.3vw,108px); grid-template-columns:clamp(48px,2.6vw,76px) minmax(0,1fr) auto; }
  .hf-root.hf-lounge .hf-player-avatar { width:clamp(46px,2.4vw,70px); height:clamp(46px,2.4vw,70px); }
  .hf-root.hf-lounge .hf-player-name { font-size:.8rem; }
  .hf-root.hf-lounge .hf-player-score,
  .hf-root.hf-lounge .hf-player-status { font-size:.64rem; }
  .hf-root.hf-lounge .hf-open-seat { min-height:clamp(64px,3.7vw,96px); font-size:.64rem; }

  .hf-root.hf-lounge .ll2-game-library { padding:clamp(26px,1.8vw,54px); }
  .hf-root.hf-lounge .ll2-selected-game { padding:clamp(32px,2.1vw,66px); }
  .ll2-section-head h2,
  .ll2-selected-game h2 { font-size:clamp(1.7rem,2.1vw,2.6rem); }
  .ll2-kicker,
  .ll2-player-count,
  .ll2-game-group h3,
  .ll2-game-meta { font-size:.66rem; }
  .ll2-game-copy strong { font-size:.8rem; }
  .ll2-game-copy small { font-size:.68rem; line-height:1.45; }
  .ll2-selected-summary { font-size:.82rem; }
  .ll2-first-game-note { font-size:.68rem; }

  .ll2-invite-guide { gap:clamp(20px,1.4vw,44px); padding:clamp(28px,2vw,64px); }
  .ll2-invite-copy h2 { font-size:clamp(2rem,2.5vw,3.2rem); }
  .ll2-invite-copy p,
  .ll2-invite-scan-copy p { font-size:.76rem; }
  .ll2-invite-credentials small { font-size:.62rem; }
  .ll2-invite-credentials strong { font-size:1.45rem; }
  .ll2-invite-scan { gap:clamp(22px,1.5vw,46px); padding:clamp(18px,1.4vw,42px); }
  .ll2-invite-qr { width:clamp(250px,11vw,400px); height:clamp(250px,11vw,400px); flex-basis:clamp(250px,11vw,400px); }
  .ll2-invite-scan-copy > strong { font-size:1.8rem; }
  .ll2-invite-scan-copy small { font-size:.64rem; }
  .ll2-invite-steps li { min-height:clamp(58px,3.3vw,90px); padding:clamp(12px,1vw,28px); }
  .ll2-invite-steps strong { font-size:.76rem; }
  .ll2-invite-steps small { font-size:.64rem; }

  /* Keep a full 12-player roster readable without introducing a scroll-only
     shared-screen state. */
  .hf-root.hf-lounge.is-max-roster .hf-player { min-height:clamp(50px,2.7vw,72px); }
  .hf-root.hf-lounge.is-max-roster .hf-player-avatar { width:clamp(34px,1.7vw,48px); height:clamp(34px,1.7vw,48px); }
  .hf-root.hf-lounge.is-max-roster .hf-player-name { font-size:.7rem; }
  .hf-root.hf-lounge.is-max-roster .hf-player-score,
  .hf-root.hf-lounge.is-max-roster .hf-player-status { font-size:.58rem; }
}

/* The shared-screen roster remains a true side rail at every wide size. */
@media (min-width:1001px) {
  .hf-root:not(.hf-lounge) {
    grid-template-columns:minmax(0,1fr) clamp(250px,21vw,300px);
    grid-template-rows:72px minmax(0,1fr) 68px;
  }
  .hf-root:not(.hf-lounge) .hf-header { grid-column:1 / -1;grid-row:1; }
  .hf-root:not(.hf-lounge) .hf-stage { grid-column:1;grid-row:2;padding-right:34px; }
  .hf-root:not(.hf-lounge) .hf-dock { display:contents; }
  .hf-root:not(.hf-lounge) .hf-player-rail {
    position:relative;
    grid-column:2;
    grid-row:2 / 4;
    top:auto;
    right:auto;
    bottom:auto;
    width:auto;
    height:auto;
    max-height:none;
    box-sizing:border-box;
  }
  .hf-root:not(.hf-lounge) .hf-roster { grid-template-columns:1fr; }
  .hf-root:not(.hf-lounge) .hf-control-bar {
    grid-column:1;
    grid-row:3;
    padding-right:22px;
    background:rgba(8,9,11,.96);
  }
}

/* ─── Shared-screen television authority ─────────────────────
   The host display is a room surface, not a desktop dashboard. At common
   720p-and-up TV sizes the stage owns the full width, players become a visible
   cast along the bottom, and the lounge fits without a hidden sidebar or an
   off-screen settings panel. */
@media (min-width:1280px) and (min-height:700px) {
  html:has(.hf-root) { overflow:hidden;font-size:clamp(17px,1vw,20px); }
  body:has(.hf-root) .consent-slot { display:none; }

  .hf-root,
  .hf-root.hf-lounge,
  .hf-root:not(.hf-lounge) {
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:84px minmax(0,1fr) auto 82px;
  }
  .hf-root .hf-header,
  .hf-root.hf-lounge .hf-header,
  .hf-root:not(.hf-lounge) .hf-header {
    grid-column:1;
    grid-row:1;
    min-height:84px;
    padding-inline:clamp(30px,2.6vw,52px);
  }
  .hf-root .hf-brand-mark { width:42px;height:42px; }
  .hf-root .hf-brand-name { font-size:.72rem; }
  .hf-root .hf-header-title { font-size:1.62rem; }
  .hf-root .hf-header-subtitle { font-size:.9rem; }
  .hf-root .hf-live-status,
  .hf-root .hf-fullscreen-toggle,
  .hf-root .hf-room-summary,
  .hf-root .hf-header-chip { min-height:46px; }
  .hf-root .hf-live-status,
  .hf-root .hf-header-chip-text,
  .hf-root .hf-room-summary-label { font-size:.76rem; }
  .hf-root .hf-room-code { font-size:1rem; }

  .hf-root .hf-stage,
  .hf-root.hf-lounge .hf-stage,
  .hf-root:not(.hf-lounge) .hf-stage {
    grid-column:1;
    grid-row:2;
    width:100%;
    min-width:0;
    padding:clamp(24px,2.4vw,46px);
  }
  .hf-root:not(.hf-lounge) .hf-stage { padding-right:clamp(24px,2.4vw,46px); }
  .hf-root .hf-prompt { max-width:min(88vw,1500px);font-size:clamp(3.7rem,5.2vw,6.2rem); }
  .hf-root .hf-stage-sub,
  .hf-root .hf-stage-status { font-size:.96rem; }
  .hf-root .hf-eyebrow { font-size:.82rem; }
  .hf-root .hmlt-results {
    width:min(1200px,100%);
    max-width:none;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:10px;
    margin:14px auto 0;
  }
  .hf-root .hmlt-result { min-width:0;min-height:58px; }

  .hf-root .hf-dock,
  .hf-root.hf-lounge .hf-dock,
  .hf-root:not(.hf-lounge) .hf-dock { display:contents; }
  .hf-root:not(.hf-lounge) .hf-player-rail {
    position:relative;
    inset:auto;
    z-index:3;
    grid-column:1;
    grid-row:3;
    width:auto;
    height:auto;
    max-height:154px;
    padding:12px clamp(30px,2.6vw,52px) 14px;
    overflow-x:auto;
    overflow-y:hidden;
    border:0;
    border-top:1px solid rgba(217,183,95,.13);
    border-bottom:1px solid rgba(255,255,255,.06);
    background:rgba(10,13,17,.94);
    backdrop-filter:blur(18px);
  }
  .hf-root:not(.hf-lounge) .hf-player-rail-head {
    min-width:0;
    margin:0 0 8px;
    font-size:.7rem;
  }
  .hf-root:not(.hf-lounge) .hf-player-rail-head span:last-child { display:block; }
  .hf-root:not(.hf-lounge) .hf-ready-progress { margin-bottom:9px; }
  .hf-root:not(.hf-lounge) .hf-roster {
    min-width:0;
    display:grid;
    grid-template-columns:repeat(var(--max-roster-columns,1),minmax(150px,200px));
    justify-content:center;
    gap:10px;
  }
  .hf-root:not(.hf-lounge) .hf-player {
    width:100%;
    min-width:0;
    max-width:none;
    min-height:62px;
    grid-template-columns:50px minmax(0,1fr) auto;
    gap:11px;
    padding:6px 10px;
    border-radius:10px;
  }
  .hf-root:not(.hf-lounge) .hf-player-avatar { width:48px;height:48px;font-size:.78rem; }
  .hf-root:not(.hf-lounge) .hf-player-name { font-size:.88rem; }
  .hf-root:not(.hf-lounge) .hf-player-score,
  .hf-root:not(.hf-lounge) .hf-player-status { font-size:.68rem; }
  .hf-root:not(.hf-lounge) .hf-open-seat { display:none; }
  .hf-root:not(.hf-lounge).is-max-roster .hf-roster {
    grid-template-columns:repeat(var(--max-roster-columns,12),minmax(0,1fr));
  }
  .hf-root:not(.hf-lounge).is-max-roster .hf-player {
    min-height:52px;
    grid-template-columns:38px minmax(0,1fr);
    gap:7px;
    padding:5px 7px;
  }
  .hf-root:not(.hf-lounge).is-max-roster .hf-player-avatar { width:36px;height:36px; }
  .hf-root:not(.hf-lounge).is-max-roster .hf-player-name { font-size:.72rem; }

  .hf-root .hf-control-bar,
  .hf-root.hf-lounge .hf-control-bar,
  .hf-root:not(.hf-lounge) .hf-control-bar {
    grid-column:1;
    grid-row:4;
    min-height:82px;
    padding:12px clamp(30px,2.6vw,52px);
  }
  .hf-root .hf-dock-status { font-size:.92rem; }
  .hf-root .hf-btn-primary,
  .hf-root .hf-btn-ghost {
    min-height:54px;
    padding-inline:28px;
    font-size:.84rem;
  }

  .hf-root.hf-lounge { grid-template-rows:84px minmax(0,1fr) 82px; }
  .hf-root.hf-lounge .hf-player-rail { display:none; }
  .hf-root.hf-lounge .hf-stage {
    grid-row:2;
    justify-content:flex-start;
    gap:0;
    overflow:hidden;
    padding:20px clamp(32px,2.6vw,52px);
  }
  .hf-root.hf-lounge .hf-stage-status { display:none; }
  .hf-root.hf-lounge .hf-control-bar { grid-row:3; }
  .hf-root.hf-lounge .ll2-invite-guide,
  .hf-root.hf-lounge .ll2-lobby {
    width:min(1760px,100%);
  }
  .hf-root.hf-lounge .ll2-invite-guide {
    flex:0 0 auto;
    grid-template-columns:minmax(0,1fr) minmax(260px,320px);
    gap:12px 24px;
    margin:0 0 14px;
    padding:16px 20px;
  }
  .hf-root.hf-lounge .ll2-invite-copy h2 { font-size:2.15rem; }
  .hf-root.hf-lounge .ll2-invite-copy p { font-size:.86rem; }
  .hf-root.hf-lounge .ll2-invite-credentials span { min-width:138px;padding:12px 16px; }
  .hf-root.hf-lounge .ll2-invite-credentials small { font-size:.64rem; }
  .hf-root.hf-lounge .ll2-invite-credentials strong { font-size:1.58rem; }
  .hf-root.hf-lounge .ll2-invite-scan {
    grid-column:1;
    min-height:158px;
    gap:20px;
    padding:10px 12px;
  }
  .hf-root.hf-lounge .ll2-invite-qr {
    width:148px;
    height:148px;
    flex-basis:148px;
    border-width:6px;
  }
  .hf-root.hf-lounge .ll2-invite-scan-copy > strong { font-size:1.55rem; }
  .hf-root.hf-lounge .ll2-invite-scan-copy p { font-size:.82rem; }
  .hf-root.hf-lounge .ll2-invite-scan-copy small { font-size:.68rem; }
  .hf-root.hf-lounge .ll2-invite-actions { grid-column:2;min-width:260px; }
  .hf-root.hf-lounge .ll2-invite-actions .hf-room-share-btn { min-height:56px;font-size:.82rem; }

  .hf-root.hf-lounge .ll2-lobby {
    flex:1 1 0;
    height:auto;
    min-height:0;
    max-height:none;
    grid-template-columns:minmax(310px,.82fr) minmax(560px,1.48fr) minmax(270px,.7fr);
  }
  .hf-root.hf-lounge .hf-stage:has(.ll2-invite-guide) .ll2-lobby {
    flex:1 1 0;
    height:auto;
    min-height:0;
    max-height:none;
  }
  .hf-root.hf-lounge .ll2-invite-guide .hf-room-share-status:empty { display:none; }
  .hf-root.hf-lounge .ll2-game-library { padding:22px 20px; }
  .hf-root.hf-lounge .ll2-selected-game { padding:24px clamp(26px,2vw,38px); }
  .hf-root.hf-lounge .ll2-room-roster { padding:22px 18px; }
  .hf-root.hf-lounge .ll2-section-head { margin-bottom:16px; }
  .hf-root.hf-lounge .ll2-section-head h2,
  .hf-root.hf-lounge .ll2-selected-game h2,
  .hf-root.hf-lounge .ll2-room-roster h2 { font-size:2rem; }
  .hf-root.hf-lounge .ll2-kicker,
  .hf-root.hf-lounge .ll-settings-label { font-size:.72rem; }
  .hf-root.hf-lounge .ll-game-box {
    min-height:70px;
    grid-template-columns:52px minmax(0,1fr) auto;
    gap:13px;
    padding:8px 10px;
  }
  .hf-root.hf-lounge .ll2-game-thumb { width:52px;height:54px; }
  .hf-root.hf-lounge .ll2-game-copy strong { font-size:.92rem; }
  .hf-root.hf-lounge .ll2-game-copy small { font-size:.7rem;line-height:1.35; }
  .hf-root.hf-lounge .ll2-game-meta { font-size:.62rem; }
  .hf-root.hf-lounge .ll2-selected-summary { margin:14px 0 22px;font-size:.94rem; }
  .hf-root.hf-lounge .ll2-settings-grid { gap:22px; }
  .hf-root.hf-lounge .ll-settings-btn {
    min-height:58px;
    padding:9px 14px;
    font-size:.84rem;
  }
  .hf-root.hf-lounge .ll-stepper { grid-template-columns:54px minmax(76px,1fr) 54px !important; }
  .hf-root.hf-lounge .ll-stepper-btn { width:54px !important;height:58px !important;font-size:1rem; }
  .hf-root.hf-lounge .ll-stepper-val { min-height:58px;font-size:1.22rem !important; }
  .hf-root.hf-lounge .ll-room-settings { padding-top:18px; }
  .hf-root.hf-lounge .ll-room-settings-body {
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:stretch;
    gap:10px 12px;
  }
  .hf-root.hf-lounge .ll-room-settings-body > *,
  .hf-root.hf-lounge .ll-toggle-row { min-width:0; }
  .hf-root.hf-lounge .ll-room-settings-body > .ll-settings-btn { min-height:54px;align-self:stretch; }
  .hf-root.hf-lounge .ll2-room-player {
    min-height:64px;
    grid-template-columns:46px minmax(0,1fr) 9px;
    gap:11px;
  }
  .hf-root.hf-lounge .ll2-room-player-token { width:44px;height:44px; }
  .hf-root.hf-lounge .ll2-room-player strong { font-size:.86rem; }
  .hf-root.hf-lounge .ll2-room-player small,
  .hf-root.hf-lounge .ll2-room-empty,
  .hf-root.hf-lounge .ll2-room-roster-note { font-size:.7rem; }
}

/* A compact TV tier keeps the same hierarchy at 720p without introducing a
   scroll-only room state. */
@media (min-width:1280px) and (min-height:700px) and (max-height:820px) {
  .hf-root,
  .hf-root.hf-lounge,
  .hf-root:not(.hf-lounge) { grid-template-rows:72px minmax(0,1fr) auto 70px; }
  .hf-root .hf-header,
  .hf-root.hf-lounge .hf-header,
  .hf-root:not(.hf-lounge) .hf-header { min-height:72px;padding-inline:28px; }
  .hf-root .hf-brand-mark { width:34px;height:34px; }
  .hf-root .hf-header-title { font-size:1.38rem; }
  .hf-root .hf-stage,
  .hf-root.hf-lounge .hf-stage,
  .hf-root:not(.hf-lounge) .hf-stage { padding:14px 28px; }
  .hf-root .hf-control-bar,
  .hf-root.hf-lounge .hf-control-bar,
  .hf-root:not(.hf-lounge) .hf-control-bar { min-height:70px;padding:8px 28px; }
  .hf-root .hf-btn-primary,
  .hf-root .hf-btn-ghost { min-height:48px; }

  .hf-root.hf-lounge { grid-template-rows:72px minmax(0,1fr) 70px; }
  .hf-root.hf-lounge .ll2-invite-guide {
    grid-template-columns:minmax(0,1fr) 250px;
    gap:8px 18px;
    margin-bottom:10px;
    padding:10px 14px;
  }
  .hf-root.hf-lounge .ll2-invite-copy h2 { margin:1px 0 3px;font-size:1.7rem; }
  .hf-root.hf-lounge .ll2-invite-copy p { font-size:.76rem; }
  .hf-root.hf-lounge .ll2-invite-credentials span { min-width:110px;padding:8px 12px; }
  .hf-root.hf-lounge .ll2-invite-credentials strong { font-size:1.2rem; }
  .hf-root.hf-lounge .ll2-invite-scan { min-height:106px;gap:14px;padding:7px 9px; }
  .hf-root.hf-lounge .ll2-invite-qr { width:96px;height:96px;flex-basis:96px;border-width:4px; }
  .hf-root.hf-lounge .ll2-invite-scan-copy > strong { font-size:1.2rem; }
  .hf-root.hf-lounge .ll2-invite-scan-copy p { font-size:.72rem; }
  .hf-root.hf-lounge .ll2-invite-actions { min-width:230px; }
  .hf-root.hf-lounge .ll2-invite-actions .hf-room-share-btn { min-height:48px; }
  .hf-root.hf-lounge .hf-stage:has(.ll-room-settings[open]) .ll2-invite-guide { display:none; }
  .hf-root.hf-lounge .ll2-game-library { padding:16px 15px; }
  .hf-root.hf-lounge .ll2-selected-game { padding:18px 24px; }
  .hf-root.hf-lounge .ll2-room-roster { padding:16px 14px; }
  .hf-root.hf-lounge .ll2-section-head { margin-bottom:10px; }
  .hf-root.hf-lounge .ll2-section-head h2,
  .hf-root.hf-lounge .ll2-selected-game h2,
  .hf-root.hf-lounge .ll2-room-roster h2 { font-size:1.55rem; }
  .hf-root.hf-lounge .ll-game-box { min-height:54px;grid-template-columns:42px minmax(0,1fr) auto;padding:5px 7px; }
  .hf-root.hf-lounge .ll2-game-thumb { width:42px;height:42px; }
  .hf-root.hf-lounge .ll2-selected-summary { margin:9px 0 12px;font-size:.78rem; }
  .hf-root.hf-lounge .ll-settings-btn { min-height:48px;font-size:.72rem; }
  .hf-root.hf-lounge .ll-stepper { grid-template-columns:44px minmax(58px,1fr) 44px !important;gap:6px !important; }
  .hf-root.hf-lounge .ll-stepper-btn { width:44px !important;height:48px !important; }
  .hf-root.hf-lounge .ll-stepper-val { min-height:48px; }
  .hf-root.hf-lounge .ll-room-settings { padding-top:10px; }
  .hf-root.hf-lounge .ll-room-settings-body {
    grid-template-columns:minmax(170px,1.4fr) repeat(2,minmax(88px,1fr)) minmax(108px,.9fr);
    gap:8px;
    padding-top:9px;
  }
  .hf-root.hf-lounge .ll-toggle-row { min-height:48px;padding:6px 8px; }
  .hf-root.hf-lounge .ll-toggle-row strong { font-size:.58rem;line-height:1.2; }
  .hf-root.hf-lounge .ll-toggle-row small { display:none; }
  .hf-root.hf-lounge .ll-room-settings-body > .ll-settings-btn { min-height:48px; }
}

