/* ─────────────────────────────────────────
   Football Guess — Global Styles
───────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;900&display=swap');

:root {
  --bg:        #030712;
  --bg-gradient: linear-gradient(135deg, #030712 0%, #0a1628 25%, #0d1f3c 50%, #081225 75%, #030712 100%);
  --card:      rgba(15, 23, 42, 0.55);
  --card2:     rgba(30, 41, 59, 0.5);
  --accent:    #00ffcc;
  --accent-glow: rgba(0, 255, 204, 0.4);
  --green:     #00ff66;
  --blue:      #3399ff;
  --red:       #ff3366;
  --gold:      #ffcc00;
  --purple:    #d966ff;
  --text:      #ffffff;
  --muted:     #8a93b0;
  --border:    rgba(255,255,255,0.08);
  --glass-shadow: 0 8px 32px rgba(0,0,0,0.6);
  --radius:    16px;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(10, 37, 64, 0.8) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(13, 22, 50, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 60%, rgba(6, 30, 45, 0.5) 0%, transparent 50%),
    var(--bg-gradient);
  background-size: 100% 100%, 100% 100%, 100% 100%, 400% 400%;
  animation: gradientBG 20s ease infinite;
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

/* ═══════ FLOATING FOOTBALL PARTICLES ═══════ */
#bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  font-size: 18px;
  opacity: 0;
  will-change: transform, opacity;
  filter: grayscale(0.5) brightness(0.6);
  animation: floatUp linear infinite;
}
.p1 { left:  5%; font-size: 14px; animation-duration: 22s; animation-delay: 0s;  }
.p2 { left: 15%; font-size: 20px; animation-duration: 28s; animation-delay: 3s;  }
.p3 { left: 30%; font-size: 12px; animation-duration: 25s; animation-delay: 7s;  }
.p4 { left: 50%; font-size: 16px; animation-duration: 30s; animation-delay: 2s;  }
.p5 { left: 65%; font-size: 22px; animation-duration: 26s; animation-delay: 10s; }
.p6 { left: 78%; font-size: 13px; animation-duration: 24s; animation-delay: 5s;  }
.p7 { left: 88%; font-size: 18px; animation-duration: 32s; animation-delay: 8s;  }
.p8 { left: 42%; font-size: 10px; animation-duration: 20s; animation-delay: 14s; }

@keyframes floatUp {
  0%   { transform: translateY(110vh) rotate(0deg);   opacity: 0; }
  5%   { opacity: 0.12; }
  50%  { opacity: 0.08; }
  95%  { opacity: 0.12; }
  100% { transform: translateY(-10vh) rotate(720deg);  opacity: 0; }
}

/* ═══════ PITCH LINE DECORATIONS ═══════ */
.pitch-line {
  position: absolute;
  border: 1px dashed rgba(0, 255, 204, 0.04);
  border-radius: 0;
  pointer-events: none;
}
.pitch-line-1 {
  top: 50%;
  left: -5%;
  right: -5%;
  height: 0;
  animation: pitchPulse 8s ease-in-out infinite;
}
.pitch-line-2 {
  left: 50%;
  top: -5%;
  bottom: -5%;
  width: 0;
  animation: pitchPulse 8s ease-in-out infinite 4s;
}
.pitch-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  border: 1px dashed rgba(0, 255, 204, 0.03);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pitchPulse 6s ease-in-out infinite 2s;
}

@keyframes pitchPulse {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 1; }
}

/* ═══════ ROAMING SPOTLIGHT ═══════ */
.bg-spotlight {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 204, 0.03) 0%, transparent 70%);
  top: 20%;
  left: 30%;
  animation: spotlightDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes spotlightDrift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(30vw, -20vh) scale(1.3); }
  66%  { transform: translate(-20vw, 30vh) scale(0.8); }
  100% { transform: translate(10vw, -10vh) scale(1.1); }
}

/* Make all screens sit above the particles */
.screen { position: relative; z-index: 1; }

/* ─── Screen wrapper ─── */
.screen {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 120px; /* Increased bottom padding for floating button */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.center-screen {
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* ─── Top bar ─── */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-back {
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
  background: var(--card);
  padding: 8px 14px;
  border-radius: 10px;
  transition: 0.2s;
}
.btn-back:hover { color: var(--accent); }

.hud-badges { display: flex; gap: 8px; }

.token-badge, .round-badge {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 204, 0, 0.15);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.token-badge:hover, .round-badge:hover {
  border-color: rgba(255, 204, 0, 0.4);
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.15);
}
.round-badge { color: var(--accent); border-color: rgba(0, 255, 204, 0.15); }
.round-badge:hover { border-color: rgba(0, 255, 204, 0.4); box-shadow: 0 0 12px rgba(0, 255, 204, 0.15); }

.felo-badge {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(147, 51, 234, 0.35);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #c084fc;
  letter-spacing: 0.5px;
  animation: feloPulse 3s ease-in-out infinite;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.felo-badge:hover {
  border-color: rgba(147, 51, 234, 0.6);
  box-shadow: 0 0 16px rgba(147, 51, 234, 0.25);
}
@keyframes feloPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(147, 51, 234, 0); }
  50%      { box-shadow: 0 0 10px rgba(147, 51, 234, 0.15); }
}

.felo-text {
  color: #c084fc;
  font-size: 16px;
  font-weight: 700;
  margin: 8px 0;
}
.felo-loss { color: var(--red); }

/* ─── Main Menu ─── */
.logo-glow {
  font-size: 80px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(0,212,170,0.7));
}
@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-12px) scale(1.05); }
}

.title {
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
}

.subtitle {
  color: var(--muted);
  font-size: 16px;
  margin-top: 4px;
  margin-bottom: 32px;
}

.menu-buttons { display: flex; flex-direction: column; gap: 16px; width: 100%; }

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 24px;
  border-radius: 30px;
  background: var(--surface-light);
  color: #fff;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast-icon {
  font-size: 18px;
}
.toast.success { background: linear-gradient(135deg, var(--success), #0a5a3a); }
.toast.error { background: linear-gradient(135deg, var(--danger), #631212); }
.toast.info { background: linear-gradient(135deg, var(--primary), #003666); }
/* ─── Buttons ─── */
.btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  text-align: center;
}
.btn:hover  { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.btn:active { transform: translateY(0); }

.btn-sub { font-size: 12px; font-weight: 400; opacity: 0.75; margin-top: 4px; }

.btn-green  { background: linear-gradient(135deg, #00c853, #00e676); color: #000; }
.btn-blue   { background: linear-gradient(135deg, #2979ff, #40c4ff); color: #fff; }
.btn-red    { background: linear-gradient(135deg, #ff1744, #ff6d00); color: #fff; }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--blue)); color: #fff; }
.btn-gold   { background: linear-gradient(135deg, #ffd600, #ff9100); color: #000; font-size: 16px; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
  font-size: 15px;
  padding: 12px 20px;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline.small { padding: 8px 16px; font-size: 13px; }

/* ─── Mode headers ─── */
.mode-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mode-sub { text-align: center; color: var(--muted); font-size: 14px; }

/* ─── Clue Card ─── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.clue-card { text-align: center; }
.clue-number { font-size: 13px; color: var(--muted); margin-bottom: 12px; letter-spacing: 1px; text-transform: uppercase; }
.clue-text {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  min-height: 60px;
  transition: 0.3s;
}
.clue-hint { font-size: 12px; color: var(--gold); margin-top: 12px; }

/* ─── Guess area ─── */
.action-row { display: flex; justify-content: center; }

.guess-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guess-input {
  width: 100%;
  background: var(--card2);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}
.guess-input:focus { border-color: var(--accent); }
.guess-input::placeholder { color: var(--muted); }

/* ─── Feedback ─── */
.feedback {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  padding: 14px;
  border-radius: 12px;
  min-height: 20px;
}
.feedback-correct { background: rgba(0,200,83,0.15); color: var(--green); border: 1px solid var(--green); }
.feedback-wrong   { background: rgba(255,23,68,0.15); color: var(--red); border: 1px solid var(--red); }

/* ─── Bot Cards ─── */
.bot-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.bot-card {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  transition: border-color 0.3s;
}
.bot-card.liar { border-color: var(--red); box-shadow: 0 0 12px rgba(255,23,68,0.4); }

.bot-avatar { font-size: 28px; }
.bot-name   { font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.bot-coins { font-size: 12px; color: var(--gold); margin-top: 4px; }
.bot-vote   { font-size: 16px; font-weight: 700; margin-top: 6px; color: var(--muted); }
.vote-yes   { color: var(--green); }
.vote-no    { color: var(--red); }

/* ─── You Card ─── */
.you-card {
  background: linear-gradient(135deg, var(--card), var(--card2));
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,212,170,0.15);
}
.you-label   { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; }
.you-mystery { font-size: 40px; margin: 8px 0; }
.you-sub     { font-size: 13px; color: var(--muted); }

/* ─── System message ─── */
.system-message {
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  background: var(--card);
  border: 1px solid var(--border);
  transition: 0.3s;
}
.msg-yes  { border-color: var(--green); color: var(--green); background: rgba(0,200,83,0.1); }
.msg-no   { border-color: var(--red); color: var(--red); background: rgba(255,23,68,0.1); }
.msg-warn { border-color: var(--gold); color: var(--gold); background: rgba(255,214,0,0.1); }
.answer-yes { color: var(--green); }
.answer-no  { color: var(--red); }

/* ─── Question Deck ─── */
.question-deck {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.question-btn {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: 0.2s;
}
.question-btn:hover    { border-color: var(--accent); color: var(--accent); transform: translateX(4px); }
.question-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ─── Round Log ─── */
.round-log {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  max-height: 140px;
  overflow-y: auto;
}
.log-title { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.log-entry {
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.log-round { background: var(--accent); color: #000; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; flex-shrink: 0; }
.log-q     { color: var(--muted); flex: 1; }

/* ─── Result Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  width: 100%;
  max-width: 400px;
  animation: slideUp 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-win  { border-color: var(--gold); box-shadow: 0 0 40px rgba(255,214,0,0.3); }
.modal-lose { border-color: var(--red); box-shadow: 0 0 40px rgba(255,23,68,0.3); }

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

.modal-icon { font-size: 60px; margin-bottom: 8px; }
.prize-text { color: var(--gold); font-size: 18px; font-weight: 700; margin: 12px 0; }

.summary-table { text-align: left; margin-top: 16px; }
.summary-title { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

/* ─── Auth Forms ─── */
.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

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

.input-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-group input {
  background: var(--card2);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.input-group input:focus { border-color: var(--accent); }
.input-group input::placeholder { color: var(--muted); }

.input-hint { font-size: 11px; color: var(--muted); }

.auth-error {
  background: rgba(255,23,68,0.12);
  border: 1px solid var(--red);
  color: var(--red);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.auth-success {
  background: rgba(0,200,83,0.12);
  border: 1px solid var(--green);
  color: var(--green);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.auth-switch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.felo-info-card {
  background: rgba(192,132,252,0.08);
  border: 1px solid rgba(192,132,252,0.3);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--purple);
  text-align: center;
  width: 100%;
}

/* ─── Player Stats Card (Main Menu) ─── */
.center-block { text-align: center; }

.stats-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
}

.stat-item { text-align: center; flex: 1; }
.stat-value { font-size: 20px; font-weight: 700; }
.stat-label { font-size: 11px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }
.felo-color { color: var(--purple); }
.gold-color { color: var(--gold); }

.player-greeting { font-size: 15px; color: var(--text); }

.games-played-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ─── Auth Logo ─── */
.auth-logo { font-size: 56px; margin-bottom: 4px; }

/* ─── Hero Section (Main Menu) ─── */
.hero-section { text-align: center; padding: 8px 0; }
.hero-logo { font-size: 52px; margin-bottom: 4px; }

/* ─── Mode Cards Grid ─── */
.mode-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mode-card {
  border-radius: var(--radius);
  padding: 22px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* Staggered entrance animation */
  opacity: 0;
  animation: cardEntrance 0.5s ease forwards;
}
.mode-card:nth-child(1) { animation-delay: 0.05s; }
.mode-card:nth-child(2) { animation-delay: 0.12s; }
.mode-card:nth-child(3) { animation-delay: 0.19s; }
.mode-card:nth-child(4) { animation-delay: 0.26s; }
.mode-card:nth-child(5) { animation-delay: 0.33s; }

@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Shimmer sweep on hover */
.mode-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.06) 45%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 55%, transparent 60%);
  transition: left 0.6s ease;
  z-index: 1;
  pointer-events: none;
}
.mode-card:hover::before {
  left: 100%;
}

.mode-card:hover  { transform: translateY(-4px) scale(1.01); }
.mode-card:active { transform: translateY(0px) scale(0.99); }

/* ─── Per-mode themed hover glows ─── */
.mode-solo:hover    { border-color: rgba(0, 212, 170, 0.6); box-shadow: 0 8px 40px rgba(0, 212, 170, 0.15), inset 0 1px 0 rgba(0, 212, 170, 0.1); }
.mode-ai:hover      { border-color: rgba(192, 132, 252, 0.6); box-shadow: 0 8px 40px rgba(192, 132, 252, 0.15), inset 0 1px 0 rgba(192, 132, 252, 0.1); }
.mode-multi:hover   { border-color: rgba(41, 121, 255, 0.5); box-shadow: 0 8px 40px rgba(41, 121, 255, 0.12), inset 0 1px 0 rgba(41, 121, 255, 0.08); }
.mode-custom:hover  { border-color: rgba(0, 200, 83, 0.6); box-shadow: 0 8px 40px rgba(0, 200, 83, 0.15), inset 0 1px 0 rgba(0, 200, 83, 0.1); }
.mode-creator:hover { border-color: rgba(255, 214, 0, 0.6); box-shadow: 0 8px 40px rgba(255, 214, 0, 0.15), inset 0 1px 0 rgba(255, 214, 0, 0.1); }

.mode-multi  { background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%); border-color: rgba(41,121,255,0.25); opacity: 0.75; }
.mode-custom { background: linear-gradient(135deg, #1a2e1a 0%, #0f4020 100%); border-color: rgba(0,200,83,0.25); }
.mode-creator { background: linear-gradient(135deg, #2e1a0f 0%, #4a1a00 100%); border-color: rgba(255,214,0,0.25); }

.mode-card-icon  {
  font-size: 36px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mode-card:hover .mode-card-icon { transform: scale(1.15) translateY(-2px); }

.mode-card-title { font-size: 18px; font-weight: 900; letter-spacing: 1px; margin-top: 4px; }
.mode-card-sub   { font-size: 13px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.mode-card:hover .mode-card-sub { color: rgba(255,255,255,0.75); }

.mode-card-badge {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 1px;
  z-index: 2;
}
.coming-soon-badge { background: rgba(41,121,255,0.25); color: #7aadff; border: 1px solid rgba(41,121,255,0.4); }
.pundit-badge      { background: rgba(255,214,0,0.15); color: var(--gold); border: 1px solid rgba(255,214,0,0.4); animation: badgeGlow 2s ease-in-out infinite; }
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(255,214,0,0); }
  50%      { box-shadow: 0 0 10px rgba(255,214,0,0.3); }
}

.practice-link {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.practice-link a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* ─── Multiplayer Coming Soon ─── */
.btn-back.top-left {
  position: relative;
  align-self: flex-start;
  margin-bottom: 8px;
}
.coming-soon-hero { text-align: center; }
.multi-stats-card {
  display: flex;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  justify-content: space-around;
  width: 100%;
}
.multi-stat { text-align: center; }
.multi-val  { font-size: 28px; font-weight: 700; color: var(--accent); }
.multi-label { font-size: 12px; color: var(--muted); margin-top: 4px; }
.coming-soon-msg {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  width: 100%;
}
.coming-soon-msg strong { color: var(--text); }

/* ─── Custom Room Panel ─── */
.custom-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.custom-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.select-input {
  background: var(--card2);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  width: 100%;
  outline: none;
}
.divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  width: 100%;
}
.divider-or::before, .divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Lobby Screen ─── */
.room-code-display {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--accent);
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 12px 24px;
  display: inline-block;
  margin-bottom: 4px;
}
.room-code-small {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
}
.lobby-players {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.lobby-player-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
}
.lobby-player-row.waiting { opacity: 0.4; }
.lobby-player-num  { font-weight: 700; color: var(--muted); width: 20px; }
.lobby-player-name { flex: 1; font-weight: 600; }
.lobby-player-ready { font-size: 16px; }
.lobby-status {
  text-align: center;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

/* ─── Custom Game Screen ─── */
.live-scoreboard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.scoreboard-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.clue-number {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ─── Custom Room / Multiplayer Timer ─── */
.timer-bar {
  width: 100%;
  height: 12px; /* Increased height */
  background: rgba(255, 255, 255, 0.15); /* More visible track */
  border-radius: 6px;
  margin: 10px 0 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}
.timer-fill {
  height: 100%;
  background: var(--primary);
  width: 100%;
  transition: width 1s linear, background 0.3s;
}
.timer-text {
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.eliminated-row {
  opacity: 0.5;
  text-decoration: line-through;
}
.eliminated-banner {
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 12px;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 700;
  margin-bottom: 12px;
}
.spectator-msg {
  text-align: center;
  font-style: italic;
  color: var(--muted);
  padding: 16px;
  background: var(--card2);
  border-radius: var(--radius);
}

.action-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.score-row.score-you { color: var(--accent); font-weight: 700; }
.score-val { font-weight: 700; color: var(--gold); }
.round-winner-banner {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(255,214,0,0.1);
  border: 1px solid rgba(255,214,0,0.3);
  border-radius: 10px;
  padding: 10px;
  animation: slideUp 0.4s ease;
}

/* ─── Creator's Challenge ─── */
.creator-top-bar { background: linear-gradient(90deg, #2e1a0f, #4a1a00); border-radius: 12px; }
.creator-header { text-align: center; }
.creator-badge-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 2px;
}
.creator-sub { font-size: 13px; color: rgba(255,214,0,0.6); margin-top: 4px; }
.creator-hint-card {
  background: linear-gradient(135deg, rgba(255,214,0,0.08), rgba(255,100,0,0.08));
  border: 1px solid rgba(255,214,0,0.3);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
}
.creator-round-info {
  display: flex;
  justify-content: space-around;
  font-size: 13px;
  color: var(--muted);
}
.creator-round-info strong { color: var(--text); }
.creator-sys-msg {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
}
.creator-felo-badge {
  background: rgba(255,214,0,0.15);
  border: 1px solid rgba(255,214,0,0.4);
  color: var(--gold);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}
.creator-question-btn {
  background: linear-gradient(135deg, rgba(255,214,0,0.08), rgba(255,100,0,0.08));
  border: 1px solid rgba(255,214,0,0.25) !important;
  color: rgba(255,220,100,0.9) !important;
}
.creator-question-btn:hover { border-color: rgba(255,214,0,0.6) !important; }
.creator-input { border-color: rgba(255,214,0,0.4) !important; }
.creator-input:focus { border-color: var(--gold) !important; }
.btn-creator { background: var(--gold); color: #1a1a2e; font-weight: 700; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #ff8c00); color: #1a1a2e; font-weight: 700; }

/* ─── Practice Banner ─── */
.practice-banner {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  align-self: center;
}

/* ─── Menu Top Bar Auth Buttons ─── */
.brand-tag {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}
#menu-auth-btns {
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn-auth-small {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-auth-small:hover { background: var(--card); border-color: var(--accent); color: var(--accent); }
.btn-auth-signup {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d0d1a;
}
.btn-auth-signup:hover { opacity: 0.85; color: #0d0d1a; }

#menu-user-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ─── New Mode Card Themes ─── */
.mode-solo    { background: linear-gradient(135deg, rgba(13,26,46,0.85) 0%, rgba(10,37,64,0.85) 100%); border-color: rgba(0,212,170,0.25); }
.mode-ai      { background: linear-gradient(135deg, rgba(26,13,46,0.85) 0%, rgba(45,10,64,0.85) 100%); border-color: rgba(192,132,252,0.25); }
.mode-multi   { background: linear-gradient(135deg, rgba(26,26,46,0.8) 0%, rgba(15,52,96,0.8) 100%); border-color: rgba(41,121,255,0.2); opacity: 0.7; }
.mode-custom  { background: linear-gradient(135deg, rgba(26,46,26,0.85) 0%, rgba(15,64,32,0.85) 100%); border-color: rgba(0,200,83,0.25); }
.mode-creator { background: linear-gradient(135deg, rgba(46,26,15,0.85) 0%, rgba(74,26,0,0.85) 100%); border-color: rgba(255,214,0,0.25); }

/* ─── Social Auth Buttons ─── */
.social-auth-grid {
  display: flex;
  gap: 10px;
  width: 100%;
}
.btn-social {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--card2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-social:hover { background: var(--card); transform: translateY(-2px); }
.social-icon { width: 18px; height: 18px; }
.btn-google:hover   { border-color: #ea4335; }
.btn-facebook:hover { border-color: #1877f2; }
.btn-apple:hover    { border-color: #ffffff; }

/* ─── OTP Inputs ─── */
.otp-box {
  width: 45px;
  height: 50px;
  background: var(--card2);
  border: 2px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: all 0.2s;
}
.otp-box:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0, 212, 170, 0.2);
}



/* ─── ARENA RING ─── */
.table-arena {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 10px auto 10px auto;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 204, 0.08) 0%, rgba(0,0,0,0) 70%);
  border: 1px solid rgba(0, 255, 204, 0.2);
  box-shadow: inset 0 0 50px rgba(0, 255, 204, 0.08), 0 0 30px rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
}

/* Floating Guess Button */
.btn-guess-floating {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background: linear-gradient(135deg, var(--green), #00cc55);
  color: #000;
  font-weight: 900;
  font-size: 18px;
  padding: 16px;
  border: none;
  border-radius: 30px;
  box-shadow: 0 8px 30px rgba(0, 255, 102, 0.5);
  cursor: pointer;
  z-index: 1000;
  animation: pulseButton 2s infinite;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-guess-floating:active {
  transform: translateX(-50%) scale(0.95);
}
@keyframes pulseButton {
  0% { box-shadow: 0 0 15px rgba(0, 255, 102, 0.4); }
  50% { box-shadow: 0 0 35px rgba(0, 255, 102, 0.8); }
  100% { box-shadow: 0 0 15px rgba(0, 255, 102, 0.4); }
}

/* Guess Modal */
.guess-modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  display: none; justify-content: center; align-items: center;
  z-index: 2000;
}
.guess-modal-content {
  background: var(--card2);
  border: 2px solid var(--green);
  border-radius: 20px;
  padding: 24px;
  width: 90%;
  max-width: 350px;
  text-align: center;
  box-shadow: var(--glass-shadow);
  animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.guess-modal-input {
  width: 100%;
  padding: 14px;
  font-size: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.5);
  color: white;
  margin: 15px 0;
  text-align: center;
  font-weight: bold;
}
.guess-modal-input:focus {
  border-color: var(--green);
  outline: none;
  box-shadow: 0 0 15px rgba(0,255,102,0.3);
}

.table-arena::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 120px; height: 120px;
  border: 1px dashed rgba(0, 255, 204, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spinSlow 30s linear infinite;
}

@keyframes spinSlow {
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.center-stage {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 10;
}
.popup-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  box-shadow: 0 0 25px var(--accent-glow);
  object-fit: cover;
  animation: popUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.popup-name {
  color: var(--text);
  font-weight: 800;
  margin-top: 8px;
  text-shadow: 0 0 10px var(--accent-glow);
  letter-spacing: 1px;
}
@keyframes popUp {
  0% { transform: scale(0); opacity: 0; filter: blur(10px); }
  100% { transform: scale(1); opacity: 1; filter: blur(0px); }
}

/* ─── HOLOGRAPHIC SEATS ─── */
.seat {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--card2);
  border: 2px solid rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(10px);
  z-index: 5;
}

.seat.speaking {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow), inset 0 0 15px var(--accent-glow);
  animation: pulseAura 1.5s infinite;
}

@keyframes pulseAura {
  0% { box-shadow: 0 0 20px var(--accent-glow), inset 0 0 15px var(--accent-glow); }
  50% { box-shadow: 0 0 35px var(--accent-glow), inset 0 0 25px var(--accent-glow); }
  100% { box-shadow: 0 0 20px var(--accent-glow), inset 0 0 15px var(--accent-glow); }
}

/* FLAT, READABLE TAGS */
.seat-name {
  position: absolute;
  top: 100%;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.seat.speaking .seat-name {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent-glow);
}

.seat-entity-container {
  position: absolute;
  bottom: 100%;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 25;
  pointer-events: none;
}

.seat-entity {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.92);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6), 0 0 10px var(--accent-glow);
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.3px;
  backdrop-filter: blur(8px);
}

/* SLEEK SPEECH BUBBLES */
.speech-bubble {
  position: absolute;
  top: -45px;
  background: var(--card2);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  z-index: 20;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(10px);
  animation: bubblePop 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: var(--border) transparent transparent transparent;
}
@keyframes bubblePop {
  to { opacity: 1; transform: translateY(0); }
}

.speech-bubble.yes-bubble { background: rgba(0,255,102,0.15); border-color: var(--green); color: var(--green); }
.speech-bubble.yes-bubble::after { border-color: var(--green) transparent transparent transparent; }
.speech-bubble.no-bubble { background: rgba(255,51,102,0.15); border-color: var(--red); color: var(--red); }
.speech-bubble.no-bubble::after { border-color: var(--red) transparent transparent transparent; }

/* CHAT */
.chat-container {
  background: rgba(0,0,0,0.5);
  border-radius: 8px;
  padding: 10px;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
}
.chat-log {
  max-height: 120px;
  overflow-y: auto;
  font-size: 12px;
  margin-bottom: 10px;
  padding-right: 5px;
}
.chat-msg {
  margin-bottom: 4px;
}
.chat-msg.global .sender { color: #00ff88; font-weight: bold; }
.chat-msg.whisper .sender { color: #ff0055; font-style: italic; }
.chat-controls {
  display: flex;
  gap: 5px;
}
.btn-icon {
  background: #222;
  border: 1px solid #444;
  color: white;
  border-radius: 4px;
  padding: 5px;
  cursor: pointer;
}
.btn-icon.active {
  background: #00ff88;
  color: black;
}
.chat-input {
  flex-grow: 1;
  background: #111;
  color: white;
  border: 1px solid #444;
  padding: 5px;
  border-radius: 4px;
}
.chat-select {
  background: #111;
  color: white;
  border: 1px solid #444;
  padding: 5px;
  border-radius: 4px;
  font-size: 12px;
}
