.app {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #87CEEB 0%, #B0E2FF 50%, #E0F6FF 100%);
}

/* Ensure all child overlays respect the app container */
.app > * {
  max-width: 100%;
  max-height: 100%;
}

.connection-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.connection-message {
  background: #333;
  color: white;
  padding: 20px 40px;
  border-radius: 10px;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  text-align: center;
  border: 2px solid #666;
}

/* Hide default cursor when in first-person mode */
canvas {
  cursor: crosshair;
}

.app.first-person canvas {
  cursor: none;
}

/* Firebomb countdown animation */
@keyframes firebombPulse {
  from {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
  }
  to {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 0 30px rgba(255, 0, 0, 1);
  }
}

/* Adventure countdown pulse animation */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

/* Force 9:16 aspect ratio for mobile */
canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Mobile 9:16 viewport - Fill entire viewport */
@media (max-width: 768px) and (orientation: portrait) {
  .app {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #000;
  }

  canvas {
    cursor: default;
  }
}

/* Landscape mode - Fill entire viewport */
@media (orientation: landscape) {
  .app {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
  }
}.adventure-score-display-overlay {
  position: fixed;
  top: 90px; /* Position directly under React Native HUD (50px + ~40px HUD height) */
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(10px);
  padding: 20px;
  padding-top: 10px; /* Reduced top padding since we're positioned lower */
}

.adventure-score-display-container {
  background: linear-gradient(135deg, rgba(20, 20, 40, 0.95) 0%, rgba(40, 20, 60, 0.95) 100%);
  border: 2px solid rgba(124, 82, 251, 0.5);
  border-radius: 20px;
  padding: 20px;
  max-width: 800px;
  width: 100%;
  max-height: calc(100vh - 120px); /* Account for HUD position and some margin */
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 30px rgba(124, 82, 251, 0.3),
    inset 0 0 30px rgba(124, 82, 251, 0.1);
  overflow: hidden;
  position: relative;
}

.adventure-score-display-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.adventure-score-display-header h2 {
  background: linear-gradient(to right, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 28px;
  font-weight: bold;
  margin: 0;
  font-family: 'Courier New', monospace;
}

.close-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.adventure-score-summary {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(124, 82, 251, 0.3);
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.summary-label {
  color: #888;
  font-size: 12px;
  font-family: 'Courier New', monospace;
}

.summary-value {
  color: #7C52FB;
  font-size: 18px;
  font-weight: bold;
  font-family: 'Courier New', monospace;
}

.adventure-score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  overflow-y: auto;
  flex: 1;
  padding: 10px;
  margin-bottom: 10px; /* Reduced margin to bring buttons closer */
  /* Show only 6 rows: 6 cards * 100px + 5 gaps * 12px + padding = ~660px */
  max-height: 660px;
  min-height: 200px; /* Minimum height to always show some levels */
}

.level-card {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(124, 82, 251, 0.3);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  min-height: 100px;
}

.level-card.completed {
  border-color: rgba(76, 175, 80, 0.5);
  background: rgba(76, 175, 80, 0.1);
}

.level-card.locked {
  border-color: rgba(128, 128, 128, 0.3);
  background: rgba(0, 0, 0, 0.5);
  opacity: 0.6;
}

.level-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 82, 251, 0.3);
}

.level-number {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  font-family: 'Courier New', monospace;
}

.level-status {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.completed-status {
  color: #4CAF50;
}

.locked-status {
  color: #888;
}

.level-time {
  font-size: 11px;
  font-family: 'Courier New', monospace;
  color: #ccc;
}

.level-time.locked {
  color: #666;
}

.adventure-score-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px; /* Increased margin to position buttons higher (easier to touch) */
  flex-wrap: wrap; /* Allow buttons to wrap if needed */
  align-items: center;
  flex-shrink: 0; /* Prevent buttons from shrinking when content overflows */
  position: relative; /* Changed from sticky to relative - buttons stay in place above grid */
  background: linear-gradient(135deg, rgba(20, 20, 40, 0.95) 0%, rgba(40, 20, 60, 0.95) 100%); /* Match container background */
  padding: 15px 0; /* Increased padding for better touch target */
  z-index: 10; /* Ensure buttons are above grid when scrolling */
}

.continue-button,
.return-to-menu-button {
  padding: 12px 24px; /* Increased padding for easier touch */
  font-size: 16px; /* Slightly larger font for better visibility */
  font-weight: bold;
  color: white;
  border-radius: 20px;
  cursor: pointer;
  font-family: 'Courier New', monospace;
  transition: all 0.2s;
  border: 2px solid;
  flex: 0 1 auto; /* Allow buttons to shrink if needed */
  min-width: 120px; /* Increased minimum width for better touch target */
  min-height: 44px; /* Minimum touch target size (iOS/Android guidelines) */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.continue-button {
  background: #4CAF50;
  border-color: #66BB6A;
}

.continue-button:hover {
  background: #66BB6A;
  transform: scale(1.05);
}

.return-to-menu-button {
  background: rgba(124, 82, 251, 0.3);
  border-color: #7C52FB;
}

.return-to-menu-button:hover {
  background: rgba(124, 82, 251, 0.5);
  transform: scale(1.05);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .adventure-score-display-overlay {
    padding: 10px;
    padding-top: 5px;
  }

  .adventure-score-display-container {
    padding: 15px;
    max-height: calc(100vh - 100px);
  }

  .adventure-score-display-header h2 {
    font-size: 24px;
  }

  .adventure-score-summary {
    gap: 20px;
    margin-bottom: 15px;
    padding: 10px;
  }

  .adventure-score-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    padding: 5px;
    margin-bottom: 10px;
    /* Show only 6 rows on mobile: 6 cards * 80px + 5 gaps * 8px = ~520px */
    max-height: 520px;
  }

  .level-card {
    padding: 8px;
    min-height: 80px;
  }

  .adventure-score-actions {
    gap: 8px;
    margin-top: 15px; /* Position buttons higher for easier touch */
    padding: 12px 0; /* Increased padding for better touch target on mobile */
  }

  .continue-button,
  .return-to-menu-button {
    padding: 8px 16px;
    font-size: 12px;
    min-width: 80px;
  }
}

@media (max-width: 480px) {
  .adventure-score-display-container {
    max-width: 95vw;
    padding: 12px;
  }

  .adventure-score-summary {
    flex-direction: column;
    gap: 10px;
  }

  .summary-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .adventure-score-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 6px;
    /* Show only 6 rows on smallest mobile: 6 cards * 70px + 5 gaps * 6px = ~450px */
    max-height: 450px;
    margin-bottom: 5px;
  }

  .level-card {
    padding: 6px;
    min-height: 70px;
  }

  .level-number {
    font-size: 12px;
  }

  .level-status {
    font-size: 20px;
  }

  .level-time {
    font-size: 10px;
  }
}

.arena-selection {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.5) 100%);
  color: #fff;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 120px 8px 10px; /* Increased top padding to clear React Native HUD */
  z-index: 10052; /* Higher than GameModeSelector (10050-10051) to ensure clickability */
  height: 100%;
  box-sizing: border-box;
  pointer-events: auto !important;
}

.arena-header {
  text-align: center;
  margin-bottom: 30px;
  margin-top: 0; /* No additional margin needed */
  position: relative;
}

/* Back button moved to bottom - old header styling removed */

.arena-header h2 {
  font-size: 24px;
  margin: 20px 0 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.arena-header p {
  font-size: 14px;
  color: #A0A0A0;
  text-align: center;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.arena-grid {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  /* scroll-snap-type disabled - handled by JavaScript for smoother control */
  scroll-behavior: smooth;
  gap: 10px;
  max-width: 510px; /* 85% of 600px (15% smaller horizontally) */
  margin: 0 auto 120px auto;
  padding: 85px 17px; /* 85% of 100px/20px (15% smaller vertically) */
  height: 560px; /* Exactly 3 items visible: (180px * 3) + (10px * 2 gaps) = 560px */
  position: relative;
  -webkit-overflow-scrolling: touch; /* Smooth iOS scrolling */
  scrollbar-width: thin; /* Show thin scrollbar */
  scrollbar-color: #7C52FB rgba(0, 0, 0, 0.3); /* Purple gradient scrollbar for Firefox */
  overscroll-behavior: contain; /* Prevent scroll chaining */
  touch-action: pan-y; /* Allow vertical panning */
  /* Remove mask-image to show scrollbar clearly */
}

/* Removed selection indicator lines - they were overlapping with assets */

/* Purple gradient glowing scrollbar */
.arena-grid::-webkit-scrollbar {
  width: 10px; /* Slightly wider for better visibility */
}

.arena-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  margin: 5px 0;
}

.arena-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #7C52FB 0%, #9672FF 50%, #7C52FB 100%);
  border-radius: 5px;
  border: 1px solid rgba(124, 82, 251, 0.3);
  box-shadow: 
    0 0 10px rgba(124, 82, 251, 0.6),
    inset 0 0 5px rgba(255, 255, 255, 0.2);
}

.arena-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #8B63FF 0%, #A682FF 50%, #8B63FF 100%);
  box-shadow: 
    0 0 15px rgba(124, 82, 251, 0.8),
    inset 0 0 8px rgba(255, 255, 255, 0.3);
}

.arena-card {
  background: #1a1a1a;
  border: 2px solid rgba(124, 82, 251, 0.3);
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden; /* Confine all content within card */
  pointer-events: auto !important;
  touch-action: pan-y; /* Allow vertical scrolling, prevent horizontal */
  -webkit-tap-highlight-color: rgba(124, 82, 251, 0.3); /* Better touch feedback */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  height: 180px; /* Fixed height for wheel picker */
  min-height: 180px;
  max-height: 180px; /* Prevent overflow */
  display: flex;
  flex-direction: row; /* Horizontal layout */
  gap: 15px;
  /* scroll-snap-align disabled - handled by JavaScript */
  opacity: 0.5; /* Dimmed by default */
  transform: scale(0.85) perspective(800px) rotateX(15deg); /* 3D wheel effect */
  flex-shrink: 0;
  user-select: none; /* Prevent text selection during scroll */
  -webkit-user-select: none;
}

.arena-card:hover {
  opacity: 0.7;
  border-color: #9672FF;
  box-shadow: 0 0 20px rgba(124, 82, 251, 0.5);
}

.arena-card.selected {
  border-color: #9672FF;
  border-width: 3px;
  box-shadow: 0 0 30px rgba(124, 82, 251, 0.8);
  background: linear-gradient(135deg, rgba(124, 82, 251, 0.2), rgba(124, 82, 251, 0.1)), #1a1a1a;
  opacity: 1 !important;
  transform: scale(1) perspective(800px) rotateX(0deg) !important;
}

.arena-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.arena-card.selected::before {
  opacity: 1;
}

.arena-preview-container {
  width: 150px; /* Fixed width for wheel picker */
  height: 150px; /* Square preview */
  background: linear-gradient(180deg, #87CEEB 0%, #4A90E2 100%);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  flex-shrink: 0; /* Prevent shrinking */
}

.arena-preview-container::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 40% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 45%);
  opacity: 0.6;
  pointer-events: none;
}

.arena-info {
  text-align: left;
  flex: 1; /* Allow info section to grow */
  display: flex;
  flex-direction: column;
  gap: 5px; /* Keep reduced gap for tighter spacing */
  min-width: 0; /* Allow flex item to shrink below content size */
  overflow: hidden; /* Confine content within container */
}

.arena-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px; /* Reduced margin */
}

.arena-icon {
  font-size: 1.5em;
  min-width: 30px;
}

.arena-title h3 {
  margin: 0;
  font-size: 1.3em;
  font-weight: 700;
  color: #fff;
  white-space: nowrap; /* Keep level names on one line */
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.arena-description {
  font-size: 0.9em;
  color: #ddd;
  margin: 0;
  line-height: 1.4;
  overflow: hidden; /* Confine description within container */
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  white-space: normal;
}

.arena-stats {
  display: flex;
  flex-direction: column;
  gap: 4px; /* Reduced gap */
  margin-top: auto; /* Push to bottom */
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85em;
}

.stat-label {
  color: #bbb;
  font-weight: 500;
}

.stat-value {
  color: #fff;
  font-weight: 700;
}

.difficulty-badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7em;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.random-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(156, 39, 176, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(156, 39, 176, 0.4);
  font-size: 0.85em;
  color: #e1bee7;
}

.random-icon {
  font-size: 1.1em;
}

.selection-actions {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10053; /* Higher than overlay to ensure content is clickable */
  display: flex;
  gap: 15px;
  align-items: center;
}

/* Both buttons styled like wallet container */
.back-button,
.confirm-selection-button {
  /* Wallet container dark glass style */
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(124, 82, 251, 0.5);
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: auto !important;
  touch-action: manipulation;
  flex: 1; /* Equal width for both buttons */
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff; /* Default color fallback */
}

/* Button content with gradient text */
.button-content {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.back-button:hover,
.confirm-selection-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 82, 251, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: rgba(124, 82, 251, 0.1);
  border-color: rgba(124, 82, 251, 0.8);
}

.back-button:active,
.confirm-selection-button:active {
  transform: translateY(-1px);
}

/* Mobile 9:16 responsive optimizations */
@media (max-width: 768px) {
  .arena-selection {
    padding: 120px 10px 10px; /* Increased top padding for HUD on mobile */
  }

  .arena-header h2 {
    font-size: 1.8em;
  }

  .arena-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 85px 10px; /* 15% smaller padding */
    margin-bottom: 80px;
    max-width: 85%; /* 15% smaller horizontally */
    height: 560px; /* Exactly 3 items visible */
  }

  .arena-card {
    padding: 12px;
    border-radius: 12px;
    height: 140px;
    min-height: 140px;
  }

  .arena-preview-container {
    width: 120px;
    height: 120px;
  }


  .confirm-selection-button {
    padding: 12px 20px;
    font-size: 0.9em;
  }
}

/* Portrait mobile 9:16 specific - Enhanced for modern phones */
@media (max-width: 480px) and (orientation: portrait),
       (max-width: 430px),
       (aspect-ratio: 9/16),
       (aspect-ratio: 19.5/9) {
  .arena-selection {
    padding: 120px 12px 12px; /* Increased top padding for HUD on portrait */
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow: hidden;
  }

  .arena-header {
    margin-bottom: 20px;
    margin-top: 0; /* No extra top margin needed since padding handles it */
    flex-shrink: 0;
  }


  .arena-header h2 {
    font-size: 2em;
    margin: 10px 0 8px;
    line-height: 1.1;
  }

  .arena-header p {
    font-size: 1em;
    margin: 0;
  }

  .arena-grid {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 68px 7px; /* 85% of 80px/8px (15% smaller) */
    margin: 0;
    gap: 8px;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
    max-width: 85%; /* 15% smaller horizontally */
    height: 476px; /* 85% of 560px - still shows 3 items but 15% smaller */
  }

  .arena-grid::-webkit-scrollbar {
    width: 8px; /* Visible scrollbar on mobile */
  }

  .arena-grid::-webkit-scrollbar-thumb {
    box-shadow: 
      0 0 8px rgba(124, 82, 251, 0.6),
      inset 0 0 4px rgba(255, 255, 255, 0.2);
  }

  .arena-card {
    padding: 10px;
    margin: 0;
    flex-shrink: 0;
    border-radius: 14px;
    height: 120px;
    min-height: 120px;
    overflow: visible;
    gap: 10px;
  }

  .arena-preview-container {
    width: 100px;
    height: 100px;
    border-radius: 10px;
  }

  .arena-title {
    margin-bottom: 8px;
  }

  .arena-title h3 {
    font-size: 1.1em;
    line-height: 1.2;
  }

  .arena-icon {
    font-size: 1.3em;
  }

  .arena-description {
    font-size: 0.8em;
    line-height: 1.3;
    margin-bottom: 8px;
    display: block;
    overflow: visible;
    white-space: normal;
  }

  .arena-stats {
    gap: 6px;
  }

  .stat {
    font-size: 0.8em;
  }

  .selection-actions {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    margin: 15px 0 0;
    padding: 12px;
    background: linear-gradient(to top, rgba(20, 20, 40, 0.95), transparent);
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    justify-content: center;
  }

  .back-button,
  .confirm-selection-button {
    flex: 1;
    padding: 15px 20px;
    font-size: 1em;
    font-weight: 700;
    border-radius: 12px;
    min-width: auto;
  }
}

/* Extra optimizations for very tall 9:16 screens */
@media (min-aspect-ratio: 9/16) and (orientation: portrait) and (max-width: 480px) {
  .arena-selection {
    aspect-ratio: 9 / 16;
    max-height: 100vh;
  }

  .arena-grid {
    max-height: calc(100vh - 200px);
  }
}

/* Add swipe gesture support */
.arena-grid {
  touch-action: pan-y; /* Allow vertical scrolling, prevent horizontal */
  -webkit-overflow-scrolling: touch;
}

.arena-card {
  user-select: none; /* Prevent text selection during swipes */
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}.death-screen {
  /* Styles are now handled inline for better control over safe area */
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 99999 !important; /* CRITICAL: Higher than countdown overlays (10000) */
  animation: fadeIn 0.3s ease-in;
}

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

.death-content {
  text-align: center;
  color: white;
  padding: clamp(8px, 2vw, 14px); /* Reduced padding for tighter layout */
  background: rgba(26, 26, 46, 0.95);
  border-radius: 20px;
  border: 2px solid #7C52FB;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 30px rgba(124, 82, 251, 0.5);
  font-family: 'Courier New', monospace;
  box-sizing: border-box;
}

.skull {
  font-size: clamp(47px, 12vw, 95px); /* Reduced 30% from original */
  animation: pulse 1s infinite;
  text-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
  margin-bottom: clamp(2px, 0.5vw, 5px); /* Reduced spacing */
  flex-shrink: 0;
}

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

.death-message {
  font-size: clamp(1rem, 3.4vw, 1.5rem); /* Reduced 15% from original */
  color: #7C52FB;
  text-shadow:
    0 0 10px rgba(124, 82, 251, 0.8),
    0 0 20px rgba(124, 82, 251, 0.6),
    0 0 30px rgba(124, 82, 251, 0.4);
  margin: clamp(5px, 1vw, 8px) 0; /* Reduced spacing */
  font-family: 'Courier New', monospace;
  font-weight: bold;
  flex-shrink: 0;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.lives-remaining {
  margin-top: clamp(8px, 1.5vw, 15px); /* Reduced spacing */
  flex-shrink: 0;
}

.lives-remaining p {
  font-size: clamp(1.5rem, 4.5vw, 2.25rem);
  margin: clamp(8px, 1.5vw, 10px) 0;
  color: #ffffff;
  font-family: 'Courier New', monospace;
}

.respawn-countdown {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.countdown-number {
  font-size: 90px;
  color: #ffff00;
  font-weight: bold;
  text-shadow:
    0 0 10px rgba(255, 255, 0, 0.8),
    0 0 20px rgba(255, 255, 0, 0.6);
  animation: countdownPulse 1s infinite;
}

@keyframes countdownPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.game-over {
  animation: gameOverFlash 0.5s infinite alternate;
}

@keyframes gameOverFlash {
  from {
    color: #ff0000;
  }
  to {
    color: #ffffff;
  }
}

.game-over h2 {
  font-size: 48px;
  margin: 2px 0;
  font-family: 'Courier New', monospace;
}

.game-over p {
  font-size: 24px;
  color: #ff6666;
}.game-mode-selector-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10050;
  font-family: monospace;
  overflow: hidden;
  /* Safe area padding for mobile - FIXED: Removed duplicate padding declaration that could cause CSS parsing issues */
  padding: max(env(safe-area-inset-top, 20px), 20px) max(env(safe-area-inset-right, 10px), 10px) max(env(safe-area-inset-bottom, 20px), 20px) max(env(safe-area-inset-left, 10px), 10px);
  box-sizing: border-box;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-overflow-scrolling: touch;
}

.game-mode-selector-content {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.5) 100%);
  padding: 10px 8px;
  border-radius: 0px;
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(124, 82, 251, 0.5);
  box-sizing: border-box;
  pointer-events: auto;
  position: relative;
  z-index: 10051;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* Mobile 9:16 aspect ratio support */
@media (max-width: 768px) and (orientation: portrait) {
  .game-mode-selector-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
  }

  .game-mode-selector-content {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 8px;
  }

  .game-modes-grid {
    flex: 1;
    min-height: 0;
  }
}

/* Portrait 9:16 specific styling */
@media (orientation: portrait) {
  .game-mode-selector-content {
    width: 100%;
    height: 100%;
  }
}

.game-modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 15px;
  flex: 1;
  overflow-y: auto;
  padding: 0 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Ensure touch events work */
  pointer-events: auto;
  touch-action: pan-y;
  position: relative;
  z-index: 10;
}

.game-modes-grid > * {
  position: relative;
  z-index: 11;
}

.game-modes-grid::-webkit-scrollbar {
  display: none;
}.difficulty-selector-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.5) 100%);
  color: #fff;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 10052; /* Higher than GameModeSelector (10050-10051) to ensure clickability */
  height: 100vh;
  box-sizing: border-box;
  pointer-events: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 8px 60px; /* Safe zone padding for mobile devices */
}

.difficulty-selector-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.difficulty-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.difficulty-header h2 {
  font-size: 24px;
  margin: 20px 0 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(to right, #7C52FB, #9672FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.difficulty-header p {
  font-size: 14px;
  color: #A0A0A0;
  text-align: center;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.difficulty-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
  max-width: 500px;
  margin: 0 auto 30px auto;
}

.difficulty-option {
  background: rgba(26, 26, 26, 0.5);
  border: 2px solid rgba(124, 82, 251, 0.3);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  pointer-events: auto;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.difficulty-option:hover {
  border-color: #9672FF;
  background: rgba(124, 82, 251, 0.1);
  box-shadow: 0 0 15px rgba(124, 82, 251, 0.4);
  transform: translateY(-2px);
}

.difficulty-option:active {
  transform: translateY(0);
  box-shadow: 0 0 10px rgba(124, 82, 251, 0.3);
}

.difficulty-icon {
  width: 48px;
  height: 48px;
  color: #7C52FB;
  filter: drop-shadow(0 0 10px rgba(124, 82, 251, 0.5));
  flex-shrink: 0;
}

.difficulty-info {
  flex: 1;
}

.difficulty-name {
  color: #FFFFFF;
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 18px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.difficulty-subtitle {
  color: #7C52FB;
  font-size: 12px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

.difficulty-description {
  color: #E0E0E0;
  font-size: 12px;
  line-height: 1.2;
}

.difficulty-select-arrow {
  color: #7C52FB;
  font-size: 24px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.difficulty-option:hover .difficulty-select-arrow {
  transform: translateX(5px);
}

.difficulty-footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}

.back-button {
  padding: 8px 16px;
  background-color: transparent;
  color: #7C52FB;
  border: 2px solid #7C52FB;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  pointer-events: auto;
  touch-action: manipulation;
}

.back-button:hover {
  background-color: rgba(124, 82, 251, 0.1);
  border-color: #9672FF;
  color: #9672FF;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(124, 82, 251, 0.3);
}

.back-button:active {
  transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .difficulty-selector-overlay {
    padding: 10px;
  }

  .difficulty-selector-content {
    padding: 20px;
    max-width: 100%;
  }

  .difficulty-header h2 {
    font-size: 24px;
  }

  .difficulty-option {
    padding: 15px;
  }

  .difficulty-icon {
    font-size: 28px;
    margin-right: 15px;
    min-width: 40px;
  }

  .difficulty-name {
    font-size: 18px;
  }
}

/* React Native WebView compatibility */
.difficulty-option {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.back-button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 44px; /* iOS touch target */
}.game-confirmation-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.5) 100%);
  color: #fff;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 10052; /* Higher than GameModeSelector (10050-10051) to ensure clickability */
  height: 100vh;
  box-sizing: border-box;
  pointer-events: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 8px 60px; /* Safe zone padding for mobile devices */
}

.game-confirmation-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.confirmation-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.confirmation-header h2 {
  font-size: 24px;
  margin: 20px 0 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(to right, #7C52FB, #9672FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.confirmation-header p {
  font-size: 14px;
  color: #A0A0A0;
  text-align: center;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.confirmation-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.confirmation-item {
  background: rgba(26, 26, 26, 0.5);
  border: 2px solid rgba(124, 82, 251, 0.3);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.confirmation-item:hover {
  border-color: #9672FF;
  background: rgba(124, 82, 251, 0.05);
  box-shadow: 0 0 10px rgba(124, 82, 251, 0.3);
}

.item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.item-icon {
  width: 24px;
  height: 24px;
  color: #7C52FB;
  filter: drop-shadow(0 0 8px rgba(124, 82, 251, 0.5));
  flex-shrink: 0;
}

.item-label {
  color: #7C52FB;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

.item-value {
  color: #FFFFFF;
  font-weight: bold;
  font-size: 18px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  margin-left: 36px; /* Align with label, accounting for icon width + gap */
}

.item-subtitle {
  color: #E0E0E0;
  font-size: 12px;
  line-height: 1.2;
  font-weight: normal;
  margin-top: 2px;
}

.confirmation-actions {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.back-button {
  padding: 8px 16px;
  background-color: transparent;
  color: #7C52FB;
  border: 2px solid #7C52FB;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  pointer-events: auto;
  touch-action: manipulation;
  flex: 1;
  justify-content: center;
}

.back-button:hover {
  background-color: rgba(124, 82, 251, 0.1);
  border-color: #9672FF;
  color: #9672FF;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(124, 82, 251, 0.3);
}

.back-button:active {
  transform: translateY(0);
}

.start-button {
  padding: 12px 24px;
  background: linear-gradient(135deg, #7C52FB 0%, #9672FF 100%);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  pointer-events: auto;
  touch-action: manipulation;
  flex: 2;
  justify-content: center;
  box-shadow: 0 0 20px rgba(124, 82, 251, 0.4);
}

.start-button:hover {
  background: linear-gradient(135deg, #8B63FF 0%, #A682FF 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124, 82, 251, 0.6);
}

.start-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(124, 82, 251, 0.4);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .game-confirmation-overlay {
    padding: 10px;
  }

  .game-confirmation-content {
    padding: 20px;
    max-width: 100%;
  }

  .confirmation-header h2 {
    font-size: 20px;
  }

  .confirmation-item {
    padding: 15px;
  }

  .item-value {
    font-size: 16px;
    margin-left: 30px;
  }

  .confirmation-actions {
    flex-direction: column;
    gap: 10px;
  }

  .back-button,
  .start-button {
    width: 100%;
    justify-content: center;
  }

  .start-button {
    order: -1; /* Put start button on top on mobile */
  }
}

/* React Native WebView compatibility */
.confirmation-item {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.back-button,
.start-button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  min-height: 44px; /* iOS touch target */
}.powerup-hud {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  pointer-events: none;
  z-index: 100;
}

/* Special powerup indicators */
.powerup-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #fff;
  border-radius: 10px;
  padding: 10px 15px;
  animation: pulse 2s infinite;
}

.powerup-indicator.tnt {
  border-color: #DC143C;
  background: rgba(220, 20, 60, 0.3);
}

.powerup-indicator.double-bomb {
  border-color: #FFD700;
  background: rgba(255, 215, 0, 0.3);
}

.powerup-icon {
  font-size: 24px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.powerup-instruction {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-family: 'Courier New', monospace;
  animation: pulse 2s infinite;
}

/* Game stats */
.game-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 10px;
  margin-top: 10px;
}

.stat-label {
  font-size: 14px;
  color: #aaa;
  font-family: 'Courier New', monospace;
}

.stat-value {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  font-family: 'Courier New', monospace;
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes flash {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .powerup-hud {
    top: 10px;
    right: 10px;
    gap: 10px;
  }

  .powerup-indicator {
    padding: 8px 12px;
  }

  .powerup-icon {
    font-size: 20px;
  }

  .powerup-count, .powerup-timer {
    font-size: 16px;
  }

  .permanent-powerups {
    padding: 8px;
    gap: 5px;
  }

  .stat-icon {
    font-size: 16px;
  }

  .stat-value {
    font-size: 16px;
  }
}/* Kill Feed Notifications Styling */
.kill-feed-container {
  position: fixed;
  top: 50%; /* Center vertically in viewport */
  left: 20px; /* Left side of viewport, before map */
  transform: translateY(-50%); /* Adjust for container height to center */
  z-index: 1000;
  pointer-events: none;
  max-width: 300px;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.kill-feed-message {
  padding: 10px 16px;
  border-radius: 6px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  background: transparent; /* Transparent background */
  color: #ff0000; /* Red text */
  white-space: nowrap;
  animation: slideInLeft 0.3s ease-out forwards, fadeOut 0.5s ease-out 2.5s forwards;
  /* Text stroke (black border) using text-shadow */
  text-shadow: 
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000,
    -1px 0 0 #000,
    1px 0 0 #000,
    0 -1px 0 #000,
    0 1px 0 #000;
}

.kill-text {
  display: block;
  line-height: 1.4;
}

/* Animations */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-20px);
    opacity: 0;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .kill-feed-container {
    top: 50%; /* Keep vertical centering on mobile */
    left: max(10px, env(safe-area-inset-left, 10px));
    max-width: 250px;
  }

  .kill-feed-message {
    font-size: 12px;
    padding: 8px 12px;
  }
}.watch-mode {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: 1000;
  overflow: hidden;
}

.watch-mode-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 40px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.watch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.watch-header h1 {
  color: #333;
  margin: 0;
  font-size: 2em;
}

.back-btn {
  padding: 10px 20px;
  background: #f44336;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.back-btn:hover {
  background: #d32f2f;
  transform: translateY(-2px);
}

.loading, .error, .no-games {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 1.1em;
}

.error {
  color: #f44336;
}

.games-list {
  display: grid;
  gap: 20px;
}

.game-card {
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.game-card:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.game-header h3 {
  color: #333;
  margin: 0;
  font-size: 1.3em;
}

.game-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
}

.status-playing {
  background: #4CAF50;
  color: white;
}

.status-paused {
  background: #ff9800;
  color: white;
}

.status-ended {
  background: #999;
  color: white;
}

.game-players {
  margin-bottom: 15px;
}

.game-players h4 {
  color: #666;
  margin: 0 0 10px 0;
  font-size: 1em;
}

.game-players ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.game-players li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.player-name {
  font-weight: 600;
  color: #333;
}

.player-stats {
  color: #666;
  font-size: 0.9em;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.85em;
  color: #999;
}

.watch-btn {
  width: 100%;
  padding: 12px;
  background: #7C52FB;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s;
}

.watch-btn:hover {
  background: #6a42e0;
  transform: translateY(-2px);
}

/* Spectator view */
.watch-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  z-index: 1001;
}

.watch-overlay .watch-header {
  margin-bottom: 20px;
}

.watch-overlay h2 {
  margin: 0;
  color: white;
}

.watch-game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.players-status {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.player-status {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 15px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.player-status .player-name {
  font-weight: 600;
  font-size: 1.1em;
}

.player-status .player-score,
.player-status .player-lives {
  font-size: 0.9em;
  opacity: 0.9;
}

.game-status {
  font-size: 1.1em;
}

.status-playing {
  color: #4CAF50;
}

.status-paused {
  color: #ff9800;
}

.status-ended {
  color: #999;
}

