/* ═══════════════════════════════════════════
   FREEROLL+ — UNIFIED STYLESHEET
   Landing page + Play/Lobby + Game + Ad Mgr
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bowlby+One+SC&family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,600;9..144,900&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  /* Landing page palette */
  --bg: #fef6e4;
  --bg-alt: #fde7c4;
  --ink: #1a0e3e;
  --accent-pink: #ff5e8a;
  --accent-purple: #7c5cfc;
  --accent-mint: #00d2a8;
  --accent-gold: #ffb627;
  --accent-orange: #ff6b35;
  --felt: #1b8a5a;
  --card-white: #fffef5;
  --card-red: #e63946;
  --card-black: #1a0e3e;
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-soft: 0 12px 32px rgba(26, 14, 62, 0.15);

  /* Table felt colors */
  --felt-1: #14804a;
  --felt-2: #1a9f5c;
  --felt-3: #0d6638;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Fraunces', serif;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.05 0 0 0 0 0.24 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}

main { position: relative; z-index: 2; }
button, input, select { font: inherit; }
button { cursor: pointer; }

/* ═══ VIEW SYSTEM ═══ */
.lp-view { display: none; }
.lp-view.is-active { display: block; }

/* ═══ NAVIGATION ═══ */
nav#siteNav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: var(--bg);
  border-bottom: 3px solid var(--ink);
}

.logo {
  font-family: 'Bowlby One SC', sans-serif;
  font-size: 1.6rem;
  letter-spacing: -1px;
}

.logo-btn {
  background: none;
  border: none;
  font: inherit;
  font-family: 'Bowlby One SC', sans-serif;
  font-size: 1.6rem;
  letter-spacing: -1px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.logo-text { position: relative; display: inline-block; padding-right: 4px; }
.logo-beta {
  position: absolute;
  top: -10px;
  right: -22px;
  transform: rotate(8deg);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: var(--accent-pink, #ff5e8a);
  color: var(--bg, #fff7f0);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1.5px solid var(--ink, #1a0e3e);
  box-shadow: 1px 1px 0 var(--ink, #1a0e3e);
  pointer-events: none;
}
.logo-suit { color: var(--accent-pink); animation: spin 8s linear infinite; display: inline-block; }
.logo-suit:nth-child(2) { animation-delay: -2s; color: var(--accent-purple); }
.logo-suit:nth-child(3) { animation-delay: -4s; color: var(--accent-mint); }
.logo-suit:nth-child(4) { animation-delay: -6s; color: var(--accent-gold); }
@keyframes spin { to { transform: rotate(360deg); } }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-link-btn {
  background: none;
  border: none;
  color: var(--ink);
  font: inherit;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s;
}

.nav-link-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.nav-link-btn:hover::after { transform: scaleX(1); }
.nav-link-btn.is-active::after { transform: scaleX(1); }
.nav-link-btn.is-active { color: var(--accent-pink); }

.nav-cta {
  background: var(--ink);
  color: var(--bg);
  padding: 10px 22px;
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 24px;
  transition: all 0.2s;
}

.nav-cta:hover { background: var(--accent-pink); transform: translateY(-2px); }

.nav-trailing {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 210;
}

.nav-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 11px 12px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  position: relative;
  z-index: 211;
}

.nav-menu-btn:hover {
  background: var(--bg-alt);
}

.nav-menu-bar {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--ink);
  border-radius: 1px;
}

.nav-mobile-only {
  display: none;
}

.nav-menu-cta {
  width: 100%;
  margin: 0;
  padding: 14px 20px;
  border: none;
  border-bottom: 3px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  cursor: pointer;
}

.nav-menu-cta:hover {
  background: var(--accent-pink);
  color: var(--ink);
}

/* ═══ HERO ═══ */
.hero {
  padding: 80px 40px 120px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-purple);
  background: rgba(124, 92, 252, 0.12);
  padding: 8px 16px;
  border-radius: 24px;
  display: inline-block;
  margin-bottom: 28px;
  border: 2px solid var(--accent-purple);
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -3px;
  margin-bottom: 28px;
}

.hero h1 .highlight {
  position: relative;
  display: inline-block;
  font-style: italic;
  color: var(--accent-pink);
}

.hero h1 .highlight::before {
  content: '';
  position: absolute;
  left: -8px;
  right: -8px;
  top: 12%;
  bottom: 12%;
  background: var(--accent-gold);
  z-index: -1;
  transform: rotate(-1deg);
  border-radius: 4px;
}

.hero h1 .strike {
  position: relative;
  display: inline-block;
}

.hero h1 .strike::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  top: 50%;
  height: 6px;
  background: var(--accent-pink);
  transform: rotate(-2deg);
}

.hero p.lead {
  font-size: 1.25rem;
  color: var(--ink);
  opacity: 0.78;
  margin-bottom: 36px;
  max-width: 540px;
  font-weight: 400;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 22px 38px;
  border-radius: 100px;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-hard);
}

.btn-primary:hover {
  background: var(--accent-pink);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--ink);
}

.btn-primary .arrow {
  display: inline-block;
  transition: transform 0.25s;
}

.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-secondary {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 4px;
  transition: color 0.2s;
}

.btn-secondary:hover { color: var(--accent-pink); border-color: var(--accent-pink); }

/* Hero floating cards */
.hero-cards-deco {
  position: relative;
  height: 480px;
}

.float-card {
  position: absolute;
  width: 180px;
  height: 252px;
  background: var(--card-white);
  border: 4px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-hard);
  display: flex;
  flex-direction: column;
  padding: 18px;
  font-family: 'Fraunces', serif;
  font-weight: 900;
  animation: float 6s ease-in-out infinite;
}

.float-card .corner-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 1.8rem;
  line-height: 0.9;
}

.float-card .corner-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 1.8rem;
  line-height: 0.9;
  margin-top: auto;
  transform: rotate(180deg);
}

.float-card .center-suit {
  font-size: 5rem;
  text-align: center;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-card.red { color: var(--card-red); }
.float-card.black { color: var(--card-black); }

.card-1 { top: 10px; left: 20px; transform: rotate(-12deg); z-index: 3; animation-delay: 0s; --rot: -12deg; }
.card-2 { top: 50px; left: 130px; transform: rotate(4deg); z-index: 2; animation-delay: -2s; --rot: 4deg; }
.card-3 { top: 140px; left: 60px; transform: rotate(8deg); z-index: 4; animation-delay: -4s; --rot: 8deg; }

@keyframes float {
  0%, 100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
  50% { transform: rotate(var(--rot, 0deg)) translateY(-12px); }
}

.prize-bubble {
  position: absolute;
  bottom: 20px;
  right: 0;
  background: var(--ink);
  border: 4px solid var(--accent-gold);
  border-radius: 50%;
  width: 160px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Bowlby One SC', sans-serif;
  box-shadow: var(--shadow-hard);
  transform: rotate(8deg);
  animation: pulse-rotate 4s ease-in-out infinite;
  z-index: 5;
}

@keyframes pulse-rotate {
  0%, 100% { transform: rotate(8deg) scale(1); }
  50% { transform: rotate(12deg) scale(1.05); }
}

.prize-bubble-label {
  font-size: 0.65rem;
  letter-spacing: 1px;
  color: var(--bg);
  opacity: 0.7;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.prize-bubble-amount {
  font-size: 2.2rem;
  line-height: 1;
  margin: 4px 0;
  color: var(--accent-gold);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.prize-bubble-sub {
  font-size: 0.55rem;
  letter-spacing: 1px;
  color: var(--bg);
  opacity: 0.7;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.prize-bubble-split {
  margin-top: 2px;
  padding: 0 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.48rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--bg);
  opacity: 0.75;
  white-space: pre-line;
}

/* ═══ MARQUEE TICKER ═══ */
.ticker {
  background: var(--ink);
  color: var(--bg);
  padding: 20px 0;
  overflow: hidden;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.ticker-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  font-family: 'Bowlby One SC', sans-serif;
  font-size: 1.8rem;
  letter-spacing: -0.5px;
}

.ticker-track span {
  display: flex;
  align-items: center;
  gap: 60px;
}

.ticker-track .dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--accent-pink);
  border-radius: 50%;
}

.ticker .pink { color: var(--accent-pink); }
.ticker .gold { color: var(--accent-gold); }
.ticker .mint { color: var(--accent-mint); }

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ═══ HOW IT WORKS ═══ */
.how {
  padding: 120px 40px;
  background: var(--bg-alt);
  position: relative;
}

.section-header {
  max-width: 1280px;
  margin: 0 auto 80px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-purple);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -2px;
  max-width: 700px;
}

.section-title em {
  font-style: italic;
  color: var(--accent-pink);
}

.section-side {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  max-width: 280px;
  opacity: 0.7;
  text-align: right;
}

.steps {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  background: var(--bg);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 32px 28px;
  position: relative;
  transition: transform 0.3s;
}

.step:hover { transform: translateY(-6px); }
.step:nth-child(1) { transform: rotate(-1.5deg); }
.step:nth-child(2) { transform: rotate(1deg); }
.step:nth-child(3) { transform: rotate(-0.5deg); }
.step:nth-child(4) { transform: rotate(1.5deg); }
.step:nth-child(1):hover { transform: rotate(-1.5deg) translateY(-6px); }
.step:nth-child(2):hover { transform: rotate(1deg) translateY(-6px); }
.step:nth-child(3):hover { transform: rotate(-0.5deg) translateY(-6px); }
.step:nth-child(4):hover { transform: rotate(1.5deg) translateY(-6px); }

.step-num {
  font-family: 'Bowlby One SC', sans-serif;
  font-size: 4.5rem;
  line-height: 0.9;
  color: var(--accent-pink);
  margin-bottom: 12px;
  display: block;
}

.step:nth-child(2) .step-num { color: var(--accent-purple); }
.step:nth-child(3) .step-num { color: var(--accent-mint); }
.step:nth-child(4) .step-num { color: var(--accent-gold); }

.step h3 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.1;
}

.step p {
  font-size: 0.95rem;
  opacity: 0.78;
}

/* ═══ FEATURES ═══ */
.features {
  padding: 120px 40px;
}

.features-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature {
  padding: 40px 0;
  border-top: 3px solid var(--ink);
}

.feature-icon {
  font-size: 2.6rem;
  margin-bottom: 24px;
  display: inline-block;
  filter: drop-shadow(2px 3px 0 rgba(26,14,62,0.2));
}

.feature h3 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.1;
}

.feature p {
  font-size: 1rem;
  opacity: 0.78;
}

/* ═══ TRUST / RECEIPTS ═══ */
.trust {
  background: var(--ink);
  color: var(--bg);
  padding: 120px 40px;
  position: relative;
  overflow: hidden;
}

.trust::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 94, 138, 0.18), transparent 40%),
                    radial-gradient(circle at 80% 70%, rgba(124, 92, 252, 0.18), transparent 40%);
  pointer-events: none;
}

.trust-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.trust h2 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 28px;
}

.trust h2 em { font-style: italic; color: var(--accent-mint); }

.trust p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 28px;
  max-width: 480px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.receipts {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 32px;
  backdrop-filter: blur(10px);
}

.receipts-header {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.receipt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.receipt:last-child { border-bottom: none; }

.receipt-rank {
  font-family: 'Bowlby One SC', sans-serif;
  font-size: 1.4rem;
  width: 40px;
  color: var(--accent-gold);
}

.receipt:nth-child(3) .receipt-rank { color: #d0d0d0; }
.receipt:nth-child(4) .receipt-rank { color: #cd7f32; }

.receipt-name {
  flex: 1;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.receipt-amount {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-mint);
}

.receipts-empty {
  padding: 24px 4px 8px;
  font-family: 'Fraunces', serif;
  font-size: 0.95rem;
  color: var(--ink);
  opacity: 0.75;
  line-height: 1.5;
}

/* ═══ FAQ ═══ */
.faq {
  padding: 120px 40px;
  background: var(--bg-alt);
}

.faq-list {
  max-width: 880px;
  margin: 60px auto 0;
}

.faq-item {
  border-bottom: 2px solid var(--ink);
  padding: 28px 0;
  cursor: pointer;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.faq-toggle {
  font-family: 'Bowlby One SC', sans-serif;
  font-size: 1.6rem;
  color: var(--accent-pink);
  flex-shrink: 0;
  transition: transform 0.3s;
  width: 28px;
  text-align: center;
}

.faq-item.open .faq-toggle { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  font-size: 1.05rem;
  opacity: 0.8;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding-top: 16px;
}

/* ═══ FINAL CTA ═══ */
/* Adsterra display-ad slots on the homepage. Each iframe reserves its native
   size so the page doesn't reflow when the ad fills. The iframe-per-banner
   pattern (see app.js) gives each ad its own document context — required
   because Adsterra's snippet relies on a global atOptions that would
   otherwise clobber between banners. */
.homepage-ad-slot {
  padding: 40px 20px;
  background: var(--bg-alt);
  display: flex;
  justify-content: center;
}
.ad-iframe {
  border: 0;
  display: block;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
}

/* 728x90 leaderboard: desktop only — wider than most phones. */
.homepage-ad-leaderboard {
  display: flex;
  justify-content: center;
  padding: 12px 20px;
  background: var(--bg-alt);
}
@media (max-width: 767px) {
  .homepage-ad-leaderboard { display: none; }
}

/* 320x50 sticky bottom: mobile only. Reserved bottom padding on <body>
   via .has-sticky-ad so fixed footer content doesn't overlap real content. */
.ad-sticky-mobile {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 320px;
  height: 50px;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.6);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-sticky-mobile .ad-iframe { background: transparent; border-radius: 0; }
.ad-sticky-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  line-height: 22px;
  cursor: pointer;
  padding: 0;
  z-index: 1;
}
@media (min-width: 768px) {
  .ad-sticky-mobile { display: none; }
}
@media (max-width: 767px) {
  body.has-sticky-ad { padding-bottom: calc(50px + env(safe-area-inset-bottom, 0px)); }
}

.final-cta {
  padding: 140px 40px;
  text-align: center;
  position: relative;
}

.final-cta h2 {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -3px;
  max-width: 1000px;
  margin: 0 auto 32px;
}

.final-cta h2 em {
  font-style: italic;
  color: var(--accent-pink);
  position: relative;
}

.final-cta p {
  font-size: 1.2rem;
  opacity: 0.7;
  max-width: 540px;
  margin: 0 auto 40px;
}

/* ═══ FOOTER ═══ */
footer {
  background: var(--ink);
  color: var(--bg);
  padding: 60px 40px 30px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  font-family: 'Bowlby One SC', sans-serif;
  font-size: 2rem;
  margin-bottom: 14px;
}

.footer-tag {
  opacity: 0.6;
  max-width: 280px;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  color: var(--accent-pink);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--bg);
  text-decoration: none;
  opacity: 0.7;
  font-size: 0.92rem;
  transition: opacity 0.2s;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Fraunces', serif;
  text-align: left;
  cursor: pointer;
}

.footer-link:hover { opacity: 1; }

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  opacity: 0.5;
  flex-wrap: wrap;
  gap: 16px;
}

/* ═══════════════════════════════════════════
   PLAY SHELL (Lobby + Auth + Ad Manager)
   Warm landing-page style
   ═══════════════════════════════════════════ */

.play-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 80px;
  color: var(--ink);
  font-family: 'Fraunces', serif;
}

#playView {
  background: var(--bg-alt);
  min-height: calc(100vh - 64px);
}

#adManagerView {
  background: var(--bg);
  min-height: calc(100vh - 64px);
}

/* ── Account: Auth cards (login / signup) ── */
.acc-auth-view { display:flex; align-items:center; justify-content:center; padding:60px 20px; min-height:calc(100vh - 64px); }
.acc-auth-view[hidden] { display:none; }
.acc-auth-card {
  background:var(--card-white); border:3px solid var(--ink); border-radius:14px;
  box-shadow:var(--shadow-hard); padding:48px 44px; width:100%; max-width:460px; position:relative;
}
.acc-auth-card::before { content:'♠♥♦♣'; position:absolute; top:-18px; left:50%; transform:translateX(-50%); background:var(--bg); padding:0 16px; font-size:1.1rem; letter-spacing:8px; color:var(--accent-pink); }
.acc-auth-title { font-family:'Fraunces',serif; font-weight:900; font-size:2.4rem; letter-spacing:-1px; text-align:center; margin-bottom:6px; }
.acc-auth-sub { text-align:center; opacity:.65; font-size:.95rem; margin-bottom:36px; }
.acc-auth-referral-note { text-align:center; font-size:.88rem; line-height:1.45; margin:-12px 0 20px; padding:14px 18px; border-radius:14px; border:2px solid var(--ink); background:linear-gradient(135deg, rgba(110,231,255,.25), rgba(255,182,193,.35)); color:var(--ink); }
.acc-auth-referral-note strong { font-weight:800; }
.acc-auth-beta-notice { text-align:left; font-size:.85rem; line-height:1.5; margin:-12px 0 20px; padding:12px 16px; border-radius:12px; border:2px dashed var(--accent-pink, #ff5e8a); background:rgba(255,215,90,.18); color:var(--ink); }
.acc-auth-beta-notice strong { font-weight:800; }
.acc-auth-beta-link { color:var(--accent-purple, #7c5cfc); font-weight:700; text-decoration:underline; cursor:pointer; }
.acc-field { margin-bottom:20px; }
.acc-field label { display:block; font-family:'JetBrains Mono',monospace; font-size:.68rem; font-weight:700; text-transform:uppercase; letter-spacing:1.5px; margin-bottom:6px; color:var(--ink); }
.acc-field input {
  width:100%; padding:14px 16px; border:3px solid var(--ink); border-radius:10px;
  font-family:'Fraunces',serif; font-size:1rem; background:var(--bg); color:var(--ink);
  outline:none; transition:border-color .2s,box-shadow .2s;
}
.acc-field input:focus { border-color:var(--accent-purple); box-shadow:0 0 0 3px rgba(124,92,252,.2); }
.acc-field input::placeholder { color:rgba(26,14,62,.3); }
.acc-field-row { display:flex; gap:14px; }
.acc-field-row[hidden], .acc-field[hidden] { display:none; }
.acc-field-row .acc-field { flex:1; }
.acc-field-hint { display:block; margin-top:6px; font-family:'JetBrains Mono',monospace; font-size:.65rem; letter-spacing:.5px; color:rgba(26,14,62,.55); }
.acc-field-hint-ok { color: var(--accent-mint); }
.acc-field-hint-error { color: var(--accent-pink); }
.acc-field select {
  width: 100%; padding: 12px; border: 2px solid var(--ink); border-radius: 8px; background: var(--bg);
  color: var(--ink); font-family: 'Fraunces', serif; font-size: 0.95rem; cursor: pointer;
}
.acc-field select:focus { border-color: var(--accent-purple); box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.2); outline: none; }
.acc-field input[type="date"] {
  font-family: 'Fraunces', serif;
}
.acc-attest {
  margin: 8px 0 18px;
  padding: 14px 16px;
  background: var(--bg-alt);
  border: 2px dashed rgba(26, 14, 62, 0.25);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.acc-attest-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
  font-family: 'Fraunces', serif;
}
.acc-attest-row input[type="checkbox"] {
  appearance: none;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--bg);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}
.acc-attest-row input[type="checkbox"]:checked {
  background: var(--accent-mint);
}
.acc-attest-row input[type="checkbox"]:checked::after {
  content: "✓";
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
}
.acc-attest-row input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(124, 92, 252, 0.4);
  outline-offset: 2px;
}
.acc-auth-btn--narrow { max-width: 280px; }
.acc-auth-btn--gold { background: var(--accent-gold); color: var(--ink); }
.acc-auth-btn--pink { background: var(--accent-pink); }
.acc-auth-btn--inline { width: auto; padding: 10px 20px; font-size: .75rem; }
.acc-auth-btn--inline-wide { width: auto; padding: 10px 28px; font-size: .75rem; }
.acc-settings-title--danger { color: var(--accent-pink); }
.acc-auth-btn {
  width:100%; padding:16px; border:none; border-radius:100px; background:var(--ink); color:var(--bg);
  font-family:'JetBrains Mono',monospace; font-weight:700; font-size:.88rem; text-transform:uppercase;
  letter-spacing:1.2px; cursor:pointer; box-shadow:var(--shadow-hard); transition:all .25s; margin-top:8px;
}
.acc-auth-btn:hover { background:var(--accent-pink); transform:translate(-2px,-2px); box-shadow:8px 8px 0 var(--ink); }
.acc-auth-btn:active { transform:translate(0,0); box-shadow:3px 3px 0 var(--ink); }
.acc-auth-btn:disabled { opacity:.4; cursor:not-allowed; transform:none; }
.acc-auth-switch { text-align:center; margin-top:24px; font-size:.9rem; }
.acc-auth-switch a { color:var(--accent-purple); font-weight:700; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.acc-auth-switch a:hover { color:var(--accent-pink); }
.acc-auth-error { background:rgba(255,94,138,.12); border:2px solid var(--accent-pink); border-radius:10px; padding:12px 16px; font-family:'JetBrains Mono',monospace; font-size:.75rem; font-weight:700; color:var(--accent-pink); margin-bottom:18px; display:none; text-align:center; }
.acc-auth-error.show { display:block; }
.acc-auth-status { min-height:1.1em; margin:10px auto 0; font-family:'JetBrains Mono',monospace; font-size:.75rem; color:var(--accent-mint); text-align:center; font-weight:700; max-width:460px; }
.acc-auth-status.is-error { color:var(--accent-pink); }

/* ── Account: Dashboard (signed in) ── */
.acc-dash-view[hidden] { display:none; }
.acc-dash-hero {
  background:var(--ink); color:var(--bg); padding:48px 40px 56px; position:relative; overflow:hidden;
}
.acc-dash-hero::before { content:''; position:absolute; inset:0; background:radial-gradient(circle at 15% 50%,rgba(255,94,138,.15),transparent 40%),radial-gradient(circle at 85% 30%,rgba(124,92,252,.15),transparent 40%); pointer-events:none; }
.acc-dash-hero-inner { max-width:1100px; margin:0 auto; position:relative; z-index:2; display:flex; align-items:center; gap:40px; flex-wrap:wrap; }
.acc-dash-avatar { width:80px; height:80px; border-radius:50%; background:linear-gradient(135deg,var(--accent-pink),var(--accent-purple)); border:4px solid rgba(255,255,255,.2); display:flex; align-items:center; justify-content:center; font-size:2.2rem; color:#fff; flex-shrink:0; }
.acc-dash-info { flex:1; min-width:200px; }
.acc-dash-name { font-family:'Bowlby One SC',sans-serif; font-size:2rem; letter-spacing:-.5px; margin-bottom:2px; }
.acc-dash-sub { font-family:'JetBrains Mono',monospace; font-size:.75rem; opacity:.5; }
.acc-dash-badges { display:flex; gap:10px; margin-top:10px; flex-wrap:wrap; }
.acc-badge { font-family:'JetBrains Mono',monospace; font-size:.65rem; font-weight:700; text-transform:uppercase; letter-spacing:1px; padding:5px 14px; border-radius:20px; border:1px solid rgba(255,255,255,.2); }
.acc-badge.gold { background:rgba(255,182,39,.2); color:var(--accent-gold); border-color:rgba(255,182,39,.3); }
.acc-badge.mint { background:rgba(0,210,168,.15); color:var(--accent-mint); border-color:rgba(0,210,168,.25); }
.acc-badge.pink { background:rgba(255,94,138,.15); color:var(--accent-pink); border-color:rgba(255,94,138,.25); }
.acc-dash-quick-stats { display:flex; gap:28px; margin-left:auto; flex-wrap:wrap; }
.acc-qs { text-align:center; min-width:80px; }
.acc-qs-val { font-family:'Bowlby One SC',sans-serif; font-size:2rem; line-height:1; }
.acc-qs-val.gold { color:var(--accent-gold); }
.acc-qs-val.mint { color:var(--accent-mint); }
.acc-qs-val.pink { color:var(--accent-pink); }
.acc-qs-label { font-family:'JetBrains Mono',monospace; font-size:.6rem; font-weight:700; text-transform:uppercase; letter-spacing:1px; opacity:.5; margin-top:2px; }

/* Dashboard body + tabs */
.acc-dash-body { max-width:1100px; margin:0 auto; width:100%; padding:0 40px 60px; }
.acc-tabs { display:flex; gap:0; border-bottom:3px solid var(--ink); margin-top:-28px; background:var(--bg); border-radius:14px 14px 0 0; overflow:hidden; box-shadow:0 -4px 0 var(--ink); position:relative; z-index:3; }
.acc-tab { font-family:'JetBrains Mono',monospace; font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:1px; padding:16px 28px; cursor:pointer; border:none; background:transparent; color:var(--ink); opacity:.5; transition:all .2s; border-bottom:3px solid transparent; margin-bottom:-3px; }
.acc-tab:hover { opacity:.8; }
.acc-tab.is-active { opacity:1; border-bottom-color:var(--accent-pink); background:rgba(255,94,138,.06); }
.acc-tab-content { display:none; padding:36px 0; }
.acc-tab-content.is-active { display:block; }

/* Stats grid */
.acc-stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-bottom:32px; }
.acc-stat-card { background:var(--card-white); border:3px solid var(--ink); border-radius:14px; padding:24px 20px; box-shadow:3px 3px 0 var(--ink); transition:transform .2s; }
.acc-stat-card:hover { transform:translateY(-3px); }
.acc-stat-val { font-family:'Bowlby One SC',sans-serif; font-size:2rem; line-height:1; margin-bottom:4px; }
.acc-stat-card:nth-child(1) .acc-stat-val { color:var(--accent-gold); }
.acc-stat-card:nth-child(2) .acc-stat-val { color:var(--accent-mint); }
.acc-stat-card:nth-child(3) .acc-stat-val { color:var(--accent-purple); }
.acc-stat-card:nth-child(4) .acc-stat-val { color:var(--accent-pink); }
.acc-stat-label { font-family:'JetBrains Mono',monospace; font-size:.65rem; font-weight:700; text-transform:uppercase; letter-spacing:1px; opacity:.5; }
.acc-chip-actions { display:flex; gap:14px; flex-wrap:wrap; }

/* Earnings card on dashboard */
.acc-earnings-card { background:var(--card-white); border:3px solid var(--ink); border-radius:14px; padding:20px 22px; box-shadow:3px 3px 0 var(--ink); margin-bottom:24px; }
.acc-earnings-head { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; flex-wrap:wrap; margin-bottom:16px; }
.acc-earnings-head h3 { margin:0 0 4px; font-family:'Fraunces',serif; font-weight:900; font-size:1.25rem; }
.acc-earnings-sub { margin:0; font-family:'JetBrains Mono',monospace; font-size:.7rem; letter-spacing:.5px; opacity:.65; }
.acc-earnings-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:14px; }
.acc-earnings-num { background:var(--bg-alt,#f4ecff); border:2px solid var(--ink); border-radius:10px; padding:14px 12px; text-align:center; }
.acc-earnings-val { font-family:'Bowlby One SC',sans-serif; font-size:1.4rem; line-height:1; }
.acc-earnings-num:nth-child(1) .acc-earnings-val { color:var(--accent-pink); }
.acc-earnings-num:nth-child(2) .acc-earnings-val { color:var(--accent-mint); }
.acc-earnings-num:nth-child(3) .acc-earnings-val { color:var(--accent-gold); }
.acc-earnings-num:nth-child(4) .acc-earnings-val { color:var(--accent-purple); }
.acc-earnings-lbl { margin-top:4px; font-family:'JetBrains Mono',monospace; font-size:.6rem; font-weight:700; text-transform:uppercase; letter-spacing:1px; opacity:.6; }
.acc-earnings-hint { font-size:.78rem; opacity:.7; margin:8px 0 14px; line-height:1.45; }
.acc-earnings-hint[hidden] { display:none; }
.acc-earnings-history h4 { margin:14px 0 8px; font-family:'JetBrains Mono',monospace; font-size:.72rem; text-transform:uppercase; letter-spacing:1.2px; opacity:.6; }
.acc-cashout-list { display:flex; flex-direction:column; gap:6px; }
.acc-cashout-empty { margin:0; font-size:.85rem; opacity:.55; }
.acc-cashout-row { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 12px; background:var(--bg-alt,#f4ecff); border:1px solid rgba(26,14,62,.12); border-radius:8px; font-size:.82rem; flex-wrap:wrap; }
.acc-cashout-row-main { display:flex; flex-direction:column; gap:2px; }
.acc-cashout-row-amt { font-family:'JetBrains Mono',monospace; font-weight:700; }
.acc-cashout-row-meta { font-size:.7rem; opacity:.65; }
.acc-cashout-status { font-family:'JetBrains Mono',monospace; font-size:.65rem; font-weight:700; text-transform:uppercase; letter-spacing:.8px; padding:3px 8px; border-radius:6px; border:1px solid var(--ink); }
.acc-cashout-status.pending { background:rgba(255,215,90,.25); }
.acc-cashout-status.approved { background:rgba(124,92,252,.18); }
.acc-cashout-status.paid { background:rgba(110,231,183,.3); }
.acc-cashout-status.rejected, .acc-cashout-status.cancelled { background:rgba(244,114,182,.18); }
@media (max-width:640px) { .acc-earnings-grid { grid-template-columns:repeat(2,1fr); } }

/* Settings */
.acc-settings-section { margin-bottom:36px; }
.acc-settings-title { font-family:'Fraunces',serif; font-weight:900; font-size:1.4rem; margin-bottom:16px; padding-bottom:12px; border-bottom:2px solid var(--ink); }
.acc-settings-row { display:flex; justify-content:space-between; align-items:center; padding:16px 0; border-bottom:1px solid rgba(26,14,62,.08); }
.acc-settings-row:last-child { border-bottom:none; }
.acc-sr-info h4 { font-family:'Fraunces',serif; font-weight:700; font-size:1.05rem; margin-bottom:2px; }
.acc-sr-info p { font-size:.85rem; opacity:.55; }
.acc-toggle { width:52px; height:28px; background:rgba(26,14,62,.15); border-radius:14px; position:relative; cursor:pointer; transition:background .3s; border:2px solid var(--ink); flex-shrink:0; }
.acc-toggle.on { background:var(--accent-mint); }
.acc-toggle::after { content:''; position:absolute; width:20px; height:20px; background:var(--card-white); border:2px solid var(--ink); border-radius:50%; top:2px; left:2px; transition:left .3s; }
.acc-toggle.on::after { left:26px; }

/* Chip balance (used in lobby bar too) */
.chip-balance { font-family:'JetBrains Mono',monospace; font-weight:700; font-size:1rem; color:var(--accent-gold); background:var(--ink); padding:6px 14px; border-radius:10px; border:2px solid var(--accent-gold); white-space:nowrap; }

@media(max-width:900px) {
  .acc-auth-card { padding:36px 24px; }
  .acc-dash-hero { padding:30px 20px 40px; }
  .acc-dash-hero-inner { flex-direction:column; align-items:flex-start; gap:20px; }
  .acc-dash-quick-stats { margin-left:0; }
  .acc-dash-body { padding:0 16px 40px; }
  .acc-stats-grid { grid-template-columns:1fr 1fr; }
}
@media(max-width:560px) {
  .acc-stats-grid { grid-template-columns:1fr; }
  .acc-field-row { flex-direction:column; gap:0; }
}

/* ── Lobby content ── */

.lobby-top-row { margin-bottom: 24px; }

.lobby-prize-card {
  position: relative;
  background:
    radial-gradient(ellipse at top right, rgba(255, 182, 39, 0.18), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(124, 92, 252, 0.14), transparent 60%),
    var(--bg);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow-hard);
  padding: 24px;
}

.eyebrow,
.field-label {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-purple);
}

.prize-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.prize-amount {
  margin-top: 6px;
  font-size: clamp(2.2rem, 3.4vw, 3.2rem);
  color: var(--accent-gold);
  font-family: 'Bowlby One SC', sans-serif;
  text-shadow: 3px 3px 0 var(--ink);
  letter-spacing: 0.5px;
  line-height: 1;
}

.prize-subline {
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.65;
}

.lobby-prize-split {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 2px dashed rgba(26, 14, 62, 0.15);
}

/* ── Prize split: two side-by-side cards ── */
.prize-split-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.prize-split-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 18px;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--bg-alt);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.prize-split-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

.prize-split-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.55;
  background: linear-gradient(135deg, var(--prize-card-tint, transparent) 0%, transparent 55%);
}

.prize-split-card--leaderboard { --prize-card-tint: rgba(124, 92, 252, 0.32); }
.prize-split-card--tournament  { --prize-card-tint: rgba(255, 94, 138, 0.32); }

.prize-split-card > * { position: relative; z-index: 1; }

.prize-split-card-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.prize-split-card-icon {
  font-size: 1.4rem;
  line-height: 1;
  filter: drop-shadow(2px 2px 0 var(--ink));
}

.prize-split-card-tag {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.1;
}

.prize-split-card-sub {
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  opacity: 0.6;
}

.prize-split-card-pct {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.7rem;
  color: var(--ink);
  background: var(--bg);
  padding: 4px 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
}

.prize-split-card-amount {
  font-family: 'Bowlby One SC', sans-serif;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1;
  letter-spacing: 0.3px;
  text-shadow: 2px 2px 0 var(--ink);
}

.prize-split-card--leaderboard .prize-split-card-amount { color: var(--accent-purple); }
.prize-split-card--tournament  .prize-split-card-amount { color: var(--accent-pink); }

.prize-split-card-desc {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.78;
}

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

/* Back-compat: a couple of admin/legacy code paths still inject the old
   inline-row split markup. Keep these defined so those views don't lose
   styling entirely if they render. */

.lobby-prize-split-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  justify-content: space-between;
}

.lobby-prize-split-tag {
  font-weight: 800;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.65rem;
}

.lobby-prize-split-meta {
  opacity: 0.72;
  flex: 1;
  min-width: 120px;
}

.lobby-prize-split-amt {
  font-weight: 800;
  color: var(--accent-gold);
  white-space: nowrap;
}

/* ── Prize header chip display ── */
.prize-header-chips {
  text-align: right;
  flex-shrink: 0;
}
.prize-header-chips .eyebrow { display: block; }
.prize-chip-count {
  display: block;
  margin-top: 4px;
  font-family: 'Bowlby One SC', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--accent-gold);
  text-shadow: 2px 2px 0 var(--ink);
  line-height: 1;
}
.prize-chip-unit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.55;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-top: 3px;
}

/* ── Welcome / account bar ── */
.welcome-section { margin-bottom: 16px; }

.welcome-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 14px 20px;
  gap: 14px;
  box-shadow: var(--shadow-hard);
}

.welcome-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.welcome-avatar { font-size: 1.8rem; line-height: 1; }

.welcome-name {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.welcome-actions { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }

/* ── Timer pill (replaces metric-card row) ── */
.prize-timer-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.prize-timer-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: var(--bg-alt);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.prize-timer-chip > span {
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.prize-timer-chip > strong {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
}

/* ── Split card steps ── */
.prize-split-steps {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.prize-split-steps li {
  counter-increment: step-counter;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--ink);
  opacity: 0.85;
  line-height: 1.4;
}

.prize-split-steps li::before {
  content: counter(step-counter);
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  font-size: 0.58rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.prize-split-steps li strong {
  color: var(--ink);
  opacity: 1;
}

/* ── Split card hover tooltip ── */
.prize-split-card-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: var(--bg);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  line-height: 1.55;
  width: 260px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 30;
  text-align: left;
  white-space: normal;
  box-shadow: 4px 4px 0 rgba(26, 14, 62, 0.3);
}

.prize-split-card-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: var(--ink);
}

.prize-split-card:hover .prize-split-card-tooltip,
.prize-split-card:focus-within .prize-split-card-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.weekly-payout-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px dashed rgba(26, 14, 62, 0.12);
}
.weekly-payout-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.weekly-payout-note {
  display: block;
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.55;
  text-transform: none;
  letter-spacing: 0;
}
.weekly-payout-list { display: flex; flex-direction: column; gap: 6px; }
.weekly-payout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 2px solid var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
}
.weekly-payout-rank { color: var(--accent-purple); }
.weekly-payout-amt { color: var(--accent-gold); }
.weekly-payout-empty { font-size: 0.75rem; opacity: 0.55; font-family: 'JetBrains Mono', monospace; }

.metric-card {
  flex: 1;
  min-width: 0;
  padding: 16px;
  border-radius: 14px;
  background: var(--bg-alt);
  border: 2px solid var(--ink);
}

.metric-card small {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.55;
}

.metric-card strong {
  display: block;
  margin-top: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.72rem, 1.4vw, 1rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.panel {
  background: var(--bg);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow-hard);
  padding: 24px;
  margin-bottom: 24px;
}
.panel--mt-md { margin-top: 18px; }

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

.panel-header.compact { margin-bottom: 14px; }
.panel-title { margin: 6px 0 0; font-size: 1.5rem; font-family: 'Fraunces', serif; font-weight: 900; color: var(--ink); letter-spacing: -0.5px; }
.panel-note { margin: 0; max-width: 320px; text-align: right; font-size: 0.85rem; opacity: 0.6; }

.table-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.table-card {
  padding: 20px;
  border-radius: 16px;
  background: var(--bg-alt);
  border: 3px solid var(--ink);
  transition: transform 0.2s;
}

.table-card:hover { transform: translateY(-4px); }
.table-buyin { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 0.78rem; color: var(--accent-gold); background: var(--ink); padding: 5px 12px; border-radius: 8px; display: inline-block; margin-top: 8px; letter-spacing: 0.5px; }
.table-card.is-locked { opacity: 0.5; pointer-events: none; }
.table-card.is-locked .cta-button { background: var(--bg-alt); color: var(--ink); cursor: not-allowed; border-color: var(--ink); }

/* Tournament card — distinct accent so it stands apart from cash tables in
   the Featured rooms grid. Same hover-lift + dimensions to keep alignment. */
.tournament-card {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
  border-color: var(--ink);
  color: var(--bg);
  position: relative;
}
.tournament-card small,
.tournament-card h3,
.tournament-card .table-desc,
.tournament-card .table-card-meta {
  color: var(--bg);
  opacity: 1;
}
.tournament-card small {
  color: var(--accent-gold);
}
.tournament-card .table-desc { opacity: 0.85; }
.tournament-card .table-card-meta { opacity: 0.75; }
.tournament-card .table-buyin {
  background: var(--bg);
  color: var(--accent-purple);
}
.tournament-card .table-blinds {
  background: var(--bg);
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 8px;
}
.tournament-card .cta-button {
  background: var(--accent-gold);
  color: var(--ink);
  border-color: var(--ink);
}
.tournament-card .cta-button:not(:disabled):hover {
  background: var(--bg);
  color: var(--accent-purple);
}
.tournament-card .cta-button:disabled {
  background: rgba(255,255,255,0.18);
  color: var(--bg);
  cursor: not-allowed;
  border-color: rgba(0,0,0,0.25);
}
/* Pulsing LIVE badge during active tournaments */
.tournament-card--live .table-blinds {
  background: #ff4d4d;
  color: #fff;
  animation: tournament-live-pulse 1.4s ease-in-out infinite;
}
@keyframes tournament-live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,77,77,0.6); }
  50% { box-shadow: 0 0 0 8px rgba(255,77,77,0); }
}

/* Sponsored-tournament strip — appears at the top of the tournament card
   when an admin has populated tournament_sponsor_label in system_config.
   Premium ad inventory: a single sponsor gets the highest-impression
   placement on the lobby (every player who opens the lobby sees this). */
.tournament-card-sponsor {
  display: block;
  margin: -8px -8px 10px;
  padding: 6px 12px;
  background: var(--accent-gold);
  color: var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid var(--ink);
  transition: transform 0.12s;
}
.tournament-card-sponsor:hover { transform: translateY(-1px); }

.table-card h3 { margin: 4px 0 0; font-size: 1.25rem; font-family: 'Fraunces', serif; font-weight: 900; color: var(--ink); }
.table-card small { font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 1px; font-size: 0.62rem; font-weight: 700; color: var(--accent-purple); }

.table-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.table-blinds { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--ink); }
.table-desc { margin: 12px 0; opacity: 0.7; font-size: 0.95rem; }

.table-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: var(--ink);
  opacity: 0.55;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  gap: 12px;
}

.cta-button {
  min-height: 48px;
  padding: 14px 20px;
  color: var(--bg);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(26, 14, 62, 0.3);
  border-radius: 100px;
  width: 100%;
  transition: all 0.2s;
}

.cta-button.secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(26, 14, 62, 0.15);
}

.cta-button:hover { background: var(--accent-pink); border-color: var(--accent-pink); transform: translateY(-2px); box-shadow: 6px 6px 0 var(--ink); }
.cta-button.secondary:hover { background: var(--accent-pink); color: var(--bg); border-color: var(--accent-pink); }
.cta-button:active { transform: translateY(0); box-shadow: 2px 2px 0 var(--ink); }

.text-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--card-white);
  border-radius: 12px;
  border: 2px solid var(--ink);
  font-family: 'Fraunces', serif;
}

.text-input::placeholder { color: rgba(26, 14, 62, 0.35); }
.text-input:focus { border-color: var(--accent-purple); outline: none; box-shadow: 4px 4px 0 rgba(124, 92, 252, 0.2); }

textarea.text-input.bug-report-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.45;
}

.bug-report-auth-banner {
  margin-bottom: 16px;
}

.bug-report-signed-in {
  margin: 0 0 12px;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1rem;
}

.leaderboard-banner {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(124, 92, 252, 0.12);
  border: 2px dashed var(--ink);
  margin-bottom: 10px;
  line-height: 1.35;
}

.leaderboard-banner-detail {
  font-size: 0.88rem;
  opacity: 0.85;
  margin: -4px 0 14px;
  padding-left: 2px;
}

.leaderboard-list { display: grid; gap: 10px; grid-template-columns: 1fr; }

.leaderboard-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1.2fr) minmax(5rem, auto) 3.5rem minmax(0, 1fr);
  align-items: center;
  gap: 8px 10px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--bg-alt);
  border: 2px solid var(--ink);
  color: var(--ink);
}

.leaderboard-row.is-unqualified {
  opacity: 0.55;
}

.leaderboard-row.is-viewer {
  border-color: var(--accent-purple);
  background: rgba(124, 92, 252, 0.08);
  box-shadow: 4px 4px 0 rgba(124, 92, 252, 0.2);
}

.leaderboard-row.is-ticket {
  background: linear-gradient(180deg, rgba(78, 197, 156, 0.10), var(--bg-alt));
}

/* Lobby banner ad: sits between prize card and Featured rooms grid.
   Cycles through the same `bannerAds()` inventory the in-game banner
   uses, but rendered as a static unit (no auto-dismiss) so it earns
   impressions while the player is browsing tables. */
.lobby-banner-ad {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  margin: 14px 0;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: var(--bg-alt);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}
.lobby-banner-ad:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--ink);
}
/* Adsterra variant: keep the "Sponsored" pill in the top-right corner and
   center the 320x50 iframe horizontally inside the panel. */
.lobby-banner-ad--adsterra {
  justify-content: center;
  min-height: 78px;
}
.lobby-banner-ad--adsterra:hover {
  transform: none;
  box-shadow: none;
}
.lobby-banner-ad--adsterra .ad-iframe {
  width: 320px;
  height: 50px;
  background: transparent;
  border-radius: 4px;
}
.lobby-banner-ad--adsterra .lobby-banner-ad-tag {
  position: absolute;
  top: 8px;
  right: 12px;
}

/* Adsterra Native Banner panel — sits between Featured rooms and the
   leaderboard preview in the lobby. The script writes content cards into
   the container div; the panel just provides the visual frame + label. */
.native-ad-panel {
  position: relative;
  min-height: 120px;
  padding-top: 32px;
}
.native-ad-tag {
  position: absolute;
  top: 10px;
  right: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.45;
  padding: 2px 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}
.lobby-banner-ad img {
  max-height: 56px;
  max-width: 140px;
  object-fit: contain;
}
.lobby-banner-ad-label {
  flex: 1;
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 700;
}
.lobby-banner-ad-tag {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.6rem;
  color: var(--accent-purple);
  background: rgba(0,0,0,0.06);
  padding: 4px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
@media (max-width: 900px) {
  .lobby-banner-ad { padding: 10px 14px; gap: 10px; }
  .lobby-banner-ad img { max-height: 40px; max-width: 100px; }
  .lobby-banner-ad-label { font-size: 0.88rem; }
}

.leaderboard-expand-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: all 0.15s;
}
.leaderboard-expand-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.leaderboard-cutoff-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0.65;
}
.leaderboard-cutoff-line::before,
.leaderboard-cutoff-line::after {
  content: "";
  flex: 1;
  border-top: 2px dashed var(--ink);
  opacity: 0.35;
}

.leader-rank { color: var(--accent-gold); font-family: 'Bowlby One SC', sans-serif; font-size: 1.1rem; }
.leader-net {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  text-align: right;
}
.leader-net.net-pos { color: var(--accent-mint); }
.leader-net.net-neg { color: #e85858; }
.leader-hands {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  opacity: 0.9;
}
.leader-status {
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
  min-width: 0;
  line-height: 1.2;
}
.leader-status--reward {
  color: var(--accent-mint);
  font-family: "JetBrains Mono", monospace;
}
.leader-status--ticket {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-mint);
  color: #0b1f17;
  font-family: 'Bowlby One SC', 'Nunito', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.weekly-payout-intro {
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 8px;
  opacity: 0.85;
}

.tournament-ticket-callout {
  background: rgba(78, 197, 156, 0.14);
  border: 2px solid var(--accent-mint);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display: grid;
  gap: 8px;
}

.tournament-ticket-text {
  font-size: 0.92rem;
  font-weight: 700;
}

.tournament-ticket-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.leader-name { font-family: 'Fraunces', serif; font-weight: 600; min-width: 0; }
.leader-payout {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-mint);
  text-align: right;
  white-space: nowrap;
}
.leader-payout--none { color: var(--ink); opacity: 0.4; font-weight: 600; }

.leader-payout--muted {
  color: var(--ink);
  opacity: 0.45;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: right;
}

.leaderboard-panel .weekly-payout-section--in-panel {
  margin-top: 0;
  margin-bottom: 16px;
  padding-top: 0;
  border-top: none;
}
.leaderboard-panel .weekly-payout-title { font-size: 0.88rem; margin-bottom: 8px; }

.leaderboard-empty {
  padding: 24px;
  border-radius: 14px;
  background: var(--bg-alt);
  border: 2px dashed var(--ink);
  color: var(--ink);
  opacity: 0.55;
  font-size: 0.92rem;
  text-align: center;
}

/* ═══════════════════════════════════════════
   AD MANAGER
   ═══════════════════════════════════════════ */

.ad-upload-form { display: flex; flex-direction: column; gap: 16px; }

.ad-play-preview {
  margin-top: 6px; padding: 18px; border-radius: 16px;
  background: var(--bg-alt); border: 2px solid var(--ink);
}
.ad-play-preview-title { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent-purple); margin-bottom: 14px; }
.ad-play-preview-table-wrap { max-width: 440px; margin: 0 auto; }
.ad-play-preview-frame { position: relative; width: 100%; aspect-ratio: 2.1 / 1; }
.ad-play-preview-frame .table-felt { overflow: hidden; }
.ad-play-preview-banner-wrap { max-width: 560px; margin: 0 auto; }
.ad-play-preview-cardback-wrap { max-width: 200px; margin: 0 auto; }
.ad-play-preview-fold-demo { position: relative; width: 100%; max-width: 132px; aspect-ratio: 1 / 1.08; margin: 0 auto; border-radius: 12px; border: 2px solid var(--ink); background: var(--bg-alt); overflow: hidden; }
.ad-play-preview-fold-demo .fold-ad-overlay { position: absolute; inset: 0; border-radius: inherit; border-width: 2px; animation: none; }
.banner-ad.ad-play-preview-banner-embed { position: relative; left: auto; right: auto; bottom: auto; transform: none; width: 100%; pointer-events: auto; border-radius: 14px; overflow: hidden; border: 2px solid var(--ink); }
.ad-play-preview-banner-embed .banner-ad-dismiss { pointer-events: none; opacity: 0.45; }
.ad-play-preview-timer-fill { width: 72% !important; transition: none !important; }
.table-ad-label.ad-preview-placeholder, .banner-ad-label.ad-preview-placeholder, .fold-ad-label.ad-preview-placeholder { opacity: 0.42; }

.ad-form-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.ad-field { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }
.ad-field-grow { flex: 1; }
.ad-field-action { display: flex; align-items: flex-end; min-width: 140px; }

.ad-select {
  width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 12px;
  border: 2px solid var(--ink); background: var(--card-white); color: var(--ink);
  font: inherit; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a0e3e' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.ad-select option { background: var(--bg); color: var(--ink); }

.ad-dropzone {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 90px; border: 2px dashed var(--ink); border-radius: 14px;
  background: var(--bg-alt); transition: border-color 0.2s, background 0.2s; cursor: pointer; overflow: hidden;
}
.ad-dropzone:hover, .ad-dropzone.is-dragover { border-color: var(--accent-purple); background: rgba(124, 92, 252, 0.06); }
.ad-dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ad-dropzone-text { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink); opacity: 0.5; font-size: 0.82rem; pointer-events: none; }
.ad-dropzone-icon { font-size: 1.6rem; font-weight: 700; color: var(--accent-purple); line-height: 1; }
.ad-file-preview { display: flex; align-items: center; gap: 10px; padding: 8px 14px; width: 100%; }
.ad-file-preview img { max-height: 54px; max-width: 160px; object-fit: contain; border-radius: 8px; border: 2px solid var(--ink); }
.ad-file-preview .ad-file-name { font-size: 0.8rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-upload-status { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; min-height: 1.2em; color: var(--ink); font-weight: 700; }
.ad-upload-status.is-error { color: var(--accent-pink); }
.ad-upload-status.is-success { color: var(--accent-mint); }

.ad-filter-row { display: flex; gap: 6px; }
.ad-filter-btn { padding: 7px 16px; border-radius: 100px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; transition: all 0.15s; }
.ad-filter-btn:hover { background: var(--bg-alt); }
.ad-filter-btn.is-active { background: var(--ink); color: var(--bg); }

.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ad-card { display: flex; flex-direction: column; border-radius: 16px; background: var(--bg-alt); border: 2px solid var(--ink); overflow: hidden; transition: transform 0.2s; }
.ad-card:hover { transform: translateY(-3px); }
.ad-card-thumb { height: 100px; display: flex; align-items: center; justify-content: center; background: var(--card-white); overflow: hidden; border-bottom: 2px solid var(--ink); }
.ad-card-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ad-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ad-card-label { font-family: 'Fraunces', serif; font-weight: 700; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.ad-card-meta { display: flex; align-items: center; gap: 8px; font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--ink); opacity: 0.55; }
.ad-type-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; border: 1.5px solid var(--ink); }
.ad-type-badge.type-table { background: rgba(0, 210, 168, 0.15); color: var(--ink); }
.ad-type-badge.type-banner { background: rgba(124, 92, 252, 0.12); color: var(--ink); }
.ad-type-badge.type-card_back { background: rgba(255, 94, 138, 0.12); color: var(--ink); }
.ad-card-link { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--ink); opacity: 0.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-card-footer { padding: 10px 16px; border-top: 2px solid var(--ink); display: flex; justify-content: flex-end; }
.ad-delete-btn { padding: 7px 16px; border-radius: 100px; border: 2px solid var(--accent-pink); background: transparent; color: var(--accent-pink); font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; transition: all 0.15s; }
.ad-delete-btn:hover { background: var(--accent-pink); color: var(--bg); }
.ad-empty { grid-column: 1 / -1; padding: 32px 20px; text-align: center; color: var(--ink); opacity: 0.5; font-size: 0.92rem; border-radius: 14px; background: var(--bg-alt); border: 2px dashed var(--ink); }

/* ═══════════════════════════════════════════
   GAME VIEW
   ═══════════════════════════════════════════ */

#gameView {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(27, 138, 90, 0.12), transparent 50%),
    var(--bg-alt);
  color: var(--ink);
  font-family: 'Fraunces', serif;
}

.game-topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 6px 16px;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}
.game-topbar-main {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 12px;
  width: 100%;
  min-height: 32px;
}
.game-payout-strip {
  width: 100%;
  flex-basis: 100%;
  margin: 0;
  padding-top: 4px;
  border-top: 2px dashed rgba(26, 14, 62, 0.12);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  text-align: center;
}
.topbar-btn { background: transparent; color: var(--ink); border: 2px solid var(--ink); border-radius: 100px; padding: 6px 14px; font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.2s; }
.topbar-btn:hover { background: var(--ink); color: var(--bg); }
.topbar-title { font-size: 1rem; color: var(--accent-pink); font-family: 'Bowlby One SC', sans-serif; letter-spacing: -0.5px; }
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  min-width: 0;
  z-index: 2;
}
.game-topbar-main .topbar-center-stats {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 22px;
  align-items: center;
  pointer-events: none;
}
.game-topbar-main .topbar-center-stats .topbar-stat {
  pointer-events: auto;
}
.topbar-stat { text-align: center; }
.topbar-stat small { display: block; font-family: 'JetBrains Mono', monospace; color: var(--ink); opacity: 0.5; text-transform: uppercase; letter-spacing: 1px; font-size: 0.65rem; font-weight: 700; }
.topbar-stat strong { display: block; margin-top: 2px; font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; font-weight: 700; color: var(--accent-gold); }

.table-viewport { position: absolute; top: 96px; left: 20px; right: 20px; bottom: 20px; display: flex; align-items: center; justify-content: center; }
.table-frame { position: relative; width: 100%; max-width: 1100px; aspect-ratio: 2.1 / 1; max-height: 100%; }
.table-felt {
  position: absolute; inset: 0; border-radius: 50% / 46%; overflow: visible;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(50, 200, 120, 0.18), transparent 50%),
    radial-gradient(ellipse at 50% 55%, rgba(0, 0, 0, 0.15), transparent 55%),
    linear-gradient(180deg, var(--felt-2) 0%, var(--felt-1) 50%, var(--felt-3) 100%);
}
.table-ring {
  position: absolute; inset: 0; border-radius: 50% / 46%; border: 14px solid #5c3a1a;
  box-shadow: inset 0 0 0 2px rgba(255, 218, 150, 0.25), inset 0 0 20px rgba(0, 0, 0, 0.2), 0 8px 0 0 var(--ink), 0 20px 40px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
.chip-layer, .seat-layer { position: absolute; inset: 0; }
.chip-layer { pointer-events: none; z-index: 28; }
.seat-layer { z-index: 10; }
/* Board + pot must sit above seat-layer (z-index 10); otherwise seats cover community cards / pot */
.center-cluster { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 30; }
.pot-panel { text-align: center; padding: 10px 20px; border-radius: 14px; background: var(--bg); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.pot-panel small { font-family: 'JetBrains Mono', monospace; color: var(--ink); opacity: 0.55; text-transform: uppercase; letter-spacing: 1px; font-size: 0.65rem; font-weight: 700; }
.pot-panel strong { display: block; margin-top: 2px; font-size: 1.15rem; color: var(--accent-gold); font-family: 'Bowlby One SC', sans-serif; }

/* Cards */
.board-cards, .seat-cards { display: flex; justify-content: center; gap: 6px; }
.pp-card { width: 52px; height: 72px; padding: 6px 8px; border-radius: 10px; border: 3px solid var(--ink); background: var(--card-white); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); display: flex; flex-direction: column; justify-content: space-between; font-family: 'Fraunces', serif; }
.pp-card.deal-animate { animation: cardDeal 0.28s ease-out; }
.pp-card.is-red { color: var(--card-red); }
.pp-card.is-back { background: linear-gradient(135deg, var(--accent-pink), #c23858); border-color: var(--ink); }
.card-back-inner { width: 100%; height: 100%; border-radius: 5px; border: 2px solid rgba(255, 255, 255, 0.3); background: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(255, 255, 255, 0.08) 3px, rgba(255, 255, 255, 0.08) 6px); }
.pp-card.is-placeholder { background: rgba(26, 14, 62, 0.08); border-style: dashed; border-color: rgba(26, 14, 62, 0.2); box-shadow: none; }
.card-rank { font-size: 0.95rem; font-weight: 900; line-height: 1; }
.card-suit { align-self: flex-end; font-size: 1.2rem; line-height: 1; }
.board-card { width: 56px; height: 78px; }

/* Seat panels */
.seat-panel { position: absolute; width: 104px; padding: 8px; border-radius: 14px; background: var(--bg); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: translate(-50%, -50%); transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease; text-align: center; }
.seat-panel.is-self { width: 114px; border-color: var(--accent-purple); box-shadow: 4px 4px 0 var(--accent-purple); }
.seat-panel.is-turn { border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(255, 182, 39, 0.3), 4px 4px 0 var(--ink); }
.seat-panel.is-folded, .seat-panel.is-out { opacity: 0.35; }
.seat-panel.is-hand-winner {
  opacity: 1;
  z-index: 14;
  border-color: var(--felt-2);
  transition: border-color 0.25s ease, opacity 0.3s ease;
  animation: seatWinnerGlowPulse 2.1s ease-in-out infinite;
}
.seat-panel.is-hand-winner.is-self {
  border-color: var(--felt-2);
  animation-name: seatWinnerGlowPulseSelf;
}
@keyframes seatWinnerGlowPulse {
  0%, 100% {
    box-shadow:
      0 0 0 2px rgba(0, 210, 168, 0.28),
      0 0 18px 6px rgba(20, 128, 74, 0.28),
      0 0 36px 4px rgba(0, 210, 168, 0.14),
      4px 4px 0 var(--ink);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(0, 210, 168, 0.55),
      0 0 34px 14px rgba(26, 159, 92, 0.48),
      0 0 58px 8px rgba(0, 210, 168, 0.28),
      4px 4px 0 var(--ink);
  }
}
@keyframes seatWinnerGlowPulseSelf {
  0%, 100% {
    box-shadow:
      0 0 0 2px rgba(0, 210, 168, 0.3),
      0 0 18px 6px rgba(20, 128, 74, 0.3),
      0 0 36px 4px rgba(0, 210, 168, 0.16),
      4px 4px 0 var(--accent-purple);
  }
  50% {
    box-shadow:
      0 0 0 4px rgba(0, 210, 168, 0.58),
      0 0 34px 14px rgba(26, 159, 92, 0.52),
      0 0 58px 8px rgba(0, 210, 168, 0.3),
      4px 4px 0 var(--accent-purple);
  }
}

.seat-header { display: flex; flex-direction: column; align-items: center; gap: 3px; justify-content: center; }
.seat-avatar { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; font-size: 1.05rem; flex: 0 0 auto; border: 2px solid var(--ink); }
.avatar-pink { background: var(--accent-pink); }
.avatar-purple { background: var(--accent-purple); }
.avatar-mint { background: var(--accent-mint); }
.avatar-orange { background: var(--accent-orange); }
.avatar-gold { background: var(--accent-gold); }
.avatar-cyan { background: #5bc0de; }
.avatar-magenta { background: #e040aa; }
.avatar-lavender { background: #9b8ec5; }
.avatar-green { background: var(--felt); }

.seat-identity { min-width: 0; display: grid; justify-items: center; }
.seat-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: 'Fraunces', serif; font-size: 0.72rem; font-weight: 700; line-height: 1.2; max-width: 92px; color: var(--ink); }
.seat-subtitle { display: none; font-size: 0.65rem; font-weight: 700; }
.seat-stack { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; font-weight: 700; color: var(--ink); opacity: 0.55; }
.seat-markers { display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; margin: 3px 0; }
.seat-marker { display: inline-flex; align-items: center; justify-content: center; padding: 2px 7px; min-height: 16px; border-radius: 999px; background: var(--accent-gold); color: var(--ink); font-family: 'JetBrains Mono', monospace; font-size: 0.5rem; font-weight: 800; border: 1.5px solid var(--ink); }
.seat-cards { min-height: 34px; justify-content: center; gap: 4px; margin-top: 4px; }
.seat-card { width: 24px; height: 36px; padding: 3px 4px; border-radius: 6px; border-width: 2px; }
.seat-card .card-rank { font-size: 0.6rem; }
.seat-card .card-suit { font-size: 0.7rem; }
.seat-card-hero { width: 28px; height: 40px; padding: 4px 5px; border-radius: 7px; }
.seat-card-hero .card-rank { font-size: 0.72rem; }
.seat-card-hero .card-suit { font-size: 0.85rem; }
.seat-bet { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: 999px; background: var(--ink); color: var(--accent-gold); font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; font-weight: 700; border: 2px solid var(--accent-gold); white-space: nowrap; }
.action-badge { margin: 4px auto 0; width: fit-content; padding: 2px 8px; border-radius: 999px; font-family: 'JetBrains Mono', monospace; font-size: 0.55rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; border: 1.5px solid var(--ink); }
.tone-fold { background: rgba(255, 94, 138, 0.15); color: var(--accent-pink); }
.tone-call { background: rgba(0, 210, 168, 0.15); color: var(--ink); }
.tone-check { background: rgba(124, 92, 252, 0.12); color: var(--accent-purple); }
.tone-raise, .tone-allin { background: rgba(255, 182, 39, 0.15); color: var(--ink); }
.tone-blind { background: rgba(255, 107, 53, 0.15); color: var(--accent-orange); }
.seat-stack { margin-top: 3px; font-family: 'JetBrains Mono', monospace; font-size: 0.58rem; font-weight: 700; color: var(--ink); opacity: 0.55; }
.seat-timer { margin-top: 4px; height: 5px; border-radius: 999px; background: var(--bg-alt); border: 1.5px solid var(--ink); overflow: hidden; }
.seat-timer-fill { height: 100%; width: 100%; background: var(--accent-mint); transition: width 0.25s linear, background 0.25s linear; }
.seat-timer-fill.is-urgent { background: var(--accent-pink); }

/* Seat positions */
.seat-0 { left: 20%; top: 76%; } .seat-1 { left: 7%; top: 48%; } .seat-2 { left: 18%; top: 18%; }
.seat-3 { left: 38%; top: 6%; } .seat-4 { left: 50%; top: 92%; } .seat-5 { left: 62%; top: 6%; }
.seat-6 { left: 82%; top: 18%; } .seat-7 { left: 93%; top: 48%; } .seat-8 { left: 80%; top: 76%; }

.is-open-seat { display: grid; place-items: center; text-align: center; border-style: dashed; border-color: rgba(26, 14, 62, 0.3); background: rgba(254, 246, 228, 0.6); min-height: 70px; }
.open-seat-plus { font-size: 1.3rem; line-height: 1; color: rgba(26, 14, 62, 0.25); font-family: 'Bowlby One SC', sans-serif; }
.open-seat-title { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 0.6rem; color: rgba(26, 14, 62, 0.35); text-transform: uppercase; letter-spacing: 0.5px; }
.open-seat-sub { display: none; }

/* Large felt hero strip removed — hole cards show in your seat + mobile action row; avoids covering bottom seats. */
#gameView .hero-overlay {
  display: none !important;
}

.hero-hand-label { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; font-weight: 700; color: var(--ink); background: var(--bg); border: 2px solid var(--ink); padding: 4px 12px; border-radius: 100px; white-space: nowrap; box-shadow: 3px 3px 0 var(--ink); }

.action-tray-head {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.action-tray-head .game-action-context {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  margin: 0;
}

#gameView.lp-view.is-active .game-hand-strength-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 6px 12px 8px;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 100px;
  box-shadow: 2px 2px 0 var(--ink);
  overflow: hidden;
}

#gameView.lp-view.is-active .game-hand-strength-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

#gameView.lp-view.is-active .game-hand-strength-bar-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

#gameView.lp-view.is-active .game-hand-strength-bar-timer-label {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  opacity: 0.88;
}

#gameView.lp-view.is-active .game-hand-strength-bar-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1.5px solid var(--ink);
  overflow: hidden;
}

#gameView.lp-view.is-active .game-hand-strength-bar-fill {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: rgba(126, 214, 163, 0.42);
  transition: width 0.25s linear, background 0.25s linear;
}

#gameView.lp-view.is-active .game-hand-strength-bar.is-action-clock .game-hand-strength-bar-fill {
  background: var(--accent-mint);
}

#gameView.lp-view.is-active .game-hand-strength-bar.is-action-clock .game-hand-strength-bar-fill.is-urgent {
  background: var(--accent-pink);
}

#gameView.lp-view.is-active .game-hand-strength-bar.is-dormant {
  display: none !important;
}

/* Keep stack readout hidden on desktop; shown on mobile layout only. */
@media (min-width: 901px) {
  #gameView.lp-view.is-active .game-hand-strength-bar {
    display: none !important;
  }
}

@media (min-width: 901px) {
  #gameView .game-topbar {
    padding: 5px 12px;
    gap: 4px;
  }

  #gameView .game-topbar-main {
    flex-wrap: nowrap;
    gap: 6px 10px;
  }

  #gameView .table-viewport {
    top: clamp(104px, 11vh, 140px);
    bottom: 88px;
  }

  #gameView .topbar-btn {
    padding: 5px 12px;
    font-size: 0.68rem;
  }

  #gameView .topbar-title {
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(220px, 22vw);
  }

  #gameView .topbar-center-stats {
    gap: 16px;
  }

  #gameView .topbar-stat strong {
    font-size: 0.88rem;
  }

  #gameView .action-tray {
    bottom: 10px;
    right: 12px;
    max-width: min(460px, 48vw);
    gap: 8px;
  }

  #gameView .chat-bar {
    bottom: 8px;
    left: 10px;
    width: 220px;
  }

  #gameView.lp-view.is-active .game-hand-strength-bar {
    position: fixed;
    bottom: 200px;
    right: 26px;
    z-index: 149;
    max-width: min(320px, 38vw);
    width: auto;
  }

  #gameView #actionBar.action-tray {
    flex-direction: row;
    align-items: flex-end;
    flex-wrap: wrap;
    max-width: min(460px, 48vw);
  }

  #gameView .action-pill-row {
    flex-wrap: wrap;
    justify-content: flex-end;
    overflow-x: visible;
  }

  #gameView .action-pill {
    min-height: 42px;
    min-width: 84px;
    padding: 8px 14px;
    font-size: 0.76rem;
  }

  #gameView #actionBar .action-tray-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    order: -3;
    width: 100%;
    gap: 8px;
  }

  #gameView #actionBar .action-tray-head .action-hole-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
  }

  #gameView #actionBar .action-tray-head .action-hole-cards[hidden] {
    display: none !important;
  }

  #gameView #actionBar .action-tray-head .pp-card.action-hole-card {
    width: 40px;
    height: 56px;
    padding: 4px 5px;
    border-radius: 6px;
    border-width: 2px;
    box-shadow: 2px 2px 0 var(--ink);
    flex-shrink: 0;
  }

  #gameView #actionBar .action-tray-head .action-hole-card .card-rank {
    font-size: 0.65rem;
  }

  #gameView #actionBar .action-tray-head .action-hole-card .card-suit {
    font-size: 0.8rem;
  }
}

/* Action tray */
.game-bottom-stack { display: contents; }

.game-action-context {
  width: 100%;
  margin: 0;
  order: -2;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  opacity: 0.88;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(254, 246, 228, 0.85);
  border: 2px solid rgba(26, 14, 62, 0.12);
}

@media (min-width: 901px) {
  .game-action-context {
    display: none;
  }
}

.action-tray { position: fixed; bottom: 22px; right: 26px; z-index: 150; display: flex; flex-wrap: wrap; gap: 8px; align-items: end; max-width: 460px; transition: bottom 0.35s ease; }
.action-tray.is-hidden { display: none; }
/* Push the fixed action tray and chat bar above the banner ad when it slides in (banner height 70px + 12px gap). */
#gameView:has(.banner-ad.is-visible) .action-tray,
#gameView:has(.banner-ad.is-visible) .chat-bar {
  bottom: 92px;
}
.action-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  justify-content: flex-end;
  order: 1;
}
.action-pill { min-height: 48px; min-width: 96px; padding: 10px 22px; border-radius: 100px; border: 3px solid var(--ink); font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--ink); cursor: pointer; transition: all 0.15s; box-shadow: 4px 4px 0 var(--ink); }
.action-pill:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.action-pill:active { transform: translate(0, 0); box-shadow: 2px 2px 0 var(--ink); }
.pill-check { background: var(--accent-purple); color: #fff; }
.pill-call { background: var(--accent-mint); }
.pill-fold { background: var(--accent-pink); color: #fff; }
.pill-raise { background: var(--accent-purple); color: #fff; }
.pill-allin { background: var(--accent-gold); }

.raise-tray {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--bg);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  width: 100%;
  order: -1;
}
.raise-tray-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.raise-tray-row label { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 0.78rem; color: var(--ink); white-space: nowrap; }
.raise-tray #raiseValue { color: var(--accent-gold); font-family: 'Bowlby One SC', sans-serif; }
.raise-tray-row #raiseSlider { flex: 1; min-height: 28px; accent-color: var(--accent-purple); background: var(--bg-alt); border-radius: 10px; border: 2px solid var(--ink); }

.raise-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.raise-preset-btn {
  padding: 8px 6px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: var(--card-white);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}
.raise-preset-btn:hover { background: var(--bg-alt); }
.raise-preset-btn:active { transform: translateY(1px); }

/* Chat */
.chat-bar { position: fixed; bottom: 22px; left: 26px; z-index: 150; width: 260px; display: flex; flex-direction: column; gap: 6px; transition: bottom 0.35s ease; }
.chat-bar .chat-feed { display: flex; flex-direction: column; gap: 3px; max-height: 110px; overflow-y: auto; padding: 8px; border-radius: 14px; background: var(--bg); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); scrollbar-width: thin; }
.chat-row { display: flex; gap: 6px; padding: 3px 8px; border-radius: 6px; font-size: 0.7rem; line-height: 1.3; }
.chat-row.system { color: var(--accent-gold); font-weight: 700; }
.chat-row.chat { color: var(--ink); }
.chat-author { font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent-purple); white-space: nowrap; font-size: 0.6rem; font-weight: 700; }
.chat-text { color: var(--ink); }
.chat-input-row { display: flex; gap: 6px; }
.chat-input { flex: 1; min-height: 36px; padding: 6px 12px; border-radius: 100px; border: 2px solid var(--ink); background: var(--bg); color: var(--ink); font-size: 0.82rem; font-family: 'Fraunces', serif; }
.chat-input::placeholder { color: rgba(26, 14, 62, 0.35); }
.chat-send { min-height: 36px; padding: 6px 16px; border-radius: 100px; border: 2px solid var(--ink); background: var(--ink); color: var(--bg); font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; transition: all 0.15s; }
.chat-send:hover { background: var(--accent-pink); border-color: var(--accent-pink); }

/* Mobile chat toggle should not appear on desktop. */
.chat-toggle {
  display: none;
}

/* Table ad — now hosts an Adsterra 320x50 iframe (smaller than the legacy
   360x85 reserved slot; centered inside the original footprint). Original
   styles preserved for the legacy direct-sponsor anchor variant. */
.table-ad { position: absolute; left: 50%; top: 60%; transform: translate(-50%, -50%); z-index: 3; display: flex; align-items: center; justify-content: center; width: 360px; height: 85px; pointer-events: auto; text-decoration: none; transition: opacity 0.3s ease; opacity: 0.38; }
.table-ad:hover { opacity: 0.55; }
.table-ad.is-hidden { display: none; }
.table-ad img { width: 100%; height: 100%; object-fit: contain; }
.table-ad-label { font-family: 'Bowlby One SC', sans-serif; font-size: 1.1rem; color: rgba(255, 255, 255, 0.9); text-transform: uppercase; letter-spacing: 0.15em; text-align: center; padding: 8px 18px; white-space: nowrap; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.table-ad--adsterra { opacity: 1; width: 320px; height: 50px; }
.table-ad--adsterra .ad-iframe { width: 320px; height: 50px; background: transparent; border-radius: 4px; }

/* Fold ad overlay */
.fold-ad-overlay { position: absolute; inset: 0; z-index: 12; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--ink); border-radius: inherit; text-decoration: none; overflow: hidden; border: 3px solid var(--ink); animation: foldAdFadeIn 0.4s ease; }
@keyframes foldAdFadeIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
.fold-ad-overlay img { max-width: 85%; max-height: 65%; object-fit: contain; opacity: 1; transition: transform 0.2s; }
.fold-ad-overlay:hover img { transform: scale(1.05); }
.fold-ad-label { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; font-weight: 700; color: var(--bg); text-transform: uppercase; letter-spacing: 1px; text-align: center; padding: 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* Bottom banner ad — fold-triggered slide-up. 320x50 Adsterra in a fixed
   bottom strip, dismissible. Re-injected on each show so a new ad fetches.
   Lives in `position: fixed` containing block (#gameView is also fixed) so
   it pins to the viewport bottom during play. Works on desktop and mobile.
   On mobile, we hide the always-on sticky bar while this is visible (see
   body.banner-ad-visible rule) so the two 320x50s never overlap. */
.banner-ad { position: fixed; bottom: 0; left: 0; right: 0; z-index: 140; height: 70px; display: flex; align-items: center; justify-content: center; background: var(--bg); border-top: 3px solid var(--ink); transform: translateY(100%); transition: transform 0.35s ease; pointer-events: none; padding-bottom: env(safe-area-inset-bottom, 0px); }
.banner-ad.is-visible { transform: translateY(0); pointer-events: auto; }
.banner-ad--adsterra .ad-iframe { width: 320px; height: 50px; background: transparent; border-radius: 4px; }
.banner-ad-dismiss { position: absolute; top: 8px; right: 12px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; border: 2px solid var(--ink); background: var(--bg); color: var(--ink); font-size: 1rem; cursor: pointer; transition: all 0.15s; z-index: 1; }
.banner-ad-dismiss:hover { background: var(--ink); color: var(--bg); }
body.banner-ad-visible .ad-sticky-mobile { display: none; }

/* Chip animation */
.chip-move { position: absolute; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; color: var(--ink); font-family: 'JetBrains Mono', monospace; font-size: 0.55rem; font-weight: 800; background: var(--accent-gold); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transform: translate(-50%, -50%) scale(0.3); animation: chipPop 0.25s ease-out forwards; z-index: 8; }

/* Referral (bust-out banner + settings) */
.referral-burst-banner { margin: 0 0 20px; padding: 18px 20px; border-radius: 16px; border: 3px solid var(--ink); background: var(--bg); box-shadow: 4px 4px 0 var(--ink); }
.referral-burst-lead { font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 700; margin: 0 0 10px; color: var(--ink); line-height: 1.35; }
.referral-burst-hint { font-size: 0.88rem; margin: 0 0 14px; color: var(--ink); opacity: 0.88; line-height: 1.45; }
.referral-burst-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.referral-burst-link { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; font-weight: 700; word-break: break-all; color: var(--accent-purple); text-decoration: underline; max-width: 100%; }
.referral-burst-dismiss { font-size: 0.72rem !important; }
.acc-settings-row-stack { flex-direction: column; align-items: stretch !important; gap: 12px; }
.acc-invite-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.acc-invite-input { flex: 1; min-width: 180px; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--ink); background: var(--bg-alt); font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--ink); }
.acc-invite-perk { margin: 0; font-size: 0.82rem; color: var(--accent-mint); font-weight: 700; }

/* Status */
.status-message { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); padding: 6px 20px; border-radius: 100px 100px 0 0; background: var(--ink); color: var(--bg); font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; z-index: 30; text-align: center; white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
.status-message[hidden] { display: none !important; }
.status-message:empty { display: none !important; }

/* Keyframes */
@keyframes chipPop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes cardDeal { 0% { opacity: 0; transform: scale(0.72) rotate(-8deg); } 100% { opacity: 1; transform: scale(1) rotate(0deg); } }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  nav#siteNav {
    padding: 14px 20px;
    position: sticky;
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-menu-btn {
    display: flex;
  }

  .nav-trailing .nav-cta {
    display: none;
  }

  .nav-mobile-only {
    display: list-item;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--bg);
    border-bottom: 3px solid var(--ink);
    box-shadow: 0 16px 32px rgba(26, 27, 58, 0.18);
    z-index: 200;
  }

  #siteNav.nav-is-open .nav-links {
    display: flex;
  }

  #siteNav.nav-is-open .nav-menu-btn {
    background: var(--accent-mint);
  }

  .nav-links > li {
    border-bottom: 1px solid rgba(26, 27, 58, 0.12);
  }

  .nav-links > li:last-child {
    border-bottom: none;
  }

  .nav-links .nav-link-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    text-align: left;
  }

  .nav-links .nav-link-btn::after {
    display: none;
  }
  .hero { padding: 50px 20px 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-cards-deco { height: 380px; max-width: 380px; margin: 0 auto; }
  .how, .features, .trust, .faq { padding: 80px 20px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr; gap: 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ticker-track { font-size: 1.3rem; gap: 40px; }
  .ticker-track span { gap: 40px; }
  .final-cta { padding: 90px 20px; }
  .play-shell { padding: 20px 16px 40px; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .section-side { text-align: left; }
  .float-card { width: 140px; height: 196px; }
  .float-card .center-suit { font-size: 3.5rem; }
  .float-card .corner-top, .float-card .corner-bottom { font-size: 1.4rem; }
  .prize-bubble { width: 132px; min-height: 148px; height: auto; border-radius: 50%; padding-bottom: 8px; }
  .prize-bubble-amount { font-size: 1.7rem; }
  .prize-bubble-split { font-size: 0.4rem; padding: 0 6px; }
}

@media (max-width: 700px) {
  .seat-panel { width: 82px; padding: 5px; border-radius: 10px; border-width: 2px; box-shadow: 3px 3px 0 var(--ink); }
  .seat-panel.is-self { width: 92px; }
  .seat-avatar { width: 28px; height: 28px; font-size: 0.85rem; }
  .seat-0 { left: 18%; top: 76%; } .seat-1 { left: 6%; top: 48%; } .seat-2 { left: 16%; top: 18%; }
  .seat-3 { left: 38%; top: 6%; } .seat-4 { left: 50%; top: 94%; } .seat-5 { left: 62%; top: 6%; }
  .seat-6 { left: 84%; top: 18%; } .seat-7 { left: 94%; top: 48%; } .seat-8 { left: 82%; top: 76%; }
  .board-card { width: 44px; height: 62px; }
  .game-topbar-main .topbar-center-stats { gap: 10px; }
  .topbar-stat small { font-size: 0.6rem; }
  .topbar-stat strong { font-size: 0.72rem; }
  .table-ad { width: 240px; height: 60px; }
  .table-ad-label { font-size: 0.88rem; letter-spacing: 0.14em; }
  .banner-ad { height: 56px; }
  .banner-ad-label { font-size: 0.78rem; }
  .panel-header { flex-direction: column; align-items: stretch; }
}

/* In-game column layout: phones, tablets, landscape phones (avoids fixed chat/action over the felt) */
@media (max-width: 900px) {
  #gameView.lp-view.is-active {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow: hidden;
  }

  #gameView.lp-view.is-active .game-topbar {
    position: relative;
    flex-shrink: 0;
    /* Clear iOS notch / dynamic island: top padding grows to cover the
       safe-area inset. max() ensures non-notched devices still get the
       original 8px breathing room. */
    padding: max(8px, calc(env(safe-area-inset-top) + 4px)) 12px 6px;
    gap: 4px 10px;
    justify-content: center;
  }

  #gameView .topbar-btn {
    position: absolute;
    left: max(10px, env(safe-area-inset-left));
    top: max(8px, calc(env(safe-area-inset-top) + 4px));
    padding: 6px 12px;
    font-size: 0.65rem;
  }

  /* Mobile-only: banner ad lives in the flex flow between the topbar and
     the table, instead of fixed at the bottom. Collapses to height 0 when
     hidden so the table reclaims the space. */
  #gameView.lp-view.is-active .banner-ad {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    height: 0;
    border-top: none;
    border-bottom: 3px solid var(--ink);
    overflow: hidden;
    flex-shrink: 0;
    transition: height 0.3s ease;
    z-index: 25;
  }
  #gameView.lp-view.is-active .banner-ad.is-visible {
    height: 56px;
    transform: none;
  }
  /* The desktop rule lifts action-tray/chat-bar when banner is visible
     because banner is fixed at bottom. On mobile the banner is in flow
     above the table — no lift needed. */
  #gameView:has(.banner-ad.is-visible) .action-tray,
  #gameView:has(.banner-ad.is-visible) .chat-bar {
    transform: none;
  }

  #gameView .topbar-left {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  #gameView .topbar-title {
    width: 100%;
    text-align: center;
    font-size: 0.95rem;
    margin-top: 2px;
    padding: 0 68px;
  }

  #gameView .topbar-center-stats {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    margin: 4px 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 6px;
    justify-items: center;
    pointer-events: auto;
  }

  #gameView .topbar-stat small {
    font-size: 0.58rem;
  }

  #gameView .topbar-stat strong {
    font-size: 0.74rem;
  }

  #gameView .game-payout-strip {
    font-size: 0.58rem;
    padding-top: 4px;
    line-height: 1.25;
  }

  #gameView .table-viewport {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    flex: 1 1 auto;
    min-height: 0;
    padding: 4px 8px 2px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #gameView .table-frame {
    width: 100%;
    max-width: min(400px, 90vw);
    aspect-ratio: 0.52 / 1;
    max-height: min(52vh, 500px);
  }

  /* Portrait felt: wider ring + smaller panels; bet chip in-flow (no upward overlap into neighbors) */
  #gameView .seat-panel {
    width: 60px;
    padding: 3px 2px;
    border-radius: 8px;
    border-width: 2px;
    box-sizing: border-box;
    z-index: 5;
  }

  #gameView .seat-panel.has-bet {
    z-index: 12;
  }

  #gameView .seat-panel.is-turn {
    z-index: 18;
  }

  #gameView .seat-panel.is-self {
    width: 66px;
    border-width: 2px;
    box-shadow: 0 0 0 2px rgba(255, 182, 39, 0.45), 2px 2px 0 var(--accent-purple);
  }

  #gameView .seat-0 { left: 26%; top: 83%; }
  #gameView .seat-1 { left: 9%; top: 52%; }
  #gameView .seat-2 { left: 14%; top: 19%; }
  #gameView .seat-3 { left: 34%; top: 7%; }
  #gameView .seat-4 { left: 50%; top: 91%; }
  #gameView .seat-5 { left: 66%; top: 7%; }
  #gameView .seat-6 { left: 86%; top: 19%; }
  #gameView .seat-7 { left: 91%; top: 52%; }
  #gameView .seat-8 { left: 74%; top: 83%; }

  #gameView .seat-bet {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 2px auto 0;
    max-width: 100%;
    z-index: 1;
    font-size: 0.55rem;
    padding: 2px 5px;
    border-width: 1.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #gameView .seat-cards {
    min-height: 22px;
    margin-top: 2px;
    gap: 2px;
  }

  #gameView .seat-avatar {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
    border-width: 1.5px;
  }

  #gameView .seat-name {
    font-size: 0.62rem;
    max-width: 64px;
  }

  #gameView .seat-stack {
    display: inline-block;
    padding: 1px 6px;
    margin: 2px auto 0;
    border-radius: 999px;
    background: rgba(255, 253, 240, 0.94);
    color: var(--ink);
    border: 1.5px solid var(--ink);
    font-size: 0.6rem;
    font-weight: 800;
    opacity: 1;
    line-height: 1.2;
    white-space: nowrap;
  }

  #gameView .action-badge {
    font-size: 0.48rem;
    padding: 1px 5px;
    margin-top: 2px;
  }

  #gameView .board-card {
    width: 44px;
    height: 62px;
  }

  #gameView.lp-view.is-active .game-hand-strength-bar {
    position: relative;
    flex-shrink: 0;
    align-self: center;
    max-width: calc(100% - 20px);
    margin: 0 10px 4px;
    font-size: 0.65rem;
    padding: 6px 11px 7px;
    border-radius: 14px;
  }

  #gameView .action-tray-head {
    display: flex;
    order: -3;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }

  #gameView .action-tray-head .game-action-context {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    margin: 0;
    order: 0;
    font-size: 0.68rem;
    padding: 6px 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #gameView .action-tray-head .action-hole-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
  }

  #gameView .action-tray-head .action-hole-cards[hidden] {
    display: none !important;
  }

  #gameView .action-tray-head .action-hole-cards .pp-card.action-hole-card {
    width: 34px;
    height: 48px;
    padding: 3px 4px;
    border-radius: 6px;
    border-width: 2px;
    box-shadow: 2px 2px 0 var(--ink);
    flex-shrink: 0;
  }

  #gameView .action-tray-head .action-hole-cards .action-hole-card .card-rank {
    font-size: 0.58rem;
  }

  #gameView .action-tray-head .action-hole-cards .action-hole-card .card-suit {
    font-size: 0.72rem;
  }

  #gameView .game-bottom-stack {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 6px;
    margin-top: auto;
    padding: 0 10px calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 140;
  }

  #gameView.lp-view.is-active .chat-bar {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100%;
    max-width: none;
    flex-shrink: 0;
    gap: 4px;
  }

  #gameView .chat-bar--compact .chat-feed {
    max-height: 28px;
    min-height: 0;
    padding: 2px 6px;
    border-radius: 8px;
    border-width: 2px;
    box-shadow: 2px 2px 0 var(--ink);
    overflow: hidden;
  }

  #gameView .chat-bar--compact .chat-row {
    font-size: 0.62rem;
    padding: 2px 4px;
  }

  #gameView .chat-bar--compact .chat-input {
    min-height: 32px;
    padding: 4px 10px;
    font-size: 0.78rem;
  }

  #gameView .chat-bar--compact .chat-send {
    min-height: 32px;
    padding: 4px 12px;
    font-size: 0.68rem;
  }

  #gameView.lp-view.is-active .action-tray {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 10px 12px 10px;
    border-radius: 16px;
    background: var(--bg);
    border: 2px solid var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  #gameView .raise-tray {
    order: -1;
    padding: 0;
    border-radius: 0;
    gap: 6px;
    border: none;
    background: transparent;
    box-shadow: none;
  }

  #gameView .raise-tray-row #raiseSlider {
    min-height: 22px;
  }

  #gameView .raise-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  #gameView .raise-preset-btn {
    padding: 6px 4px;
    font-size: 0.58rem;
    border-radius: 8px;
    border-width: 1.5px;
  }

  #gameView .action-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: stretch;
  }

  #gameView .action-pill-row .action-pill {
    flex: 1 1 calc(33.333% - 6px);
    min-width: calc(28% - 2px);
  }

  #gameView .action-pill-row .pill-allin {
    flex: 1 1 100%;
  }

  /* Preset row already includes All-in */
  #gameView.lp-view.is-active #actionBar.action-tray--has-presets .pill-allin,
  #gameView.lp-view.is-active #actionBar:has(#raisePresets:not([hidden])) .pill-allin {
    display: none;
  }

  #gameView .action-pill {
    min-width: 0;
    min-height: 44px;
    padding: 8px 8px;
    font-size: 0.72rem;
    border-radius: 12px;
    border-width: 2px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 0 var(--ink);
  }

  #gameView .table-ad {
    width: min(240px, 72vw);
    height: 52px;
    top: 58%;
  }

  .status-message {
    left: 10px;
    right: 10px;
    transform: none;
    max-width: none;
    text-align: center;
    white-space: normal;
    line-height: 1.3;
    padding: 8px 12px 10px;
    font-size: 0.68rem;
    border-radius: 12px 12px 0 0;
    background: rgba(254, 246, 228, 0.96);
    color: var(--ink);
    border: 2px solid var(--ink);
    border-bottom: none;
    box-shadow: 3px 3px 0 var(--ink);
  }
}

/* ═══ ADMIN PAGE ═══ */
.admin-panel { max-width: 960px; margin: 0 auto; }
.admin-section { margin-top: 32px; padding-top: 28px; border-top: 2px solid var(--ink); }
.admin-section:first-of-type { border-top: none; margin-top: 18px; padding-top: 0; }
.admin-section-title { font-family: 'Bowlby One SC', sans-serif; font-size: 1.15rem; margin: 0 0 4px; }
.admin-section-desc { font-size: 0.88rem; opacity: 0.7; margin: 0 0 16px; }

.prelaunch-gate {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 12, 18, 0.65);
  backdrop-filter: blur(6px);
}
.prelaunch-gate[hidden] {
  display: none !important;
}
.prelaunch-gate-card {
  max-width: 420px;
  background: var(--card-white);
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 8px 8px 0 var(--ink);
}
.prelaunch-gate-title { font-family: 'Bowlby One SC', sans-serif; font-size: 1.2rem; margin: 0 0 12px; }
.prelaunch-gate-text { font-size: 0.95rem; line-height: 1.45; margin: 0 0 18px; opacity: 0.85; }
.prelaunch-gate-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.admin-early-list { display: flex; flex-direction: column; gap: 12px; }
.admin-early-row {
  padding: 14px 16px;
  background: var(--card-white);
  border: 2px solid var(--ink);
  border-radius: 12px;
}
.admin-early-row-top { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; }
.admin-inline-meta { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; opacity: 0.7; }
.admin-early-meta { font-size: 0.85rem; margin-top: 6px; opacity: 0.8; }
.admin-early-flags { font-size: 0.78rem; margin-top: 6px; font-weight: 600; color: var(--accent-purple); }
.admin-early-actions { margin-top: 12px; }

.admin-prize-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-prize-symbol { font-family: 'Bowlby One SC', sans-serif; font-size: 1.3rem; }
.admin-prize-input { max-width: 180px; font-family: 'JetBrains Mono', monospace; font-size: 1rem; }
.admin-status { font-size: 0.85rem; margin-top: 10px; color: var(--accent-gold); font-weight: 600; min-height: 1.2em; }

.admin-ad-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }

.admin-ad-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--card-white); border: 3px solid var(--ink); border-radius: 14px; }
.admin-ad-card.status-pending { border-color: var(--accent-gold); }
.admin-ad-card.status-rejected { border-color: var(--card-red); opacity: 0.65; }
.admin-ad-card.status-approved { border-color: var(--accent-mint); }

.admin-status-badge { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; font-weight: 800; letter-spacing: 1px; padding: 3px 10px; border-radius: 999px; color: var(--bg); }
.admin-status-badge.status-pending { background: var(--accent-gold); color: var(--ink); }
.admin-status-badge.status-approved { background: var(--accent-mint); color: var(--ink); }
.admin-status-badge.status-rejected { background: var(--card-red); }

.admin-status-badge.inq-new {
  background: rgba(255, 94, 138, 0.28);
  color: var(--ink);
}
.admin-status-badge.inq-reviewed {
  background: var(--accent-mint);
  color: var(--ink);
}
.admin-status-badge.inq-archived {
  opacity: 0.75;
}

.admin-ad-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.cta-button.small { padding: 6px 16px; font-size: 0.78rem; border-radius: 8px; }
.cta-button.danger { background: var(--card-red); color: var(--bg); border-color: var(--card-red); }
.cta-button.danger:hover { background: #c12e3a; }
.cta-button.admin-approve { background: var(--accent-mint); color: var(--ink); border-color: var(--accent-mint); }
.cta-button.admin-approve:hover { background: #00b894; }
.cta-button.admin-reject { background: var(--bg-alt); color: var(--ink); border-color: var(--ink); }

.admin-empty { text-align: center; opacity: 0.5; padding: 32px 0; font-style: italic; }

.admin-inline-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84em;
  background: rgba(124, 92, 252, 0.12);
  padding: 2px 6px;
  border-radius: 6px;
}

.admin-inquiry-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.admin-inquiry-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-inquiry-row {
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--bg-alt);
  font-size: 0.9rem;
}

.admin-inquiry-row-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.admin-inquiry-meta {
  font-size: 0.85rem;
  margin-bottom: 10px;
  word-break: break-word;
}

.admin-inquiry-meta a {
  color: var(--accent-purple);
  font-weight: 600;
}

.admin-inquiry-message {
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card-white);
  border: 2px solid rgba(26, 14, 62, 0.1);
}

.admin-inquiry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ad-card-img { width: 100%; max-height: 120px; object-fit: contain; border-radius: 8px; background: var(--bg-alt); }
.ad-card-info { font-size: 0.85rem; }
.ad-card-info strong { display: block; margin-bottom: 2px; }
.ad-card-info small { opacity: 0.6; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; }


/* ═══ MOBILE TABLE REDESIGN ═══ */
@media (max-width: 900px) {
  #gameView.lp-view.is-active {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    left: 0;
    right: 0;
    background: #faf3e0;
  }

  #gameView .game-topbar {
    padding: 8px 12px;
    border-bottom: 2px solid var(--ink);
    background: #faf3e0;
    gap: 8px;
  }

  #gameView .topbar-btn {
    position: static;
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0;
    border-radius: 8px;
    border: 2px solid var(--ink);
    background: var(--card-white);
    font-size: 0;
    box-shadow: none;
  }

  #gameView .topbar-btn::before {
    content: "←";
    font-size: 14px;
    line-height: 1;
    color: var(--ink);
  }

  #gameView .topbar-title {
    width: auto;
    margin: 0;
    padding: 0;
    font-family: 'Bowlby One SC', sans-serif;
    font-size: 0.85rem;
    letter-spacing: -0.3px;
    color: var(--ink);
    white-space: nowrap;
  }

  #gameView .topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
    width: auto;
  }

  #gameView .topbar-center-stats {
    margin-left: auto;
    width: auto;
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    align-items: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  #gameView .topbar-stat small {
    font-size: 0.45rem;
    letter-spacing: 1px;
    opacity: 0.4;
  }

  #gameView .topbar-stat strong {
    font-size: 0.7rem;
    color: var(--accent-gold);
  }

  /* Column stack (lp-view): stats row below title; beats generic #gameView .topbar-center-stats above. */
  #gameView.lp-view.is-active .topbar-center-stats {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    margin: 4px 0 0;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 6px;
    justify-items: center;
    pointer-events: auto;
  }

  #gameView .game-payout-strip {
    display: none;
  }

  #gameView .table-viewport {
    padding: 8px 10px 6px;
  }

  #gameView .table-frame {
    max-width: none;
    width: 100%;
    max-height: none;
    aspect-ratio: 0.72 / 1;
  }

  #gameView .table-felt {
    border-radius: 50%;
    border: 5px solid #5c3d1e;
    background: radial-gradient(ellipse at 50% 48%, #23a86d, #1b8a5a 50%, #14704a);
    box-shadow:
      0 0 0 2px #8b6b45,
      0 0 0 6px rgba(92, 61, 30, 0.2),
      inset 0 0 40px rgba(0, 0, 0, 0.12);
  }

  #gameView .table-ring {
    display: none;
  }

  #gameView .table-felt::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg width='4' height='4' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1' height='1' fill='%23000' fill-opacity='.03'/%3E%3C/svg%3E") repeat;
    pointer-events: none;
  }

  #gameView .center-cluster {
    top: 38%;
    gap: 8px;
  }

  #gameView .pot-panel {
    padding: 4px 14px;
    border-radius: 10px;
    border: 2px solid var(--ink);
    box-shadow: 2px 2px 0 var(--ink);
    background: rgba(255, 253, 240, 0.92);
  }

  #gameView .pot-panel small {
    font-size: 0.5rem;
    letter-spacing: 2px;
  }

  #gameView .pot-panel strong {
    font-size: 1.05rem;
  }

  #gameView .board-cards {
    gap: 3px;
  }

  #gameView .board-card {
    width: 36px;
    height: 50px;
    border-radius: 5px;
    border-width: 2px;
    box-shadow: 1px 1px 0 var(--ink);
    padding: 4px 5px;
  }

  #gameView .board-card .card-rank {
    font-size: 0.82rem;
  }

  #gameView .board-card .card-suit {
    font-size: 0.7rem;
  }

  #gameView .seat-panel {
    width: 66px;
    border: none;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
  }

  /* Keep hero seat visible in the ring (display:none made getBoundingClientRect 0x0 and hid "your" seat on phones). */
  #gameView .seat-panel.is-self {
    z-index: 20;
  }

  #gameView .seat-avatar {
    width: 30px;
    height: 30px;
    border: 2px solid var(--ink);
    font-size: 0.8rem;
  }

  #gameView .seat-name {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    max-width: 62px;
    font-size: 0.6rem;
  }

  #gameView .seat-stack {
    display: inline-block;
    padding: 1px 6px;
    margin: 2px auto 0;
    border-radius: 999px;
    background: rgba(255, 253, 240, 0.94);
    color: var(--ink);
    border: 1px solid rgba(0, 0, 0, 0.25);
    font-size: 0.6rem;
    font-weight: 800;
    opacity: 1;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow: none;
  }

  #gameView .seat-cards {
    min-height: 30px;
    gap: 2px;
  }

  #gameView .seat-card {
    width: 22px;
    height: 30px;
    border-radius: 3px;
    border-width: 1.5px;
  }

  #gameView .seat-card .card-rank {
    font-size: 0.5rem;
  }

  #gameView .seat-card .card-suit {
    font-size: 0.5rem;
  }

  #gameView .seat-bet {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 1px 6px;
    font-size: 0.45rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: none;
    background: rgba(255, 253, 240, 0.94);
    color: var(--ink);
    max-width: none;
  }

  #gameView .action-badge {
    margin-top: 2px;
    font-size: 0.44rem;
    border: 0;
    border-radius: 6px;
    padding: 1px 6px;
    letter-spacing: 0.4px;
  }

  #gameView .table-ad {
    width: min(220px, 70vw);
    height: 42px;
    top: 64%;
    opacity: 0.32;
  }

  #gameView .table-ad-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
  }

  .chat-toggle {
    position: absolute;
    display: flex;
    left: 12px;
    bottom: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    background: rgba(255, 253, 240, 0.92);
    box-shadow: 2px 2px 0 var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 160;
  }

  .chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-pink);
    border: 1.5px solid var(--ink);
    color: #fff;
    font-size: 0.42rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #gameView .game-bottom-stack {
    padding: 0 10px calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
    border-top: 2px solid var(--ink);
    background: #f5ead0;
  }

  #gameView.lp-view.is-active .game-hand-strength-bar {
    order: 0;
    width: calc(100% - 2px);
    border-radius: 10px;
    box-shadow: none;
    border-width: 2px;
    margin: 8px 0 0;
    padding: 8px 11px 9px;
    background: #faf3e0;
  }

  #gameView.lp-view.is-active .game-hand-strength-bar-track {
    border-radius: 6px;
  }

  #gameView.lp-view.is-active .action-tray {
    order: 2;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 8px;
  }

  #gameView .raise-tray {
    order: 0;
    gap: 8px;
  }

  #gameView .raise-tray-row label {
    font-size: 0.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.6;
  }

  #gameView .raise-tray #raiseValue {
    font-size: 0.85rem;
    color: var(--accent-purple);
  }

  #gameView .raise-tray-row #raiseSlider {
    height: 6px;
    min-height: 20px;
    border-radius: 3px;
    border: 0;
  }

  #gameView .raise-presets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  #gameView .raise-preset-btn {
    border: 2px solid var(--ink);
    border-radius: 10px;
    padding: 8px 4px;
    font-size: 0.58rem;
  }

  #gameView .action-pill-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

  #gameView .action-pill-row .action-pill,
  #gameView .action-pill-row .pill-allin {
    flex: none;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border: 2.5px solid var(--ink);
    border-radius: 10px;
    box-shadow: 2px 2px 0 var(--ink);
    font-family: 'Bowlby One SC', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    padding: 8px 4px;
  }

  #gameView .chat-bar--compact {
    order: 1;
    position: relative !important;
    width: 100%;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    display: none !important;
  }

  #gameView.game-mobile-chat-open .chat-bar--compact {
    display: flex !important;
  }

  #gameView .chat-bar--compact .chat-feed {
    max-height: 96px;
    padding: 8px;
    border: 2px solid var(--ink);
    border-radius: 10px;
    box-shadow: none;
    background: #faf3e0;
  }

  #gameView .chat-bar--compact .chat-input-row {
    gap: 6px;
  }

  #gameView .chat-bar--compact .chat-input,
  #gameView .chat-bar--compact .chat-send {
    min-height: 34px;
    border-width: 2px;
  }
}

/* ═══ ACCESSIBILITY: REDUCED MOTION ═══ */
@media (prefers-reduced-motion: reduce) {
  .logo-suit,
  .float-card,
  .prize-bubble,
  .ticker-track {
    animation: none !important;
  }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
}


/* ═══ VIDEO AD MODAL (placeholder; swap for real rewarded-video SDK later) ═══ */
/* ─── US payout disclosure modal ─── */
.us-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.us-notice-modal[hidden] { display: none; }
.us-notice-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 14, 62, 0.65);
  backdrop-filter: blur(4px);
}
.us-notice-modal-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--bg);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 8px 8px 0 var(--ink);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.us-notice-modal-head { display: flex; flex-direction: column; gap: 4px; }
.us-notice-modal-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
  opacity: 0.7;
}
.us-notice-modal-head h2 {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--ink);
}
.us-notice-modal-body { font-size: 0.92rem; color: var(--ink); line-height: 1.5; }
.us-notice-modal-body p { margin: 0 0 10px; }
.us-notice-modal-body p:last-child { margin-bottom: 0; }
.us-notice-modal-body ul { margin: 0 0 10px; padding-left: 20px; }
.us-notice-modal-body li { margin-bottom: 6px; }
.us-notice-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.us-notice-btn {
  padding: 10px 18px;
  border-radius: 100px;
  border: 2px solid var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s;
}
.us-notice-btn.primary {
  background: var(--accent-mint);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.us-notice-btn.primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}
.us-notice-btn.secondary {
  background: var(--bg);
  color: var(--ink);
}
.us-notice-btn.secondary:hover { background: var(--bg-alt); }

.video-ad-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.video-ad-modal[hidden] { display: none; }
.video-ad-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 14, 62, 0.6);
  backdrop-filter: blur(4px);
}
.video-ad-modal-panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--bg);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: 8px 8px 0 var(--ink);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.video-ad-modal-head h2 {
  margin: 0 0 4px;
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--ink);
}
.video-ad-modal-sub {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
  opacity: 0.7;
  line-height: 1.4;
}
.video-ad-stage {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.video-ad-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.video-ad-placeholder[hidden] { display: none; }
.video-ad-sponsor[hidden] { display: none; }

/* Mount point for admin-pasted ad snippets (Adsterra, MP4, iframe).
   Constrains the snippet to a sensible size inside the modal so a rogue
   tag can't blow out the layout. Native <video> / <iframe> tags within
   the snippet stretch to fit. */
.video-ad-snippet-mount {
  width: 100%;
  max-width: 360px;
  min-height: 220px;
  background: var(--bg-alt);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.video-ad-snippet-mount[hidden] { display: none; }
.video-ad-snippet-mount video,
.video-ad-snippet-mount iframe {
  width: 100%;
  height: auto;
  display: block;
  border: 0;
}
.video-ad-placeholder-mark {
  font-family: 'Bowlby One SC', sans-serif;
  font-size: 3rem;
  letter-spacing: 4px;
  color: var(--accent-gold);
}
.video-ad-placeholder-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.5;
}

/* Sponsor placement inside the bust-refill video modal. Highest-attention
   moment in the app — player just busted and is watching the 30s timer
   tick down. Clickable through to sponsor URL for engagement bonus. */
.video-ad-sponsor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 14px;
  background: var(--bg-alt);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  width: 100%;
  max-width: 360px;
  position: relative;
  transition: transform 0.15s;
}
.video-ad-sponsor:hover { transform: translateY(-2px); }
.video-ad-sponsor img {
  max-height: 96px;
  max-width: 280px;
  object-fit: contain;
}
.video-ad-sponsor-label {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
}
.video-ad-sponsor-tag {
  position: absolute;
  top: 6px;
  right: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.56rem;
  color: var(--accent-purple);
  background: var(--bg);
  padding: 3px 7px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.video-ad-timer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.video-ad-timer-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}
.video-ad-timer-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
  transition: width linear;
}
.video-ad-timer-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.85;
}
.video-ad-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.video-ad-btn {
  padding: 10px 18px;
  border-radius: 100px;
  border: 2px solid var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s;
}
.video-ad-btn.primary {
  background: var(--accent-mint);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.video-ad-btn.primary:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}
.video-ad-btn.primary:disabled {
  background: var(--bg-alt);
  color: rgba(26, 14, 62, 0.4);
  cursor: not-allowed;
  box-shadow: none;
}
.video-ad-btn.secondary {
  background: transparent;
  color: var(--ink);
}
.video-ad-btn.secondary:hover { background: var(--bg-alt); }
.video-ad-progress {
  margin: 4px 0 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-purple);
  text-align: center;
}
