/* ============================================
   APERITY - MODERN DESIGN SYSTEM
   Premium, playful, and immersive UI
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Typography */
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Colors - Dark Theme */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(20, 20, 30, 0.7);
  --bg-card-hover: rgba(30, 30, 45, 0.8);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);

  /* Accent Colors */
  --accent-primary: #8b5cf6;
  --accent-secondary: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #ec4899 100%);

  /* Game Colors */
  --game-undercover: #ef4444;
  --game-palmier: #22c55e;
  --game-neverhave: #3b82f6;
  --game-roulette: #f97316;
  --game-auctions: #eab308;
  --game-quiz: #a855f7;
  --game-liar: #ec4899;
  --game-blindtest: #06b6d4;
  --game-mostlikely: #8b5cf6;
  --game-timesup: #f97316;
  --game-limitelimite: #e11d48;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 20px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
  box-sizing: border-box;
}

body.modern-theme {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Animated Gradient Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
    var(--bg-primary);
  animation: bgPulse 15s ease-in-out infinite;
}

@keyframes bgPulse {
  0%, 100% { background-position: 0% 0%, 100% 100%, 50% 50%; }
  50% { background-position: 20% 40%, 80% 60%, 30% 70%; }
}

/* Floating Particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 25s; }
.particle:nth-child(2) { left: 20%; animation-delay: -5s; animation-duration: 20s; }
.particle:nth-child(3) { left: 30%; animation-delay: -10s; animation-duration: 28s; }
.particle:nth-child(4) { left: 40%; animation-delay: -15s; animation-duration: 22s; }
.particle:nth-child(5) { left: 50%; animation-delay: -2s; animation-duration: 26s; }
.particle:nth-child(6) { left: 60%; animation-delay: -8s; animation-duration: 24s; }
.particle:nth-child(7) { left: 70%; animation-delay: -12s; animation-duration: 21s; }
.particle:nth-child(8) { left: 80%; animation-delay: -6s; animation-duration: 27s; }
.particle:nth-child(9) { left: 90%; animation-delay: -18s; animation-duration: 23s; }

@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ============================================
   LANDING PAGE (index.html)
   ============================================ */
.landing-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  overflow: hidden;
}

.landing-exit {
  animation: landingExit 0.4s ease-in forwards;
}

@keyframes landingExit {
  to { opacity: 0; transform: translateY(-40px) scale(0.97); }
}

.landing-content {
  text-align: center;
  animation: landingEnter 0.8s ease-out;
  width: 100%;
  max-width: 480px;
}

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

/* Logo */
.landing-logo { margin-bottom: 1rem; }

.landing-logo-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 0.5rem;
  animation: logoBounce 2s ease-in-out infinite;
}

@keyframes logoBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.landing-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin: 0;
}

.landing-tagline {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: var(--text-secondary);
  margin: 0.75rem auto 2rem;
  max-width: 400px;
  line-height: 1.5;
}

/* Scrolling game ribbon */
.landing-game-ribbon {
  width: 100%;
  overflow: hidden;
  margin: 0 auto 2.5rem;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.landing-ribbon-track {
  display: flex;
  gap: 1.5rem;
  animation: ribbonScroll 20s linear infinite;
  width: max-content;
}

.landing-ribbon-item {
  font-size: 2rem;
  flex-shrink: 0;
  filter: grayscale(0.3);
  transition: filter 0.3s;
}

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

/* Input form */
.landing-form { width: 100%; }

.landing-input-wrap {
  display: flex;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 0.35rem;
  transition: var(--transition-normal);
}

.landing-input-wrap:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.landing-input-wrap.error {
  border-color: var(--game-undercover);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.landing-input {
  flex: 1;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  font-family: var(--font-body);
  background: transparent;
  border: none;
  color: var(--text-primary);
  outline: none;
  min-width: 0;
}

.landing-input::placeholder { color: var(--text-muted); }

.landing-submit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-full);
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
  flex-shrink: 0;
}

.landing-submit:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-glow);
}

.landing-submit:active { transform: scale(0.98); }

.landing-submit-arrow {
  transition: transform 0.2s;
}

.landing-submit:hover .landing-submit-arrow {
  transform: translateX(3px);
}

.landing-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Floating decorative icons */
.landing-floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.landing-float-icon {
  position: absolute;
  font-size: 2rem;
  opacity: 0.12;
  left: var(--x);
  top: var(--y);
  animation: floatIcon 6s ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(10deg); }
}

/* ============================================
   HUB PAGE (menu.html)
   ============================================ */
.hub-page {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  z-index: 1;
  padding-bottom: 2rem;
}

/* Sticky header */
.hub-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.hub-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hub-logo { font-size: 1.5rem; }

.hub-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hub-header-right {
  display: flex;
  align-items: center;
}

.hub-player-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
}

.hub-player-icon { font-size: 0.85rem; }
.hub-player-name { color: var(--text-primary); font-weight: 500; }

.hub-player-edit {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 0 0.15rem;
}

.hub-player-edit:hover { opacity: 1; }

/* Inline name editor */
.hub-name-editor {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(10, 10, 15, 0.9);
  border-bottom: 1px solid var(--glass-border);
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hub-name-input {
  flex: 1;
  padding: 0.6rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

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

.hub-name-save,
.hub-name-cancel {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.hub-name-save { background: var(--accent-primary); color: white; }

.hub-name-cancel {
  background: var(--glass-bg);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

/* Filter bar */
.hub-filters {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.25rem 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hub-filters::-webkit-scrollbar { display: none; }

.hub-filter-tag {
  flex-shrink: 0;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.hub-filter-tag:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.hub-filter-tag.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

/* Game cards grid */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  padding: 0.75rem 1.25rem;
}

.hub-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s ease;
  aspect-ratio: 3 / 4;
  animation: cardStagger 0.5s ease-out both;
}

.hub-card:nth-child(1)  { animation-delay: 0ms; }
.hub-card:nth-child(2)  { animation-delay: 60ms; }
.hub-card:nth-child(3)  { animation-delay: 120ms; }
.hub-card:nth-child(4)  { animation-delay: 180ms; }
.hub-card:nth-child(5)  { animation-delay: 240ms; }
.hub-card:nth-child(6)  { animation-delay: 300ms; }
.hub-card:nth-child(7)  { animation-delay: 360ms; }
.hub-card:nth-child(8)  { animation-delay: 420ms; }
.hub-card:nth-child(9)  { animation-delay: 480ms; }
.hub-card:nth-child(10) { animation-delay: 540ms; }

@keyframes cardStagger {
  from { opacity: 0; transform: translateY(30px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hub-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(var(--card-rgb), 0.25) 0%,
    rgba(var(--card-rgb), 0.08) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  border: 1px solid rgba(var(--card-rgb), 0.2);
  border-radius: inherit;
  transition: var(--transition-normal);
}

.hub-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(var(--card-rgb), 0.4),
    transparent 70%
  );
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.hub-card:hover .hub-card-glow,
.hub-card.active .hub-card-glow {
  opacity: 1;
}

.hub-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1.25rem 0.75rem;
  text-align: center;
}

.hub-card-icon {
  font-size: 2.75rem;
  margin-bottom: 0.6rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.35s ease;
}

.hub-card:hover .hub-card-icon {
  transform: scale(1.15) translateY(-4px);
}

.hub-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin: 0 0 0.2rem;
}

.hub-card-tagline {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hub-card-meta {
  margin-top: auto;
  padding-top: 0.6rem;
}

.hub-card-players {
  font-size: 0.7rem;
  color: rgb(var(--card-rgb));
  background: rgba(var(--card-rgb), 0.15);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* Active/selected card */
.hub-card.active {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(var(--card-rgb), 0.3),
              0 10px 40px rgba(0, 0, 0, 0.4);
}

.hub-card.active .hub-card-bg {
  border-color: rgba(var(--card-rgb), 0.5);
}

.hub-card.filtered-out {
  display: none;
}

/* ============================================
   BOTTOM SHEET / MODAL
   ============================================ */
.hub-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hub-sheet-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.hub-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.hub-sheet.open {
  transform: translateY(0);
}

.hub-sheet-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0.75rem auto;
}

.hub-sheet-content {
  padding: 0 1.5rem 2rem;
}

.hub-sheet-game-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.hub-sheet-icon {
  font-size: 2.25rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--sheet-rgb), 0.15);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.hub-sheet-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.hub-sheet-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0.1rem 0 0;
}

.hub-sheet-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.hub-sheet-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.hub-sheet-tag {
  padding: 0.25rem 0.65rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Drink mode selector */
.hub-drink-mode {
  margin-bottom: 1rem;
}

.hub-drink-mode-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0.4rem;
}

.hub-drink-mode-btns {
  display: flex;
  gap: 0.5rem;
}

.hub-drink-mode-btn {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.hub-drink-mode-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hub-drink-mode-btn.selected {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  font-weight: 600;
}

/* Action buttons */
.hub-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hub-action-create {
  width: 100%;
  padding: 0.9rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.hub-action-create::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.hub-action-create:hover::before { left: 100%; }

.hub-action-create:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.hub-action-create:active { transform: translateY(0); }

.hub-action-create:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.hub-action-join {
  width: 100%;
  padding: 0.9rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-normal);
}

.hub-action-join:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* Join code input */
.hub-join-section {
  animation: slideDown 0.2s ease-out;
  margin-bottom: 1rem;
}

.hub-join-input-wrap {
  display: flex;
  gap: 0.5rem;
}

.hub-join-input {
  flex: 1;
  padding: 0.8rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
  outline: none;
}

.hub-join-input:focus { border-color: var(--accent-primary); }

.hub-join-go {
  padding: 0.8rem 1.25rem;
  background: var(--accent-primary);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.hub-join-go:hover { background: #7c3aed; }

/* Lobby list in sheet */
.hub-lobbies-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.hub-lobbies-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 0.75rem;
}

.hub-lobby-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.hub-lobby-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.hub-lobby-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.hub-lobby-players {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hub-lobby-join {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.82rem;
  font-family: var(--font-display);
}

/* Created success block */
.hub-created {
  text-align: center;
  animation: slideDown 0.3s ease-out;
}

.hub-created-code {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  padding: 1rem;
  background: var(--glass-bg);
  border: 2px dashed var(--accent-primary);
  border-radius: var(--radius-lg);
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.2); }
  50% { box-shadow: 0 0 30px rgba(139, 92, 246, 0.4); }
}

.hub-created-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hub-action-enter {
  width: 100%;
  padding: 0.9rem;
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-normal);
}

.hub-action-enter:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.hub-sheet-status {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  min-height: 1.2em;
}

.hub-sheet-status.error { color: var(--game-undercover); }
.hub-sheet-status.success { color: var(--game-palmier); }

.hub-sheet-lobbies { margin-bottom: 0.75rem; }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (min-width: 640px) {
  .hub-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0.75rem 2rem;
    gap: 1.25rem;
  }

  .hub-card { aspect-ratio: 4 / 5; }
  .hub-filters { padding: 1rem 2rem 0.5rem; }
  .hub-header { padding: 0.75rem 2rem; }
}

@media (min-width: 1024px) {
  .hub-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 960px;
    margin: 0 auto;
    gap: 1.5rem;
  }

  .hub-card { aspect-ratio: 3 / 4; }

  .hub-header {
    max-width: 960px;
    margin: 0 auto;
    border-bottom: none;
    background: transparent;
    backdrop-filter: none;
    position: relative;
  }

  .hub-filters {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 0 0.5rem;
  }

  /* Desktop: bottom sheet becomes centered modal */
  .hub-sheet {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    pointer-events: none;
    max-width: 520px;
    width: 90vw;
    max-height: 80vh;
    border-radius: var(--radius-xl);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .hub-sheet.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ============================================
   GAME PAGE — FULL-SCREEN IMMERSIVE LAYOUT
   Mobile-first design with bottom nav + sheets
   ============================================ */

/* Game page layout — full screen */
.game-page-container {
  min-height: 100dvh;
  position: relative;
  z-index: 1;
}

/* Lobby Container — full screen app shell (keeps class for inline override selectors) */
.lobby-container {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  width: 100%;
  max-width: none;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  overflow: hidden;
  animation: none;
}

/* ---- GP HEADER ---- */
.gp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 52px;
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  gap: 0.5rem;
}

.gp-header-back {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  padding: 0.4rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gp-header-back:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.gp-header-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.gp-header-code {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gp-header-copy {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.gp-header-copy:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.gp-header-game {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

/* ---- GP PLAYERS BAR ---- */
.gp-players-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--glass-border);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-shrink: 0;
}

.gp-players-bar::-webkit-scrollbar {
  display: none;
}

.gp-player-count {
  background: var(--accent-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  font-family: var(--font-display);
}

.gp-player-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 48px;
  flex-shrink: 0;
}

.gp-player-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  position: relative;
  transition: var(--transition-fast);
}

.gp-player-avatar.is-me {
  box-shadow: 0 0 0 2.5px var(--accent-primary);
}

.gp-player-avatar.is-offline {
  opacity: 0.35;
  filter: grayscale(0.5);
}

.gp-player-name {
  font-size: 0.65rem;
  color: var(--text-muted);
  max-width: 52px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  font-family: var(--font-body);
}

.gp-player-host-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  font-size: 0.55rem;
  line-height: 1;
}

/* ---- GP CONTENT ---- */
.gp-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem;
  padding-bottom: 80px; /* space for bottom nav */
}

/* Spacing for direct children inside gp-content */
.gp-content > * + * {
  margin-top: 0.75rem;
}

/* ---- GP BOTTOM NAV ---- */
.gp-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.gp-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  color: var(--text-muted);
  font-size: 0.6rem;
  font-family: var(--font-body);
  font-weight: 500;
  background: none;
  border: none;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.gp-nav-btn:active {
  transform: scale(0.92);
}

.gp-nav-btn.active {
  color: var(--accent-primary);
}

.gp-nav-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.gp-nav-label {
  line-height: 1;
}

.gp-nav-badge {
  position: absolute;
  top: 0;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ef4444;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.gp-nav-badge.visible {
  display: flex;
}

.gp-nav-btn.host-only {
  display: none;
}

.gp-nav-btn.host-only.show {
  display: flex;
}

/* ---- GP BOTTOM SHEETS ---- */
.gp-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gp-sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.gp-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 75vh;
  background: rgba(18, 18, 28, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 201;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  padding: 0 1rem 2rem;
}

.gp-sheet.open {
  transform: translateY(0);
}

.gp-sheet-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  margin: 0.75rem auto 0.5rem;
}

.gp-sheet-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---- DRINKS SHEET ---- */
.gp-drinks-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
}

.gp-drinks-summary-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.gp-drinks-summary-count {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fbbf24;
}

.gp-drinks-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gp-drink-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.gp-drink-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.gp-drink-name {
  flex: 1;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.gp-drink-count {
  font-weight: 700;
  font-size: 1.1rem;
  color: #fbbf24;
  min-width: 24px;
  text-align: center;
  font-family: var(--font-display);
}

.gp-drink-minus {
  background: rgba(239, 68, 68, 0.7);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gp-drink-minus:hover {
  background: #ef4444;
  transform: scale(1.1);
}

/* ---- CHAT SHEET ---- */
.gp-chat-messages {
  height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 0;
  margin-bottom: 0.75rem;
}

.gp-chat-bubble {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  animation: fadeSlideUp 0.2s ease-out;
}

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

.gp-chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.gp-chat-content {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.5rem 0.75rem;
  border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
  border: 1px solid var(--glass-border);
  max-width: 85%;
}

.gp-chat-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 0.1rem;
}

.gp-chat-text {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.gp-chat-input-row {
  display: flex;
  gap: 0.5rem;
  position: sticky;
  bottom: 0;
  padding: 0.5rem 0;
  background: rgba(18, 18, 28, 0.97);
}

.gp-chat-input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.gp-chat-input::placeholder {
  color: var(--text-muted);
}

.gp-chat-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.gp-chat-send {
  background: var(--accent-gradient);
  color: white;
  border: none;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.gp-chat-send:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

/* ---- HOST SHEET ---- */
.gp-host-player-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  margin-bottom: 0.5rem;
}

.gp-host-player-info {
  flex: 1;
}

.gp-host-player-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.gp-host-player-status {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.gp-host-player-status.online {
  color: #10b981;
}

.gp-host-player-actions {
  display: flex;
  gap: 0.4rem;
}

.gp-host-btn {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-display);
}

.gp-host-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.gp-host-btn.danger {
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.gp-host-btn.danger:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* ---- SETTINGS SHEET ---- */
.gp-settings-section {
  margin-bottom: 1.25rem;
}

.gp-settings-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.gp-settings-game-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.gp-settings-game-icon {
  font-size: 2rem;
}

.gp-settings-game-info {
  flex: 1;
}

.gp-settings-game-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.gp-settings-game-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.gp-settings-select {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.gp-settings-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.gp-settings-select option {
  background: #1a1a2e;
  color: var(--text-primary);
}

.gp-settings-apply {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.gp-settings-apply:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.gp-quit-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.gp-quit-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
}

/* ---- GAME INFO CARD (in content) ---- */
.game-info-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.game-info-icon {
  font-size: 2rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

.game-info-content {
  flex: 1;
}

.game-info-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.game-info-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---- HOST ACTIONS (in content) ---- */
.host-actions-panel {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.host-actions-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.host-actions-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.host-action-btn {
  flex: 1;
  min-width: 90px;
  padding: 0.65rem 0.75rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.host-action-btn.primary {
  background: var(--accent-gradient);
  color: white;
}

.host-action-btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.host-action-btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.host-action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

/* ---- PHASE INFO CARD ---- */
.phase-info-card {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.phase-icon {
  font-size: 1.3rem;
}

.phase-info-content {
  flex: 1;
}

.phase-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: #93c5fd;
  font-size: 0.9rem;
}

.phase-hint {
  font-size: 0.8rem;
  color: #60a5fa;
}

/* ---- CONNECTION STATUS ---- */
.connection-status {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.5rem;
}

.connection-status.connected {
  color: #10b981;
}

.connection-status.disconnected {
  color: #ef4444;
}

/* ---- GAME SELECTOR (in settings sheet) ---- */
.game-selector {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
}

.game-selector-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.game-selector select {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  cursor: pointer;
}

.game-selector select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.game-selector select option {
  background: #1a1a2e;
  color: var(--text-primary);
}

/* ---- AVATAR COLORS ---- */
.avatar-color-0 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.avatar-color-1 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.avatar-color-2 {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.avatar-color-3 {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.avatar-color-4 {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.avatar-color-5 {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.avatar-color-6 {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.avatar-color-7 {
  background: linear-gradient(135deg, #84cc16 0%, #65a30d 100%);
}

/* ---- RESPONSIVE ---- */
@media (min-width: 768px) {
  .gp-content {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .gp-content {
    max-width: 720px;
  }

  .gp-sheet {
    max-width: 500px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(100%);
    border-radius: 20px 20px 0 0;
  }

  .gp-sheet.open {
    transform: translateX(-50%) translateY(0);
  }
}


/* ============================================
   GAME COMPONENTS — DARK THEME
   Buttons, cards, banners, lists, etc.
   ============================================ */

.banner {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  margin: 0.75rem 0 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

h3.section-title-old {
  margin-top: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-primary);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.lobby-container h1,
.lobby-container h2,
.lobby-container h3 {
  margin: 0 0 0.5rem;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.lobby-container label {
  font-weight: 600;
  color: var(--text-secondary);
}

.lobby-container input,
.lobby-container button,
.lobby-container select,
.lobby-container textarea {
  font: inherit;
}

.field {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.field input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: var(--font-body);
}

.field input::placeholder {
  color: var(--text-muted);
}

.field input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.btn {
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(0.25);
}

.btn:disabled:active,
.btn[disabled]:active {
  transform: none;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn.success {
  background: rgba(16, 185, 129, 0.8);
  border-color: rgba(16, 185, 129, 0.6);
  color: #fff;
}

.btn.success:hover {
  background: #10b981;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn.danger {
  background: rgba(220, 38, 38, 0.8);
  border-color: rgba(220, 38, 38, 0.6);
  color: #fff;
}

.btn.danger:hover {
  background: #dc2626;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.btn:active {
  transform: translateY(1px);
}

.inline-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.list {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin: 1rem 0;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  max-height: none;
  overflow: visible;
}

.list-item {
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
}

.list-item:not(:last-child) {
  border-bottom: 1px solid var(--glass-border);
}

.list-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.wheel-wrap {
  position: relative;
  margin: 1.5rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 280px;
  height: 280px;
}

.wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(139, 92, 246, 0.2);
  transition: transform 4s cubic-bezier(0.2, 0.8, 0.1, 1);
}

.wheel-pointer {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 24px solid #fbbf24;
  z-index: 10;
  filter: drop-shadow(0 2px 6px rgba(251, 191, 36, 0.5));
}

.wheel-center-knob {
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 5;
}

.auctions-leaderboard .list-item {
  justify-content: space-between;
}

.badge {
  background: var(--accent-primary);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.muted {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.chip.offline {
  opacity: 0.5;
  border-style: dashed;
}

.row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .card {
    padding: 1.25rem;
    width: min(520px, 96vw);
  }

  .field {
    flex-direction: column;
    align-items: stretch;
  }

  .field input,
  .field select,
  .field textarea {
    width: 100%;
  }
}

.players {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
}

.chat {
  margin-top: 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  max-height: 150px;
  overflow-y: auto;
}

.chat-entry {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}


/* Gambling UI */
.gambling-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(8px);
}

.gambling-modal {
  background: var(--bg-secondary);
  border: 2px solid #ef4444;
  box-shadow: 0 0 60px rgba(239, 68, 68, 0.4);
  padding: 2rem;
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 90%;
  text-align: center;
  color: var(--text-primary);
  animation: modal-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modal-pop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.gambling-title {
  font-family: var(--font-display);
  color: #ef4444;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.gambling-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.gambling-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-gambling-risk {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-gambling-risk:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.5);
}

.btn-gambling-safe {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1rem 2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-gambling-safe:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

/* Slot Machine */
.slot-machine-wrap {
  background: var(--bg-primary);
  padding: 10px;
  border-radius: var(--radius-md);
  border: 4px solid #ef4444;
  display: inline-block;
  margin-bottom: 1rem;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(239, 68, 68, 0.2);
}

.slot-canvas {
  background: #1a1a2e;
  border-radius: var(--radius-sm);
  display: block;
}

.outcome-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-top: 1rem;
  font-weight: bold;
  height: 1.5em;
  color: #fbbf24;
}

/* ============================================
   PALMIER GAME - Complete UI
   ============================================ */

/* Main game container */
.palmier-game {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Header: deck info + turn indicator */
.palmier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.palmier-deck-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.palmier-deck-icon {
  font-size: 1.5rem;
  animation: palmier-deck-float 3s ease-in-out infinite;
}

@keyframes palmier-deck-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.palmier-deck-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.palmier-turn-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.palmier-turn-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.palmier-turn-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.palmier-turn-name.my-turn {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  animation: palmier-my-turn-glow 2s ease-in-out infinite;
}

@keyframes palmier-my-turn-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
  50% { box-shadow: 0 0 12px rgba(16, 185, 129, 0.3); }
}

/* Last Action - Card Display */
.palmier-last-action {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px dashed var(--glass-border);
  text-align: center;
  line-height: 1.5;
  color: var(--text-secondary);
}

.palmier-card-placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* Action Card Display */
.palmier-action-card {
  animation: palmier-card-appear 0.4s ease-out;
}

@keyframes palmier-card-appear {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.palmier-action-player {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.palmier-action-drawn {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.palmier-action-drawn strong {
  color: #fbbf24;
  font-size: 1.1rem;
}

.palmier-action-desc {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

.palmier-choice-result {
  margin-top: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.palmier-choice-sips {
  color: #f87171;
}

.palmier-choice-piment {
  color: #fb923c;
}

/* Turn Hint */
.palmier-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  padding: 0.5rem;
  background: rgba(139, 92, 246, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(139, 92, 246, 0.1);
}

/* Action Buttons */
.palmier-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.palmier-btn-draw {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.3)) !important;
  border: 1px solid rgba(34, 197, 94, 0.4) !important;
  color: #6ee7b7 !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
  font-size: 1.05rem !important;
  transition: all 0.2s ease !important;
}

.palmier-btn-draw:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(16, 185, 129, 0.4)) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.palmier-btn-draw:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

.palmier-btn-end {
  padding: 0.75rem 1.5rem !important;
}

/* Distribution hint */
.palmier-dist-hint {
  margin-top: 0.5rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 0.75rem;
}

/* Powers Panel */
.palmier-powers-panel {
  padding: 0.75rem;
  background: rgba(99, 102, 241, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.palmier-panel-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.palmier-power-badge {
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.palmier-badge-thumb {
  background: rgba(251, 191, 36, 0.1);
  border-left: 3px solid rgba(251, 191, 36, 0.5);
}

.palmier-badge-freeze {
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid rgba(59, 130, 246, 0.5);
}

.palmier-badge-slave {
  background: rgba(239, 68, 68, 0.1);
  border-left: 3px solid rgba(239, 68, 68, 0.5);
}

.palmier-badge-pote {
  background: rgba(34, 197, 94, 0.1);
  border-left: 3px solid rgba(34, 197, 94, 0.5);
}

.palmier-badge-impote {
  background: rgba(234, 179, 8, 0.1);
  border-left: 3px solid rgba(234, 179, 8, 0.5);
}

/* Rules Panel */
.palmier-rules-panel {
  padding: 0.75rem;
  background: rgba(139, 92, 246, 0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.palmier-rules-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.palmier-rules-list li {
  padding: 0.2rem 0;
}

/* Power Activation Buttons */
.palmier-power-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.palmier-btn-thumb {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.3)) !important;
  border: 1px solid rgba(251, 191, 36, 0.4) !important;
  color: #fbbf24 !important;
  font-weight: 600 !important;
  padding: 0.6rem 1.2rem !important;
}

.palmier-btn-thumb:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.4)) !important;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.palmier-btn-freeze {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.3)) !important;
  border: 1px solid rgba(59, 130, 246, 0.4) !important;
  color: #60a5fa !important;
  font-weight: 600 !important;
  padding: 0.6rem 1.2rem !important;
}

.palmier-btn-freeze:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.4)) !important;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.palmier-btn-thumb:disabled,
.palmier-btn-freeze:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* Slave Call Alert */
.palmier-slave-alert {
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-md);
  border: 2px solid rgba(239, 68, 68, 0.4);
  text-align: center;
  animation: palmier-slave-pulse 2s ease-in-out infinite;
}

@keyframes palmier-slave-pulse {
  0%, 100% { border-color: rgba(239, 68, 68, 0.4); }
  50% { border-color: rgba(239, 68, 68, 0.7); box-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }
}

.palmier-slave-title {
  font-weight: 600;
  color: #f87171;
  margin-bottom: 0.5rem;
}

.palmier-btn-slave {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.4)) !important;
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
  color: #fca5a5 !important;
  font-weight: 600 !important;
  padding: 0.6rem 1.2rem !important;
}

.palmier-btn-slave:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(220, 38, 38, 0.5)) !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.palmier-slave-timer {
  font-size: 0.8rem;
  color: #f87171;
  margin-top: 0.25rem;
}

/* End Game Summary */
.palmier-endgame {
  padding: 1.5rem;
  background: rgba(251, 191, 36, 0.08);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(251, 191, 36, 0.3);
  text-align: center;
}

.palmier-endgame-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.palmier-endgame-title {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.palmier-summary-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin: 1rem 0;
  border: 1px solid var(--glass-border);
}

.palmier-summary-title {
  color: var(--text-primary);
  margin: 0 0 0.75rem 0;
}

.palmier-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.palmier-summary-table th {
  text-align: center;
  padding: 0.5rem;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--glass-border);
  font-weight: 600;
}

.palmier-summary-table th:first-child {
  text-align: left;
}

.palmier-summary-table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.palmier-summary-table td:first-child {
  text-align: left;
  color: var(--text-primary);
}

.palmier-summary-table td:nth-child(2) {
  text-align: center;
  color: #6ee7b7;
  font-weight: 600;
}

.palmier-summary-table td:nth-child(3) {
  text-align: center;
  color: #f87171;
  font-weight: 600;
}

.palmier-btn-restart {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.3)) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  color: #6ee7b7 !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
  font-size: 1rem !important;
}

.palmier-btn-restart:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(5, 150, 105, 0.4)) !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

/* Hidden Clicker (card 9) */
.palmier-hidden-clicker {
  position: fixed;
  z-index: 1000;
}

.palmier-hidden-btn {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(16, 185, 129, 0.4)) !important;
  border: 2px solid rgba(34, 197, 94, 0.5) !important;
  color: white !important;
  padding: 1rem 2rem !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
  animation: palmier-clicker-pulse 1s infinite;
  cursor: pointer;
}

@keyframes palmier-clicker-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4); }
  50% { transform: scale(1.1); box-shadow: 0 4px 30px rgba(34, 197, 94, 0.6); }
}

/* Modal Styles */
.palmier-dist-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(8px);
}

.palmier-dist-modal {
  max-width: 450px;
  width: 90%;
  animation: modal-pop 0.3s ease-out;
}

/* .card used in modals */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: min(520px, 92vw);
  color: var(--text-primary);
}

.palmier-modal-title {
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.palmier-modal-desc {
  text-align: center;
  color: var(--text-secondary);
}

.palmier-modal-hint {
  text-align: center;
}

.palmier-modal-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.palmier-dist-summary {
  text-align: center;
  margin: 1rem 0;
  min-height: 1.5rem;
}

/* Modal Action Buttons */
.palmier-btn-confirm {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.3)) !important;
  border: 1px solid rgba(34, 197, 94, 0.4) !important;
  color: #6ee7b7 !important;
  font-weight: 600 !important;
}

.palmier-btn-confirm:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(16, 185, 129, 0.4)) !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

.palmier-btn-confirm:disabled {
  opacity: 0.4 !important;
}

.palmier-btn-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.3)) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  color: #fca5a5 !important;
  font-weight: 600 !important;
}

.palmier-btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.4)) !important;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.palmier-btn-danger:disabled {
  opacity: 0.4 !important;
}

/* Choice Modal (card 3) */
.palmier-choice-modal {
  max-width: 350px;
}

.palmier-choice-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.palmier-btn-sips {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.3)) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  color: #fca5a5 !important;
  padding: 1rem !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
}

.palmier-btn-sips:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.4)) !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
  transform: translateY(-2px);
}

.palmier-btn-piment {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(234, 88, 12, 0.3)) !important;
  border: 1px solid rgba(249, 115, 22, 0.4) !important;
  color: #fb923c !important;
  padding: 1rem !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
}

.palmier-btn-piment:hover {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(234, 88, 12, 0.4)) !important;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
  transform: translateY(-2px);
}

/* Rule Modal */
.palmier-rule-clear {
  margin-bottom: 1rem;
}

.palmier-rule-clear-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #f87171;
  cursor: pointer;
}

.palmier-rule-textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.75rem;
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-md);
  resize: none;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}

.palmier-rule-textarea:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.palmier-rule-textarea::placeholder {
  color: var(--text-muted);
}

.palmier-btn-rule {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.3)) !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
  color: #c4b5fd !important;
  font-weight: 600 !important;
}

.palmier-btn-rule:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(124, 58, 237, 0.4)) !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

/* Player Selection Buttons (shared across modals) */
.palmier-dist-players {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.palmier-player-btn {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.palmier-player-btn:hover {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.1);
}

.palmier-player-btn.selected {
  border-color: rgba(16, 185, 129, 0.7);
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.palmier-player-btn .drink-count {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── Palmier: Visual playing card ── */
.palmier-visual-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.palmier-card-flip {
  perspective: 600px;
  width: 100px;
  height: 140px;
}

.palmier-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: palmierFlipIn 0.5s ease-out forwards;
}

@keyframes palmierFlipIn {
  from { transform: rotateY(180deg) scale(0.7); opacity: 0; }
  to   { transform: rotateY(0deg) scale(1); opacity: 1; }
}

.palmier-card-face {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: #fdf6e3;
  border: 2px solid rgba(255,255,255,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.palmier-card-corner {
  position: absolute;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.palmier-card-corner.top-left { top: 6px; left: 7px; }
.palmier-card-corner.bottom-right { bottom: 6px; right: 7px; transform: rotate(180deg); }

.palmier-card-corner.red { color: #dc2626; }
.palmier-card-corner.black { color: #1e1e1e; }

.palmier-card-center {
  font-size: 2.2rem;
}

.palmier-card-center.red { color: #dc2626; }
.palmier-card-center.black { color: #1e1e1e; }

.palmier-card-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 280px;
}

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

/* ── Palmier: Toast notifications ── */
#palmierToastContainer {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 90%;
  max-width: 360px;
  pointer-events: none;
}

.palmier-toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  background: rgba(15, 15, 25, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 4px solid #fbbf24;
  color: var(--text-primary);
  font-size: 0.85rem;
  animation: palmierToastIn 0.3s ease-out forwards;
  pointer-events: auto;
}

.palmier-toast.toast-drink  { border-left-color: #ef4444; }
.palmier-toast.toast-power  { border-left-color: #a78bfa; }
.palmier-toast.toast-rule   { border-left-color: #38bdf8; }
.palmier-toast.toast-slave  { border-left-color: #fb923c; }
.palmier-toast.toast-hidden { border-left-color: #6ee7b7; }

.palmier-toast-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.palmier-toast-text {
  flex: 1;
  line-height: 1.3;
}

@keyframes palmierToastIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.palmier-toast.out {
  animation: palmierToastOut 0.25s ease-in forwards;
}

@keyframes palmierToastOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-12px) scale(0.95); }
}

/* ── Palmier: Deck progress circle ── */
.palmier-deck-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.palmier-deck-svg {
  width: 52px;
  height: 52px;
  transform: rotate(-90deg);
}

.palmier-deck-track {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 4;
}

.palmier-deck-progress {
  fill: none;
  stroke: #4ade80;
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease, stroke 0.4s ease;
}

.palmier-deck-emoji {
  position: absolute;
  font-size: 1.2rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.palmier-deck-circle-wrap {
  position: relative;
  width: 52px;
  height: 52px;
}

.palmier-deck-remaining {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ── Palmier: History strip ── */
#palmierHistoryStrip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-height: 0;
}

#palmierHistoryStrip::-webkit-scrollbar { display: none; }

#palmierHistoryStrip:empty { display: none; }

.palmier-mini-card {
  flex-shrink: 0;
  width: 36px;
  height: 50px;
  border-radius: 5px;
  background: #fdf6e3;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.palmier-mini-rank {
  font-size: 0.7rem;
  line-height: 1;
}

.palmier-mini-suit {
  font-size: 0.65rem;
  line-height: 1;
}

.palmier-mini-card.red  .palmier-mini-rank,
.palmier-mini-card.red  .palmier-mini-suit { color: #dc2626; }
.palmier-mini-card.black .palmier-mini-rank,
.palmier-mini-card.black .palmier-mini-suit { color: #1e1e1e; }

/* ── Palmier: Damage animation ── */
.palmier-damage-flash {
  position: fixed;
  inset: 0;
  background: rgba(239, 68, 68, 0.2);
  z-index: 140;
  pointer-events: none;
  animation: palmierFlashFade 0.5s ease-out forwards;
}

@keyframes palmierFlashFade {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.palmier-shake {
  animation: palmierShake 0.4s ease-out;
}

@keyframes palmierShake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-6px); }
  30% { transform: translateX(6px); }
  45% { transform: translateX(-4px); }
  60% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

.palmier-damage-number {
  position: fixed;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  font-weight: 800;
  color: #f87171;
  text-shadow: 0 0 20px rgba(239,68,68,0.6);
  z-index: 141;
  pointer-events: none;
  animation: palmierDamageFloat 1.2s ease-out forwards;
}

@keyframes palmierDamageFloat {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-80px) scale(1.4); }
}

/* ── Palmier: Slave timer bar ── */
.palmier-slave-bar {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  margin-top: 0.5rem;
  overflow: hidden;
}

.palmier-slave-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: #4ade80;
  transition: width 0.1s linear, background-color 0.3s ease;
}

.palmier-slave-bar-fill.warn {
  background: #fbbf24;
}

.palmier-slave-bar-fill.danger {
  background: #ef4444;
}

/* Roulette probability sliders */
.prob-sliders {
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.prob-slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.prob-label {
  font-family: var(--font-display);
  font-weight: 600;
  width: 60px;
  font-size: 0.9rem;
}

.prob-range {
  flex: 1;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.prob-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent-primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
  transition: transform 0.1s;
}

.prob-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.prob-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent-primary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.prob-val {
  font-family: var(--font-display);
  font-weight: 700;
  width: 45px;
  text-align: right;
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* Auctions animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Quiz Layout */
#quizBox {
  max-height: none;
  min-height: 280px;
}

#quizQuestion {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 1rem 1.25rem;
  background: rgba(139, 92, 246, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(139, 92, 246, 0.25);
  line-height: 1.5;
  color: var(--text-primary);
}

#quizAnswers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

#quizAnswers .btn {
  padding: 1rem;
  font-size: 0.95rem;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  transition: var(--transition-fast);
}

#quizAnswers .btn:hover:not(:disabled) {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

/* ============================================
   GAME BOXES - No scroll, full height visible
   ============================================ */

/* All game boxes should expand to fit content */
#palmierBox,
#rouletteBox,
#auctionsBox,
#neverBox,
#undercoverSection,
#liarBox {
  max-height: none;
  overflow: visible;
}

/* Keep scroll only for specific elements that need it */
#rouletteHistory {
  max-height: 120px;
  overflow-y: auto;
}

.chat {
  max-height: 150px;
  overflow-y: auto;
}

/* Phase and drinks panels - compact but no scroll */
#phaseBox,
#drinksPanel {
  max-height: none;
  overflow: visible;
}

/* Ensure the main card can grow */
.card {
  max-height: none;
  overflow: visible;
}

/* ============================================
   BLIND TEST STYLES
   ============================================ */

#blindtestBox {
  max-height: none;
  overflow: visible;
}

/* Suggestion items */
.suggestion-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-fast);
  color: var(--text-primary);
}

.suggestion-item:hover {
  background: rgba(139, 92, 246, 0.1);
}

.suggestion-item:last-child {
  border-bottom: none;
}

/* Toast notifications */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.toast {
  animation: fadeInUp 0.3s ease;
}

/* ============================================
   UNDERCOVER / IMPOSTEUR GAME STYLES
   ============================================ */

.uc-game {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.uc-title {
  margin-top: 0;
  color: var(--text-primary);
}

/* Role Card */
.uc-role-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  color: white;
  /* Default gradient - overridden by role classes */
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(118, 75, 162, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.uc-role-civil {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.35));
  border-color: rgba(16, 185, 129, 0.3);
}

.uc-role-imposteur {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.35));
  border-color: rgba(239, 68, 68, 0.3);
}

.uc-role-mr_white {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(124, 58, 237, 0.35));
  border-color: rgba(139, 92, 246, 0.3);
}

.uc-role-label,
.uc-word-label {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
}

.uc-role-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: white;
}

.uc-word-value {
  font-size: 1.4rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  display: inline-block;
  color: white;
  backdrop-filter: blur(4px);
}

/* Hidden Drinks */
.uc-hidden-drinks {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  text-align: center;
  color: #fbbf24;
}

/* Phase sections */
.uc-phase {
  margin-top: 0.5rem;
}

.uc-phase-title {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

/* Clues List */
.uc-clues-list {
  max-height: 150px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.uc-clue-item {
  padding: 0.3rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.uc-clue-item:last-child {
  border-bottom: none;
}

.uc-clue-item strong {
  color: var(--text-primary);
}

/* Timer */
.uc-timer {
  text-align: center;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.uc-timer-label {
  font-size: 0.85rem;
  color: #fbbf24;
}

.uc-timer-value {
  font-size: 2rem;
  font-weight: 700;
  color: #fbbf24;
}

.uc-timer.uc-timer-urgent {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}

.uc-timer.uc-timer-urgent .uc-timer-value {
  color: #f87171;
  animation: pulse 0.5s infinite;
}

.uc-timer.uc-timer-expired {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.uc-timer.uc-timer-expired .uc-timer-value {
  color: #f87171;
  animation: none;
}

/* Input Row */
.uc-input-row {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
}

.uc-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.75rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}

.uc-input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.uc-input::placeholder {
  color: var(--text-muted);
}

/* Buttons */
.uc-btn-send {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.3)) !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
  color: #c4b5fd !important;
  font-weight: 600 !important;
}

.uc-btn-send:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(124, 58, 237, 0.4)) !important;
}

/* Vote Row */
.uc-vote-row {
  gap: 0.5rem;
}

.uc-select {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.75rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
}

.uc-select option {
  background: #1a1a2e;
  color: var(--text-primary);
}

.uc-btn-vote {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.3)) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  color: #fca5a5 !important;
  font-weight: 600 !important;
}

.uc-btn-vote:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.4)) !important;
}

/* Guess Row */
.uc-guess-row {
  margin-top: 1rem;
}

.uc-guess-prompt {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.uc-guess-prompt strong {
  color: #f87171;
}

.uc-btn-guess {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.3)) !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
  color: #c4b5fd !important;
  font-weight: 600 !important;
}

/* Elimination Banner */
.uc-elimination {
  margin-top: 0.75rem;
}

.uc-elimination-banner {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
}

.uc-elimination-banner strong {
  color: #fbbf24;
}

/* Winner Card */
.uc-winner {
  margin-top: 1rem;
}

.uc-winner-card {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 2rem;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.1);
}

.uc-winner-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.uc-winner-heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 0.5rem;
}

.uc-winner-team {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.uc-winner-reason {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* Words Reveal */
.uc-words-reveal {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  border: 1px solid var(--glass-border);
}

.uc-words-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.uc-words-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.uc-word-pill {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  color: white;
}

.uc-word-civil {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.uc-word-impostor {
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.uc-word-pill small {
  opacity: 0.8;
  margin-right: 0.25rem;
}

/* Restart Button */
.uc-btn-restart {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid var(--glass-border) !important;
  color: var(--text-primary) !important;
  padding: 0.75rem 2rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
}

.uc-btn-restart:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* ============================================
   ROULETTE GAME STYLES
   ============================================ */

.roulette-game {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* --- Toast system --- */
.roulette-toast-container {
  position: fixed;
  top: 70px;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.roulette-toast {
  background: rgba(30, 30, 50, 0.92);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  animation: rouletteToastIn 0.3s ease-out;
  max-width: 280px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.roulette-toast-spin {
  border-color: rgba(139, 92, 246, 0.4);
}

.roulette-toast-probs {
  border-color: rgba(251, 191, 36, 0.4);
}

.roulette-toast-out {
  animation: rouletteToastOut 0.3s ease-in forwards;
}

@keyframes rouletteToastIn {
  from { opacity: 0; transform: translateX(40px) scale(0.9); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes rouletteToastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

/* --- Turn indicator --- */
.roulette-turn-indicator {
  text-align: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.roulette-turn-label {
  color: var(--text-muted);
}

.roulette-turn-name {
  color: var(--text-primary);
  font-weight: 600;
}

.roulette-turn-me {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
}

.roulette-turn-me .roulette-turn-name {
  color: #c4b5fd;
}

/* --- Probability sliders --- */
.roulette-prob-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.roulette-probs-hidden {
  display: none !important;
}

.roulette-label-soft {
  color: #6ee7b7 !important;
}

.roulette-label-med {
  color: #fbbf24 !important;
}

.roulette-label-hard {
  color: #f87171 !important;
}

.roulette-prob-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.roulette-btn-save {
  flex: 1;
}

.roulette-btn-spin {
  flex: 1;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.3)) !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
  color: #c4b5fd !important;
  font-weight: 600 !important;
}

.roulette-btn-spin:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(124, 58, 237, 0.4)) !important;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

/* --- Warning --- */
.roulette-warning {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  font-weight: 600;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
}

/* --- Wheel --- */
.wheel-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0.5rem auto;
  transition: filter 0.3s ease;
}

.wheel-wrap.wheel-spinning {
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.5));
}

.wheel-canvas {
  width: 280px;
  height: 280px;
}

.wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 20px solid #c4b5fd;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  z-index: 2;
}

/* --- Result card --- */
.roulette-result {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.roulette-result-reveal {
  animation: rouletteResultReveal 0.5s ease-out;
}

@keyframes rouletteResultReveal {
  0% { opacity: 0; transform: scale(0.95); }
  50% { transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

.roulette-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0;
  color: var(--text-primary);
}

.roulette-result-dare-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
}

.roulette-result-label {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.roulette-result-value {
  font-weight: 600;
  color: var(--text-primary);
}

.roulette-result-dare {
  font-weight: 600;
  color: #c4b5fd;
  font-size: 1.05rem;
  line-height: 1.3;
}

/* --- Category badges --- */
.roulette-cat-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.roulette-cat-soft {
  background: rgba(34, 197, 94, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.roulette-cat-medium {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.roulette-cat-hard {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* --- Vote progress --- */
.roulette-vote-progress {
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
}

.roulette-vote-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.roulette-vote-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.roulette-vote-bar {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 0%;
}

.roulette-vote-avatars {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.roulette-vote-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  opacity: 0.7;
}

/* --- Judge Row --- */
.roulette-judge-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.roulette-btn-success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.3)) !important;
  border: 1px solid rgba(34, 197, 94, 0.4) !important;
  color: #6ee7b7 !important;
  font-weight: 600 !important;
  flex: 1;
  font-size: 1rem !important;
  padding: 0.7rem 1rem !important;
}

.roulette-btn-success:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(16, 185, 129, 0.4)) !important;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.roulette-btn-fail {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.3)) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  color: #fca5a5 !important;
  font-weight: 600 !important;
  flex: 1;
  font-size: 1rem !important;
  padding: 0.7rem 1rem !important;
}

.roulette-btn-fail:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.4)) !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.roulette-judge-info {
  text-align: center;
  margin-top: 0.25rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* --- Outcome --- */
.roulette-outcome {
  margin-top: 0.5rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.roulette-outcome-reveal {
  animation: rouletteOutcomeReveal 0.5s ease-out;
}

@keyframes rouletteOutcomeReveal {
  0% { opacity: 0; transform: scale(0.8); }
  60% { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

.roulette-outcome-icon {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.roulette-outcome-sips {
  font-size: 0.9rem;
  margin-top: 0.3rem;
  opacity: 0.9;
}

.roulette-outcome-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #6ee7b7;
}

.roulette-outcome-success .roulette-outcome-icon {
  color: #4ade80;
}

.roulette-outcome-fail {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.roulette-outcome-fail .roulette-outcome-icon {
  color: #ef4444;
}

/* --- Next Row --- */
.roulette-next-row {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.roulette-btn-next {
  padding: 0.7rem 2rem !important;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.3)) !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
  color: #c4b5fd !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
}

.roulette-btn-next:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(124, 58, 237, 0.4)) !important;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

/* --- History --- */
.roulette-history-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  margin-bottom: 0.3rem;
}

.roulette-history {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.roulette-history-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.roulette-history-rank {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  min-width: 1.2rem;
  text-align: center;
}

.roulette-history-name {
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}

.roulette-history-cat {
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  white-space: nowrap;
}

.roulette-history-dare {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================
   QUIZ GAME STYLES
   ============================================ */

.quiz-game {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quiz-title-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.quiz-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quiz-pill {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.quiz-countdown-pill {
  font-weight: 700;
  color: #fbbf24;
}

/* Question */
.quiz-question {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 1rem;
  background: rgba(139, 92, 246, 0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(139, 92, 246, 0.15);
  text-align: center;
  line-height: 1.4;
}

/* Answer Grid */
.quiz-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.quiz-ans-btn {
  padding: 0.75rem 1rem !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  transition: all 0.15s ease !important;
  min-height: 48px;
}

.quiz-ans-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.quiz-ans-btn:disabled {
  opacity: 0.6;
}

.quiz-ans-correct {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.3)) !important;
  border-color: rgba(34, 197, 94, 0.5) !important;
  color: #6ee7b7 !important;
}

.quiz-ans-wrong {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.3)) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #fca5a5 !important;
}

/* Status */
.quiz-status {
  text-align: center;
  font-size: 0.9rem;
}

/* Feedback */
.quiz-feedback {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-top: 0.25rem;
  animation: palmier-card-appear 0.3s ease-out;
}

.quiz-feedback-content {
  text-align: center;
}

.quiz-feedback-icon {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.quiz-feedback-text {
  font-weight: 600;
  font-size: 0.95rem;
}

.quiz-feedback-first {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #6ee7b7;
}

.quiz-feedback-correct {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.quiz-feedback-wrong {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* Host Row */
.quiz-host-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.quiz-btn-next {
  padding: 0.6rem 1.5rem !important;
}

/* Responsive quiz: single column on small screens */
@media (max-width: 480px) {
  .quiz-answers {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   MOST LIKELY TO GAME STYLES
   ============================================ */

#mostlikelyBox {
  min-height: 350px;
}

/* Mode buttons highlight when selected */
#mostlikelySoft.selected,
#mostlikelyMid.selected,
#mostlikelyNsfw.selected {
  transform: scale(1.05);
  box-shadow: 0 0 15px currentColor;
}

/* ============================================
   LIMITE LIMITE GAME STYLES
   ============================================ */

.ll-game {
  min-height: 400px;
}

.ll-title {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.ll-info-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.ll-round-pill {
  background: rgba(225, 29, 72, 0.15);
  color: #fb7185;
  font-weight: 600;
}

.ll-judge-pill {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  font-weight: 600;
}

.ll-judge-pill.ll-judge-me {
  background: rgba(251, 191, 36, 0.25);
  color: #fde68a;
  animation: llPulse 2s ease-in-out infinite;
}

@keyframes llPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Setup */
.ll-setup-desc {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.ll-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ll-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
}

.ll-mode-btn.selected {
  border-color: var(--game-limitelimite);
  background: rgba(225, 29, 72, 0.15);
}

.ll-mode-btn.ll-mode-soft.selected { border-color: #f9a8d4; background: rgba(249, 168, 212, 0.15); }
.ll-mode-btn.ll-mode-mid.selected { border-color: #f97316; background: rgba(249, 115, 22, 0.15); }
.ll-mode-btn.ll-mode-nsfw.selected { border-color: #e11d48; background: rgba(225, 29, 72, 0.15); }

.ll-mode-icon { font-size: 1.5rem; }
.ll-mode-label { font-weight: 600; color: var(--text-primary); }
.ll-mode-desc { font-size: 0.75rem; color: var(--text-muted); }

.ll-start-btn {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: white;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Black Card */
.ll-black-card-box {
  background: #1a1a2e;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.ll-black-card-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e11d48, #f97316, #e11d48);
}

.ll-black-card-text {
  color: #f1f5f9;
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

.ll-result-black {
  opacity: 0.7;
  transform: scale(0.95);
}

/* White Cards (hand) */
.ll-hand-area {
  margin-top: 0.5rem;
}

.ll-hand-label,
.ll-judge-label,
.ll-result-all-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.ll-hand-grid,
.ll-choices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ll-white-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.75rem 0.6rem;
  color: var(--text-primary);
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.4;
}

.ll-white-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.ll-white-card:active {
  transform: scale(0.97);
}

.ll-card-selected {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

/* Judge Waiting */
.ll-judge-waiting {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--text-secondary);
}

.ll-judge-waiting-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.ll-progress-text {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 0.5rem;
}

.ll-progress {
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Submitted confirmation */
.ll-submitted-msg {
  text-align: center;
  padding: 1.5rem;
  color: #4ade80;
  font-size: 1rem;
}

.ll-submitted-icon {
  display: inline-block;
  font-size: 1.5rem;
  margin-right: 0.3rem;
}

/* Result */
.ll-result-winner-card-box {
  background: rgba(34, 197, 94, 0.1);
  border: 2px solid rgba(34, 197, 94, 0.3);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  animation: llReveal 0.5s ease-out;
}

.ll-result-winner-card-text {
  color: #4ade80;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
}

@keyframes llReveal {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.ll-result-winner {
  text-align: center;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.ll-winner-icon {
  font-size: 1.5rem;
}

.ll-winner-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fbbf24;
}

/* All submissions reveal */
.ll-result-cards {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.ll-result-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
}

.ll-result-card-winner {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.08);
}

.ll-result-card-text {
  color: var(--text-primary);
  font-size: 0.85rem;
  flex: 1;
}

.ll-result-card-author {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-left: 0.5rem;
  white-space: nowrap;
}

/* Distribution */
.ll-dist-card {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.ll-dist-title {
  color: #fbbf24;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

.ll-dist-players {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.ll-dist-done {
  text-align: center;
  color: #4ade80;
  padding: 0.5rem;
  font-weight: 600;
}

.ll-dist-waiting {
  text-align: center;
  color: var(--text-secondary);
  padding: 0.5rem;
}

/* Next & controls */
.ll-next-row {
  justify-content: center;
  margin-top: 0.5rem;
}

.ll-btn-next {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: white;
  font-weight: 600;
}

.ll-change-mode-row {
  text-align: center;
  margin-top: 0.5rem;
}

.ll-rules {
  text-align: center;
  font-size: 0.8rem;
  margin-top: 0.75rem;
}

/* Responsive */
@media (max-width: 480px) {
  .ll-hand-grid,
  .ll-choices-grid {
    grid-template-columns: 1fr;
  }
  .ll-black-card-text {
    font-size: 1rem;
  }
  .ll-white-card {
    font-size: 0.8rem;
  }
}

/* ============================================
   TIMES-UP GAME STYLES
   ============================================ */

/* ============================================
   TIMES-UP GAME — Dark Theme
   ============================================ */

#timesupBox {
  min-height: 850px;
}

/* --- Banner --- */
.timesup-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.35) 100%) !important;
  color: #fbbf24 !important;
  font-size: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

/* --- Setup Phase --- */
.timesup-setup-header {
  text-align: center;
  padding: 2rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
}
.timesup-setup-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: timesupBounce 2s infinite;
}
.timesup-setup-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}
.timesup-setup-subtitle {
  margin: 0;
  font-size: 1.1rem;
  color: #fbbf24;
}

/* --- Waiting cards --- */
.timesup-waiting-card {
  text-align: center;
  padding: 1.5rem;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}
.timesup-waiting-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* --- Team assignment checkboxes (JS-rendered) --- */
.timesup-team-section {
  margin-bottom: 1rem;
}
.timesup-team-section h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}
.timesup-team-label-t1 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 6px;
  color: #6ee7b7;
  cursor: pointer;
  transition: var(--transition-normal);
}
.timesup-team-label-t1:hover {
  background: rgba(16, 185, 129, 0.18);
}
.timesup-team-label-t2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 6px;
  color: #93c5fd;
  cursor: pointer;
  transition: var(--transition-normal);
}
.timesup-team-label-t2:hover {
  background: rgba(59, 130, 246, 0.18);
}

/* --- Buttons --- */
.timesup-btn-validate {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  margin-bottom: 0.5rem;
}
.timesup-btn-start {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
}
.timesup-btn-found {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}
.timesup-btn-found:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.5);
}
.timesup-btn-found:active {
  transform: translateY(0);
}
.timesup-btn-pass {
  background: rgba(139, 92, 246, 0.15);
  border: 2px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}
.timesup-btn-pass:hover {
  transform: translateY(-3px);
  background: rgba(139, 92, 246, 0.25);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.3);
}
.timesup-btn-pass:active {
  transform: translateY(0);
}
.timesup-btn-end {
  padding: 0.75rem 1.5rem;
}
.timesup-speaker-btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* --- Rules card --- */
.timesup-rules-card {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}
.timesup-rules-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.timesup-rules-text strong {
  color: #fbbf24;
}

/* --- Round indicator card --- */
.timesup-round-card {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-top: 1rem;
  transition: border-color 0.3s;
}
.timesup-round-card.round1 { border-color: rgba(59, 130, 246, 0.4); }
.timesup-round-card.round2 { border-color: rgba(139, 92, 246, 0.4); }
.timesup-round-card.round3 { border-color: rgba(236, 72, 153, 0.4); }

/* --- Scores & info rows --- */
.timesup-scores-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.timesup-info-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

/* --- Cards remaining pill --- */
.timesup-cards-remaining-pill {
  background: rgba(220, 38, 38, 0.1);
  color: #fca5a5;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 2px solid rgba(220, 38, 38, 0.3);
  font-weight: 600;
  display: inline-block;
}
.timesup-cards-remaining-pill span {
  font-size: 1.1rem;
}

/* --- Circular Timer --- */
.timesup-timer-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1rem;
}
.timesup-timer-svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}
.timesup-timer-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 8;
}
.timesup-timer-progress {
  fill: none;
  stroke: #4ade80;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.15s linear, stroke 0.3s;
}
.timesup-timer-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.timesup-timer-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.timesup-timer-value {
  font-size: 2rem;
  font-weight: 700;
  color: #4ade80;
  transition: color 0.3s;
}
/* Timer color states via JS data-state attribute */
.timesup-timer-container[data-state="warning"] .timesup-timer-progress { stroke: #fbbf24; }
.timesup-timer-container[data-state="warning"] .timesup-timer-value { color: #fbbf24; }
.timesup-timer-container[data-state="danger"] .timesup-timer-progress { stroke: #ef4444; }
.timesup-timer-container[data-state="danger"] .timesup-timer-value { color: #ef4444; }
.timesup-timer-container[data-state="danger"] {
  animation: timesupTimerShake 0.4s ease-in-out infinite;
}

/* --- Current Card (speaker) --- */
.timesup-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(245, 158, 11, 0.1);
  border: 2px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fbbf24;
  min-height: 50px;
  animation: timesupCardPulse 2s ease-in-out infinite;
  transition: transform 0.3s, background 0.3s;
}
.timesup-card.timesup-card-found {
  animation: timesupCardFound 0.5s ease-out;
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #4ade80;
}

/* --- Found counter --- */
.timesup-found-counter {
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  display: inline-block;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.timesup-found-counter span {
  font-size: 1.1rem;
  font-weight: 700;
}

/* --- Spectator card --- */
.timesup-spectator-card {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-top: 1rem;
}
.timesup-spectator-header {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.timesup-spectator-stats {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.timesup-spectator-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.timesup-spectator-stat strong {
  color: var(--text-primary);
}

/* --- Round Transition Overlay --- */
.timesup-round-transition {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}
.timesup-transition-content {
  text-align: center;
  animation: timesupTransitionIn 0.6s ease-out;
}
.timesup-transition-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.timesup-transition-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.timesup-transition-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* --- Finished Phase --- */
.timesup-finished-card {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-top: 1rem;
}
.timesup-trophy {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.timesup-finished-title {
  margin: 0 0 1rem 0;
  color: var(--text-primary);
}

/* --- Toast Notifications --- */
.timesup-toasts {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  width: 90%;
  max-width: 360px;
}
.timesup-toast {
  background: rgba(30, 30, 40, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  animation: timesupToastIn 0.3s ease-out forwards;
  pointer-events: auto;
}
.timesup-toast.timesup-toast-out {
  animation: timesupToastOut 0.3s ease-in forwards;
}
.timesup-toast-found {
  border-color: rgba(16, 185, 129, 0.4);
}
.timesup-toast-pass {
  border-color: rgba(139, 92, 246, 0.4);
}
.timesup-toast-round {
  border-color: rgba(245, 158, 11, 0.5);
  font-size: 1rem;
  font-weight: 700;
}
.timesup-toast-turnend {
  border-color: rgba(59, 130, 246, 0.4);
}

/* --- Animations --- */
@keyframes timesupBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes timesupCardPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
@keyframes timesupCardFound {
  0% { transform: scale(1); }
  30% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 0.7; }
}
@keyframes timesupTimerShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}
@keyframes timesupTransitionIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes timesupToastIn {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes timesupToastOut {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-20px); opacity: 0; }
}
@keyframes timesupScorePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ============================================
   BLIND TEST CATEGORY SELECTION STYLES
   ============================================ */

.blindtest-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 0.5rem;
}

@media (min-width: 500px) {
  .blindtest-category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.blindtest-category-card {
  position: relative;
  background: var(--card-gradient, linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%));
  border-radius: 16px;
  padding: 1.25rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: 3px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Glassmorphism overlay */
.blindtest-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.05) 100%);
  border-radius: 13px;
  pointer-events: none;
}

/* Shine effect */
.blindtest-category-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255,255,255,0.1) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.blindtest-category-card:hover::after {
  transform: translateX(100%);
}

.blindtest-category-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.blindtest-category-card.selected {
  border-color: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.3), 0 12px 40px rgba(0, 0, 0, 0.25);
  transform: scale(1.03);
}

.blindtest-category-card .category-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  position: relative;
  z-index: 1;
}

.blindtest-category-card .category-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 1;
}

.blindtest-category-card .category-desc {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.blindtest-category-card .category-count {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(5px);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  position: relative;
  z-index: 1;
}

.blindtest-category-card .category-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: white;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.5);
  z-index: 2;
}

.blindtest-category-card.selected .category-check {
  opacity: 1;
  transform: scale(1);
}

/* "All categories" special card */
.blindtest-category-card[data-category="all"] {
  grid-column: span 2;
}

@media (min-width: 500px) {
  .blindtest-category-card[data-category="all"] {
    grid-column: span 4;
  }
}

/* Disabled button state for start */
#blindtestStartCategories:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#blindtestStartCategories:not(:disabled):hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.5);
}

#blindtestStartCategories:not(:disabled):active {
  transform: translateY(0);
}

/* ============================================
   GAME PAGE — RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
  .game-page-container {
    padding: 0.5rem;
  }

  .lobby-container {
    border-radius: var(--radius-lg);
  }

  .lobby-header {
    padding: 1.25rem 1rem;
  }

  .lobby-header h1 {
    font-size: 1.2rem;
  }

  .lobby-code-value {
    font-size: 1.5rem;
  }

  .lobby-container > *:not(.lobby-header):not(.chat-section):not(.connection-status) {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }

  .lobby-container > .chat-section {
    margin: 0 0.75rem 0.5rem;
  }

  .lobby-container > .connection-status {
    margin: 0 0.75rem 0.75rem;
  }

  .player-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.5rem;
  }

  .player-avatar {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .player-name {
    font-size: 0.8rem;
  }

  .host-actions-btns {
    flex-direction: column;
  }

  .host-action-btn {
    min-width: unset;
  }

  #quizAnswers {
    grid-template-columns: 1fr;
  }

  .wheel-wrap {
    width: 240px;
    height: 240px;
  }
}

/* ============================================
   CUSTOM SCROLLBAR — DARK THEME
   ============================================ */
.modern-theme ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.modern-theme ::-webkit-scrollbar-track {
  background: transparent;
}

.modern-theme ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.modern-theme ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   INLINE STYLE OVERRIDES FOR DARK THEME
   Game HTML uses many inline styles with light
   theme colors — override them here
   ============================================ */
.lobby-container [style*="color:#1f2937"],
.lobby-container [style*="color: #1f2937"] {
  color: var(--text-primary) !important;
}

.lobby-container [style*="color:#64748b"],
.lobby-container [style*="color: #64748b"],
.lobby-container [style*="color:#6b7280"],
.lobby-container [style*="color: #6b7280"] {
  color: var(--text-muted) !important;
}

.lobby-container [style*="color:#92400e"],
.lobby-container [style*="color: #92400e"] {
  color: #fbbf24 !important;
}

.lobby-container [style*="color:#78350f"],
.lobby-container [style*="color: #78350f"] {
  color: #fcd34d !important;
}

.lobby-container [style*="color:#334155"],
.lobby-container [style*="color: #334155"] {
  color: var(--text-secondary) !important;
}

.lobby-container [style*="color:#374151"],
.lobby-container [style*="color: #374151"] {
  color: var(--text-secondary) !important;
}

.lobby-container [style*="color:#166534"],
.lobby-container [style*="color: #166534"] {
  color: #6ee7b7 !important;
}

.lobby-container [style*="color:#065f46"],
.lobby-container [style*="color: #065f46"] {
  color: #6ee7b7 !important;
}

.lobby-container [style*="color:#047857"],
.lobby-container [style*="color: #047857"] {
  color: #34d399 !important;
}

.lobby-container [style*="color:#0369a1"],
.lobby-container [style*="color: #0369a1"] {
  color: #7dd3fc !important;
}

.lobby-container [style*="color:#1e40af"],
.lobby-container [style*="color: #1e40af"] {
  color: #93c5fd !important;
}

.lobby-container [style*="color:#5b21b6"],
.lobby-container [style*="color: #5b21b6"] {
  color: #c4b5fd !important;
}

.lobby-container [style*="color:#7c3aed"],
.lobby-container [style*="color: #7c3aed"] {
  color: #a78bfa !important;
}

.lobby-container [style*="color:#4338ca"],
.lobby-container [style*="color: #4338ca"] {
  color: #a5b4fc !important;
}

.lobby-container [style*="color:#b91c1c"],
.lobby-container [style*="color: #b91c1c"] {
  color: #fca5a5 !important;
}

.lobby-container [style*="color:#991b1b"],
.lobby-container [style*="color: #991b1b"] {
  color: #fca5a5 !important;
}

.lobby-container [style*="color:#b45309"],
.lobby-container [style*="color: #b45309"] {
  color: #fcd34d !important;
}

/* Override inline backgrounds for glass effect */
.lobby-container [style*="background:#f8fafc"],
.lobby-container [style*="background: #f8fafc"],
.lobby-container [style*="background:#f1f5f9"],
.lobby-container [style*="background: #f1f5f9"],
.lobby-container [style*="background:#f3f4f6"],
.lobby-container [style*="background: #f3f4f6"] {
  background: rgba(255, 255, 255, 0.04) !important;
}

.lobby-container [style*="background:white"],
.lobby-container [style*="background: white"],
.lobby-container [style*="background:#fff"],
.lobby-container [style*="background: #fff"],
.lobby-container [style*="background:#ffffff"],
.lobby-container [style*="background: #ffffff"] {
  background: rgba(255, 255, 255, 0.06) !important;
}

/* Override gradient backgrounds to darker versions */
.lobby-container [style*="background:linear-gradient(135deg, #f0f4ff"],
.lobby-container [style*="background:linear-gradient(135deg, #f0f9ff"],
.lobby-container [style*="background:linear-gradient(135deg, #faf5ff"],
.lobby-container [style*="background:linear-gradient(135deg, #ecfdf5"],
.lobby-container [style*="background:linear-gradient(135deg, #e0f2fe"],
.lobby-container [style*="background:linear-gradient(135deg, #eff6ff"] {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--glass-border) !important;
}

.lobby-container [style*="background:linear-gradient(135deg, #fef3c7"],
.lobby-container [style*="background: linear-gradient(135deg, #fef3c7"] {
  background: rgba(245, 158, 11, 0.1) !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}

.lobby-container [style*="background:linear-gradient(135deg, #fee2e2"],
.lobby-container [style*="background: linear-gradient(135deg, #fee2e2"],
.lobby-container [style*="background:linear-gradient(135deg, #fecaca"] {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

.lobby-container [style*="background:linear-gradient(135deg, #dcfce7"],
.lobby-container [style*="background: linear-gradient(135deg, #dcfce7"] {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

.lobby-container [style*="background:#e0f2fe"],
.lobby-container [style*="background: #e0f2fe"],
.lobby-container [style*="background:#dcfce7"],
.lobby-container [style*="background: #dcfce7"],
.lobby-container [style*="background:#fef3c7"],
.lobby-container [style*="background: #fef3c7"] {
  background: rgba(255, 255, 255, 0.05) !important;
}

.lobby-container [style*="background:#f0fdf4"],
.lobby-container [style*="background: #f0fdf4"],
.lobby-container [style*="background:#e0f2fe"],
.lobby-container [style*="background: #e0f2fe"] {
  background: rgba(255, 255, 255, 0.04) !important;
}

/* Override borders */
.lobby-container [style*="border:1px solid #e2e8f0"],
.lobby-container [style*="border: 1px solid #e2e8f0"],
.lobby-container [style*="border:1px solid #e4e8f2"],
.lobby-container [style*="border: 1px solid #e4e8f2"],
.lobby-container [style*="border:1px solid #ddd"],
.lobby-container [style*="border: 1px solid #ddd"] {
  border-color: var(--glass-border) !important;
}

.lobby-container [style*="border:2px solid #e2e8f0"],
.lobby-container [style*="border: 2px solid #e2e8f0"] {
  border-color: var(--glass-border) !important;
}

.lobby-container [style*="border-top:1px solid #e0e0e0"],
.lobby-container [style*="border-bottom:2px solid #e5e7eb"],
.lobby-container [style*="border-bottom: 2px solid #e5e7eb"] {
  border-color: var(--glass-border) !important;
}

/* Inline text inputs in game sections */
.lobby-container input[style*="border:2px solid #e2e8f0"],
.lobby-container input[style*="border: 2px solid #e2e8f0"],
.lobby-container input[style*="border:2px solid #d8b4fe"],
.lobby-container input[style*="border: 2px solid #d8b4fe"],
.lobby-container textarea[style*="border:2px solid #e9d5ff"],
.lobby-container textarea[style*="border: 2px solid #e9d5ff"] {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--glass-border) !important;
  color: var(--text-primary) !important;
}

.lobby-container input:focus,
.lobby-container textarea:focus {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
}

/* Suggestions dropdown in blindtest */
.lobby-container #blindtestSuggestions {
  background: var(--bg-secondary) !important;
  border-color: var(--glass-border) !important;
  box-shadow: var(--shadow-lg) !important;
}

/* Table styling (generic) */
.lobby-container table {
  color: var(--text-primary);
}

.lobby-container table th {
  color: var(--text-secondary);
}

/* ============================================
   ADDITIONAL OVERRIDES — Remaining Games
   (Auctions, Never, Liar, Blindtest,
    MostLikely, TimesUp, Gambling)
   ============================================ */

/* --- Additional gradient background overrides --- */
.lobby-container [style*="background:linear-gradient(135deg, #f3e8ff"],
.lobby-container [style*="background: linear-gradient(135deg, #f3e8ff"] {
  background: rgba(139, 92, 246, 0.08) !important;
  border-color: rgba(139, 92, 246, 0.25) !important;
}

.lobby-container [style*="background:linear-gradient(135deg, #d1fae5"],
.lobby-container [style*="background: linear-gradient(135deg, #d1fae5"] {
  background: rgba(16, 185, 129, 0.08) !important;
}

.lobby-container [style*="background:linear-gradient(135deg, #bbf7d0"],
.lobby-container [style*="background: linear-gradient(135deg, #bbf7d0"] {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

.lobby-container [style*="background:#e0e7ff"],
.lobby-container [style*="background: #e0e7ff"] {
  background: rgba(99, 102, 241, 0.15) !important;
}

.lobby-container [style*="background:#eef2ff"],
.lobby-container [style*="background: #eef2ff"] {
  background: rgba(99, 102, 241, 0.08) !important;
}

.lobby-container [style*="background:#e9d5ff"],
.lobby-container [style*="background: #e9d5ff"] {
  background: rgba(139, 92, 246, 0.12) !important;
}

.lobby-container [style*="background:#fafbff"],
.lobby-container [style*="background: #fafbff"] {
  background: rgba(255, 255, 255, 0.04) !important;
}

/* Blue badges/tags */
.lobby-container [style*="background:#dbeafe"],
.lobby-container [style*="background: #dbeafe"] {
  background: rgba(59, 130, 246, 0.12) !important;
}

.lobby-container [style*="background:#bfdbfe"],
.lobby-container [style*="background: #bfdbfe"] {
  background: rgba(59, 130, 246, 0.15) !important;
}

/* Red backgrounds */
.lobby-container [style*="background:#fee2e2"],
.lobby-container [style*="background: #fee2e2"] {
  background: rgba(239, 68, 68, 0.1) !important;
}

.lobby-container [style*="background:#fecaca"],
.lobby-container [style*="background: #fecaca"] {
  background: rgba(239, 68, 68, 0.12) !important;
}

/* Additional green vote/success backgrounds */
.lobby-container [style*="background:#f0fdf4"],
.lobby-container [style*="background: #f0fdf4"] {
  background: rgba(16, 185, 129, 0.06) !important;
}

.lobby-container [style*="background:#dcfce7"],
.lobby-container [style*="background: #dcfce7"] {
  background: rgba(16, 185, 129, 0.1) !important;
}

/* Purple/lavender backgrounds */
.lobby-container [style*="background:#faf5ff"],
.lobby-container [style*="background: #faf5ff"] {
  background: rgba(139, 92, 246, 0.06) !important;
}

/* Additional border overrides */
.lobby-container [style*="border:2px solid #e9d5ff"],
.lobby-container [style*="border: 2px solid #e9d5ff"] {
  border-color: rgba(139, 92, 246, 0.25) !important;
}

.lobby-container [style*="border:2px solid #86efac"],
.lobby-container [style*="border: 2px solid #86efac"] {
  border-color: rgba(16, 185, 129, 0.35) !important;
}

.lobby-container [style*="border:2px solid #7dd3fc"],
.lobby-container [style*="border: 2px solid #7dd3fc"] {
  border-color: rgba(56, 189, 248, 0.35) !important;
}

.lobby-container [style*="border:2px solid #fbbf24"],
.lobby-container [style*="border: 2px solid #fbbf24"] {
  border-color: rgba(251, 191, 36, 0.35) !important;
}

.lobby-container [style*="border:2px solid #dc2626"],
.lobby-container [style*="border: 2px solid #dc2626"] {
  border-color: rgba(220, 38, 38, 0.35) !important;
}

.lobby-container [style*="border:2px solid #f59e0b"],
.lobby-container [style*="border: 2px solid #f59e0b"] {
  border-color: rgba(245, 158, 11, 0.35) !important;
}

.lobby-container [style*="border:2px solid #10b981"],
.lobby-container [style*="border: 2px solid #10b981"] {
  border-color: rgba(16, 185, 129, 0.35) !important;
}

.lobby-container [style*="border:3px solid #10b981"],
.lobby-container [style*="border: 3px solid #10b981"] {
  border-color: rgba(16, 185, 129, 0.4) !important;
}

.lobby-container [style*="border:3px solid #e2e8f0"],
.lobby-container [style*="border: 3px solid #e2e8f0"] {
  border-color: var(--glass-border) !important;
}

.lobby-container [style*="border:1px solid #fbbf24"],
.lobby-container [style*="border: 1px solid #fbbf24"] {
  border-color: rgba(251, 191, 36, 0.3) !important;
}

.lobby-container [style*="border:1px solid #22c55e"],
.lobby-container [style*="border: 1px solid #22c55e"] {
  border-color: rgba(34, 197, 94, 0.3) !important;
}

.lobby-container [style*="border:1px solid #f59e0b"],
.lobby-container [style*="border: 1px solid #f59e0b"] {
  border-color: rgba(245, 158, 11, 0.3) !important;
}

.lobby-container [style*="border:1px solid #ef4444"],
.lobby-container [style*="border: 1px solid #ef4444"] {
  border-color: rgba(239, 68, 68, 0.3) !important;
}

.lobby-container [style*="border:1px solid #e6e6ea"],
.lobby-container [style*="border: 1px solid #e6e6ea"] {
  border-color: var(--glass-border) !important;
}

/* Additional blue text color overrides */
.lobby-container [style*="color:#0369a1"],
.lobby-container [style*="color: #0369a1"] {
  color: #7dd3fc !important;
}

.lobby-container [style*="color:#3b82f6"],
.lobby-container [style*="color: #3b82f6"] {
  color: #93c5fd !important;
}

.lobby-container [style*="color:#6366f1"],
.lobby-container [style*="color: #6366f1"] {
  color: #a5b4fc !important;
}

.lobby-container [style*="color:#dc2626"],
.lobby-container [style*="color: #dc2626"] {
  color: #fca5a5 !important;
}

.lobby-container [style*="color:#d97706"],
.lobby-container [style*="color: #d97706"] {
  color: #fbbf24 !important;
}

.lobby-container [style*="color:#8b5cf6"],
.lobby-container [style*="color: #8b5cf6"] {
  color: #c4b5fd !important;
}

/* --- Auctions game specific --- */
#auctionsBox {
  border-color: var(--glass-border) !important;
  background: transparent !important;
}

#auctionsBoard {
  background: rgba(255, 255, 255, 0.04) !important;
}

#auctionsBoardTitle {
  color: #a5b4fc !important;
}

#auctionsCategory {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-primary) !important;
  border-color: var(--glass-border) !important;
}

#auctionsCategory:focus {
  border-color: var(--accent-primary) !important;
}

#auctionSecretValue {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-primary) !important;
  border-color: var(--glass-border) !important;
}

/* --- Never Have I Ever specific (dark overrides) --- */
#neverBox {
  background: transparent !important;
  border-color: var(--glass-border) !important;
}

/* --- Blindtest specific --- */
#blindtestBox {
  background: transparent !important;
  border-color: var(--glass-border) !important;
}

#blindtestInput {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-primary) !important;
}

#blindtestCorrectList {
  background: rgba(255, 255, 255, 0.04) !important;
}

#blindtestCategoriesInfo {
  background: rgba(255, 255, 255, 0.04) !important;
}

#blindtestReward {
  color: #c4b5fd !important;
}

#blindtestAnswerSection {
  background: rgba(139, 92, 246, 0.06) !important;
  border-color: rgba(139, 92, 246, 0.25) !important;
}

#blindtestFoundMessage {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #6ee7b7 !important;
}

#blindtestReveal {
  background: rgba(56, 189, 248, 0.08) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
}

#blindtestTurnProgress {
  background: rgba(56, 189, 248, 0.08) !important;
  color: #7dd3fc !important;
}

#blindtestBlockedMessage {
  background: rgba(245, 158, 11, 0.1) !important;
  color: #fbbf24 !important;
  border-color: rgba(251, 191, 36, 0.3) !important;
}

#blindtestWaitingMessage {
  background: rgba(56, 189, 248, 0.08) !important;
  color: #7dd3fc !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
}

#blindtestDistribution {
  background: rgba(245, 158, 11, 0.08) !important;
  border-color: rgba(251, 191, 36, 0.3) !important;
}

/* Blindtest category grid cards */
.blindtest-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.blindtest-category-grid > div {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--glass-border) !important;
  color: var(--text-primary) !important;
}

.blindtest-category-grid > div.selected,
.blindtest-category-grid > div:hover {
  background: rgba(139, 92, 246, 0.12) !important;
  border-color: rgba(139, 92, 246, 0.4) !important;
}

/* --- MostLikely specific --- */
#mostlikelyBox {
  background: transparent !important;
}

#mostlikelyModeIndicator {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #6ee7b7 !important;
}

/* --- TimesUp specific (dark override) --- */
#timesupBox {
  background: transparent !important;
}

/* --- Gambling specific --- */
#gamblingModal {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--glass-border) !important;
}

#gamblingDistSummary {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--text-muted) !important;
}

/* --- Generic h3/h2 inside game sections --- */
.lobby-container h3[style*="color:#1f2937"],
.lobby-container h3[style*="color: #1f2937"],
.lobby-container h2[style*="color:#1f2937"] {
  color: var(--text-primary) !important;
}

/* Select elements inside games */
.lobby-container select[style*="border:1px solid #ddd"],
.lobby-container select[style*="border: 1px solid #ddd"] {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-primary) !important;
  border-color: var(--glass-border) !important;
}

/* Generic muted text in game sections */
.lobby-container .muted {
  color: var(--text-muted) !important;
}

/* Override inline box-shadow on game buttons */
.lobby-container .btn[style*="box-shadow"] {
  box-shadow: none !important;
}

/* Override inline onfocus border color changes */
.lobby-container input[onfocus] {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-primary) !important;
}

.lobby-container input[onfocus]:focus {
  border-color: var(--accent-primary) !important;
}

/* ============================================
   GAME-SPECIFIC CSS CLASSES
   (Replacing inline styles in JS templates)
   ============================================ */

/* --- Shared Timer Urgency --- */
.timer-urgent {
  background: rgba(220, 38, 38, 0.15) !important;
  border-color: rgba(220, 38, 38, 0.4) !important;
  color: #fca5a5 !important;
}

.timer-pulse {
  animation: pulse 0.5s infinite !important;
}

/* --- Liar Game Classes --- */
.liar-reveal-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.liar-reveal-value {
  font-size: 2rem;
  font-weight: 700;
}

.liar-truth-vrai {
  color: #4ade80;
}

.liar-truth-faux {
  color: #f87171;
}

.liar-vote-pills {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0;
}

.liar-pill-vrai {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #6ee7b7 !important;
}

.liar-pill-faux {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fca5a5 !important;
}

.liar-vote-summary {
  font-size: 0.9rem;
}

.liar-outcome {
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1rem;
}

.liar-outcome-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.liar-outcome-fail {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.liar-outcome-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.liar-outcome-detail {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.liar-wrong-voters {
  background: rgba(245, 158, 11, 0.1);
  padding: 0.75rem;
  border-radius: 8px;
  margin-top: 0.75rem;
}

.liar-wrong-voters-text {
  font-size: 0.9rem;
  color: #fbbf24;
}

.liar-history-item {
  font-size: 0.85rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--glass-border);
}

/* ============================================
   NEVER HAVE I EVER — Dark Theme Classes
   ============================================ */

/* --- Layout --- */
.never-box {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
  background: rgba(255, 255, 255, 0.03);
}
.never-banner {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(168, 85, 247, 0.35));
  color: #f0abfc;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(168, 85, 247, 0.3);
}
.never-banner-title {
  font-size: 1.3rem;
  font-weight: 700;
}
.never-mode-row {
  margin-bottom: 1rem;
  text-align: center;
}
.never-mode-pill {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.never-turn-card {
  background: rgba(251, 191, 36, 0.1);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  text-align: center;
  margin-bottom: 1rem;
}
.never-turn-label {
  color: #fbbf24;
}
.never-turn-name {
  color: #fbbf24;
  margin-left: 0.25rem;
}

/* --- Prompt card --- */
.never-prompt-card {
  background: rgba(56, 189, 248, 0.08);
  padding: 1.5rem;
  border-radius: 10px;
  border: 2px solid rgba(56, 189, 248, 0.25);
  text-align: center;
  margin-bottom: 1rem;
  transition: all 0.4s ease;
}
.never-prompt-card.never-prompt-reveal {
  animation: neverPromptReveal 0.5s ease-out;
}
.never-prompt-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #38bdf8;
}

/* --- Vote progress bar --- */
.never-vote-progress {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
}
.never-vote-progress-label {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.never-vote-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.never-vote-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0%;
}
.never-vote-avatars {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  flex-wrap: wrap;
}
.never-vote-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  transition: all 0.3s;
}
.never-vote-avatar.voted {
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
  transform: scale(1.1);
}
.never-vote-avatar.not-voted {
  opacity: 0.35;
  filter: grayscale(0.5);
}

/* --- Drinks leaderboard --- */
.never-leaderboard {
  margin-bottom: 1rem;
}
.never-leaderboard-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.never-leaderboard-row.never-lb-me {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--text-primary);
}
.never-lb-rank {
  font-weight: 700;
  width: 1.5rem;
  text-align: center;
}
.never-lb-name {
  flex: 1;
}
.never-lb-drinks {
  font-weight: 700;
  color: #fbbf24;
}
.never-lb-drinks.never-lb-pop {
  animation: neverDrinkPop 0.4s ease-out;
}

/* --- Outcome card --- */
.never-outcome-container {
  margin-top: 0.5rem;
}
.never-outcome-card {
  background: rgba(139, 92, 246, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 1rem;
  border-radius: 12px;
  animation: neverOutcomeIn 0.4s ease-out;
}
.never-outcome-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.never-outcome-detail {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.never-outcome-pills {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 0.75rem 0;
}
.never-penalty-box {
  background: rgba(245, 158, 11, 0.1);
  padding: 0.75rem;
  border-radius: 8px;
  margin-top: 0.75rem;
}
.never-penalty-text {
  font-size: 0.9rem;
  color: #fbbf24;
}
.never-safe-box {
  background: rgba(16, 185, 129, 0.1);
  padding: 0.75rem;
  border-radius: 8px;
  margin-top: 0.75rem;
}
.never-safe-text {
  font-size: 0.9rem;
  color: #6ee7b7;
}

/* --- Input section --- */
.never-prompt-row {
  border: 2px solid rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.06);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.never-prompt-row-title {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: #a78bfa;
  font-weight: 600;
}
.never-timer {
  text-align: center;
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 8px;
}
.never-timer-icon {
  font-size: 0.85rem;
  color: #fbbf24;
}
.never-timer-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fbbf24;
}
.never-input {
  display: block;
  width: 100%;
  padding: 0.75rem;
  border: 2px solid rgba(139, 92, 246, 0.25);
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1rem;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}
.never-choice-btns {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.never-choice-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}
#neverHaveBtn.never-btn-selected {
  background: rgba(34, 197, 94, 0.2) !important;
  color: #4ade80 !important;
  border: 2px solid rgba(34, 197, 94, 0.5) !important;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
  transform: scale(1.05);
}
#neverNeverBtn.never-btn-selected {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
  border: 2px solid rgba(239, 68, 68, 0.5) !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
  transform: scale(1.05);
}
.never-send-btn {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-normal);
}
.never-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* --- Auto ideas --- */
.never-auto-row {
  text-align: center;
  margin-bottom: 1rem;
}
.never-idea-btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  margin: 0.25rem;
  cursor: pointer;
  transition: var(--transition-normal);
}
.never-idea-soft {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #22c55e;
}
.never-idea-mid {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}
.never-idea-nsfw {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}
.never-idea-btn:hover {
  transform: translateY(-2px);
}

/* --- Voting section --- */
.never-vote-row {
  background: rgba(16, 185, 129, 0.06);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 2px solid rgba(16, 185, 129, 0.25);
  text-align: center;
}
.never-vote-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #22c55e;
  margin-bottom: 1rem;
}
.never-vote-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.never-vote-have {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-normal);
}
.never-vote-have:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}
.never-vote-never {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-normal);
}
.never-vote-never:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* --- Status --- */
.never-status {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* --- Toast Notifications --- */
.never-toasts {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  width: 90%;
  max-width: 360px;
}
.never-toast {
  background: rgba(30, 30, 40, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 0.6rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  animation: neverToastIn 0.3s ease-out forwards;
  pointer-events: auto;
}
.never-toast.never-toast-out {
  animation: neverToastOut 0.3s ease-in forwards;
}
.never-toast-prompt {
  border-color: rgba(56, 189, 248, 0.4);
}
.never-toast-vote {
  border-color: rgba(139, 92, 246, 0.4);
}
.never-toast-timeout {
  border-color: rgba(239, 68, 68, 0.4);
}
.never-toast-mode {
  border-color: rgba(245, 158, 11, 0.4);
}

/* --- Animations --- */
@keyframes neverToastIn {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes neverToastOut {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-20px); opacity: 0; }
}
@keyframes neverPromptReveal {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes neverOutcomeIn {
  0% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes neverDrinkPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); color: #f87171; }
  100% { transform: scale(1); }
}

/* --- Auctions Game Classes --- */
.auction-mode-card {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 3px solid var(--glass-border) !important;
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none !important;
  color: var(--text-primary);
}

.auction-mode-card-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.auction-mode-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted, rgba(255,255,255,0.4));
  transition: color 0.3s ease;
}

.auction-mode-card:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.auction-mode-selected.auction-mode-normal {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25) !important;
}

.auction-mode-selected.auction-mode-normal .auction-mode-card-title {
  color: #4ade80;
}

.auction-mode-selected.auction-mode-normal .auction-mode-card-desc {
  color: #6ee7b7;
}

.auction-mode-selected.auction-mode-secret {
  background: rgba(99, 102, 241, 0.15) !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25) !important;
}

.auction-mode-selected.auction-mode-secret .auction-mode-card-title {
  color: #a5b4fc;
}

.auction-mode-selected.auction-mode-secret .auction-mode-card-desc {
  color: #c7d2fe;
}

/* Bouton -1 désactivé */
.auction-minus-disabled {
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  opacity: 0.5;
  cursor: not-allowed;
}

#auctionsResult {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.auction-bid-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--glass-border);
  transition: all 0.3s ease;
}

.auction-bid-me {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.4);
}

.auction-bid-first {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.15);
}

.auction-bid-name {
  font-weight: 500;
  font-size: 1rem;
}

.auction-bid-name-first {
  font-weight: 700;
  font-size: 1.1rem;
}

.auction-bid-value {
  font-weight: 700;
  font-size: 1.2rem;
  color: #93c5fd;
}

.auction-bid-value-first {
  color: #fbbf24;
}

/* --- MostLikely Game Classes --- */
.mostlikely-mode-soft.selected {
  background: rgba(236, 72, 153, 0.12) !important;
  border: 3px solid rgba(236, 72, 153, 0.5) !important;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.25) !important;
  transform: scale(1.05);
}

.mostlikely-mode-mid.selected {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 3px solid rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25) !important;
  transform: scale(1.05);
}

.mostlikely-mode-nsfw.selected {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 3px solid rgba(239, 68, 68, 0.5) !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.25) !important;
  transform: scale(1.05);
}

.mostlikely-winner-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.mostlikely-winner-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fca5a5;
  margin-bottom: 0.5rem;
}

.mostlikely-winner-detail {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.mostlikely-votes-list {
  margin-top: 1rem;
}

.mostlikely-vote-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  margin: 0.25rem 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.mostlikely-vote-winner {
  background: rgba(239, 68, 68, 0.1);
}

.mostlikely-vote-name {
  font-weight: 400;
}

.mostlikely-vote-winner .mostlikely-vote-name {
  font-weight: 600;
}

.mostlikely-vote-count {
  font-weight: 600;
  color: var(--text-muted);
}

.mostlikely-vote-winner .mostlikely-vote-count {
  color: #fca5a5;
}

.mostlikely-voted-msg {
  text-align: center;
  padding: 1rem;
  color: var(--text-muted);
}

.mostlikely-dist-card {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1rem;
}

.mostlikely-dist-title {
  font-weight: 600;
  color: #fbbf24;
  margin-bottom: 0.75rem;
}

.mostlikely-dist-players {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.mostlikely-dist-waiting {
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1rem;
  text-align: center;
  color: var(--text-muted);
}

/* --- TimesUp Game Classes (JS-rendered) --- */
.timesup-round-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.timesup-round-desc {
  font-size: 0.85rem;
  color: #fbbf24;
  font-weight: 500;
}
.timesup-score-team1 {
  background: rgba(16, 185, 129, 0.12);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  color: #6ee7b7;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(16, 185, 129, 0.35);
  transition: transform 0.3s;
}
.timesup-score-team2 {
  background: rgba(59, 130, 246, 0.12);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  color: #93c5fd;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(59, 130, 246, 0.35);
  transition: transform 0.3s;
}
.timesup-score-pop {
  animation: timesupScorePop 0.4s ease-out;
}
.timesup-score-val {
  font-size: 1.1rem;
}
.timesup-info-pill {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
}
.timesup-info-team1 {
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
  border: 2px solid rgba(16, 185, 129, 0.3);
}
.timesup-info-team2 {
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
  border: 2px solid rgba(59, 130, 246, 0.3);
}
.timesup-info-speaker {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 2px solid rgba(245, 158, 11, 0.3);
}
.timesup-winner-announce {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}
.timesup-winner-team1 { color: #4ade80; }
.timesup-winner-team2 { color: #93c5fd; }
.timesup-winner-tie { color: #fbbf24; }
.timesup-final-scores-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.timesup-drinks-card {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 1rem;
  border-radius: var(--radius-lg);
  margin-top: 1rem;
}
.timesup-drinks-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fbbf24;
  text-align: center;
}
.timesup-drinks-detail {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  text-align: center;
  color: var(--text-secondary);
}
.timesup-drinks-detail p { margin: 0.25rem 0; }
.timesup-drinks-total {
  color: #fca5a5;
  font-size: 1.2rem;
}
.timesup-drinks-penalty {
  background: rgba(220, 38, 38, 0.1);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 2px dashed rgba(220, 38, 38, 0.4);
  text-align: center;
}
.timesup-drinks-penalty p {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fca5a5;
}
.timesup-team-details {
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}
.timesup-team-detail-row {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}
.timesup-team-detail-row:last-child { margin-bottom: 0; }
.timesup-team1-label { color: #6ee7b7; }
.timesup-team2-label { color: #93c5fd; }

/* --- Blindtest Game Classes --- */
.blindtest-found-top3 {
  background: rgba(16, 185, 129, 0.1) !important;
  color: #6ee7b7 !important;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 600;
  display: block;
}

.blindtest-found-normal {
  background: rgba(56, 189, 248, 0.08) !important;
  color: #7dd3fc !important;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 600;
  display: block;
}

.suggestion-artist {
  color: var(--text-muted);
}

.suggestion-item {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: background 0.15s;
}

.suggestion-item:hover {
  background: rgba(139, 92, 246, 0.1);
}

/* --- Gambling Game Classes --- */
.gambling-outcome-star {
  color: #4ade80;
  font-weight: 600;
}

.gambling-outcome-tomato {
  color: #fbbf24;
  font-weight: 600;
}

.gambling-outcome-lemon {
  color: #a3e635;
  font-weight: 600;
}

.gambling-outcome-fail {
  color: #f87171;
  font-weight: 600;
}

/* ============================================
   LIAR — Inline Style Replacement Classes
   ============================================ */
.liar-banner {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(124, 58, 237, 0.4));
  color: #d8b4fe;
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.liar-pills-row { gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.liar-glass-box {
  text-align: center; padding: 1.5rem; margin-top: 1rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
}
.liar-icon-lg { font-size: 1.5rem; margin-bottom: 0.5rem; }
.liar-section { margin-top: 1rem; }
.liar-speaker-prompt {
  text-align: center; padding: 1.5rem;
  background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.3); border-radius: 12px;
}
.liar-prompt-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.liar-prompt-muted { margin-bottom: 1rem; }
.liar-timer-box {
  margin-bottom: 0.75rem; padding: 0.5rem;
  background: rgba(251,191,36,0.15); border: 1px solid rgba(251,191,36,0.3); border-radius: 8px;
}
.liar-timer-icon { font-size: 0.85rem; color: #fbbf24; }
.liar-timer-value { font-size: 1.5rem; font-weight: 700; color: #fbbf24; }
.liar-btn-row { gap: 1rem; justify-content: center; }
.liar-btn-vrai {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); border: none;
  padding: 1rem 2rem; font-size: 1.1rem; font-weight: 700; color: white;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}
.liar-btn-vrai:hover { filter: brightness(1.1); transform: translateY(-1px); }
.liar-btn-faux {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); border: none;
  padding: 1rem 2rem; font-size: 1.1rem; font-weight: 700; color: white;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}
.liar-btn-faux:hover { filter: brightness(1.1); transform: translateY(-1px); }
.liar-vote-btn-vrai {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); border: none;
  padding: 0.9rem 1.8rem; font-size: 1rem; font-weight: 600; color: white;
}
.liar-vote-btn-faux {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); border: none;
  padding: 0.9rem 1.8rem; font-size: 1rem; font-weight: 600; color: white;
}
.liar-result-box {
  text-align: center; padding: 1.5rem;
  background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.2); border-radius: 12px;
}
.liar-next-row { justify-content: center; margin-top: 1rem; }
.liar-btn-next {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); border: none; color: white;
  padding: 0.75rem 1.5rem;
}
.liar-btn-next:hover { filter: brightness(1.1); }
.liar-history-box { max-height: 140px; margin-top: 1rem; font-size: 0.9rem; }
.liar-rules { margin-top: 1rem; font-size: 0.85rem; text-align: center; }
.liar-muted-sm { margin-top: 1rem; font-size: 0.85rem; }
.liar-voter-box {
  text-align: center; padding: 1.5rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
}
.liar-voter-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.liar-voter-muted { margin-bottom: 1rem; }

/* ============================================
   BLINDTEST — Inline Style Replacement Classes
   ============================================ */
.bt-box {
  border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
  padding: 1rem; margin: 1rem 0; background: rgba(255,255,255,0.03);
}
.bt-banner {
  background: linear-gradient(135deg, rgba(139,92,246,0.3), rgba(99,102,241,0.4));
  color: #c4b5fd; padding: 1rem; border-radius: 10px; text-align: center; margin-bottom: 1rem;
  border: 1px solid rgba(139,92,246,0.3);
}
.bt-banner-title { font-size: 1.3rem; font-weight: 700; }
.bt-banner-phase { font-size: 0.9rem; opacity: 0.9; margin-top: 0.25rem; }
.bt-cat-header { text-align: center; margin-bottom: 1.5rem; }
.bt-cat-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.bt-cat-title { margin: 0 0 0.5rem 0; color: var(--text-primary); }
.bt-cat-desc { margin: 0; color: var(--text-secondary); font-size: 0.9rem; }
.bt-count-row { text-align: center; margin: 1rem 0; }
.bt-count-text { color: var(--text-muted); font-size: 0.9rem; }
.bt-center { text-align: center; }
.bt-btn-start {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); border: none;
  padding: 1rem 2.5rem; font-size: 1.1rem; font-weight: 700; border-radius: 12px;
  color: white; box-shadow: 0 4px 15px rgba(34,197,94,0.3); cursor: pointer; transition: all 0.3s ease;
}
.bt-btn-start:hover { filter: brightness(1.1); transform: translateY(-1px); }
.bt-wait-msg { text-align: center; padding: 2rem; }
.bt-wait-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.bt-cat-info {
  text-align: center; margin-bottom: 1rem; padding: 0.5rem;
  background: rgba(255,255,255,0.05); border-radius: 8px;
}
.bt-ctrl-row { text-align: center; margin-bottom: 1rem; }
.bt-btn-change {
  background: rgba(100,116,139,0.3); color: var(--text-secondary); border: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.85rem; cursor: pointer;
}
.bt-btn-change:hover { background: rgba(100,116,139,0.5); }
.bt-reward { text-align: center; font-size: 1.1rem; font-weight: 600; color: #a78bfa; margin-bottom: 1rem; }
.bt-host-ctrls { text-align: center; margin-bottom: 1rem; }
.bt-btn-play {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; border: none;
  padding: 0.75rem 1.5rem; border-radius: 10px; font-weight: 600; cursor: pointer; margin: 0.25rem;
}
.bt-btn-play:hover { filter: brightness(1.1); }
.bt-btn-step {
  background: linear-gradient(135deg, #f59e0b, #d97706); color: white; border: none;
  padding: 0.75rem 1.5rem; border-radius: 10px; font-weight: 600; cursor: pointer; margin: 0.25rem;
}
.bt-btn-step:hover { filter: brightness(1.1); }
.bt-btn-next {
  background: linear-gradient(135deg, #22c55e, #16a34a); color: white; border: none;
  padding: 0.75rem 1.5rem; border-radius: 10px; font-weight: 600; cursor: pointer; margin: 0.25rem;
}
.bt-btn-next:hover { filter: brightness(1.1); }
.bt-progress {
  text-align: center; background: rgba(56,189,248,0.1); padding: 0.5rem 1rem;
  border-radius: 8px; margin-bottom: 1rem; color: #38bdf8; font-weight: 600;
}
.bt-found-msg {
  background: rgba(34,197,94,0.15); padding: 1rem; border-radius: 10px;
  text-align: center; margin-bottom: 1rem; color: #4ade80; font-weight: 600;
}
.bt-reveal {
  background: rgba(56,189,248,0.1); padding: 1.5rem; border-radius: 10px;
  text-align: center; margin-bottom: 1rem; border: 2px solid rgba(56,189,248,0.3);
}
.bt-reveal-icon { font-size: 1.4rem; color: #38bdf8; }
.bt-answer-section {
  background: rgba(139,92,246,0.1); padding: 1.5rem; border-radius: 12px;
  margin-bottom: 1rem; border: 2px solid rgba(139,92,246,0.3);
}
.bt-answer-label { text-align: center; margin-bottom: 1rem; font-weight: 600; color: #a78bfa; }
.bt-input-wrap { position: relative; }
.bt-input {
  display: block; width: 100%; padding: 0.75rem;
  border: 2px solid rgba(139,92,246,0.3); border-radius: 8px; font-size: 1rem;
  margin-bottom: 0.5rem; box-sizing: border-box; background: rgba(255,255,255,0.05); color: var(--text-primary);
}
.bt-input:focus { border-color: rgba(139,92,246,0.6); outline: none; }
.bt-suggestions {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg-card, #1e1e2e); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px; max-height: 200px; overflow-y: auto; z-index: 100;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.bt-action-row { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.bt-btn-submit {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; border: none;
  padding: 0.75rem 2rem; border-radius: 10px; font-weight: 700; cursor: pointer;
}
.bt-btn-submit:hover { filter: brightness(1.1); }
.bt-btn-replay {
  background: linear-gradient(135deg, #3b82f6, #2563eb); color: white; border: none;
  padding: 0.75rem 1.5rem; border-radius: 10px; font-weight: 600; cursor: pointer;
}
.bt-btn-replay:hover { filter: brightness(1.1); }
.bt-player-actions { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.bt-btn-finish {
  background: rgba(100,116,139,0.3); color: var(--text-secondary); border: 1px solid rgba(255,255,255,0.1);
  padding: 0.75rem 1.5rem; border-radius: 10px; font-weight: 600; cursor: pointer;
}
.bt-btn-finish:hover { background: rgba(100,116,139,0.5); }
.bt-blocked-msg {
  background: rgba(251,191,36,0.15); padding: 1rem; border-radius: 10px;
  text-align: center; margin-bottom: 1rem; color: #fbbf24; font-weight: 600;
  border: 2px solid rgba(251,191,36,0.3);
}
.bt-waiting-msg {
  background: rgba(56,189,248,0.1); padding: 1rem; border-radius: 10px;
  text-align: center; margin-bottom: 1rem; color: #38bdf8; font-weight: 600;
  border: 2px solid rgba(56,189,248,0.3);
}
.bt-correct-section { margin-bottom: 1rem; }
.bt-correct-label { font-weight: 600; margin-bottom: 0.5rem; color: var(--text-secondary); }
.bt-correct-list {
  background: rgba(255,255,255,0.05); padding: 0.75rem; border-radius: 8px; font-size: 0.9rem;
}
.bt-dist-box {
  background: rgba(251,191,36,0.15); padding: 1.5rem; border-radius: 12px;
  margin-bottom: 1rem; border: 2px solid rgba(251,191,36,0.3);
}
.bt-dist-title { text-align: center; margin-bottom: 1rem; font-weight: 600; color: #fbbf24; font-size: 1.1rem; }
.bt-dist-keep-row { display: flex; justify-content: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.bt-btn-keep {
  background: linear-gradient(135deg, #22c55e, #16a34a); color: white; border: none;
  padding: 0.75rem 1.5rem; border-radius: 10px; font-weight: 600; cursor: pointer;
}
.bt-btn-keep:hover { filter: brightness(1.1); }
.bt-dist-divider { text-align: center; margin-bottom: 1rem; font-weight: 600; color: #fbbf24; }
.bt-dist-players { display: flex; flex-wrap: wrap; justify-content: center; margin-bottom: 1rem; }
.bt-dist-summary { text-align: center; margin-bottom: 1rem; color: var(--text-secondary); font-size: 0.9rem; }
.bt-btn-dist-confirm {
  background: linear-gradient(135deg, #ef4444, #dc2626); color: white; border: none;
  padding: 0.75rem 1.5rem; border-radius: 10px; font-weight: 600; cursor: pointer;
}
.bt-btn-dist-confirm:hover { filter: brightness(1.1); }

/* ============================================
   MOST LIKELY — Inline Style Replacement Classes
   ============================================ */
.ml-title { margin-top: 0; }
.ml-mode-row { text-align: center; margin-bottom: 1rem; }
.ml-mode-pill { background: rgba(139,92,246,0.15); color: #c4b5fd; }
.ml-setup-desc { color: var(--text-secondary); margin-bottom: 1rem; }
.ml-mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.ml-mode-btn {
  display: flex; flex-direction: column; align-items: center; padding: 1rem;
  border-radius: 12px; transition: all 0.2s;
}
.ml-mode-btn .ml-mode-icon { font-size: 1.5rem; }
.ml-mode-btn .ml-mode-label { font-weight: 600; }
.ml-mode-btn .ml-mode-desc { font-size: 0.75rem; color: var(--text-muted); }
.ml-question-box {
  background: rgba(139,92,246,0.15); padding: 1rem; border-radius: 12px;
  margin-bottom: 0.75rem; border: 1px solid rgba(139,92,246,0.3);
}
.ml-question-text { font-size: 1.1rem; font-weight: 600; color: #d8b4fe; text-align: center; margin: 0; }
.ml-vote-hint { text-align: center; color: var(--text-muted); margin-bottom: 0.5rem; font-size: 0.9rem; }
.ml-players-grid { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-bottom: 0.5rem; }
.ml-progress { text-align: center; font-size: 0.85rem; margin: 0.5rem 0; }
.ml-skip-row { text-align: center; }
.ml-result-question {
  background: rgba(255,255,255,0.05); padding: 1rem; border-radius: 12px; margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.1);
}
.ml-result-question-text { font-size: 1.1rem; font-weight: 500; color: var(--text-primary); text-align: center; margin: 0; }
.ml-winner-box {
  text-align: center; padding: 1.5rem;
  background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(254,202,202,0.1));
  border-radius: 16px; margin-bottom: 1rem; border: 1px solid rgba(239,68,68,0.2);
}
.ml-next-row { justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.ml-btn-next {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%); border: none;
  padding: 0.75rem 2rem; font-weight: 600; border-radius: 12px; color: white;
}
.ml-btn-next:hover { filter: brightness(1.1); }
.ml-change-mode-row { text-align: center; margin-top: 0.75rem; }
.ml-rules { margin-top: 1rem; font-size: 0.8rem; text-align: center; margin-bottom: 0; }
.ml-start-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%); border: none;
  padding: 1rem 2rem; font-size: 1.1rem; font-weight: 600; border-radius: 12px; color: white;
}
.ml-start-btn:hover { filter: brightness(1.1); }

/* ============================================
   GAMBLING — Inline Style Replacement Classes
   ============================================ */
.gambling-area {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9998; background: rgba(0,0,0,0.85); align-items: center; justify-content: center;
}
.gambling-modal-inner { max-width: 400px; width: 90%; position: relative; animation: fadeIn 0.3s; }
.gambling-proposal-title { text-align: center; color: var(--accent, #8b5cf6); }
.gambling-proposal-text { text-align: center; }
.gambling-proposal-actions { justify-content: center; gap: 1rem; margin-top: 1rem; }
.gambling-spectator { text-align: center; }
.gambling-spectator-title { color: #fbbf24; }
.gambling-spectator-name { font-size: 1.5rem; margin: 1rem 0; }
.gambling-spectator-hint { color: var(--text-muted); }
.gambling-spectator-results { margin: 1rem 0; }
.gambling-spectator-symbols {
  font-size: 3rem; margin: 0.5rem 0; background: rgba(0,0,0,0.5);
  padding: 0.75rem; border-radius: 12px; display: inline-block; min-width: 180px;
}
.gambling-spectator-attempts { color: var(--text-muted); margin-top: 0.5rem; }
.gambling-spectator-outcome { margin-top: 0.75rem; font-weight: 600; min-height: 1.5rem; }
.gambling-game-title { text-align: center; }
.gambling-canvas-row { text-align: center; margin: 1rem 0; }
.gambling-canvas { background: rgba(0,0,0,0.5); border-radius: 8px; }
.gambling-attempts { text-align: center; }
.gambling-spin-result { text-align: center; font-size: 1.2rem; min-height: 2rem; }
.gambling-spin-actions { justify-content: center; gap: 1rem; margin-top: 1rem; }
.gambling-abandon-row { justify-content: center; margin-top: 1rem; }
.gambling-jackpot-header { text-align: center; margin-bottom: 1.5rem; }
.gambling-jackpot-icon { font-size: 3rem; margin-bottom: 0.5rem; }
.gambling-jackpot-title { color: #fbbf24; margin: 0; text-shadow: 0 0 20px rgba(251,191,36,0.5); }
.gambling-jackpot-box {
  background: linear-gradient(135deg, rgba(251,191,36,0.2), rgba(253,230,138,0.15));
  border-radius: 12px; padding: 1rem; margin-bottom: 1rem; text-align: center;
  border: 1px solid rgba(251,191,36,0.3);
}
.gambling-jackpot-text { margin: 0; color: #fbbf24; font-size: 1.1rem; }
.gambling-jackpot-amount { font-size: 1.5rem; color: #fde68a; }
.gambling-jackpot-hint { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--text-muted); }
.gambling-dist-players { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1rem; }
.gambling-dist-summary {
  text-align: center; padding: 0.75rem; background: rgba(255,255,255,0.05);
  border-radius: 8px; margin-bottom: 1rem; min-height: 1.5rem; color: var(--text-secondary); font-size: 0.9rem;
}
.gambling-dist-actions { display: flex; justify-content: center; gap: 0.75rem; }
.gambling-btn-confirm {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%); border: none;
  padding: 0.75rem 2rem; border-radius: 10px; color: white; font-weight: 600;
}
.gambling-btn-confirm:hover { filter: brightness(1.1); }
.gambling-btn-reset { padding: 0.75rem 1.5rem; border-radius: 10px; }

/* ============================================
   SHARED TOAST SYSTEM — All Games
   ============================================ */
.game-toasts {
  position: fixed; top: 60px; left: 50%; transform: translateX(-50%);
  z-index: 10000; display: flex; flex-direction: column; gap: 0.5rem;
  pointer-events: none; width: 90%; max-width: 360px;
}
.game-toast {
  background: rgba(30, 30, 40, 0.92); border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 10px; padding: 0.6rem 1rem; color: var(--text-primary);
  font-size: 0.9rem; font-weight: 500; pointer-events: auto;
  animation: gameToastIn 0.3s ease-out forwards;
}
.game-toast-out { animation: gameToastOut 0.3s ease-in forwards; }

/* Toast type variants */
.game-toast-success { border-color: rgba(34, 197, 94, 0.4); }
.game-toast-error { border-color: rgba(239, 68, 68, 0.4); }
.game-toast-info { border-color: rgba(56, 189, 248, 0.4); }
.game-toast-warning { border-color: rgba(251, 191, 36, 0.4); }
.game-toast-purple { border-color: rgba(139, 92, 246, 0.4); }
.game-toast-pink { border-color: rgba(236, 72, 153, 0.4); }

@keyframes gameToastIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes gameToastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-20px); }
}

/* ============================================
   PHASE TRANSITIONS — Animations
   ============================================ */
.phase-transition-enter {
  animation: phaseEnter 0.4s ease-out forwards;
}
@keyframes phaseEnter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.phase-transition-exit {
  animation: phaseExit 0.25s ease-in forwards;
}
@keyframes phaseExit {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-12px); }
}

/* ============================================
   LOBBY PLAYER JOIN/LEAVE ANIMATIONS
   ============================================ */
.gp-player-chip.player-enter {
  animation: playerEnter 0.4s ease-out forwards;
}
@keyframes playerEnter {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
.gp-player-chip.player-leave {
  animation: playerLeave 0.3s ease-in forwards;
}
@keyframes playerLeave {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.5); }
}

/* ============================================
   READY STATUS — Player Chip
   ============================================ */
.gp-player-chip.is-ready::after {
  content: "✓";
  position: absolute; bottom: -2px; right: -2px;
  background: #22c55e; color: white; font-size: 0.55rem;
  width: 14px; height: 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-primary, #0a0a0f);
  font-weight: 700;
  animation: readyPop 0.3s ease-out;
}
@keyframes readyPop {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* ============================================
   DRINKS COUNTER — Visual Enhancement
   ============================================ */
.gp-drink-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; border-radius: 14px;
  background: rgba(239, 68, 68, 0.15); color: #f87171;
  font-weight: 700; font-size: 0.9rem; padding: 0 6px;
  transition: all 0.3s ease;
}
.gp-drink-count.drink-bump {
  animation: drinkBump 0.4s ease-out;
}
@keyframes drinkBump {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); background: rgba(239, 68, 68, 0.35); }
  100% { transform: scale(1); }
}
.gp-drink-row .gp-drink-count-zero {
  background: rgba(255,255,255,0.05); color: var(--text-muted);
}
.gp-drinks-summary-count.drink-bump {
  animation: drinkBump 0.4s ease-out;
}

/* ============================================
   MOBILE KEYBOARD — Input Handling
   ============================================ */
@media (max-width: 768px) {
  .keyboard-open .gp-bottom-nav { display: none; }
  .keyboard-open .gp-sheet { bottom: 0; }
}

/* ============================================
   END GAME RESULTS SCREEN
   ============================================ */
.end-results-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999; background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.4s ease-out;
}
.end-results-card {
  max-width: 420px; width: 90%; background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
  padding: 2rem 1.5rem; text-align: center;
  animation: modal-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.end-results-title {
  font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem;
  background: var(--accent-gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.end-results-subtitle { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.9rem; }
.end-results-podium { display: flex; justify-content: center; align-items: flex-end; gap: 0.5rem; margin-bottom: 1.5rem; }
.end-podium-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 0.75rem 0.5rem; border-radius: 12px; min-width: 70px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
}
.end-podium-item.first {
  background: rgba(251,191,36,0.15); border-color: rgba(251,191,36,0.3);
  transform: scale(1.1); order: 0;
}
.end-podium-item.second { order: -1; }
.end-podium-item.third { order: 1; }
.end-podium-rank { font-size: 1.5rem; margin-bottom: 0.25rem; }
.end-podium-name { font-weight: 600; font-size: 0.85rem; color: var(--text-primary); }
.end-podium-score { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.end-results-list { text-align: left; margin-bottom: 1.5rem; }
.end-result-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0.75rem; border-radius: 8px;
  animation: phaseEnter 0.3s ease-out backwards;
}
.end-result-row:nth-child(even) { background: rgba(255,255,255,0.03); }
.end-result-row:nth-child(1) { animation-delay: 0.1s; }
.end-result-row:nth-child(2) { animation-delay: 0.2s; }
.end-result-row:nth-child(3) { animation-delay: 0.3s; }
.end-result-row:nth-child(4) { animation-delay: 0.4s; }
.end-result-row:nth-child(5) { animation-delay: 0.5s; }
.end-result-rank { font-weight: 600; color: var(--text-muted); width: 24px; }
.end-result-name { flex: 1; font-weight: 500; }
.end-result-score { font-weight: 600; color: #a78bfa; }
.end-results-drinks { margin-bottom: 1.5rem; }
.end-drinks-title { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.end-drinks-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.4rem 0.75rem; font-size: 0.9rem;
}
.end-drinks-name { color: var(--text-secondary); }
.end-drinks-count { color: #f87171; font-weight: 600; }
.end-results-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.end-btn-replay {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; border: none;
  padding: 0.75rem 1.5rem; border-radius: 10px; font-weight: 600; cursor: pointer;
}
.end-btn-replay:hover { filter: brightness(1.1); }
.end-btn-menu {
  background: rgba(255,255,255,0.1); color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.15); padding: 0.75rem 1.5rem;
  border-radius: 10px; font-weight: 500; cursor: pointer;
}
.end-btn-menu:hover { background: rgba(255,255,255,0.15); }

/* ============================================
   SETTINGS — Toggles, QR Code
   ============================================ */
.gp-settings-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
}
.gp-settings-toggle-label { font-size: 0.9rem; color: var(--text-primary); }
.gp-toggle {
  position: relative; width: 48px; height: 26px;
  background: rgba(255,255,255,0.15); border: none; border-radius: 13px;
  cursor: pointer; transition: background 0.2s;
}
.gp-toggle.active { background: #8b5cf6; }
.gp-toggle-knob {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: white; transition: transform 0.2s;
  pointer-events: none;
}
.gp-toggle.active .gp-toggle-knob { transform: translateX(22px); }

.gp-qr-wrapper {
  display: flex; flex-direction: column; align-items: center;
  padding: 1rem; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 12px;
}
.gp-qr-wrapper canvas { border-radius: 12px; }
.gp-qr-hint {
  font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; margin-bottom: 0;
}

/* ============================================
   DRINKS SHEET — Leaderboard button
   ============================================ */
.gp-drinks-leaderboard-row {
  padding: 0.75rem 1rem; text-align: center;
}
.gp-leaderboard-btn {
  background: linear-gradient(135deg, rgba(251,191,36,0.2), rgba(245,158,11,0.2));
  color: #fbbf24; border: 1px solid rgba(251,191,36,0.3);
  padding: 0.6rem 1.2rem; border-radius: 10px; font-weight: 600;
  cursor: pointer; font-size: 0.9rem; transition: all 0.2s;
}
.gp-leaderboard-btn:hover { background: linear-gradient(135deg, rgba(251,191,36,0.3), rgba(245,158,11,0.3)); }

