/* ═══════════════════════════════════════════════════════════════
   Meme Party Online — Modern Neon Redesign v2.0
   Glassmorphism · Inter typography · Smooth animations · Mobile-first
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  /* Backgrounds */
  --bg: #08060f;
  --bg2: #0d0b1a;
  --panel: rgba(18, 15, 36, 0.85);
  --panel2: rgba(26, 22, 64, 0.7);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-hover: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.12);

  /* Neon palette */
  --neon-cyan: #00f0ff;
  --neon-magenta: #ff00ff;
  --neon-lime: #39ff14;
  --neon-pink: #ff2d78;
  --neon-gold: #ffd700;
  --neon-purple: #b44dff;
  --accent: var(--neon-pink);
  --accent2: var(--neon-purple);
  --gold: var(--neon-gold);

  /* Text */
  --text: #edeaff;
  --text-secondary: rgba(237, 234, 255, 0.7);
  --muted: #8c88b8;
  --ok: #34d399;
  --err: #ff4466;

  /* Geometry */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.7);
  --shadow-glass: 0 4px 24px rgba(0, 0, 0, 0.3);

  /* Glows */
  --glow-cyan: 0 0 12px rgba(0, 240, 255, 0.4), 0 0 30px rgba(0, 240, 255, 0.15);
  --glow-magenta: 0 0 12px rgba(255, 0, 255, 0.4), 0 0 30px rgba(255, 0, 255, 0.15);
  --glow-gold: 0 0 12px rgba(255, 215, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.15);
  --glow-lime: 0 0 10px rgba(57, 255, 20, 0.5), 0 0 25px rgba(57, 255, 20, 0.2);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Orbitron', monospace;
}

/* ── Reset ── */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }

/* ── Ambient Animated Background ── */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 500px at 15% 0%, rgba(0, 240, 255, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 700px 700px at 85% 20%, rgba(255, 0, 255, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 600px 600px at 50% 80%, rgba(180, 77, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 400px 400px at 30% 60%, rgba(255, 45, 120, 0.03) 0%, transparent 50%);
  animation: ambientShift 12s ease-in-out infinite alternate;
}

@keyframes ambientShift {
  0% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.7; transform: scale(0.95); }
}

/* ═══ SCREEN TRANSITIONS ═══ */
.screen {
  display: none;
  animation: screenIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}
.screen.active { display: block; }

@keyframes screenIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

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

/* ── Screen backdrop (home screen) ── */
.screen-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(0, 240, 255, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 400px 400px at 80% 50%, rgba(255, 0, 255, 0.03) 0%, transparent 50%);
}

/* ── App container ── */
#app {
  max-width: 600px;
  margin: 0 auto;
  padding: 56px 16px 60px;
  min-height: 100%;
  position: relative;
  z-index: 1;
}

/* ── CRT Scanline (subtle) ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 240, 255, 0.015) 2px,
    rgba(0, 240, 255, 0.015) 4px
  );
}
@media (max-width: 480px) {
  body::after { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

/* ── Top nav bar ── */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 56px;
  background: rgba(8, 6, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.nav-logo {
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255, 45, 120, 0.3));
}

.nav-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Desktop nav links ── */
.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none !important; }
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}

.nav-link:hover {
  color: var(--text);
  background: var(--glass);
}

.nav-link.active {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
}

/* ── Hamburger toggle ── */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
}

.nav-toggle:hover { background: var(--glass); }

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Animated hamburger → X */
.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Mobile drawer ── */
.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 0.3s;
}

.nav-drawer-overlay:not(.hidden) { display: block; }

.nav-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  max-width: 80vw;
  height: 100%;
  z-index: 1001;
  background: rgba(13, 11, 26, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-drawer.open { right: 0; }

.nav-drawer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-drawer-logo { font-size: 28px; }

.nav-drawer-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex: 1;
}

.nav-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.nav-drawer-close:hover {
  background: var(--glass);
  color: var(--text);
}

.nav-drawer-body {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-drawer-link {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s;
  gap: 10px;
}

.nav-drawer-link:hover {
  color: var(--text);
  background: var(--glass);
}

.nav-drawer-link.active {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
}

.nav-drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-drawer-version {
  font-size: 12px;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  text-align: center;
  padding: 44px 0 20px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 99px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.15);
  font-size: 12px;
  font-weight: 600;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 36px;
  margin: 0;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink), var(--neon-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

.tagline {
  color: var(--text-secondary);
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 500;
}

.hero-cta {
  margin-top: 20px;
  margin-bottom: 8px;
}

.hero-stats {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  width: 100%;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  box-shadow: 0 4px 20px rgba(255, 45, 120, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(255, 45, 120, 0.55);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.15);
}

.btn-secondary:hover {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  box-shadow: var(--glow-cyan);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: auto;
}

.btn-ghost:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.04);
}

.btn-small {
  padding: 7px 14px;
  font-size: 13px;
  width: auto;
  flex: 0 0 auto;
}

.btn-large {
  padding: 14px 24px;
  font-size: 16px;
}

.btn-back {
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Ready pulse (lobby) ── */
@keyframes lobbyPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(255, 45, 120, 0.35); }
  50%      { box-shadow: 0 4px 40px rgba(255, 45, 120, 0.7), 0 0 60px rgba(180, 77, 255, 0.4); }
}
.btn-ready { animation: lobbyPulse 1.8s ease-in-out infinite; }

/* ═══════════════════════════════════════════════════════════════
   INPUTS
   ═══════════════════════════════════════════════════════════════ */
.inp {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  outline: none;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.inp::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.inp:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.08);
  background: rgba(0, 240, 255, 0.02);
}

.code-inp {
  text-transform: uppercase;
  letter-spacing: 10px;
  text-align: center;
  font-weight: 800;
  font-size: 24px;
  margin: 0;
  font-family: var(--font-display);
  text-indent: 10px;
  color: var(--neon-gold);
  background: rgba(0, 0, 0, 0.3);
  border: 2px dashed rgba(255, 215, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  transition: all 0.2s;
  caret-color: var(--neon-pink);
}

.code-inp::placeholder {
  color: var(--muted);
  opacity: 0.45;
  letter-spacing: 6px;
  font-weight: 700;
}

.code-inp:focus {
  border-color: var(--neon-gold);
  border-style: solid;
  background: rgba(255, 215, 0, 0.03);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.08), inset 0 0 18px rgba(255, 215, 0, 0.03);
}

.join-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 4px;
}

.join-row .code-inp {
  flex: 1;
  min-width: 0;
}

.join-row .btn {
  width: auto;
  flex: 0 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS & PANELS (glassmorphism)
   ═══════════════════════════════════════════════════════════════ */
.card-panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ═══════════════════════════════════════════════════════════════
   GAME SELECTION GRID
   ═══════════════════════════════════════════════════════════════ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  padding: 0;
  margin-top: 8px;
}

.game-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 16px 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  perspective: 600px;
  transform-style: preserve-3d;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.03);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(0, 240, 255, 0.08),
    0 0 48px rgba(180, 77, 255, 0.04);
}

.game-card:active {
  transform: translateY(-2px) scale(0.98);
}

.game-card-emoji {
  font-size: 42px;
  line-height: 1.2;
  transition: transform 0.3s;
}

.game-card:hover .game-card-emoji {
  transform: scale(1.15) rotate(-5deg);
}

.game-card-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.game-card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
  font-weight: 500;
}

.new-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 99px;
  box-shadow: 0 2px 12px rgba(255, 45, 120, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════════
   DIVIDER
   ═══════════════════════════════════════════════════════════════ */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  margin: 16px 0;
  font-size: 13px;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

/* ═══════════════════════════════════════════════════════════════
   STATUS & HINTS
   ═══════════════════════════════════════════════════════════════ */
.err {
  color: var(--err);
  font-size: 14px;
  min-height: 18px;
  margin: 10px 0 0;
  text-align: center;
  font-weight: 500;
}
.muted { color: var(--muted); font-size: 14px; }
.hint {
  margin: 8px 0 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════
   LOBBY
   ═══════════════════════════════════════════════════════════════ */
.lobby-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-glass);
  margin-top: 16px;
}

.room-head {
  /* alias for lobby-top */
}

.room-code {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 8px;
  color: var(--neon-gold);
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
  margin: 0;
}

.invite-box {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.invite-box .btn {
  width: auto;
}

.invite-text {
  flex: 1;
  min-width: 0;
}

.invite-text p {
  margin: 0 0 10px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
}

#qr-container { flex-shrink: 0; }

#qr-container img {
  width: 120px;
  height: 120px;
  background: #fff;
  padding: 8px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-glass);
  image-rendering: pixelated;
}

/* ── Player list ── */
.player-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-list li {
  background: var(--panel);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--glass-border);
  transition: all 0.25s;
}

.player-list li:first-child {
  border-color: rgba(255, 215, 0, 0.15);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.04), transparent);
}

.player-list li:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.player-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.player-name {
  font-weight: 600;
  font-size: 15px;
}

.player-status {
  font-size: 12px;
  color: var(--muted);
}

/* ── Badges ── */
.badge {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--neon-purple);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge.host {
  background: var(--neon-gold);
  color: #000;
}

/* ── Kick button in player list ── */
.btn-kick {
  background: none;
  border: 1px solid rgba(255, 80, 80, 0.35);
  color: #ff5050;
  font-size: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  opacity: 0.6;
}
.btn-kick:hover {
  background: rgba(255, 80, 80, 0.15);
  border-color: #ff5050;
  opacity: 1;
}

/* ── Status dot ── */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.4);
}
.dot.off {
  background: #555;
  box-shadow: none;
}

/* ── Lobby controls ── */
.lobby-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.lobby-controls select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  outline: none;
  cursor: pointer;
}

.lobby-controls select:focus {
  border-color: var(--neon-cyan);
}

.lobby-buttons {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.lobby-buttons .btn {
  flex: 0 0 auto;
  width: auto;
}

/* ═══════════════════════════════════════════════════════════════
   ROUND / MATCH
   ═══════════════════════════════════════════════════════════════ */
.round-status-bar {
  margin: 4px 0 8px;
}

.round-header {
  margin-bottom: 16px;
}

.round-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.round-badges .btn {
  margin-left: auto;
  width: auto;
}

.pill {
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pill-accent {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  color: #fff;
}

#prompt-text {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  color: var(--text);
  padding: 0 4px;
}

/* ── Prompt card ── */
.prompt-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(19, 16, 42, 0.6));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px 22px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  min-height: 100px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-glass);
}

.role-banner {
  text-align: center;
  margin: 16px 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.role-banner.judge {
  color: var(--neon-gold);
  font-weight: 700;
}

/* ── Live scores ── */
.live-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 4px 0 12px;
}
.ls-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  font-size: 12px;
  line-height: 1;
}
.ls-chip .ls-name {
  color: var(--text-secondary);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ls-chip .ls-pts {
  font-weight: 700;
  color: var(--neon-gold);
}

/* ── Hand (CAH cards) ── */
.hand {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.answer-card {
  background: rgba(255, 255, 255, 0.9);
  color: #13102a;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  min-height: 80px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.answer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.answer-card:active {
  transform: scale(0.96);
}

.answer-card.selected {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15), var(--glow-cyan);
}

/* Image cards */
.answer-card.is-image {
  position: relative;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  background: rgba(12, 10, 23, 0.8);
  overflow: hidden;
  border: 2px solid var(--glass-border);
}

.hand .answer-card.is-image {
  padding: 4px;
}

.hand .answer-card.is-image .card-img {
  max-height: 200px;
  object-fit: contain;
  background: rgba(5, 4, 13, 0.5);
}

.hand .answer-card.is-image .card-cap {
  font-size: 11px;
}

.card-img {
  width: 100%;
  height: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: var(--bg2);
}

.card-cap {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.25;
}

.card-plus {
  display: block;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
  margin: 4px 0;
}

/* Magnifier */
.card-magnifier {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.answer-card.is-image:hover .card-magnifier,
.answer-card.is-image:active .card-magnifier {
  opacity: 1;
  pointer-events: auto;
}

/* ── Reveal board ── */
.reveal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.reveal .answer-card {
  flex: none;
  width: 100%;
  min-height: 60px;
}

.reveal .answer-card.is-image {
  min-height: 0;
  padding: 4px;
}

.reveal .answer-card.is-image .card-img {
  max-height: 200px;
  object-fit: contain;
  background: rgba(5, 4, 13, 0.5);
}

.reveal .answer-card.is-image .card-cap {
  font-size: 11px;
}

.reveal .answer-card.win {
  border-color: var(--neon-gold);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15), var(--glow-gold);
  transform: scale(1.03);
}

.reveal .answer-card.is-readonly {
  cursor: default;
}

.reveal .answer-card.is-readonly:active {
  transform: none;
}

.author {
  font-size: 11px;
  color: var(--neon-purple);
  font-weight: 700;
  margin-top: 6px;
  text-align: center;
}

/* ── Wait zone ── */
.wait-zone {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   SCOREBOARD
   ═══════════════════════════════════════════════════════════════ */
.scoreboard {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scoreboard li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  transition: all 0.2s;
}

.scoreboard li.leader {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), transparent);
  border-color: rgba(255, 215, 0, 0.25);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.06);
}

.score-val {
  font-weight: 800;
  color: var(--neon-gold);
  font-size: 18px;
}

/* Result screen */
#screen-result h2 {
  text-align: center;
  font-size: 26px;
  font-family: var(--font-display);
  margin: 0 0 12px;
  background: linear-gradient(135deg, var(--neon-gold), var(--neon-pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#result-body {
  text-align: center;
  margin: 14px 0;
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   HOME SCREEN
   ═══════════════════════════════════════════════════════════════ */
.home-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4px;
}

.home-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 14px;
}

.home-links-guest .guest-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.home-links-guest .hint {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  max-width: 280px;
}

/* ═══════════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
  max-width: 90%;
  box-shadow: var(--shadow-glass);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
  animation: fadeIn 0.2s ease;
}

.modal-box {
  background: rgba(18, 15, 36, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 24px;
  border-radius: var(--radius);
  width: 88%;
  max-width: 360px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.05), var(--shadow-lg);
}

.modal-box h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 16px;
  text-align: center;
}

.hidden { display: none !important; }

/* ── Rules modal ── */
.rules-box { max-width: 400px; }
.rules-box h3 { font-size: 22px; }

.rules-list {
  margin: 0 0 18px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.rules-list li { padding-left: 4px; }
.rules-list b { color: var(--neon-gold); }

.rules-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.rules-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--neon-pink);
}

/* ── Tutorial modal ── */
.tutorial-box { max-width: 380px; }

.tutorial-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

.tutorial-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.tutorial-step.active {
  background: rgba(0, 240, 255, 0.04);
  border-color: rgba(0, 240, 255, 0.1);
}

.tutorial-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--neon-cyan);
  min-width: 28px;
  line-height: 1.3;
}

.tutorial-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.tutorial-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.tutorial-dots {
  display: flex;
  gap: 6px;
}

.tdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.2s;
}

.tdot.active {
  background: var(--neon-cyan);
  box-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════════ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: var(--radius);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2), 0 0 80px rgba(255, 0, 255, 0.1);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.2s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ═══════════════════════════════════════════════════════════════
   SHARE PANEL
   ═══════════════════════════════════════════════════════════════ */
.share-panel {
  background: var(--panel2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 14px 0 18px;
  text-align: center;
}
.share-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin: 10px 0;
}
.share-link {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}
.qr-box {
  display: flex;
  justify-content: center;
  margin: 12px 0 6px;
}
.qr-hint { font-size: 12px; margin: 4px 0 0; }

/* ═══════════════════════════════════════════════════════════════
   EMOJI PANEL & STREAM
   ═══════════════════════════════════════════════════════════════ */
.emoji-panel {
  position: fixed;
  bottom: 80px;
  right: 12px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.emoji-panel.visible { opacity: 1; transform: translateX(0); }

.emoji-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(18, 15, 36, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-btn:hover {
  transform: scale(1.2);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.emoji-btn:active { transform: scale(0.9); }

.emoji-rain {
  position: fixed;
  pointer-events: none;
  font-size: 26px;
  animation: emojiFall 2.5s ease-in forwards;
  z-index: 160;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.3));
}

@keyframes emojiFall {
  0%   { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
  60%  { opacity: 0.8; transform: translateY(60vh) rotate(180deg) scale(1.1); }
  100% { opacity: 0; transform: translateY(100vh) rotate(360deg) scale(0.6); }
}

/* ═══════════════════════════════════════════════════════════════
   MATCH BAR
   ═══════════════════════════════════════════════════════════════ */
.match-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.match-bar .btn { margin-left: auto; }

/* ═══════════════════════════════════════════════════════════════
   AVATAR
   ═══════════════════════════════════════════════════════════════ */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-sm {
  width: 32px;
  height: 32px;
}

/* ═══════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER — in nav bar
   ═══════════════════════════════════════════════════════════════ */
.nav-langs {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.nav-drawer-langs {
  display: flex;
  gap: 4px;
  margin-top: 16px;
  padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.nav-drawer-langs .lang-btn {
  flex: 1;
  text-align: center;
  font-size: 13px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  font-weight: 500;
}

.nav-drawer-langs .lang-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--text);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 13px;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1;
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.lang-btn.active {
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
}

/* ═══════════════════════════════════════════════════════════════
   SOUND TOGGLE
   ═══════════════════════════════════════════════════════════════ */
.sfx-toggle {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 1001;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--panel);
  cursor: pointer;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}

.sfx-toggle:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   PLAYER STATS PROFILE
   ═══════════════════════════════════════════════════════════════ */
.stats-box { max-width: 400px; }
.stats-box h3 { text-align: center; margin: 0 0 20px; font-family: var(--font-display); font-size: 20px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.stat-item {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  border: 1px solid var(--glass-border);
}
.stat-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stats-fav {
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.06), rgba(180, 77, 255, 0.06));
  border: 1px solid rgba(255, 0, 255, 0.15);
}
.stats-fav .stat-val { color: var(--neon-magenta); }

/* ═══════════════════════════════════════════════════════════════
   COUNTDOWN OVERLAY
   ═══════════════════════════════════════════════════════════════ */
.countdown-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 15, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  animation: fadeIn 0.2s;
}

.countdown-num {
  font-family: var(--font-display);
  font-size: 100px;
  font-weight: 900;
  color: var(--neon-cyan);
  text-shadow: 0 0 50px rgba(0, 240, 255, 0.5), 0 0 100px rgba(0, 240, 255, 0.2);
  animation: countPop 0.6s ease-out;
}

@keyframes countPop {
  0%   { transform: scale(2); opacity: 0; }
  50%  { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   CONFETTI
   ═══════════════════════════════════════════════════════════════ */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE: ≤640px (mobile)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  #app {
    padding: 56px 12px 40px;
  }

  .hero {
    padding: 32px 0 16px;
  }

  .hero h1 {
    font-size: 24px;
    letter-spacing: 1px;
  }

  .hero-badge {
    font-size: 10px;
    padding: 4px 10px;
  }

  .tagline {
    font-size: 14px;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .game-card {
    padding: 20px 10px 16px;
    gap: 8px;
  }

  .game-card-emoji {
    font-size: 30px;
  }

  .game-card-name {
    font-size: 12px;
    letter-spacing: 0;
  }

  .game-card-desc {
    font-size: 11px;
  }

  .hand {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .reveal {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .room-code {
    font-size: 28px;
    letter-spacing: 6px;
  }

  #qr-container img {
    width: 90px;
    height: 90px;
  }

  .invite-box {
    flex-direction: column;
    text-align: center;
  }

  .invite-box .btn {
    width: 100%;
  }

  .lobby-top {
    margin-top: 0;
  }

  .hero h1 {
    padding: 0 24px;
    word-break: break-word;
  }

  #lang-switcher {
    top: 64px;
    right: 8px;
  }

  .lang-btn {
    font-size: 10px;
    padding: 3px 6px;
  }

  .sfx-toggle {
    top: 62px;
    left: 8px;
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .code-inp {
    font-size: 20px;
    letter-spacing: 8px;
    padding: 12px 10px;
  }

  #prompt-text {
    font-size: 18px;
  }

  .answer-card {
    font-size: 13px;
    padding: 12px;
  }

  .round-status-bar {
    margin-top: 4px;
  }

  .home-links {
    font-size: 13px;
    gap: 12px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE: ≤380px (small phones)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 380px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .game-card {
    padding: 14px 8px 12px;
    gap: 4px;
  }

  .game-card-name {
    font-size: 11px;
  }

  .hero h1 {
    font-size: 20px;
  }

  .inp, .code-inp {
    font-size: 16px;
    padding: 11px 10px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE: ≥768px (tablet / desktop)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero h1 {
    font-size: 44px;
  }

  .game-card-emoji {
    font-size: 50px;
  }

  .game-card {
    padding: 32px 20px 24px;
  }

  #qr-container img {
    width: 140px;
    height: 140px;
  }

  #lang-switcher {
    top: 8px;
    right: 16px;
  }

  .sfx-toggle {
    top: 8px;
    left: 16px;
  }

  .lobby-top {
    margin-top: 0;
  }

  .round-status-bar {
    margin-top: 4px;
  }
}
