/* ============================================================
   TambolaRoyal — Premium Dark Mobile-First CSS
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --flame:       #d04a02;
  --flame-hover: #ea580c;
  --flame-dark:  #9a3412;
  --bg:          #0b1329;
  --bg2:         #111e3d;
  --bg3:         #182a52;
  --surface:     rgba(255, 255, 255, 0.06);
  --surface2:    rgba(255, 255, 255, 0.10);
  --surface3:    #16254a;
  --border:      rgba(208, 74, 2, 0.30);
  --border-focus: rgba(234, 88, 12, 0.75);
  --gold:        #f59e0b;
  --gold2:       #fbbf24;
  --red:         #ef4444;
  --green:       #10b981;
  --blue:        #38bdf8;
  --purple:      #a855f7;
  --text:        #ffffff;
  --text2:       #cbd5e1;
  --text3:       #94a3b8;
  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 8px 32px rgba(5, 10, 25, 0.6);
  --glow-flame:  0 0 24px rgba(208, 74, 2, 0.55);
  --glow-gold:   0 0 20px rgba(245, 158, 11, 0.45);
  --glow-green:  0 0 20px rgba(16, 185, 129, 0.45);
  --font:        'Outfit', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  background-image: radial-gradient(circle at 50% 0%, #17274d 0%, #0b1329 80%);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* ── Background Orbs ─────────────────────────────────────── */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb1 { width: 440px; height: 440px; background: #d04a02; top: -100px; left: -100px; }
.orb2 { width: 380px; height: 380px; background: #f59e0b; bottom: -80px; right: -80px; animation-delay: -3s; }
.orb3 { width: 340px; height: 340px; background: #1d4ed8; top: 40%; left: 50%; animation-delay: -5s; }

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* ── Glassmorphism Card ──────────────────────────────────── */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
  z-index: 1;
}

/* ── Landing Page ────────────────────────────────────────── */
.landing-body { background: linear-gradient(135deg, #0b1329 0%, #111e3d 50%, #1a2c56 100%); }

.landing-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  position: relative;
  z-index: 1;
}

.logo-section { text-align: center; margin-bottom: 2.5rem; }
.logo-icon { font-size: 3.5rem; display: block; animation: bounceIn 0.8s cubic-bezier(.36,.07,.19,.97); }
.logo-title {
  font-size: 2.3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #d04a02 0%, #fb923c 45%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.logo-title .title-sub {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-top: 0.15rem;
}
.logo-subtitle { color: var(--text2); font-size: 0.95rem; margin-top: 0.4rem; font-weight: 400; }

@keyframes bounceIn {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.cards-wrapper { display: flex; flex-direction: column; gap: 1rem; }

.divider {
  display: flex; align-items: center; gap: 1rem;
  color: var(--text3); font-size: 0.85rem; font-weight: 500;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.card-header { text-align: center; margin-bottom: 1.25rem; }
.card-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.card-header h2 { font-size: 1.3rem; font-weight: 700; color: #ffffff; }
.card-header p { color: var(--text2); font-size: 0.85rem; margin-top: 0.2rem; }

.input-group { margin-bottom: 0.9rem; }
.input-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text2); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.5px; }
.input-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-group input::placeholder { color: var(--text3); }
.input-group input:focus {
  border-color: var(--flame-hover);
  box-shadow: 0 0 0 3px rgba(208, 74, 2, 0.35);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  width: 100%;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, #d04a02 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(208, 74, 2, 0.45);
}
.btn-primary:hover:not(:disabled) {
  box-shadow: var(--glow-flame);
  transform: translateY(-1px);
}

.btn-secondary {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid rgba(208, 74, 2, 0.45);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}
.btn-secondary:hover:not(:disabled) {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  box-shadow: 0 0 20px rgba(208, 74, 2, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text2);
  font-weight: 600;
}
.btn-outline:hover { border-color: var(--flame); color: #fb923c; }

.btn-lg { padding: 1.1rem; font-size: 1.1rem; margin-top: 1rem; }
.btn-icon { font-size: 1.1rem; }

.btn-icon-only {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text2);
  font-size: 1.1rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.btn-icon-only:hover { color: var(--gold); }

/* ── How to Play ─────────────────────────────────────────── */
.how-to-play {
  margin-top: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.how-to-play h3 { font-size: 1rem; color: var(--text2); margin-bottom: 1rem; font-weight: 600; }
.steps { display: flex; flex-direction: column; gap: 0.6rem; }
.step {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--text2);
  text-align: left;
}
.step-num {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: #0a0a1a;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* ── Game Header ─────────────────────────────────────────── */
.game-body { padding-top: 64px; }

.game-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(11, 19, 41, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 100;
}
.header-left { display: flex; align-items: center; gap: 0.5rem; }
.logo-small { font-size: 1.4rem; }
.header-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.header-right { display: flex; align-items: center; gap: 0.5rem; }

.room-badge {
  display: flex; align-items: center; gap: 0.4rem;
  background: rgba(208, 74, 2, 0.12);
  border: 1px solid rgba(208, 74, 2, 0.4);
  border-radius: 8px;
  padding: 0.3rem 0.7rem;
}
.room-label { font-size: 0.65rem; font-weight: 700; color: #fdba74; text-transform: uppercase; letter-spacing: 1px; }
.room-code-display { font-size: 1rem; font-weight: 800; color: #fbbf24; letter-spacing: 2px; }

/* ── Host & Player Main ──────────────────────────────────── */
.host-main, .player-main {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem 0.75rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

/* ── Section Cards Layout ────────────────────────────────── */
#game-section,
#waiting-section,
#gameover-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

/* ── Waiting Card ────────────────────────────────────────── */
.waiting-card { text-align: center; }
.waiting-card h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.waiting-desc { color: var(--text2); font-size: 0.9rem; margin-bottom: 1rem; }
.big-code {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 8px;
  color: var(--gold);
  text-shadow: var(--glow-gold);
  margin: 0.5rem 0 1.25rem;
  animation: pulse-gold 2s ease-in-out infinite;
}
@keyframes pulse-gold {
  0%, 100% { text-shadow: 0 0 15px rgba(245,158,11,0.4); }
  50%       { text-shadow: 0 0 30px rgba(245,158,11,0.8); }
}

.waiting-spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.waiting-tip { color: var(--text3); font-size: 0.8rem; margin-top: 1rem; }
.start-hint { color: var(--text3); font-size: 0.8rem; margin-top: 0.5rem; }

/* ── Players List ────────────────────────────────────────── */
.players-list {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: center;
  margin: 0.75rem 0;
  min-height: 40px;
}
.player-chip {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
}
.player-chip.disconnected { opacity: 0.4; }
.player-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.player-dot.off { background: var(--text3); }

/* ── Host Top ────────────────────────────────────────────── */
.host-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: center;
}
.current-number-card { text-align: center; }
.current-label { font-size: 0.75rem; color: var(--text2); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.current-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  text-shadow: var(--glow-gold);
  transition: transform 0.3s;
}
.current-number.pop { animation: numPop 0.4s cubic-bezier(.36,.07,.19,.97); }
@keyframes numPop {
  0%   { transform: scale(0.5); opacity: 0; }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}
.called-count { color: var(--text3); font-size: 0.8rem; margin-top: 0.3rem; }

.current-call {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fdba74;
  background: rgba(208, 74, 2, 0.16);
  border: 1px solid rgba(208, 74, 2, 0.40);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  margin: 0.4rem auto 0.2rem auto;
  display: inline-block;
  max-width: 95%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}
.current-call.pop {
  animation: callPop 0.35s ease;
}
@keyframes callPop {
  0% { transform: scale(0.85); opacity: 0.4; }
  100% { transform: scale(1); opacity: 1; }
}

.draw-area { display: flex; flex-direction: column; gap: 0.75rem; }
.btn-draw {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #d04a02 0%, #ea580c 100%);
  border: none; border-radius: var(--radius-sm);
  color: white; font-family: var(--font); font-size: 1rem; font-weight: 800;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(208, 74, 2, 0.45);
}
.btn-draw:hover { transform: translateY(-2px); box-shadow: var(--glow-flame); }
.btn-draw:active { transform: scale(0.96); }
.btn-draw:disabled { opacity: 0.5; cursor: not-allowed; }

.auto-draw-row {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  flex-wrap: wrap;
  transition: all 0.25s ease;
}
.auto-draw-row.active {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.08);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.15);
}
.toggle-label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  cursor: pointer; font-size: 0.85rem; color: var(--text2); font-weight: 500;
  user-select: none;
  position: relative;
}
.toggle-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.toggle-slider {
  width: 38px; height: 22px;
  background: #33334d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 11px;
  position: relative;
  transition: background 0.25s ease, border-color 0.25s ease;
  flex-shrink: 0;
}
.toggle-slider::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: #ffffff;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.toggle-label input:checked ~ .toggle-slider {
  background: var(--green);
  border-color: var(--green);
}
.toggle-label input:checked ~ .toggle-slider::after {
  transform: translateX(16px);
}
.toggle-label input:checked ~ .toggle-text {
  color: var(--green);
  font-weight: 600;
}

.speed-select {
  background: transparent; border: none; color: var(--gold);
  font-family: var(--font); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; outline: none; margin-left: auto;
}
.speed-select option { background: #111e3d; color: #fff; }

/* ── Prize Status ────────────────────────────────────────── */
.prizes-grid { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.prize-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s;
}
.prize-item.won { border-color: var(--flame); background: rgba(208, 74, 2, 0.12); }
.prize-item.won .prize-name { color: #fdba74; }
.prize-icon { font-size: 1.2rem; flex-shrink: 0; }
.prize-name { font-size: 0.9rem; font-weight: 600; flex: 1; color: var(--text); }
.prize-winner { font-size: 0.8rem; color: var(--text2); max-width: 120px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prize-item.won .prize-winner { color: #fbbf24; font-weight: 700; }
.prize-full { border-color: rgba(208, 74, 2, 0.4) !important; }

/* ── Number Board ────────────────────────────────────────── */
.board-title { margin-bottom: 0.75rem; font-size: 1rem; font-weight: 600; color: #ffffff; }
.number-board {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
}
.board-num {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text3);
  transition: all 0.3s;
  cursor: default;
}
.board-num.called {
  background: linear-gradient(135deg, #ea580c, #d04a02);
  color: #ffffff;
  border-color: #d04a02;
  box-shadow: 0 0 10px rgba(208, 74, 2, 0.65);
  font-weight: 800;
}
.board-num.latest {
  animation: latestPop 0.5s ease;
  background: linear-gradient(135deg, #fbbf24, #d04a02) !important;
  color: #ffffff !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.95), 0 0 12px rgba(208, 74, 2, 0.8) !important;
}
@keyframes latestPop {
  0%   { transform: scale(0.6); }
  60%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ── Last Called ─────────────────────────────────────────── */
.last-called {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.last-chip {
  padding: 0.3rem 0.7rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text2);
}
.last-chip:first-child {
  background: linear-gradient(135deg, #ea580c, #d04a02);
  color: #ffffff;
  border-color: #d04a02;
  box-shadow: 0 0 10px rgba(208, 74, 2, 0.5);
}

.last-called-mini {
  display: flex; gap: 4px; align-items: center;
}
.mini-chip {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-size: 0.75rem; font-weight: 700; color: var(--text3);
}
.mini-chip:first-child {
  background: linear-gradient(135deg, #ea580c, #d04a02);
  color: #ffffff;
  border-color: #d04a02;
  box-shadow: 0 0 8px rgba(208, 74, 2, 0.5);
}

.player-top { padding: 1rem; }
.player-top-inner { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }

.btn-cancel-game {
  width: 100%;
  padding: 0.6rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-cancel-game:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
}

/* ── Tambola Ticket ──────────────────────────────────────── */
.ticket-wrapper { overflow: hidden; }
.ticket-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.75rem; font-size: 0.9rem; font-weight: 600;
}
.ticket-name { color: var(--text2); font-size: 0.8rem; }

.tambola-ticket {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 3px;
  margin-bottom: 0.75rem;
}
.ticket-cell {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  font-size: clamp(0.65rem, 2.5vw, 0.85rem);
  font-weight: 700;
  transition: all 0.25s;
  cursor: default;
  border: 1.5px solid transparent;
  user-select: none;
}
.ticket-cell.empty {
  background: rgba(255,255,255,0.02);
  border-color: transparent;
}
.ticket-cell.number {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  cursor: pointer;
}
.ticket-cell.number:hover {
  border-color: var(--flame-hover);
  background: rgba(208, 74, 2, 0.15);
  transform: scale(1.05);
}
.ticket-cell.number.marked {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #10b981;
  color: white;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.55);
  transform: scale(1.05);
  cursor: pointer;
}
.ticket-cell.number.prompt-mark {
  border-color: var(--gold);
  animation: promptPulse 1s infinite alternate;
}
@keyframes promptPulse {
  0% { box-shadow: 0 0 4px rgba(245, 158, 11, 0.4); transform: scale(1); }
  100% { box-shadow: 0 0 14px rgba(245, 158, 11, 0.9); transform: scale(1.08); }
}
.ticket-cell.shake {
  animation: cellShake 0.35s ease;
}
@keyframes cellShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.ticket-cell.number.just-marked { animation: markPop 0.35s cubic-bezier(.36,.07,.19,.97); }
@keyframes markPop {
  0%   { transform: scale(0.7); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1.05); }
}

.marked-count {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text2);
  font-weight: 500;
}
.marked-count span { color: var(--green); font-weight: 800; }

/* ── Claim Buttons ───────────────────────────────────────── */
.claims-section h3 { margin-bottom: 0.3rem; }
.claim-hint { color: var(--text3); font-size: 0.8rem; margin-bottom: 0.9rem; }
.claim-buttons { display: flex; flex-direction: column; gap: 0.6rem; }

.btn-claim {
  width: 100%;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  color: var(--text);
  font-family: var(--font);
}
.btn-claim:hover:not(:disabled) {
  border-color: var(--flame-hover);
  background: rgba(208, 74, 2, 0.12);
  transform: translateX(4px);
}
.btn-claim:active:not(:disabled) { transform: scale(0.98); }
.btn-claim:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-claim.claimed {
  border-color: var(--green);
  background: rgba(16, 185, 129, 0.15);
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-claim-full:hover:not(:disabled) {
  border-color: #fbbf24 !important;
  background: rgba(208, 74, 2, 0.20) !important;
  box-shadow: 0 0 20px rgba(234, 88, 12, 0.5);
}
.claim-icon { font-size: 1.4rem; flex-shrink: 0; }
.claim-name { font-size: 0.95rem; font-weight: 700; display: block; color: #ffffff; }
.claim-desc { font-size: 0.75rem; color: var(--text2); display: block; }

/* ── Player Count Badge ──────────────────────────────────── */
.player-count {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--flame);
  color: #ffffff;
  font-size: 0.75rem; font-weight: 800;
  width: 22px; height: 22px; border-radius: 50%;
  margin-left: 0.4rem;
}

/* ── Game Over ───────────────────────────────────────────── */
.gameover-card { text-align: center; padding: 2rem 1.5rem; }
.gameover-emoji { font-size: 4rem; animation: bounceIn 0.8s; margin-bottom: 0.5rem; }
.gameover-card h2 { font-size: 1.8rem; font-weight: 900; margin-bottom: 1.25rem; }
.gameover-winners { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.winner-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
}
.winner-prize { color: var(--gold); font-weight: 700; }
.winner-name { color: var(--text); font-weight: 500; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.modal-card {
  width: 100%; max-width: 360px;
  text-align: center;
  padding: 2rem 1.5rem;
  animation: modalSlideUp 0.4s cubic-bezier(.36,.07,.19,.97);
}
@keyframes modalSlideUp {
  0%   { transform: translateY(60px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.modal-emoji { font-size: 3.5rem; margin-bottom: 0.75rem; animation: bounceIn 0.6s; }
.modal-card h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--gold); }
.modal-card p { color: var(--text2); font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.5; }

/* ── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--surface2);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem; font-weight: 500;
  color: var(--text);
  z-index: 9000;
  transition: transform 0.35s cubic-bezier(.36,.07,.19,.97), opacity 0.35s;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--green); color: var(--green); }
.toast.error   { border-color: var(--red);   color: var(--red); }
.toast.info    { border-color: var(--gold);  color: var(--gold); }

/* ── Responsive tweaks ───────────────────────────────────── */
@media (max-width: 380px) {
  .logo-title { font-size: 2rem; }
  .current-number { font-size: 2.8rem; }
  .big-code { font-size: 2.2rem; letter-spacing: 5px; }
  .host-top { grid-template-columns: 1fr; }
}
@media (min-width: 600px) {
  .host-top { grid-template-columns: 1fr 1.2fr; }
  .claim-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .btn-claim-full { grid-column: 1 / -1; }
}
