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

/* ═══════════════════════════════════════════════════
   TACTICAL INDUSTRIAL THEME
   Palette: Gunmetal (#1a1d21, #2a2d32, #3a3d42)
            Military Green (#5a6b3f, #4a5a32, #6b7d4f)
            Steel (#6b7280, #9ca3af)
            Alert Red (#c0392b)
   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 */
    radial-gradient(ellipse 100% 35% at 50% 0%, rgba(160,70,15,0.12) 0%, transparent 70%),
    /* 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;
  color: #6b7d4f;
  text-shadow: none;
  margin-bottom: 2px;
  text-align: center;
  letter-spacing: 4px;
  text-transform: uppercase;
}

#auth-screen .lobby-title {
  color: #6b7d4f;
  text-shadow: none;
  letter-spacing: 5px;
}

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

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

.lobby-box {
  background: #13161a;
  border: 1px solid #2a2d32;
  border-top: 1px solid #5a6b3f;
  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: #5a6b3f;
}

/* 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: #5a6b3f;
  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: #6b7d4f;
  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: #6b7d4f;
  border: 1px solid #5a6b3f;
  border-bottom: 1px solid #5a6b3f;
  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: #5a6b3f;
  color: #0d0f12;
  box-shadow: none;
  transform: none;
  border-color: #5a6b3f;
}

.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: #6b7d4f;
  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: #5a6b3f;
  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: #5a6b3f;
}

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

.room-id {
  font-size: 11px;
  color: #6b7d4f;
  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: #5a6b3f;
}

/* 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: #6b7d4f;
  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-israel {
  color: #4da6ff;
  text-shadow: none;
  letter-spacing: 3px;
  -webkit-text-fill-color: #4da6ff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.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;
  padding: 8px 28px;
  border-radius: 8px;
}

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

.score-israel {
  color: #4da6ff;
  -webkit-text-fill-color: #4da6ff;
  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-israel {
  background: rgba(77,166,255,0.1);
  border: 1px solid #4da6ff;
  color: #4da6ff;
}

.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: #6b7d4f;
  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: #6b7d4f;
  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 #5a6b3f;
  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: #6b7d4f;
  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: #5a6b3f;
}

#chat-send {
  background: #5a6b3f;
  color: #0d0f12;
  border: 1px solid #5a6b3f;
  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: #6b7d4f;
}

#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 at top */
    radial-gradient(ellipse 120% 40% at 50% 0%, rgba(180,80,20,0.18) 0%, transparent 70%),
    /* 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 #5a6b3f;
  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: #5a6b3f;
  color: #0d0f12;
  border: 1px solid #5a6b3f;
  border-bottom: 1px solid #5a6b3f;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

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

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

.login-variant {
  background: #1a1d21;
  color: #6b7d4f;
  border: 1px solid #5a6b3f;
  border-bottom: 1px solid #5a6b3f;
}

.login-variant:hover {
  background: #5a6b3f;
  color: #0d0f12;
  border-color: #5a6b3f;
  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: #5a6b3f;
  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: #6b7d4f;
  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: #5a6b3f;
  color: #6b7d4f;
}

/* ─── 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 #5a6b3f;
  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: #6b7d4f;
  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: #6b7d4f;
  word-break: break-all;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s;
  font-family: 'Inter', sans-serif;
}

.account-key:hover {
  border-color: #5a6b3f;
}

.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: #6b7d4f;
  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: #6b7d4f;
  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: #5a6b3f;
  background: rgba(90,107,63,0.05);
}

.leaderboard-rank {
  color: #6b7d4f;
  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: #6b7d4f;
  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: #6b7d4f;
  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 #5a6b3f;
  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: #6b7d4f;
  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: #6b7d4f;
  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: #5a6b3f;
  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: #6b7d4f;
  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: #6b7d4f;
  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: #6b7d4f;
  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: #6b7d4f;
  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: #6b7d4f;
  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: #6b7d4f;
  border-color: #5a6b3f;
  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 #5a6b3f;
  padding-left: 10px;
}

.hiw-section-title {
  font-size: 10px;
  color: #6b7d4f;
  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: #5a6b3f;
  color: #6b7d4f;
  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: #5a6b3f;
  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: #5a6b3f;
  color: #6b7d4f;
}

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

.copy-contract-btn.copied {
  background: #5a6b3f;
  border-color: #6b7d4f;
  color: #fff;
}
