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

/* ═══════════════════════════════════════════════════
   USA vs IRAN WAR GAMES THEME
   Palette: Gunmetal (#1a1d21, #2a2d32, #3a3d42)
            USA Navy (#1e40af, #3b82f6, #60a5fa)
            Iran Green (#16a34a, #22c55e, #2ecc71)
            Alert Red (#c0392b, #dc2626)
   Typography: 'Inter' for all text
   Borders: 1px solid, rounded corners
   Screw icons: ⊕ placed via ::before/::after on containers
   ═══════════════════════════════════════════════════ */

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

body {
  background: #0d0f12;
  overflow: hidden;
  overflow-y: auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #c8ccd0;
  height: 100vh;
  width: 100vw;
}

/* ═══ SCREW ICON MIXIN (via shared class) ═══ */
.lobby-box,
.auth-box,
.account-popup-content,
.waiting-content,
#controls-info,
#chat-container,
.free-play-section,
.leaderboard-section,
#scoreboard,
#hud,
#prize-pool-hud {
  position: relative;
}

/* Top-left screw */
.lobby-box::before,
.auth-box::before,
.account-popup-content::before,
.waiting-content::before,
#chat-container::before {
  content: '⊕';
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 10px;
  color: #4a4d52;
  z-index: 10;
  line-height: 1;
  pointer-events: none;
}

/* Bottom-right screw */
.lobby-box::after,
.auth-box::after,
.account-popup-content::after,
.waiting-content::after,
#chat-container::after {
  content: '⊕';
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 10px;
  color: #4a4d52;
  z-index: 10;
  line-height: 1;
  pointer-events: none;
}

/* ─── Lobby ─── */
#lobby {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 16px 0 24px;
  background: #0d0f12;
  position: relative;
  z-index: 100;
}

#lobby::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* War sky glow — USA blue left, conflict red center */
    radial-gradient(ellipse 50% 35% at 20% 0%, rgba(30,64,175,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 50% 35% at 80% 0%, rgba(22,163,74,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 60% 25% at 50% 5%, rgba(220,38,38,0.08) 0%, transparent 60%),
    /* Distant fires */
    radial-gradient(circle at 20% 18%, rgba(255,100,20,0.05) 0%, transparent 30%),
    radial-gradient(circle at 80% 15%, rgba(220,70,20,0.04) 0%, transparent 28%),
    radial-gradient(circle at 50% 22%, rgba(200,90,20,0.03) 0%, transparent 25%),
    /* Smoke drifts */
    radial-gradient(ellipse 70% 20% at 30% 45%, rgba(55,50,40,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 50% 20% at 65% 40%, rgba(50,45,35,0.15) 0%, transparent 60%),
    /* Trench earth at bottom */
    linear-gradient(0deg, rgba(35,25,18,0.85) 0%, rgba(35,25,18,0.5) 6%, rgba(55,42,28,0.3) 12%, transparent 28%),
    /* Barbed wire thin lines */
    repeating-linear-gradient(0deg, transparent, transparent 24%, rgba(80,70,50,0.05) 24%, rgba(80,70,50,0.05) 24.2%, transparent 24.2%, transparent 100%),
    repeating-linear-gradient(0deg, transparent, transparent 30%, rgba(80,70,50,0.03) 30%, rgba(80,70,50,0.03) 30.15%, transparent 30.15%, transparent 100%),
    /* Vertical wooden supports */
    repeating-linear-gradient(90deg, transparent, transparent 200px, rgba(60,45,30,0.06) 200px, rgba(60,45,30,0.06) 203px, transparent 203px),
    /* Subtle scanlines */
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,182,39,0.008) 3px, rgba(255,182,39,0.008) 4px),
    /* Base tint */
    linear-gradient(180deg, #110e0b 0%, #0d0f12 35%, #0d0f12 100%);
  pointer-events: none;
  z-index: 1;
}

#lobby::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Sandbag mounds at bottom */
    radial-gradient(ellipse 14% 5% at 8% 97%, rgba(65,50,30,0.4) 0%, transparent 100%),
    radial-gradient(ellipse 16% 6% at 30% 96%, rgba(70,55,35,0.35) 0%, transparent 100%),
    radial-gradient(ellipse 12% 5% at 55% 97%, rgba(68,52,32,0.4) 0%, transparent 100%),
    radial-gradient(ellipse 18% 6% at 80% 95%, rgba(72,56,36,0.35) 0%, transparent 100%),
    radial-gradient(ellipse 10% 4% at 95% 97%, rgba(60,48,28,0.4) 0%, transparent 100%),
    /* Wire crosses */
    repeating-linear-gradient(45deg, transparent, transparent 80px, rgba(85,75,55,0.03) 80px, rgba(85,75,55,0.03) 81px, transparent 81px, transparent 160px),
    repeating-linear-gradient(-45deg, transparent, transparent 80px, rgba(85,75,55,0.03) 80px, rgba(85,75,55,0.03) 81px, transparent 81px, transparent 160px),
    /* Vignette */
    radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
  z-index: 1;
}

#lobby > * {
  position: relative;
  z-index: 2;
}

.lobby-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 32px;
  background: linear-gradient(90deg, #60a5fa 0%, #60a5fa 38%, #dc2626 50%, #22c55e 62%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  margin-bottom: 2px;
  text-align: center;
  letter-spacing: 4px;
  text-transform: uppercase;
}

#auth-screen .lobby-title {
  font-size: 28px;
  letter-spacing: 5px;
}

.lobby-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #1e40af;
  text-shadow: none;
  margin-bottom: 20px;
  letter-spacing: 6px;
  text-transform: uppercase;
}

#auth-screen .lobby-subtitle {
  color: #1e40af;
  text-shadow: none;
  letter-spacing: 7px;
  margin-bottom: 50px;
}

.lobby-box {
  background: #13161a;
  border: 1px solid #2a2d32;
  border-top: 1px solid #1e40af;
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: none;
  width: 460px;
  max-height: none;
  overflow-y: visible;
  position: relative;
}

.lobby-box::-webkit-scrollbar {
  width: 4px;
}

.lobby-box::-webkit-scrollbar-track {
  background: #0d0f12;
}

.lobby-box::-webkit-scrollbar-thumb {
  background: #3a3d42;
  border-radius: 4px;
}

.lobby-box::-webkit-scrollbar-thumb:hover {
  background: #1e40af;
}

/* Mode Selection */
.mode-select {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.mode-option {
  flex: 1;
  background: #0d0f12;
  border: 1px solid #2a2d32;
  padding: 10px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
  border-radius: 8px;
}

.mode-option::before {
  content: none;
}

.mode-option:hover {
  background: #1a1d21;
  border-color: #6b7280;
}

.mode-option.selected {
  background: #1a1d21;
  border-color: #1e40af;
  box-shadow: inset 0 0 0 1px rgba(90,107,63,0.15);
}

.mode-option.cooldown-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  border-color: #1a1d21;
}

.mode-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #3b82f6;
  margin-bottom: 4px;
  text-shadow: none;
}

.mode-desc {
  font-size: 9px;
  color: #6b7280;
  margin-bottom: 6px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.mode-players {
  font-size: 10px;
  color: #9ca3af;
  font-family: 'Inter', sans-serif;
}

.lobby-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.action-btn {
  background: #1a1d21;
  color: #3b82f6;
  border: 1px solid #1e40af;
  border-bottom: 1px solid #1e40af;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  padding: 10px 22px;
  cursor: pointer;
  letter-spacing: 2px;
  transition: background 0.15s, color 0.15s;
  text-shadow: none;
  text-transform: uppercase;
  border-radius: 8px;
}

.action-btn:hover {
  background: #1e40af;
  color: #0d0f12;
  box-shadow: none;
  transform: none;
  border-color: #1e40af;
}

.action-divider {
  color: #3a3d42;
  font-size: 10px;
}

.rooms-list {
  width: 100%;
}

.rooms-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  margin-bottom: 12px;
  font-size: 10px;
  color: #6b7280;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.rooms-count {
  color: #3b82f6;
  font-family: 'Inter', sans-serif;
}

.rooms-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 150px;
  overflow-y: auto;
  padding-right: 4px;
}

.room-item {
  background: #0d0f12;
  border: 1px solid #2a2d32;
  border-left: 2px solid #6b7280;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
  position: relative;
  border-radius: 6px;
}

.room-item::after {
  content: attr(data-mode);
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 8px;
  color: #1e40af;
  background: #0d0f12;
  padding: 1px 5px;
  border: 1px solid #2a2d32;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 1px;
}

.room-item:hover {
  background: #1a1d21;
  border-left-color: #1e40af;
}

.room-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.room-id {
  font-size: 11px;
  color: #3b82f6;
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
}

.room-status {
  font-size: 8px;
  color: #6b7280;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.room-players {
  font-size: 10px;
  color: #9ca3af;
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
}

/* Scrollbar for rooms list */
.rooms-grid::-webkit-scrollbar {
  width: 4px;
}

.rooms-grid::-webkit-scrollbar-track {
  background: #0d0f12;
}

.rooms-grid::-webkit-scrollbar-thumb {
  background: #3a3d42;
  border-radius: 4px;
}

.rooms-grid::-webkit-scrollbar-thumb:hover {
  background: #1e40af;
}

/* Countdown Overlay */
.countdown-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 15, 18, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.countdown-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.countdown-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: #3b82f6;
  text-shadow: none;
  letter-spacing: 8px;
  text-transform: uppercase;
}

.countdown-number {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 72px;
  color: #c0392b;
  text-shadow: none;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.7; }
}


.lobby-teams {
  display: flex;
  gap: 40px;
  margin-top: 10px;
  font-size: 10px;
  align-items: center;
  padding: 8px 20px;
  background: #13161a;
  border: 1px solid #2a2d32;
  border-radius: 8px;
}

.team-label-usa {
  color: #60a5fa;
  text-shadow: none;
  letter-spacing: 3px;
  -webkit-text-fill-color: #60a5fa;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.vs-divider {
  color: #dc2626;
  font-size: 9px;
  letter-spacing: 3px;
  font-weight: 700;
}

.team-label-iran {
  color: #2ecc71;
  text-shadow: none;
  letter-spacing: 3px;
}

/* ─── Game Container ─── */
#game-container {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: #0d0f12;
  z-index: 40;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

/* ─── CRT + Grain Overlay ─── */
#crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

/* Scanlines */
#crt-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  z-index: 51;
}

/* Grain noise */
#crt-overlay::after {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="200" height="200" filter="url(%23n)" opacity="0.08"/></svg>');
  background-size: 200px 200px;
  animation: grain 0.3s steps(4) infinite;
  z-index: 52;
  opacity: 0.5;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-5%, -5%); }
  50% { transform: translate(5%, 5%); }
  75% { transform: translate(-2%, 3%); }
  100% { transform: translate(0, 0); }
}

/* Vignette */
#vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 53;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.5) 100%);
}

/* ─── Scoreboard ─── */
#scoreboard {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: none;
  align-items: center;
  gap: 20px;
  background: #13161a;
  border: 1px solid #2a2d32;
  border-top: 2px solid #1e40af;
  box-shadow: 0 0 20px rgba(30, 64, 175, 0.15);
  padding: 8px 28px;
  border-radius: 8px;
}

.score-team {
  font-size: 13px;
  letter-spacing: 2px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.score-usa {
  color: #60a5fa;
  -webkit-text-fill-color: #60a5fa;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  text-shadow: none;
}

.score-iran {
  color: #2ecc71;
  text-shadow: none;
}

.score-divider {
  font-size: 18px;
  color: #3a3d42;
}

.score-num {
  font-size: 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

/* ─── HUD ─── */
#hud {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: none;
  align-items: center;
  gap: 14px;
  background: #13161a;
  padding: 8px 22px;
  border-radius: 8px;
  border: 1px solid #2a2d32;
}

.hp-bar-bg {
  width: 200px;
  height: 12px;
  background: #1a1d21;
  border: 1px solid #2a2d32;
  border-radius: 4px;
  overflow: hidden;
}

.hp-bar-fill {
  height: 100%;
  background: #2ecc71;
  transition: width 0.2s;
  border-radius: 4px;
}

.hp-text {
  font-size: 10px;
  color: #9ca3af;
  min-width: 70px;
  font-family: 'Inter', sans-serif;
}

.team-badge {
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 2px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-usa {
  background: rgba(59,130,246,0.12);
  border: 1px solid #3b82f6;
  color: #60a5fa;
}

.badge-iran {
  background: rgba(46,204,113,0.1);
  color: #2ecc71;
  border: 1px solid #2ecc71;
}

/* ─── Kill Feed ─── */
#kill-feed {
  position: fixed;
  top: 56px;
  right: 16px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.kill-msg {
  font-size: 8px;
  padding: 3px 7px;
  background: rgba(13, 15, 18, 0.9);
  border: 1px solid #2a2d32;
  border-radius: 4px;
  animation: fadeOut 4s forwards;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

@keyframes fadeOut {
  0% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}

/* ─── Respawn Overlay ─── */
#respawn-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(192, 57, 43, 0.15);
}

#respawn-overlay span {
  font-size: 20px;
  color: #c0392b;
  text-shadow: none;
  animation: pulse 1s infinite;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* ─── Round Timer Overlay ─── */
.round-timer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 15, 18, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.round-timer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.round-winner {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: #3b82f6;
  text-shadow: none;
  letter-spacing: 6px;
  text-transform: uppercase;
}

.round-scores {
  font-size: 22px;
  color: #c8ccd0;
  letter-spacing: 2px;
  margin: 8px 0;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.round-timer {
  font-size: 16px;
  color: #6b7280;
  font-family: 'Inter', sans-serif;
}

.round-timer-number {
  color: #c0392b;
  font-size: 22px;
  text-shadow: none;
  animation: pulse 1s infinite;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
}

/* ─── Room Info ─── */
#room-info {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 60;
  font-size: 8px;
  color: #6b7280;
  display: none;
  font-family: 'Inter', sans-serif;
  letter-spacing: 2px;
}

/* ─── Controls Info ─── */
#controls-info {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 60;
  background: #13161a;
  border: 1px solid #2a2d32;
  padding: 10px;
  border-radius: 8px;
  display: none;
}

.controls-title {
  color: #3b82f6;
  font-size: 10px;
  margin-bottom: 6px;
  text-align: center;
  text-shadow: none;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.control-item {
  color: #9ca3af;
  font-size: 8px;
  margin: 3px 0;
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
}

/* ─── Chat Interface ─── */
#chat-container {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 300px;
  height: 300px;
  z-index: 100;
  background: #13161a;
  border: 1px solid #2a2d32;
  border-top: 1px solid #1e40af;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid #2a2d32;
}

.chat-message {
  font-size: 8px;
  color: #9ca3af;
  padding: 3px 6px;
  background: rgba(26,29,33,0.5);
  border-left: 1px solid #3a3d42;
  border-radius: 4px;
  word-wrap: break-word;
  font-family: 'Inter', sans-serif;
}

.chat-message .player-name {
  color: #3b82f6;
  margin-right: 4px;
}

.chat-input-container {
  display: flex;
  padding: 8px;
  gap: 6px;
  border-top: none;
}

#chat-input {
  flex: 1;
  background: #0d0f12;
  border: 1px solid #2a2d32;
  color: #c8ccd0;
  padding: 4px 8px;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  border-radius: 6px;
}

#chat-input:focus {
  outline: none;
  border-color: #1e40af;
}

#chat-send {
  background: #1e40af;
  color: #0d0f12;
  border: 1px solid #1e40af;
  padding: 4px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 1px;
}

#chat-send:hover {
  background: #3b82f6;
}

#chat-messages::-webkit-scrollbar {
  width: 3px;
}

#chat-messages::-webkit-scrollbar-track {
  background: #0d0f12;
}

#chat-messages::-webkit-scrollbar-thumb {
  background: #3a3d42;
  border-radius: 4px;
}

/* Hide chat when game is active */
body.in-game #chat-container {
  display: none !important;
}

/* Alternative: Hide chat when lobby is hidden */
#lobby[style*="display: none"] ~ #chat-container {
  display: none !important;
}

/* ─── Auth Screen ─── */
#auth-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #0d0f12;
  position: relative;
  z-index: 100;
  overflow: hidden;
}

#auth-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* War sky glow — USA vs Iran split */
    radial-gradient(ellipse 60% 40% at 25% 0%, rgba(30,64,175,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 75% 0%, rgba(22,163,74,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 80% 30% at 50% 8%, rgba(220,38,38,0.1) 0%, transparent 55%),
    /* Distant explosion glow left */
    radial-gradient(circle at 15% 25%, rgba(255,120,30,0.08) 0%, transparent 40%),
    /* Distant explosion glow right */
    radial-gradient(circle at 85% 20%, rgba(200,60,20,0.06) 0%, transparent 35%),
    /* Smoke haze across middle */
    radial-gradient(ellipse 80% 30% at 40% 55%, rgba(60,55,45,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 60% 25% at 70% 50%, rgba(50,45,35,0.2) 0%, transparent 65%),
    /* Ground/trench silhouette band */
    linear-gradient(0deg, rgba(30,22,15,0.95) 0%, rgba(30,22,15,0.7) 8%, rgba(50,40,25,0.4) 15%, transparent 35%),
    /* Barbed wire horizontal lines */
    repeating-linear-gradient(0deg, transparent, transparent 28%, rgba(80,70,50,0.06) 28%, rgba(80,70,50,0.06) 28.3%, transparent 28.3%, transparent 100%),
    repeating-linear-gradient(0deg, transparent, transparent 32%, rgba(80,70,50,0.04) 32%, rgba(80,70,50,0.04) 32.2%, transparent 32.2%, transparent 100%),
    /* Vertical trench support beams */
    repeating-linear-gradient(90deg, transparent, transparent 180px, rgba(60,45,30,0.08) 180px, rgba(60,45,30,0.08) 184px, transparent 184px),
    /* Subtle scanlines */
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,182,39,0.008) 2px, rgba(255,182,39,0.008) 3px),
    /* Base dark */
    linear-gradient(180deg, #12100d 0%, #0d0f12 40%, #0d0f12 100%);
  pointer-events: none;
  z-index: 1;
}

#auth-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Sandbag mound silhouettes at bottom */
    radial-gradient(ellipse 15% 6% at 10% 95%, rgba(70,55,35,0.5) 0%, transparent 100%),
    radial-gradient(ellipse 12% 5% at 25% 96%, rgba(65,50,30,0.4) 0%, transparent 100%),
    radial-gradient(ellipse 18% 7% at 50% 94%, rgba(75,58,38,0.45) 0%, transparent 100%),
    radial-gradient(ellipse 14% 6% at 75% 95%, rgba(68,52,32,0.4) 0%, transparent 100%),
    radial-gradient(ellipse 16% 5% at 90% 96%, rgba(72,56,36,0.5) 0%, transparent 100%),
    /* Barbed wire X shapes */
    repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(90,80,60,0.04) 60px, rgba(90,80,60,0.04) 61px, transparent 61px, transparent 120px),
    repeating-linear-gradient(-45deg, transparent, transparent 60px, rgba(90,80,60,0.04) 60px, rgba(90,80,60,0.04) 61px, transparent 61px, transparent 120px),
    /* Vignette */
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
  z-index: 1;
}

#auth-screen > * {
  position: relative;
  z-index: 2;
}

.auth-box {
  background: #13161a;
  border: 1px solid #2a2d32;
  border-top: 1px solid #1e40af;
  border-radius: 12px;
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: none;
  min-width: 400px;
  align-items: center;
  margin-top: 30px;
  position: relative;
  clip-path: none;
}

.auth-buttons {
  display: flex;
  gap: 16px;
}

.auth-btn {
  padding: 14px 36px;
  font-size: 11px;
  letter-spacing: 3px;
  position: relative;
  overflow: hidden;
  transition: background 0.15s, color 0.15s;
  text-shadow: none;
  background: #1e40af;
  color: #0d0f12;
  border: 1px solid #1e40af;
  border-bottom: 1px solid #1e40af;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-btn::before {
  content: none;
}

.auth-btn:hover {
  background: #3b82f6;
  box-shadow: none;
  transform: none;
  border-color: #3b82f6;
  color: #0d0f12;
}

.login-variant {
  background: #1a1d21;
  color: #3b82f6;
  border: 1px solid #1e40af;
  border-bottom: 1px solid #1e40af;
}

.login-variant:hover {
  background: #1e40af;
  color: #0d0f12;
  border-color: #1e40af;
  box-shadow: none;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.auth-input {
  background: #0d0f12;
  border: 1px solid #2a2d32;
  color: #c8ccd0;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  border-radius: 6px;
  width: 100%;
  box-shadow: none;
  transition: border-color 0.15s;
}

.auth-input::placeholder {
  color: #4a4d52;
}

.auth-input:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: none;
  background: #0d0f12;
}

.auth-cancel-btn {
  background: transparent;
  color: #6b7280;
  border: 1px solid #2a2d32;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  border-radius: 6px;
}

.auth-cancel-btn:hover {
  color: #c0392b;
  border-color: #c0392b;
}

.auth-error {
  color: #c0392b;
  font-size: 9px;
  text-align: center;
  min-height: 16px;
  text-shadow: none;
  font-family: 'Inter', sans-serif;
}

/* ─── Lobby Top Bar ─── */
.lobby-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin-bottom: 8px;
  padding: 0 4px;
}

.lobby-username {
  font-size: 8px;
  color: #3b82f6;
  letter-spacing: 1px;
  word-break: break-all;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Inter', sans-serif;
}

.account-btn-style {
  font-size: 9px;
  padding: 6px 14px;
  background: transparent;
  color: #6b7280;
  border: 1px solid #2a2d32;
  border-bottom: 1px solid #2a2d32;
  border-radius: 8px;
}

.account-btn-style:hover {
  background: #1a1d21;
  border-color: #1e40af;
  color: #3b82f6;
}

/* ─── Account Popup ─── */
.account-popup {
  position: fixed;
  inset: 0;
  background: rgba(13, 15, 18, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.account-popup-content {
  background: #13161a;
  border: 1px solid #2a2d32;
  border-top: 1px solid #1e40af;
  border-radius: 12px;
  padding: 28px;
  min-width: 400px;
  max-width: 500px;
  box-shadow: none;
}

.account-popup-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: #3b82f6;
  text-shadow: none;
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: 6px;
  text-transform: uppercase;
}

.account-field {
  margin-bottom: 14px;
}

.account-field label {
  font-size: 8px;
  color: #6b7280;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.account-key {
  background: #0d0f12;
  border: 1px solid #2a2d32;
  padding: 8px;
  font-size: 8px;
  color: #3b82f6;
  word-break: break-all;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s;
  font-family: 'Inter', sans-serif;
}

.account-key:hover {
  border-color: #1e40af;
}

.account-private-key {
  color: #6b7280;
  font-style: italic;
}

.account-private-key.revealed {
  color: #c0392b;
  font-style: normal;
}

.account-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
}

.stat-item {
  background: #0d0f12;
  border: 1px solid #2a2d32;
  padding: 10px;
  text-align: center;
  border-radius: 6px;
}

.stat-label {
  display: block;
  font-size: 7px;
  color: #6b7280;
  letter-spacing: 3px;
  margin-bottom: 4px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.stat-value {
  display: block;
  font-size: 16px;
  color: #3b82f6;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

.account-popup-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.logout-btn {
  background: #c0392b !important;
  color: #fff !important;
  border: 1px solid #c0392b !important;
  border-radius: 8px !important;
}

.logout-btn:hover {
  background: #962d22 !important;
  box-shadow: none !important;
}

/* ─── Leaderboard ─── */
.leaderboard-section {
  width: 100%;
  margin-top: 8px;
  border-top: 1px solid #2a2d32;
  padding-top: 10px;
}

.leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 10px;
  color: #6b7280;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.leaderboard-reward {
  font-size: 9px;
  color: #3b82f6;
  text-shadow: none;
  font-family: 'Inter', sans-serif;
}

.leaderboard-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 120px;
  overflow-y: auto;
}

.leaderboard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #0d0f12;
  border: 1px solid #1a1d21;
  font-size: 8px;
  transition: border-color 0.15s;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
}

.leaderboard-row:first-child {
  border-color: #1e40af;
  background: rgba(90,107,63,0.05);
}

.leaderboard-rank {
  color: #3b82f6;
  min-width: 30px;
}

.leaderboard-row:not(:first-child) .leaderboard-rank {
  color: #6b7280;
}

.leaderboard-name {
  color: #9ca3af;
  flex: 1;
  margin: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.leaderboard-stats {
  display: flex;
  gap: 10px;
  color: #6b7280;
}

.leaderboard-stats span {
  min-width: 28px;
  text-align: right;
}

.lb-wins { color: #2ecc71; }
.lb-losses { color: #c0392b; }

.leaderboard-empty {
  color: #3a3d42;
  font-size: 9px;
  text-align: center;
  padding: 16px;
  letter-spacing: 2px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
}

.leaderboard-grid::-webkit-scrollbar {
  width: 3px;
}

.leaderboard-grid::-webkit-scrollbar-track {
  background: #0d0f12;
}

.leaderboard-grid::-webkit-scrollbar-thumb {
  background: #3a3d42;
  border-radius: 4px;
}

/* ─── Balance Display ─── */
.balance-display {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 5px 10px;
  background: #0d0f12;
  border: 1px solid #2a2d32;
  border-radius: 8px;
}

.balance-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
}

.balance-amount {
  color: #3b82f6;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-shadow: none;
}

.balance-label {
  color: #6b7280;
  font-size: 8px;
  letter-spacing: 2px;
  font-family: 'Inter', sans-serif;
}

.deposit-btn {
  background: #9945FF;
  color: #fff;
  border: 1px solid #9945FF;
  border-bottom: 1px solid #9945FF;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 7px;
  padding: 4px 10px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.15s;
  margin-left: 6px;
  border-radius: 6px;
}

.deposit-btn:hover {
  background: #b366ff;
  box-shadow: none;
  transform: none;
}

/* ─── Entry Fee Section ─── */
.entry-fee-section {
  width: 100%;
  padding: 14px 0;
  border-top: 1px solid #2a2d32;
  border-bottom: 1px solid #2a2d32;
}

.entry-fee-title {
  font-size: 10px;
  color: #6b7280;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 12px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.entry-fee-options {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.fee-option {
  background: #0d0f12;
  border: 1px solid #2a2d32;
  padding: 10px 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  min-width: 68px;
  border-radius: 8px;
}

.fee-option:hover {
  border-color: #6b7280;
  background: #1a1d21;
}

.fee-option.selected {
  border-color: #9945FF;
  background: rgba(153,69,255,0.08);
  box-shadow: none;
}

.fee-option.insufficient {
  opacity: 0.3;
  cursor: not-allowed;
}

.fee-option.insufficient:hover {
  transform: none;
  border-color: #2a2d32;
  background: #0d0f12;
}

.fee-amount {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #3b82f6;
  text-shadow: none;
  margin-bottom: 2px;
}

.fee-option.selected .fee-amount {
  color: #b366ff;
  text-shadow: none;
}

.fee-label {
  font-size: 7px;
  color: #6b7280;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.fee-error {
  color: #c0392b;
  font-size: 9px;
  text-align: center;
  min-height: 16px;
  margin-top: 6px;
  text-shadow: none;
  font-family: 'Inter', sans-serif;
}

.create-room-btn {
  width: 100%;
  margin-top: 8px;
  background: #9945FF;
  border: 1px solid #9945FF;
  border-color: #9945FF;
  border-radius: 8px;
  color: #fff;
}

.create-room-btn:hover:not(:disabled) {
  background: #b366ff;
  box-shadow: none;
}

.create-room-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.create-room-btn:disabled:hover {
  box-shadow: none;
  transform: none;
}

/* ─── Free Play Section ─── */
.free-play-section {
  width: 100%;
  padding-bottom: 12px;
  text-align: center;
}

.free-play-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.free-play-badge {
  background: #2ecc71;
  color: #0d0f12;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 8px;
  padding: 3px 8px;
  letter-spacing: 2px;
  border: 1px solid #2ecc71;
  text-shadow: none;
  border-radius: 4px;
}

.free-play-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #2ecc71;
  text-shadow: none;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.free-play-subtitle {
  font-size: 7px;
  color: #6b7280;
  letter-spacing: 3px;
  width: 100%;
  margin-top: 2px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.free-mode-select {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  justify-content: center;
}

.free-mode-option {
  flex: 1;
  background: #0d0f12;
  border: 1px solid #2a2d32;
  padding: 10px 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
  border-radius: 8px;
}

.free-mode-option::before {
  content: none;
}

.free-mode-option:hover {
  background: #1a1d21;
  border-color: #2ecc71;
}

.free-mode-option.selected {
  background: rgba(46,204,113,0.08);
  border-color: #2ecc71;
  box-shadow: none;
}

.free-mode-option.cooldown-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  border-color: #1a1d21;
}

.free-mode-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #2ecc71;
  margin-bottom: 4px;
  text-shadow: none;
}

.free-mode-players {
  font-size: 10px;
  color: #6b7280;
  font-family: 'Inter', sans-serif;
}

.create-free-room-btn {
  width: 100%;
  background: #2ecc71;
  border: 1px solid #2ecc71;
  border-color: #2ecc71;
  color: #0d0f12;
  border-radius: 8px;
  font-weight: 700;
}

.create-free-room-btn:hover:not(:disabled) {
  background: #27ae60;
  box-shadow: none;
}

.create-free-room-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.create-free-room-btn:disabled:hover {
  box-shadow: none;
  transform: none;
}

/* ─── Section Divider ─── */
.section-divider {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 4px 0 16px;
  gap: 10px;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #2a2d32;
}

.divider-text {
  font-size: 8px;
  color: #6b7280;
  letter-spacing: 4px;
  white-space: nowrap;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

/* ─── Room Free Badge ─── */
.room-free {
  border-left-color: #2ecc71;
}

.room-free:hover {
  border-left-color: #27ae60;
}

.room-free-badge {
  background: #2ecc71;
  color: #0d0f12;
  font-size: 7px;
  padding: 1px 5px;
  letter-spacing: 1px;
  margin-left: 6px;
  vertical-align: middle;
  border-radius: 4px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.room-free .room-fee {
  color: #2ecc71;
  text-shadow: none;
}

.room-free .room-prize {
  color: #6b7280;
}

/* ─── Waiting Room Overlay ─── */
.waiting-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 15, 18, 0.97);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.waiting-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 36px;
  background: #13161a;
  border: 1px solid #2a2d32;
  border-top: 1px solid #1e40af;
  box-shadow: none;
  min-width: 340px;
  border-radius: 12px;
  position: relative;
}

.waiting-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #3b82f6;
  text-shadow: none;
  letter-spacing: 6px;
  text-transform: uppercase;
}

.waiting-room-id {
  font-size: 10px;
  color: #6b7280;
  letter-spacing: 2px;
  font-family: 'Inter', sans-serif;
}

.waiting-room-id span {
  color: #3b82f6;
  font-size: 12px;
}

.waiting-mode {
  font-size: 10px;
  color: #9ca3af;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.waiting-players {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: #c8ccd0;
  text-shadow: none;
}

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

.waiting-dots span {
  font-size: 22px;
  color: #1e40af;
  animation: waitingDot 1.4s infinite;
}

.waiting-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.waiting-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes waitingDot {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.9); }
  40% { opacity: 1; transform: scale(1.1); }
}

.waiting-fee {
  font-size: 9px;
  color: #6b7280;
  letter-spacing: 2px;
  font-family: 'Inter', sans-serif;
}

.waiting-fee.free {
  color: #2ecc71;
  text-shadow: none;
}

.waiting-leave-btn {
  margin-top: 8px;
  background: transparent;
  color: #c0392b;
  border: 1px solid #c0392b;
  border-bottom: 1px solid #c0392b;
  font-size: 9px;
  padding: 8px 22px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}

.waiting-leave-btn:hover {
  background: rgba(192,57,43,0.1);
  box-shadow: none;
}

/* ─── Prize Pool HUD ─── */
#prize-pool-hud {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: none;
  align-items: center;
  gap: 8px;
  background: #13161a;
  border: 1px solid #9945FF;
  padding: 6px 18px;
  border-radius: 8px;
  box-shadow: none;
}

.prize-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
}

#prize-pool-amount {
  color: #3b82f6;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-shadow: none;
}

.prize-label {
  color: #9945FF;
  font-size: 8px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

/* ─── Deposit Modal ─── */
.deposit-modal-content {
  max-width: 400px;
}

.deposit-info {
  font-size: 9px;
  color: #6b7280;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}

.deposit-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.deposit-amount-btn {
  background: #0d0f12;
  border: 1px solid #2a2d32;
  color: #3b82f6;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-shadow: none;
  border-radius: 8px;
}

.deposit-amount-btn:hover {
  background: #1a1d21;
  border-color: #9945FF;
  box-shadow: none;
  transform: none;
}

.deposit-status {
  font-size: 9px;
  text-align: center;
  min-height: 16px;
  margin-bottom: 8px;
  color: #2ecc71;
  font-family: 'Inter', sans-serif;
}

.deposit-status.error {
  color: #c0392b;
}

/* ─── Deposit Address Section (Step 2) ─── */
.deposit-address-section {
  padding: 8px 0;
}

.deposit-selected-amount {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
}

.deposit-highlight {
  color: #3b82f6;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-shadow: none;
}

.deposit-address-label {
  font-size: 8px;
  color: #6b7280;
  text-align: center;
  letter-spacing: 3px;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.deposit-address-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0d0f12;
  border: 1px solid #9945FF;
  padding: 8px 10px;
  margin-bottom: 12px;
  word-break: break-all;
  border-radius: 8px;
}

.deposit-wallet-text {
  flex: 1;
  font-size: 9px;
  color: #b366ff;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  user-select: all;
}

.copy-btn {
  background: #9945FF;
  color: #fff;
  border: 1px solid #9945FF;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 8px;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
  border-radius: 6px;
  letter-spacing: 1px;
}

.copy-btn:hover {
  background: #b366ff;
  box-shadow: none;
}

.deposit-instructions {
  margin-bottom: 12px;
}

.deposit-instruction-item {
  font-size: 8px;
  color: #6b7280;
  line-height: 2;
  padding-left: 4px;
  font-family: 'Inter', sans-serif;
}

.verify-btn {
  width: 100%;
  background: #2ecc71;
  border: 1px solid #2ecc71;
  border-bottom: 1px solid #2ecc71;
  color: #0d0f12;
  margin-bottom: 8px;
  border-radius: 8px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.15s;
}

.verify-btn:hover:not(:disabled) {
  background: #27ae60;
  box-shadow: none;
}

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

.back-btn {
  width: 100%;
  background: transparent;
  border: 1px solid #2a2d32;
  color: #6b7280;
  font-size: 8px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.back-btn:hover {
  border-color: #6b7280;
  color: #9ca3af;
}

/* ─── Room Item Entry Fee Display ─── */
.room-fee {
  font-size: 9px;
  color: #3b82f6;
  text-shadow: none;
  margin-top: 3px;
  font-family: 'Inter', sans-serif;
}

.room-prize {
  font-size: 8px;
  color: #9945FF;
  margin-top: 2px;
  font-family: 'Inter', sans-serif;
}

/* ─── Account Balance in Popup ─── */
.stat-balance {
  margin-top: 8px;
  background: rgba(153, 69, 255, 0.05);
  border-color: #9945FF;
}

/* ─── Match End Prize Info ─── */
.match-prize-info {
  font-size: 14px;
  color: #3b82f6;
  text-shadow: none;
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
}

.match-payout {
  font-size: 11px;
  color: #2ecc71;
  text-shadow: none;
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
}

/* ─── How It Works Button ─── */
.how-it-works-btn {
  background: transparent;
  color: #6b7280;
  border: 1px solid #2a2d32;
  border-bottom: 1px solid #2a2d32;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 9px;
  padding: 8px 18px;
  cursor: pointer;
  letter-spacing: 3px;
  transition: border-color 0.15s, color 0.15s;
  margin-top: 16px;
  border-radius: 8px;
  text-transform: uppercase;
}

.how-it-works-btn:hover {
  color: #3b82f6;
  border-color: #1e40af;
  background: #1a1d21;
  box-shadow: none;
}

/* ─── How It Works Popup ─── */
.how-it-works-content {
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
}

.hiw-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}

.hiw-section {
  border-left: 1px solid #1e40af;
  padding-left: 10px;
}

.hiw-section-title {
  font-size: 10px;
  color: #3b82f6;
  letter-spacing: 3px;
  margin-bottom: 6px;
  text-shadow: none;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

.hiw-step {
  font-size: 8px;
  color: #9ca3af;
  line-height: 2;
  letter-spacing: 0.5px;
  font-family: 'Inter', sans-serif;
}

.how-it-works-content::-webkit-scrollbar {
  width: 3px;
}

.how-it-works-content::-webkit-scrollbar-track {
  background: #0d0f12;
}

.how-it-works-content::-webkit-scrollbar-thumb {
  background: #3a3d42;
  border-radius: 4px;
}

/* ─── X (Twitter) Button ─── */
.x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(156,163,175,0.08);
  border: 1px solid #2a2d32;
  border-radius: 50%;
  color: #9ca3af;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  margin-top: 14px;
}

.x-btn:hover {
  background: #1a1d21;
  border-color: #1e40af;
  color: #3b82f6;
  box-shadow: none;
  transform: none;
}

.lobby-x-btn {
  margin-top: 10px;
  margin-bottom: -6px;
}

/* ─── Contract Address Container ─── */
.contract-address-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a1d21;
  border: 1px solid #2a2d32;
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 14px;
  transition: all 0.2s ease;
}

.contract-address-container:hover {
  border-color: #1e40af;
  background: #1e2125;
}

.contract-address {
  font-family: 'Inter', monospace;
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  letter-spacing: 0.3px;
  user-select: all;
  cursor: text;
}

.copy-contract-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2a2d32;
  border: 1px solid #3a3d42;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  color: #6b7280;
}

.copy-contract-btn:hover {
  background: #3a3d42;
  border-color: #1e40af;
  color: #3b82f6;
}

.copy-contract-btn:active {
  transform: scale(0.95);
}

.copy-contract-btn.copied {
  background: #1e40af;
  border-color: #3b82f6;
  color: #fff;
}

/* ════════════════════════════════════════════════════════════
   ███  WAR GAMES — REDESIGN OVERRIDES  ███
   Animated 3D battlefield background, soldier silhouettes,
   repositioned multi-panel lobby, tactical war palette.
   ════════════════════════════════════════════════════════════ */

:root {
  --usa: #3b82f6;
  --usa-deep: #1e40af;
  --usa-glow: rgba(59, 130, 246, 0.55);
  --iran: #22c55e;
  --iran-deep: #15803d;
  --iran-glow: rgba(34, 197, 94, 0.5);
  --danger: #e0392b;
  --amber: #f5a623;
  --steel: #aab4c0;
  --gun-0: #0a0c10;
  --gun-1: #11151b;
  --gun-2: #1a2027;
  --gun-3: #2a323c;
  --sand: #b8a37a;
}

/* ─── Base ─── */
body {
  background: #07090c;
}

/* Let the global war scene show through the screens */
#auth-screen,
#lobby {
  background: transparent !important;
}
#auth-screen::before,
#auth-screen::after,
#lobby::before,
#lobby::after {
  display: none !important;
}

/* ════════ ANIMATED 3D WAR BACKGROUND ════════ */
#war-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  perspective: 1100px;
  perspective-origin: 50% 65%;
  background:
    radial-gradient(ellipse 70% 55% at 50% 120%, rgba(224,57,43,0.10) 0%, transparent 60%),
    linear-gradient(180deg, #05070a 0%, #0a0e14 45%, #0c0f13 70%, #08090c 100%);
}

.ws-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 22% 8%, rgba(30,64,175,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 78% 8%, rgba(21,128,61,0.18) 0%, transparent 60%),
    radial-gradient(circle at 50% 0%, rgba(245,166,35,0.10) 0%, transparent 45%);
  animation: skyPulse 9s ease-in-out infinite alternate;
}
@keyframes skyPulse {
  0% { opacity: 0.75; }
  100% { opacity: 1; }
}

.ws-stars {
  position: absolute;
  inset: 0 0 35% 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.5) 50%, transparent),
    radial-gradient(1px 1px at 33% 8%, rgba(255,255,255,0.35) 50%, transparent),
    radial-gradient(1px 1px at 58% 22%, rgba(255,255,255,0.4) 50%, transparent),
    radial-gradient(1px 1px at 73% 12%, rgba(255,255,255,0.3) 50%, transparent),
    radial-gradient(1px 1px at 88% 26%, rgba(255,255,255,0.45) 50%, transparent),
    radial-gradient(1px 1px at 45% 30%, rgba(255,255,255,0.25) 50%, transparent);
  animation: twinkle 5s steps(6) infinite;
}
@keyframes twinkle { 50% { opacity: 0.5; } }

/* Sweeping searchlights */
.ws-searchlight {
  position: absolute;
  top: -25%;
  width: 14px;
  height: 130%;
  transform-origin: 50% 0;
  filter: blur(7px);
  opacity: 0.5;
  mix-blend-mode: screen;
}
.ws-searchlight-a {
  left: 24%;
  background: linear-gradient(180deg, var(--usa-glow), transparent 75%);
  animation: sweepA 11s ease-in-out infinite;
}
.ws-searchlight-b {
  right: 24%;
  background: linear-gradient(180deg, var(--iran-glow), transparent 75%);
  animation: sweepB 13s ease-in-out infinite;
}
@keyframes sweepA {
  0%,100% { transform: rotate(-26deg); }
  50% { transform: rotate(14deg); }
}
@keyframes sweepB {
  0%,100% { transform: rotate(24deg); }
  50% { transform: rotate(-16deg); }
}

/* Fighter jet streaking across */
.ws-jet {
  position: absolute;
  top: 16%;
  left: -10%;
  width: 70px;
  height: 18px;
  opacity: 0.85;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 32'%3E%3Cg fill='%23cdd6e0'%3E%3Cpath d='M2 16 L70 12 L112 15 L116 16 L112 17 L70 20 Z'/%3E%3Cpath d='M52 13 L78 2 L84 4 L66 14 Z'/%3E%3Cpath d='M52 19 L78 30 L84 28 L66 18 Z'/%3E%3Cpath d='M30 14 L44 6 L48 8 L40 15 Z'/%3E%3Cpath d='M30 18 L44 26 L48 24 L40 17 Z'/%3E%3C/g%3E%3C/svg%3E");
  filter: drop-shadow(0 0 6px rgba(245,166,35,0.5));
  animation: jetFly 17s linear infinite;
}
@keyframes jetFly {
  0% { transform: translateX(0) translateY(0); opacity: 0; }
  8% { opacity: 0.9; }
  92% { opacity: 0.9; }
  100% { transform: translateX(125vw) translateY(-40px); opacity: 0; }
}

/* Drifting smoke */
.ws-smoke {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60,58,54,0.5) 0%, rgba(40,38,35,0.25) 45%, transparent 72%);
  filter: blur(8px);
  animation: smokeDrift 22s ease-in-out infinite;
}
.ws-smoke-1 { width: 360px; height: 360px; bottom: 6%; left: 8%; animation-delay: 0s; }
.ws-smoke-2 { width: 460px; height: 460px; bottom: 2%; left: 60%; animation-delay: -7s; opacity: 0.8; }
.ws-smoke-3 { width: 300px; height: 300px; bottom: 12%; left: 38%; animation-delay: -14s; opacity: 0.6; }
@keyframes smokeDrift {
  0%,100% { transform: translate(0,0) scale(1); opacity: 0.45; }
  50% { transform: translate(40px,-50px) scale(1.18); opacity: 0.7; }
}

/* 3D stage holding soldiers */
.ws-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: stageSway 16s ease-in-out infinite;
}
@keyframes stageSway {
  0%,100% { transform: rotateY(-5deg) translateZ(0); }
  50% { transform: rotateY(5deg) translateZ(40px); }
}

/* Soldier silhouettes */
.soldier {
  position: absolute;
  bottom: 0;
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: contain;
  transform-style: preserve-3d;
  will-change: transform;
}
.soldier-usa {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 460'%3E%3Cg fill='%23090d12'%3E%3Crect x='46' y='150' width='40' height='74' rx='8'/%3E%3Cellipse cx='128' cy='78' rx='34' ry='26'/%3E%3Crect x='118' y='92' width='56' height='10' rx='4'/%3E%3Crect x='120' y='98' width='18' height='20'/%3E%3Cpath d='M84 112 L150 116 L162 198 L74 198 Z'/%3E%3Cpath d='M92 128 L132 150 L120 168 L82 150 Z'/%3E%3Cpath d='M138 132 L196 150 L190 166 L132 152 Z'/%3E%3Crect x='150' y='140' width='68' height='10' rx='2'/%3E%3Crect x='132' y='142' width='22' height='14' rx='2'/%3E%3Cpath d='M170 150 L188 150 L184 178 L172 178 Z'/%3E%3Crect x='196' y='130' width='12' height='12'/%3E%3Crect x='78' y='190' width='80' height='30' rx='8'/%3E%3Cpath d='M120 212 L152 212 L160 372 L132 372 Z'/%3E%3Cpath d='M82 212 L114 212 L96 372 L64 372 Z'/%3E%3Crect x='126' y='366' width='48' height='16' rx='3'/%3E%3Crect x='40' y='366' width='48' height='16' rx='3'/%3E%3C/g%3E%3C/svg%3E");
}
.soldier-iran {
  transform: scaleX(-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 460'%3E%3Cg fill='%23090d12'%3E%3Crect x='46' y='150' width='40' height='74' rx='8'/%3E%3Cellipse cx='128' cy='78' rx='34' ry='26'/%3E%3Crect x='118' y='92' width='56' height='10' rx='4'/%3E%3Crect x='120' y='98' width='18' height='20'/%3E%3Cpath d='M84 112 L150 116 L162 198 L74 198 Z'/%3E%3Cpath d='M92 128 L132 150 L120 168 L82 150 Z'/%3E%3Cpath d='M138 132 L196 150 L190 166 L132 152 Z'/%3E%3Crect x='150' y='140' width='68' height='10' rx='2'/%3E%3Crect x='132' y='142' width='22' height='14' rx='2'/%3E%3Cpath d='M170 150 L188 150 L184 178 L172 178 Z'/%3E%3Crect x='196' y='130' width='12' height='12'/%3E%3Crect x='78' y='190' width='80' height='30' rx='8'/%3E%3Cpath d='M120 212 L152 212 L160 372 L132 372 Z'/%3E%3Cpath d='M82 212 L114 212 L96 372 L64 372 Z'/%3E%3Crect x='126' y='366' width='48' height='16' rx='3'/%3E%3Crect x='40' y='366' width='48' height='16' rx='3'/%3E%3C/g%3E%3C/svg%3E");
}

/* Depth placement + 3D parallax (left = USA, right = IRAN) */
.soldier-usa.s-depth-near  { left: 1%;  height: 78vh; opacity: 0.9;  filter: drop-shadow(0 0 16px var(--usa-glow)) brightness(0.5); transform: translateZ(90px); animation: bobNear 5s ease-in-out infinite; }
.soldier-usa.s-depth-mid   { left: 9%;  height: 56vh; opacity: 0.55; filter: drop-shadow(0 0 10px var(--usa-glow)) brightness(0.42); transform: translateZ(20px); animation: bobMid 6.5s ease-in-out infinite; }
.soldier-usa.s-depth-far   { left: 16%; height: 40vh; opacity: 0.3;  filter: drop-shadow(0 0 6px var(--usa-glow)) brightness(0.35); transform: translateZ(-70px); animation: bobFar 8s ease-in-out infinite; }

.soldier-iran.s-depth-near { right: 1%;  height: 78vh; opacity: 0.9;  filter: drop-shadow(0 0 16px var(--iran-glow)) brightness(0.5); transform: scaleX(-1) translateZ(90px); animation: bobNearR 5.4s ease-in-out infinite; }
.soldier-iran.s-depth-mid  { right: 9%;  height: 56vh; opacity: 0.55; filter: drop-shadow(0 0 10px var(--iran-glow)) brightness(0.42); transform: scaleX(-1) translateZ(20px); animation: bobMidR 6.9s ease-in-out infinite; }
.soldier-iran.s-depth-far  { right: 16%; height: 40vh; opacity: 0.3;  filter: drop-shadow(0 0 6px var(--iran-glow)) brightness(0.35); transform: scaleX(-1) translateZ(-70px); animation: bobFarR 8.4s ease-in-out infinite; }

@keyframes bobNear { 0%,100% { transform: translateZ(90px) translateY(0) rotateZ(0deg); } 50% { transform: translateZ(90px) translateY(-10px) rotateZ(-1deg); } }
@keyframes bobMid  { 0%,100% { transform: translateZ(20px) translateY(0); } 50% { transform: translateZ(20px) translateY(-7px); } }
@keyframes bobFar  { 0%,100% { transform: translateZ(-70px) translateY(0); } 50% { transform: translateZ(-70px) translateY(-5px); } }
@keyframes bobNearR { 0%,100% { transform: scaleX(-1) translateZ(90px) translateY(0) rotateZ(0deg); } 50% { transform: scaleX(-1) translateZ(90px) translateY(-10px) rotateZ(-1deg); } }
@keyframes bobMidR  { 0%,100% { transform: scaleX(-1) translateZ(20px) translateY(0); } 50% { transform: scaleX(-1) translateZ(20px) translateY(-7px); } }
@keyframes bobFarR  { 0%,100% { transform: scaleX(-1) translateZ(-70px) translateY(0); } 50% { transform: scaleX(-1) translateZ(-70px) translateY(-5px); } }

/* Faction flags glowing behind soldiers */
.ws-flag {
  position: absolute;
  top: 12%;
  font-size: 40px;
  opacity: 0.22;
  filter: grayscale(0.2) blur(0.5px);
  animation: flagWave 6s ease-in-out infinite;
}
.ws-flag-usa { left: 6%; }
.ws-flag-iran { right: 6%; animation-delay: -3s; }
@keyframes flagWave {
  0%,100% { transform: translateY(0) rotate(-3deg); opacity: 0.18; }
  50% { transform: translateY(-12px) rotate(3deg); opacity: 0.3; }
}

/* Tracer rounds across no-man's-land */
.ws-tracer {
  position: absolute;
  height: 2px;
  width: 120px;
  background: linear-gradient(90deg, transparent, var(--amber), #fff);
  box-shadow: 0 0 8px var(--amber);
  opacity: 0;
}
.ws-tracer-1 { top: 52%; left: 20%; animation: tracerR 4.5s linear infinite; }
.ws-tracer-2 { top: 60%; right: 20%; transform: scaleX(-1); animation: tracerL 6s linear infinite 2s; }
@keyframes tracerR {
  0% { opacity: 0; transform: translateX(0) scaleX(0.4); }
  6% { opacity: 1; }
  40% { opacity: 1; transform: translateX(40vw) scaleX(1); }
  46% { opacity: 0; transform: translateX(46vw) scaleX(1); }
  100% { opacity: 0; }
}
@keyframes tracerL {
  0% { opacity: 0; transform: scaleX(-1) translateX(0); }
  6% { opacity: 1; }
  40% { opacity: 1; transform: scaleX(-1) translateX(40vw); }
  46% { opacity: 0; transform: scaleX(-1) translateX(46vw); }
  100% { opacity: 0; }
}

/* Ground / trench line */
.ws-ground {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 22%;
  background:
    linear-gradient(0deg, #05070a 0%, rgba(20,18,14,0.9) 40%, transparent 100%),
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(120,100,70,0.05) 70px 73px);
}

.ws-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0,0,0,0.6) 100%);
}
.ws-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,0.10) 3px 4px);
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  #war-scene * { animation: none !important; }
}

/* ════════ LOBBY — REPOSITIONED MULTI-PANEL LAYOUT ════════ */
#lobby {
  padding: 14px 24px 28px;
}

.lobby-title {
  font-size: 38px;
  letter-spacing: 6px;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,0.6));
}

.lobby-teams {
  background: rgba(10,12,16,0.75);
  border: 1px solid var(--gun-2);
  border-radius: 10px;
  backdrop-filter: blur(4px);
  box-shadow: 0 0 24px rgba(0,0,0,0.5);
}

.lobby-top-bar {
  max-width: 1180px;
  background: rgba(10,12,16,0.7);
  border: 1px solid var(--gun-2);
  border-radius: 10px;
  padding: 8px 14px;
  backdrop-filter: blur(4px);
}

/* The lobby-box becomes the dashboard frame */
.lobby-box {
  width: 100%;
  max-width: 1180px;
  background: transparent;
  border: none;
  padding: 0;
  gap: 0;
}
.lobby-box::before,
.lobby-box::after { content: none; }

.lobby-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr 0.95fr;
  gap: 16px;
  width: 100%;
  align-items: start;
}

/* Tactical panel styling */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(20,25,32,0.96) 0%, rgba(14,18,23,0.96) 100%);
  border: 1px solid var(--gun-2);
  border-radius: 12px;
  padding: 22px 18px 18px;
  backdrop-filter: blur(6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 360px;
}
/* corner brackets */
.panel::before,
.panel::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
}
.panel::before {
  top: 8px; left: 8px;
  border-top: 2px solid var(--amber);
  border-left: 2px solid var(--amber);
}
.panel::after {
  bottom: 8px; right: 8px;
  border-bottom: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
}

.panel-tab {
  align-self: center;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #0a0c10;
  background: linear-gradient(90deg, var(--amber), #ffce6b);
  padding: 4px 18px;
  border-radius: 4px;
  margin-top: -32px;
  margin-bottom: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

.lobby-col-left { border-top: 2px solid var(--usa-deep); }
.lobby-col-center { border-top: 2px solid var(--amber); }
.lobby-col-right { border-top: 2px solid var(--iran-deep); }

.lobby-col-center .rooms-list { flex: 1; display: flex; flex-direction: column; }
.lobby-col-center .rooms-grid { max-height: 340px; flex: 1; }
.lobby-col-right .leaderboard-section { border-top: none; padding-top: 0; }
.lobby-col-right .leaderboard-grid { max-height: 360px; }

/* Mode tiles get team coloring */
.mode-option:hover { border-color: var(--usa); }
.mode-option.selected { border-color: var(--usa); box-shadow: inset 0 0 0 1px var(--usa-glow); }

/* ════════ REPOSITIONED IN-GAME WINDOWS ════════ */
/* Chat moved to bottom-LEFT (was bottom-right) */
#chat-container {
  left: 16px;
  right: auto;
  border-top: 1px solid var(--usa-deep);
}
/* Controls moved to bottom-RIGHT (was top-right) */
#controls-info {
  top: auto;
  bottom: 16px;
  right: 16px;
}
/* Room info to top-right (was top-left) to clear scoreboard */
#room-info {
  left: auto;
  right: 16px;
  top: 16px;
}
/* Kill feed to LEFT side */
#kill-feed {
  right: auto;
  left: 16px;
  top: 90px;
}

/* ════════ RESPONSIVE ════════ */
@media (max-width: 1000px) {
  .lobby-grid { grid-template-columns: 1fr; }
  .lobby-col { min-height: auto; }
  .panel { min-height: auto; }
  .soldier.s-depth-far, .soldier.s-depth-mid { display: none; }
  .soldier.s-depth-near { opacity: 0.35; }
}
