:root {
  --bg-dark: #0f172a;
  --bg-darker: #090d16;
  --glass-bg: rgba(30, 41, 59, 0.72);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.06);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-secondary: #8b5cf6;
  --accent-glow: rgba(99, 102, 241, 0.4);

  --tot-a-color: #3b82f6;
  --tot-a-glow: rgba(59, 130, 246, 0.35);
  --tot-b-color: #ec4899;
  --tot-b-glow: rgba(236, 72, 153, 0.35);

  --emerald: #10b981;
  --amber: #f59e0b;
  --cyan: #06b6d4;
  --rose: #f43f5e;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 9999px;

  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-darker);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ================= BACKGROUND BLOBS ================= */
.bg-decoration {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: floatBlob 18s infinite alternate ease-in-out;
}

.blob-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #6366f1, #4338ca);
  top: -120px;
  left: -100px;
}

.blob-2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #8b5cf6, #ec4899);
  bottom: -160px;
  right: -120px;
  animation-delay: -6s;
}

.blob-3 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, #06b6d4, #3b82f6);
  top: 40%;
  left: 55%;
  opacity: 0.28;
  animation-delay: -12s;
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.08); }
}

/* ================= SHARED UTILITIES ================= */
.hidden {
  display: none !important;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
}

/* ================= TOPBAR ================= */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  margin: 16px 24px 0;
  border-radius: var(--radius-md);
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.brand-home-btn:hover {
  background: rgba(255, 255, 255, 0.06);
}

.brand-icon-sm {
  font-size: 1.25rem;
}

.brand-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.btn-hub-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99, 102, 241, 0.16);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-hub-nav:hover {
  background: rgba(99, 102, 241, 0.28);
  color: #ffffff;
}

/* Timer Bar */
.timer-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.65);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timer-display {
  font-family: 'Plus Jakarta Sans', monospace;
  font-weight: 700;
  font-size: 1.05rem;
  min-width: 54px;
  text-align: center;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
}

.timer-display.running {
  color: #34d399;
}

.timer-display.done {
  color: #f87171;
  animation: pulse 1s infinite;
}

.timer-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.15s ease;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.15);
}

.timer-presets {
  display: flex;
  gap: 4px;
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.preset-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s;
}

.preset-btn.active,
.preset-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ================= LANGUAGE DROPDOWN ================= */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.28);
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-name {
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-caret {
  font-size: 0.7rem;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
}

.lang-dropdown.open .lang-caret {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-dropdown-menu.hidden {
  display: none;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  transition: all 0.12s ease;
}

.lang-option:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #ffffff;
}

.lang-option.active {
  background: rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
  font-weight: 700;
}

.lang-opt-flag {
  font-size: 1.1rem;
}

.lang-opt-name {
  flex: 1;
}

.lang-opt-code {
  font-size: 0.72rem;
  opacity: 0.6;
  text-transform: uppercase;
}

.free-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

/* ================= GOOGLE ADSENSE CONTAINERS ================= */
.ad-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px auto 0;
  padding: 0 24px;
  max-width: 900px;
  width: 100%;
}

.ad-top-banner {
  margin-top: 16px;
  margin-bottom: -6px;
}

.ad-bottom-banner {
  margin-top: 24px;
  margin-bottom: 24px;
}

.ad-placeholder {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px;
  text-align: center;
}

.ad-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.ad-mock-content {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ================= MAIN CONTAINERS ================= */
.main-container {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

/* ================= GAME HUB (TILE SELECTOR) ================= */
.hub-container {
  max-width: 1040px;
  animation: fadeUp 0.35s ease-out;
}

.hub-header {
  text-align: center;
  margin-bottom: 8px;
}

.hub-greeting {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.hub-header h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hub-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ================= RANDOM ROULETTE HERO BANNER ================= */
.random-roulette-banner {
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.88) 0%, rgba(15, 23, 42, 0.92) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.25);
  transition: all 0.3s ease;
}

.random-roulette-banner:hover {
  border-color: rgba(139, 92, 246, 0.55);
  box-shadow: 0 16px 36px -8px rgba(99, 102, 241, 0.35);
}

.roulette-banner-glow {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.16), rgba(236, 72, 153, 0.09), transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: slowGlowRotate 12s infinite alternate ease-in-out;
}

@keyframes slowGlowRotate {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.1) rotate(6deg); }
}

.roulette-banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1;
  flex: 1;
}

.roulette-dice-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.3));
  border: 1px solid rgba(168, 85, 247, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.4);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.random-roulette-banner.is-spinning .roulette-dice-icon {
  animation: diceSpinRoll 0.6s infinite ease-in-out;
}

@keyframes diceSpinRoll {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1); }
}

.roulette-banner-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roulette-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c7d2fe;
}

.roulette-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 10px #a855f7;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.roulette-banner-info h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
}

.roulette-banner-info p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.4;
  margin: 0;
}

.roulette-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
  flex-shrink: 0;
}

/* Sound toggle button */
.roulette-sound-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.roulette-sound-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
}

.roulette-sound-btn.is-muted {
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Big Spin Button */
.btn-roulette-spin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  background-size: 200% 200%;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  animation: gradientShift 6s ease infinite;
}

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

.btn-roulette-spin:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 30px -4px rgba(139, 92, 246, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-roulette-spin:active {
  transform: translateY(1px) scale(0.99);
}

.btn-roulette-spin.is-spinning {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.5);
  animation: pulseSpinBtn 0.8s infinite alternate ease-in-out;
}

@keyframes pulseSpinBtn {
  0% { transform: scale(1); }
  100% { transform: scale(1.03); }
}

.spin-duration-pill {
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

/* Top bar random game button */
.btn-random-nav {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.25));
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c7d2fe;
}

.btn-random-nav:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(168, 85, 247, 0.4));
  color: #ffffff;
  border-color: rgba(168, 85, 247, 0.6);
}

/* ================= ROULETTE RUNNING TILE STATES ================= */
.game-tiles-grid.roulette-running .game-tile {
  opacity: 0.36;
  filter: grayscale(20%);
  transform: scale(0.97);
  transition: opacity 0.14s ease, transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
  pointer-events: none;
}

.game-tiles-grid.roulette-running .game-tile.roulette-highlight {
  opacity: 1 !important;
  filter: none !important;
  transform: translateY(-8px) scale(1.04) !important;
  border-color: #a855f7 !important;
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.65), 0 16px 36px -6px rgba(0, 0, 0, 0.6) !important;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(49, 46, 129, 0.8)) !important;
  z-index: 10;
}

.game-tiles-grid.roulette-running .game-tile.roulette-winner {
  opacity: 1 !important;
  filter: none !important;
  transform: translateY(-12px) scale(1.07) !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 50px rgba(245, 158, 11, 0.85), 0 0 25px rgba(236, 72, 153, 0.6), 0 20px 45px -5px rgba(0, 0, 0, 0.7) !important;
  background: linear-gradient(135deg, rgba(40, 30, 60, 0.98), rgba(60, 30, 80, 0.95)) !important;
  animation: winnerCardPulse 0.45s infinite alternate ease-in-out !important;
  z-index: 20;
}

@keyframes winnerCardPulse {
  0% {
    transform: translateY(-12px) scale(1.07);
    border-color: #f59e0b;
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.75), 0 0 20px rgba(236, 72, 153, 0.5);
  }
  100% {
    transform: translateY(-14px) scale(1.09);
    border-color: #fbbf24;
    box-shadow: 0 0 60px rgba(245, 158, 11, 0.95), 0 0 30px rgba(236, 72, 153, 0.8);
  }
}

/* ================= CONFETTI BURST ================= */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 14px;
  opacity: 1;
  border-radius: 2px;
  animation: confettiFall 1.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes confettiFall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--x-shift), var(--y-shift), 0) rotate(var(--rot-shift)) scale(0.6);
    opacity: 0;
  }
}

.hub-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 24px;
  flex-wrap: wrap;
}

.hub-filter-pill {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-filter-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.hub-filter-pill.active {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.game-tile.filtered-out {
  display: none !important;
}

.game-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.game-tile {
  padding: 26px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.game-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 20px 45px -10px rgba(99, 102, 241, 0.25);
}

.game-tile:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}

.tile-icon-indigo { background: rgba(99, 102, 241, 0.2); border: 1px solid rgba(99, 102, 241, 0.4); }
.tile-icon-pink   { background: rgba(236, 72, 153, 0.2); border: 1px solid rgba(236, 72, 153, 0.4); }
.tile-icon-emerald{ background: rgba(16, 185, 129, 0.2); border: 1px solid rgba(16, 185, 129, 0.4); }
.tile-icon-amber  { background: rgba(245, 158, 11, 0.2); border: 1px solid rgba(245, 158, 11, 0.4); }
.tile-icon-cyan   { background: rgba(6, 182, 212, 0.2);  border: 1px solid rgba(6, 182, 212, 0.4); }
.tile-icon-teal   { background: rgba(20, 184, 166, 0.2); border: 1px solid rgba(20, 184, 166, 0.4); }

.tile-printable {
  border-left: 3px solid #14b8a6;
}

.tile-status {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.badge-ready {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-new {
  background: rgba(236, 72, 153, 0.2);
  color: #f9a8d4;
  border: 1px solid rgba(236, 72, 153, 0.45);
}

.badge-printable {
  background: rgba(20, 184, 166, 0.2);
  color: #5eead4;
  border: 1px solid rgba(20, 184, 166, 0.45);
}

.tile-content h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.tile-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.tile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

.tile-meta {
  color: var(--text-muted);
  font-weight: 500;
}

.tile-cta {
  color: #c7d2fe;
  font-weight: 700;
  transition: transform 0.2s;
}

.game-tile:hover .tile-cta {
  transform: translateX(4px);
  color: #ffffff;
}

/* ================= CATEGORY PILLS & BADGES ================= */
.category-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.category-pill {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-pill:hover {
  color: var(--text-primary);
  background: rgba(51, 65, 85, 0.7);
}

.category-pill.active {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.6);
  color: #e0e7ff;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

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

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
}

.counter-badge {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ================= 1. QUESTION GENERATOR STAGE ================= */
.question-card {
  padding: 44px 48px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
}

.question-body {
  padding: 16px 0 32px;
  text-align: center;
}

.question-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.question-followup {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

.question-animate {
  animation: popIn 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popIn {
  0% { opacity: 0; transform: translateY(10px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ================= 2. THIS OR THAT STAGE ================= */
.tot-stage-card {
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tot-instruction {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.tot-instruction kbd {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.75rem;
}

.tot-prompt-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
}

.tot-arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 16px;
  margin: 4px 0;
}

.tot-choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 22px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  font-family: inherit;
}

.tot-choice-a:hover {
  transform: translateY(-4px);
  border-color: var(--tot-a-color);
  box-shadow: 0 16px 32px -8px var(--tot-a-glow);
  background: rgba(59, 130, 246, 0.1);
}

.tot-choice-b:hover {
  transform: translateY(-4px);
  border-color: var(--tot-b-color);
  box-shadow: 0 16px 32px -8px var(--tot-b-glow);
  background: rgba(236, 72, 153, 0.1);
}

.tot-choice-card:active {
  transform: translateY(0) scale(0.98);
}

.tot-key-badge {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.tot-emoji {
  font-size: 3.1rem;
  margin-bottom: 12px;
  line-height: 1;
}

.tot-choice-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.25;
}

.tot-choice-sub {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  min-height: 1.2em;
}

.tot-vote-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
}

.tot-plus-one {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
}

.tot-vs-badge {
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Split Bar */
.tot-split-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tot-split-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
}

.tot-percent-a { color: #60a5fa; }
.tot-percent-b { color: #f472b6; }

.btn-link-xs {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.76rem;
  cursor: pointer;
}

.btn-link-xs:hover {
  color: var(--text-secondary);
  text-decoration: underline;
}

.tot-split-bar {
  height: 10px;
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border-radius: var(--radius-pill);
  overflow: hidden;
  display: flex;
}

.tot-bar-fill-a {
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  height: 100%;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tot-bar-fill-b {
  background: linear-gradient(90deg, #f472b6, #db2777);
  height: 100%;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ================= 3. KEEP 3, DROP 6 ================= */
.keep3-stage-card {
  padding: 34px 38px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.keep3-quota-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}

.keep3-header-area {
  text-align: center;
}

.keep3-topic-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.keep3-topic-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.keep3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 6px 0;
}

.keep3-item-card {
  background: rgba(15, 23, 42, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  color: #f8fafc;
  transition: all 0.2s ease;
  position: relative;
  min-height: 110px;
}

.keep3-item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(30, 41, 59, 0.8);
}

.keep3-item-emoji {
  font-size: 2.2rem;
  margin-bottom: 6px;
  line-height: 1;
}

.keep3-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
  color: #f8fafc;
}

.keep3-item-card.is-kept {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.18);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.28);
}

.keep3-item-card.is-kept .keep3-item-title {
  color: #ffffff;
}

.keep3-item-card.is-kept::after {
  content: "KEPT ✓";
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.keep3-item-card.is-dropped {
  opacity: 0.45;
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.08);
}

.keep3-item-card.is-dropped .keep3-item-title {
  text-decoration: line-through;
  color: #f87171;
}

.keep3-item-card.is-dropped::after {
  content: "DROPPED ✕";
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

/* ================= 4. HOT TAKES ================= */
.hottake-stage-card {
  padding: 38px 44px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hottake-body {
  text-align: center;
  padding: 10px 0 16px;
}

.hottake-spice-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
  animation: pulse 2s infinite ease-in-out;
}

.hottake-statement {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin-bottom: 10px;
}

.hottake-subtext {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.ht-vote-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ht-vote-btn {
  background: rgba(15, 23, 42, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ht-vote-btn:hover {
  transform: translateY(-3px);
}

.ht-vote-agree:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.14);
}

.ht-vote-neutral:hover {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.14);
}

.ht-vote-disagree:hover {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.14);
}

.ht-vote-emoji {
  font-size: 1.8rem;
  line-height: 1;
}

.ht-vote-title {
  font-weight: 700;
  font-size: 0.96rem;
}

.ht-vote-count {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.ht-bar-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ht-bar-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
}

.ht-pct-agree { color: #6ee7b7; }
.ht-pct-disagree { color: #fca5a5; }

.ht-vote-bar {
  height: 10px;
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border-radius: var(--radius-pill);
  overflow: hidden;
  display: flex;
}

.ht-fill-agree { background: #10b981; transition: width 0.3s; }
.ht-fill-neutral { background: #f59e0b; transition: width 0.3s; }
.ht-fill-disagree { background: #ef4444; transition: width 0.3s; }

/* ================= 5. GUESS THE STAT ================= */
.stat-stage-card {
  padding: 38px 42px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat-body {
  text-align: center;
  padding: 6px 0 14px;
}

.stat-question {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.4rem, 2.7vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  margin-bottom: 22px;
}

.stat-benchmark-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 22px;
  max-width: 440px;
  margin: 0 auto 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-benchmark-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-benchmark-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.stat-benchmark-sub {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.stat-reveal-area {
  max-width: 520px;
  margin: 0 auto;
}

.btn-reveal {
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #a5f3fc;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reveal:hover {
  background: rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.4);
}

.stat-answer-box {
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid rgba(6, 182, 212, 0.5);
  border-radius: var(--radius-md);
  padding: 22px;
  animation: popIn 0.3s ease-out;
}

.stat-actual-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #67e8f9;
  margin-bottom: 4px;
}

.stat-actual-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 3.8vw, 2.7rem);
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 6px;
}

.stat-outcome-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.stat-outcome-badge.is-over {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.stat-outcome-badge.is-under {
  background: rgba(244, 63, 94, 0.2);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.stat-outcome-badge.is-exact {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.stat-explanation {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.5;
}

/* ================= BUTTONS & ACTIONS ================= */
.card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: var(--radius-md);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px var(--accent-glow);
  transition: all 0.2s ease;
}

.btn-tot-primary   { background: linear-gradient(135deg, #ec4899, #8b5cf6); box-shadow: 0 10px 25px -5px rgba(236, 72, 153, 0.4); }
.btn-keep3-primary { background: linear-gradient(135deg, #10b981, #06b6d4); box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4); }
.btn-ht-primary    { background: linear-gradient(135deg, #f59e0b, #ef4444); box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4); }
.btn-stat-primary  { background: linear-gradient(135deg, #06b6d4, #6366f1); box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.4); }

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary-sm {
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary-sm:hover {
  background: var(--accent-primary-hover);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  padding: 13px 20px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

/* Bottom Bar */
.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0 8px;
}

.keyboard-hint kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  padding: 2px 6px;
  font-family: inherit;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.bottom-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ================= MODAL ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

/* ================= GAME RULES MODAL ================= */
.rules-modal {
  max-width: 580px;
  width: 100%;
  padding: 30px 32px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.97) 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.75), 0 0 30px rgba(99, 102, 241, 0.2);
}

.rules-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  position: relative;
}

.rules-header-icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
  border: 1px solid rgba(168, 85, 247, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.rules-header-text {
  flex: 1;
}

.rules-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a78bfa;
  margin-bottom: 2px;
}

.rules-modal-header h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.rules-modal-header .btn-icon {
  position: absolute;
  top: 0;
  right: 0;
}

.rules-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 20px;
}

.rules-steps-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.rules-step-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.rules-step-card:hover {
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(139, 92, 246, 0.3);
}

.rules-step-icon {
  font-size: 1.35rem;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.rules-step-body {
  flex: 1;
}

.rules-step-body h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 3px;
}

.rules-step-body p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.rules-protip {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  color: #fde68a;
  font-size: 0.84rem;
  line-height: 1.45;
  margin-bottom: 22px;
}

.rules-protip strong {
  color: #fbbf24;
}

.rules-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.rules-dont-show-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.rules-dont-show-checkbox:hover {
  color: var(--text-secondary);
}

.rules-dont-show-checkbox input[type="checkbox"] {
  accent-color: var(--accent-primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.btn-rules-start {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 6px 20px -3px rgba(99, 102, 241, 0.5);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-rules-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -2px rgba(139, 92, 246, 0.6);
  filter: brightness(1.08);
}

.btn-rules-nav {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
}

.btn-rules-nav:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
  .rules-modal {
    padding: 22px 18px;
  }
  .rules-modal-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .btn-rules-start {
    justify-content: center;
    width: 100%;
  }
  .rules-dont-show-checkbox {
    justify-content: center;
  }
}

.modal {
  max-width: 500px;
  width: 100%;
  padding: 28px;
  border-radius: var(--radius-lg);
  animation: fadeUp 0.2s ease-out;
}

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

.modal-header h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
}

#add-question-form,
#add-tot-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.input-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  border-color: var(--accent-primary);
}

.tot-modal-row {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 10px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ================= BUY ME A COFFEE & FOOTER ================= */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bmac-topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.bmac-topbar-link:hover {
  background: rgba(245, 158, 11, 0.28);
  border-color: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
  color: #fff;
}

.bmac-cup {
  font-size: 0.95rem;
}

.app-footer {
  margin: 40px auto 30px;
  max-width: 960px;
  padding: 0 20px;
  width: 100%;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-bmac-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.75) 0%, rgba(245, 158, 11, 0.08) 100%);
}

.bmac-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bmac-avatar {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.bmac-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.bmac-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 540px;
}

.bmac-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f59e0b;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
}

.bmac-btn:hover {
  background: #fbbf24;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
  color: #090d16;
}

.footer-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 480px) {
  .lang-name {
    display: none;
  }
}

/* Responsive adjustments */
@media (max-width: 720px) {
  .footer-bmac-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
  }
  .bmac-btn {
    width: 100%;
    justify-content: center;
  }
  .bmac-text {
    display: none;
  }
  .topbar {
    margin: 12px 12px 0;
    padding: 12px 16px;
  }
  .free-badge {
    display: none;
  }
  .ad-placeholder {
    min-height: 60px;
  }
  .ad-mock-content {
    font-size: 0.75rem;
  }
  .question-card,
  .tot-stage-card,
  .keep3-stage-card,
  .hottake-stage-card,
  .stat-stage-card {
    padding: 24px 18px;
  }
  .tot-arena {
    grid-template-columns: 1fr;
  }
  .tot-vs-badge {
    margin: -6px auto;
  }
  .keep3-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ht-vote-buttons {
    grid-template-columns: 1fr;
  }
  .bottom-bar {
    justify-content: center;
    text-align: center;
  }
}

/* ================= PRINTABLE SCREENS (BINGO & MIXER) ================= */
.printable-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

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

.toolbar-instruction {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-print-cta {
  background: linear-gradient(135deg, #0d9488, #14b8a6) !important;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.4) !important;
}

.btn-print-cta:hover {
  background: linear-gradient(135deg, #0f766e, #0d9488) !important;
  transform: translateY(-2px);
}

.printable-sheet-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.sheet-header {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 16px;
}

.sheet-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 16px;
}

.sheet-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.sheet-player-field {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.sheet-main-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.sheet-instructions {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Bingo 5x5 Grid */
.bingo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.bingo-cell {
  aspect-ratio: 1 / 1;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
  cursor: pointer;
  user-select: none;
  transition: all 0.18s ease;
  position: relative;
}

.bingo-cell:hover {
  border-color: rgba(99, 102, 241, 0.6);
  background: rgba(30, 41, 59, 0.85);
  transform: translateY(-2px);
}

.bingo-cell.marked {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(236, 72, 153, 0.35));
  border-color: #a855f7;
  box-shadow: inset 0 0 12px rgba(168, 85, 247, 0.4);
}

.bingo-cell.marked::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.85rem;
  font-weight: 900;
  color: #34d399;
}

.bingo-cell.free-space {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.35));
  border-color: #f59e0b;
  font-weight: 800;
  color: #fbbf24;
}

.bingo-cell.free-space.marked {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.5), rgba(236, 72, 153, 0.4));
}

/* "Find Someone Who" 2-Column Scavenger Grid */
.fsw-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
  margin: 20px 0;
}

.fsw-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.18s ease;
}

.fsw-item-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.fsw-num {
  font-weight: 700;
  font-size: 0.82rem;
  color: #a5b4fc;
  min-width: 22px;
}

.fsw-label {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-primary);
  flex: 1;
}

.fsw-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.fsw-name-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.fsw-name-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #fff;
  padding: 4px 8px;
  font-size: 0.84rem;
  outline: none;
}

.fsw-name-input:focus {
  border-color: var(--accent-primary);
}

/* Sheet Footer */
.sheet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.sheet-watermark {
  font-weight: 600;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .bingo-grid {
    gap: 6px;
  }
  .bingo-cell {
    padding: 6px 3px;
    font-size: 0.68rem;
    line-height: 1.2;
  }
  .fsw-checklist-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .printable-sheet-card {
    padding: 18px 14px;
  }
  .sheet-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================= PRINT MEDIA STYLES ================= */
@media print {
  @page {
    size: portrait;
    margin: 8mm 10mm;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10pt !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  }

  .bg-decoration,
  .topbar,
  .ad-container,
  .app-footer,
  .no-print,
  .modal-backdrop,
  #confetti-container,
  .bottom-bar,
  #hub-screen,
  #questions-screen,
  #this-or-that-screen,
  #keep-3-screen,
  #hot-takes-screen,
  #guess-stat-screen {
    display: none !important;
  }

  main#bingo-screen:not(.hidden),
  main#find-someone-screen:not(.hidden) {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .printable-sheet-card {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
    padding: 6mm 8mm !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    page-break-inside: avoid;
  }

  .sheet-header {
    border-bottom: 2px solid #000000 !important;
    margin-bottom: 10px !important;
    padding-bottom: 6px !important;
  }

  .sheet-brand,
  .sheet-player-field,
  .sheet-instructions {
    color: #000000 !important;
  }

  .sheet-player-field {
    font-size: 11pt !important;
    font-weight: bold !important;
  }

  .sheet-main-title {
    font-size: 17pt !important;
    color: #000000 !important;
    margin-bottom: 4px !important;
  }

  /* Print Bingo Grid */
  .bingo-grid {
    border: 2px solid #000000 !important;
    gap: 0 !important;
    margin: 8px 0 !important;
  }

  .bingo-cell {
    border: 1px solid #000000 !important;
    background: #ffffff !important;
    color: #000000 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 5px 3px !important;
    font-size: 9pt !important;
    line-height: 1.22 !important;
    min-height: 68px !important;
  }

  .bingo-cell.free-space {
    background: #f1f5f9 !important;
    font-weight: bold !important;
    color: #000000 !important;
  }

  .bingo-cell.marked::after {
    display: none !important;
  }

  /* Print Find Someone Who */
  .fsw-checklist-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px 14px !important;
    margin: 8px 0 !important;
  }

  .fsw-item {
    background: #ffffff !important;
    border: 1px solid #475569 !important;
    border-radius: 0 !important;
    color: #000000 !important;
    padding: 5px 6px !important;
    page-break-inside: avoid;
  }

  .fsw-num {
    color: #000000 !important;
    font-weight: bold !important;
  }

  .fsw-label {
    color: #000000 !important;
    font-size: 9pt !important;
  }

  .fsw-name-row {
    margin-top: 3px !important;
  }

  .fsw-name-input {
    border: none !important;
    border-bottom: 1px solid #000000 !important;
    background: transparent !important;
    border-radius: 0 !important;
    color: #000000 !important;
    padding: 1px 0 !important;
  }

  .sheet-footer {
    border-top: 1px solid #000000 !important;
    color: #000000 !important;
    font-size: 8pt !important;
    margin-top: 8px !important;
    padding-top: 4px !important;
  }
}

/* Distinct Hub Sections: Virtual vs Printable */
.hub-games-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 34px;
}

.hub-games-section.filtered-out {
  display: none !important;
}

.hub-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hub-section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hub-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub-section-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.hub-section-printable .hub-section-header {
  border-bottom-color: rgba(45, 212, 191, 0.2);
}

.hub-section-printable .hub-section-title {
  color: #5eead4;
}

/* ================= 9. TEAM TRIVIA STYLES ================= */
.trivia-round-bar {
  max-width: 900px;
  margin: 0 auto 16px auto;
  width: 100%;
}

.trivia-round-title-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trivia-round-select-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.trivia-round-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trivia-topic-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.trivia-topic-pill:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.trivia-topic-pill.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #f59e0b;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.sheet-round-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trivia-screen-view {
  max-width: 900px;
  margin: 0 auto 30px auto;
  width: 100%;
}

.trivia-questions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trivia-q-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
}

.trivia-q-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

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

.trivia-q-num-cat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trivia-q-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: #f59e0b;
  font-size: 1.1rem;
}

.trivia-q-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.trivia-reveal-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.trivia-reveal-btn:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
}

.trivia-q-text {
  font-size: 1.12rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.45;
}

.trivia-a-box {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #6ee7b7;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trivia-a-box.hidden {
  display: none;
}

/* Printable Trivia Sheet */
.trivia-ballot-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0;
}

.trivia-ballot-line {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.trivia-line-num {
  font-weight: 800;
  font-size: 1.05rem;
  color: #f59e0b;
  min-width: 32px;
}

.trivia-line-input {
  flex: 1;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 0.98rem;
  font-family: inherit;
  outline: none;
}

.trivia-host-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0;
}

.trivia-host-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

/* ================= 10. TWO TRUTHS & A LIE STYLES ================= */
.two-truths-inspo-section {
  max-width: 900px;
  margin: 0 auto 24px auto;
  width: 100%;
}

.inspo-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.inspo-badge {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ec4899;
}

.inspo-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.two-truths-inspo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.inspo-pill {
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  color: #fbcfe8;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 4-Quadrant Ballot Card Grid (2x2) */
.two-truths-quad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 18px 0;
}

.tt-card {
  background: rgba(15, 23, 42, 0.6);
  border: 2px dashed rgba(236, 72, 153, 0.4);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tt-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.tt-card-title {
  font-weight: 800;
  font-size: 0.9rem;
  color: #f472b6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tt-card-player {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.tt-statement-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tt-statement-line {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 4px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.tt-voting-row {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 0.84rem;
  font-weight: 600;
  color: #fb7185;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Print CSS additions */
@media print {
  .trivia-screen-view,
  .two-truths-inspo-section,
  .hidden-print {
    display: none !important;
  }

  .trivia-ballot-lines {
    gap: 8px !important;
    margin: 8px 0 !important;
  }

  .trivia-ballot-line {
    border-bottom: 1px solid #475569 !important;
    padding: 6px 0 !important;
  }

  .trivia-line-num {
    color: #000000 !important;
    font-weight: bold !important;
  }

  .trivia-line-input {
    color: #000000 !important;
  }

  .two-truths-quad-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    margin: 10px 0 !important;
  }

  .tt-card {
    background: #ffffff !important;
    border: 2px dashed #000000 !important;
    color: #000000 !important;
    padding: 12px !important;
    page-break-inside: avoid;
  }

  .tt-card-header {
    border-bottom: 1px solid #000000 !important;
  }

  .tt-card-title,
  .tt-card-player,
  .tt-statement-line,
  .tt-voting-row {
    color: #000000 !important;
  }

  .tt-statement-line {
    border-bottom: 1px solid #000000 !important;
    padding-bottom: 6px !important;
  }

  .tt-voting-row {
    border-top: 1px dashed #000000 !important;
  }
}
