/* ═══════════════════════════════════════════════════════════
   Senate Showdown — Retro 16-Bit Arcade Theme
   ═══════════════════════════════════════════════════════════ */

/* ─── Design Tokens ───────────────────────────────────────── */
:root {
  --arcade-yellow: #fcd800;
  --arcade-yellow-dark: #dca000;
  --arcade-red: #d82800;
  --arcade-blue: #204880;
  --arcade-blue-light: #5080c8;
  --arcade-blue-dark: #102040;
  --arcade-bg: #405060;
  --arcade-border: #101010;
  --arcade-white: #f8f8f8;
  --arcade-grey: #808080;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Press Start 2P", monospace;
  color: var(--arcade-white);
  display: grid;
  place-items: center;
  background-color: #000;
  overflow-x: hidden;
  overflow-y: auto;
  image-rendering: pixelated;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--arcade-border); }
::-webkit-scrollbar-thumb { background: var(--arcade-blue); border: 2px solid var(--arcade-border); }

/* ─── App Container ──────────────────────────────────────── */
.app {
  width: min(1220px, 100vw);
  position: relative;
}

/* ─── Panels ─────────────────────────────────────────────── */
.panel {
  display: none;
  border: 6px solid var(--arcade-border);
  box-shadow: inset -4px -4px 0px rgba(0,0,0,0.5), inset 4px 4px 0px rgba(255,255,255,0.2);
  overflow: hidden;
  position: relative;
  background-color: var(--arcade-bg);
}

.panel.visible {
  display: block;
}

.panel-start,
.panel-end {
  background: url("./assets/images/background.png") center bottom / cover no-repeat;
  background-color: #fca048; /* fallback sunset color */
  text-align: center;
  padding: 40px 20px 30px;
  image-rendering: pixelated;
}

/* Add a semi-transparent dark pixel overlay to make UI readable if needed */
.panel-start::before, .panel-end::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 0;
}
.panel-start > *, .panel-end > * {
  position: relative;
  z-index: 1;
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2 {
  font-family: "Press Start 2P", monospace;
  line-height: 1.4;
  text-transform: uppercase;
}

/* ─── Title ──────────────────────────────────────────────── */
.title-wrap {
  margin-bottom: 20px;
}

.game-title {
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: var(--arcade-yellow);
  text-shadow: 
    -4px -4px 0 #000,
     0   -4px 0 #000,
     4px -4px 0 #000,
     4px  0   0 #000,
     4px  4px 0 #000,
     0    4px 0 #000,
    -4px  4px 0 #000,
    -4px  0   0 #000,
     0    8px 0 #000,
     4px  8px 0 #000,
    -4px  8px 0 #000;
  letter-spacing: 2px;
  display: inline-block;
}

.title-underline {
  display: none; /* Hide the modern underline */
}

.subtitle {
  margin: 10px auto 20px;
  font-size: clamp(0.8rem, 1.5vw, 1.2rem);
  color: var(--arcade-white);
  text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
  letter-spacing: 1px;
}

.hint {
  margin-top: 30px;
  font-size: 0.8rem;
  color: var(--arcade-yellow);
  text-shadow: 2px 2px 0 #000;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hint kbd {
  display: inline-block;
  color: var(--arcade-white);
  padding: 0 4px;
}

/* ─── Mode Select (Arcade Buttons) ───────────────────────── */
.mode-select {
  margin: 20px auto;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mode-btn, .action-btn {
  background-color: var(--arcade-blue);
  color: var(--arcade-white);
  font-family: "Press Start 2P", monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
  padding: 16px 20px;
  cursor: pointer;
  border: 4px solid var(--arcade-border);
  box-shadow: 
    inset 4px 4px 0px var(--arcade-blue-light),
    inset -4px -4px 0px var(--arcade-blue-dark),
    4px 4px 0px rgba(0,0,0,0.5);
  transition: transform 0.1s;
}

.mode-btn:hover, .action-btn:hover {
  background-color: var(--arcade-blue-light);
  box-shadow: 
    inset 4px 4px 0px #fff,
    inset -4px -4px 0px var(--arcade-blue),
    4px 4px 0px rgba(0,0,0,0.5);
}

.mode-btn:active, .mode-btn.selected, .action-btn:active {
  background-color: var(--arcade-blue-dark);
  box-shadow: 
    inset 4px 4px 0px #000,
    inset -4px -4px 0px var(--arcade-blue),
    0px 0px 0px rgba(0,0,0,0.5);
  transform: translate(4px, 4px);
  color: var(--arcade-grey);
}

.mode-btn.selected {
  border-color: var(--arcade-yellow);
  color: var(--arcade-yellow);
}

/* ─── Fighter Cards ──────────────────────────────────────── */
.fighter-select {
  margin: 30px auto;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.fighter-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.fighter-wrapper .name {
  font-family: "Press Start 2P", monospace;
  font-size: 1.1rem;
  color: var(--arcade-white);
  text-shadow: 2px 2px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000;
}

.fighter-card {
  position: relative;
  width: 220px;
  height: 280px;
  background-color: var(--arcade-bg);
  border: 6px solid var(--arcade-border);
  box-shadow: 
    inset 4px 4px 0px #607080,
    inset -4px -4px 0px #203040,
    6px 6px 0px rgba(0,0,0,0.6);
  cursor: pointer;
  color: var(--arcade-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 10px;
  transition: transform 0.1s;
}

.card-glow, .card-tag {
  display: none; /* Hide modern elements */
}

.fighter-card .portrait {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  image-rendering: pixelated;
  opacity: 0.8;
  transition: opacity 0.1s, filter 0.1s;
}


.fighter-card .shirt {
  font-size: 0.6rem;
  line-height: 1.6;
  color: var(--arcade-white);
  text-shadow: 1px 1px 0 #000;
  margin-top: auto;
  margin-bottom: 10px;
  z-index: 2;
  text-transform: uppercase;
  text-align: right;
  align-self: flex-end;
}

.fighter-card:hover {
  transform: translateY(-4px);
  border-color: var(--arcade-white);
}
.fighter-card:hover .portrait {
  opacity: 1;
}

.fighter-card.selected {
  border-color: var(--arcade-yellow);
  background-color: #506070;
  box-shadow: 
    inset 4px 4px 0px #708090,
    inset -4px -4px 0px #304050,
    0 0 20px var(--arcade-yellow);
}
.fighter-wrapper:has(.fighter-card.selected) .name {
  color: var(--arcade-yellow);
}
.fighter-card.selected .portrait {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* ─── Online Panel ───────────────────────────────────────── */
.online-panel {
  margin: 20px auto;
  max-width: 600px;
  background-color: var(--arcade-border);
  border: 4px solid var(--arcade-grey);
  padding: 20px;
  display: none;
}
.online-panel.visible { display: block; }

.online-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.room-code {
  font-size: 1rem;
  color: var(--arcade-yellow);
  margin: 10px 0;
}

.room-input {
  width: 250px;
  background-color: #000;
  color: var(--arcade-white);
  border: 4px solid var(--arcade-grey);
  padding: 12px;
  font-family: "Press Start 2P", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.room-input:focus {
  outline: none;
  border-color: var(--arcade-yellow);
}

.online-status, .lobby-line {
  color: var(--arcade-white);
  font-size: 0.7rem;
  margin: 10px 0;
  text-transform: uppercase;
}

.online-lobby {
  border-top: 4px solid var(--arcade-grey);
  padding-top: 15px;
  margin-top: 15px;
  display: none;
}
.online-lobby.visible { display: block; }

/* ─── Action Buttons ─────────────────────────────────────── */
.action-btn.start-btn {
  font-size: 1.2rem;
  padding: 20px 40px;
  background-color: var(--arcade-red);
  box-shadow: 
    inset 4px 4px 0px #ff6040,
    inset -4px -4px 0px #801000,
    6px 6px 0px rgba(0,0,0,0.6);
}
.action-btn.start-btn:hover {
  background-color: #ff4020;
}
.action-btn.start-btn:active {
  background-color: #801000;
  transform: translate(6px, 6px);
  box-shadow: none;
}
.action-btn:disabled {
  background-color: var(--arcade-grey);
  box-shadow: inset 4px 4px 0px #a0a0a0, inset -4px -4px 0px #404040;
  color: #404040;
  cursor: not-allowed;
  transform: none;
}

/* ─── End Screen & Cutscene ──────────────────────────────── */
.cutscene-video {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 100;
  background-color: #000;
}
.cutscene-video.playing {
  display: block;
}

.result-title {
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: var(--arcade-yellow);
  text-shadow: 4px 4px 0 #000;
  margin-bottom: 20px;
}
.result-image {
  display: none;
  width: 400px;
  max-width: 90vw;
  border: 8px solid var(--arcade-border);
  margin: 20px auto;
  image-rendering: pixelated;
}


/* ═══════════════════════════════════════════════════════════
   IN-GAME HUD
   ═══════════════════════════════════════════════════════════ */
.panel-game {
  width: 100%;
  aspect-ratio: 1424 / 747;
}

.hud {
  position: absolute;
  left: 20px; right: 20px; top: 15px;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 20px;
}

.health-wrap {
  background-color: var(--arcade-bg);
  border: 4px solid var(--arcade-border);
  box-shadow: 4px 4px 0px rgba(0,0,0,0.5);
  padding: 10px;
}
.health-wrap.right { text-align: right; }

.hud-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.fighter-label {
  font-size: 0.8rem;
  color: var(--arcade-white);
  text-shadow: 2px 2px 0 #000;
}

.match-timer {
  font-size: 1.2rem;
  color: var(--arcade-yellow);
  text-shadow: 2px 2px 0 #000;
}
.match-timer.timer-urgent { color: var(--arcade-red); animation: blink 0.5s step-end infinite; }

.bar {
  width: 100%;
  height: 24px;
  background-color: var(--arcade-border);
  border: 2px solid var(--arcade-grey);
}
.fill {
  height: 100%;
  width: 100%;
  transition: width 0.1s;
}
.fill.player { background-color: #00e800; border-top: 4px solid #80ff80; border-bottom: 4px solid #008000; }
.fill.enemy { background-color: var(--arcade-red); border-top: 4px solid #ff6040; border-bottom: 4px solid #801000; }
.fill.low { background-color: var(--arcade-red); animation: blink 0.2s step-end infinite; }

.skill-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.skill-label {
  font-size: 0.5rem;
  color: var(--arcade-yellow);
}
.skill-bar-track {
  flex: 1;
  height: 10px;
  background-color: var(--arcade-border);
}
.skill-bar-fill {
  height: 100%;
  width: 0%;
  background-color: var(--arcade-blue);
}
.skill-bar-fill.ready {
  background-color: var(--arcade-yellow);
  animation: blink 0.2s step-end infinite;
}

/* ═══════════════════════════════════════════════════════════
   ARENA & FIGHTERS
   ═══════════════════════════════════════════════════════════ */
.arena {
  position: absolute;
  inset: 0;
  background: #0f1727 url("./assets/images/background.png") center 61% / 145% auto no-repeat;
  image-rendering: pixelated;
  overflow: hidden;
}

.arena.shake {
  animation: screenShake 0.2s steps(4);
}

.fighter {
  position: absolute;
  bottom: 18%;
  width: 130px;
  height: 170px;
  background-image: url("./assets/images/Game Character and animation.png");
  background-repeat: no-repeat;
  image-rendering: pixelated;
  transform-origin: center bottom;
  z-index: 2;
}

.fighter::before {
  content: "P1";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Press Start 2P", monospace;
  font-size: 0.8rem;
  color: var(--arcade-white);
  background: var(--arcade-red);
  border: 2px solid var(--arcade-border);
  padding: 4px 6px;
  text-shadow: 2px 2px 0 #000;
}
#enemy::before { content: "P2"; background: var(--arcade-blue); }

.fighter {
  transition: transform 0.05s, filter 0.05s;
}
.fighter.hit { 
  filter: brightness(2) sepia(1) hue-rotate(-50deg) saturate(5) drop-shadow(0 0 10px red);
  transform: scale(0.95);
}
.fighter.punching { /* No modern filter */ }
.fighter.skill-glow { 
  filter: brightness(2) sepia(1) hue-rotate(180deg) saturate(5) drop-shadow(0 0 15px cyan);
  transform: scale(1.05);
}
.fighter.knocked-back { 
  animation: knockbackTumble 0.4s linear; 
  filter: brightness(1.5) drop-shadow(0 0 10px red);
}

.round-banner {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  font-size: 3rem;
  color: var(--arcade-red);
  text-shadow: 4px 4px 0 #000;
  opacity: 0;
}
.round-banner.show { animation: bannerPop 1s steps(5); }

.controls-help {
  position: absolute;
  left: 50%; bottom: 15px;
  transform: translateX(-50%);
  z-index: 4;
  background-color: var(--arcade-border);
  border: 2px solid var(--arcade-white);
  padding: 8px 16px;
  font-size: 0.6rem;
  color: var(--arcade-yellow);
}

/* ═══════════════════════════════════════════════════════════
   VFX SYSTEM
   ═══════════════════════════════════════════════════════════ */
.vfx-layer {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
}
.vfx-particle {
  position: absolute;
  width: 10px; height: 10px;
  background-color: var(--arcade-yellow);
  border: 2px solid #000;
  animation: particleBurst 0.4s steps(4) forwards;
}
.vfx-shockwave {
  position: absolute;
  border: 6px solid var(--arcade-white);
  transform: translate(-50%, -50%);
  animation: shockwaveExpand 0.3s steps(3) forwards;
}
.vfx-flash {
  position: absolute; inset: 0;
  background-color: var(--arcade-white);
  animation: flashFade 0.2s steps(2) forwards;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE
   ═══════════════════════════════════════════════════════════ */
.mobile-fullscreen-btn {
  display: none;
  position: absolute; right: 15px; top: 60px; z-index: 6;
  background: rgba(0,0,0,0.5); border: 2px solid rgba(255,255,255,0.3);
  color: var(--arcade-white); font-size: 0.5rem; padding: 8px 12px;
  font-family: "Press Start 2P", monospace; border-radius: 6px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.mobile-controls { display: none; }
.rotate-notice { display: none; }

.mobile-left, .mobile-right { display: flex; gap: 12px; align-items: flex-end; }

/* Directional Buttons */
.mobile-btn {
  width: 64px; height: 64px;
  background: rgba(255, 255, 255, 0.15); 
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9); 
  font-family: "Press Start 2P", monospace; font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  touch-action: manipulation;
  display: flex; justify-content: center; align-items: center;
  transition: transform 0.1s, background 0.1s;
  user-select: none;
  -webkit-user-select: none;
}

/* Action Buttons */
.mobile-btn.action { 
  width: 68px; height: 68px; font-size: 0.5rem; 
  background: rgba(216, 40, 0, 0.3); 
}
.mobile-btn.action.skill { 
  background: rgba(32, 72, 128, 0.4); 
  margin-bottom: 24px; 
}

.mobile-btn:active, .mobile-btn.pressed {
  background: rgba(255, 255, 255, 0.4); color: #000;
  transform: scale(0.9);
}

/* ═══════════════════════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════════════════════ */
@keyframes bannerPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
  40% { transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes particleBurst {
  100% { transform: translate(var(--dx, 50px), var(--dy, -50px)); opacity: 0; }
}
@keyframes shockwaveExpand {
  0% { width: 20px; height: 20px; }
  100% { width: 200px; height: 200px; opacity: 0; }
}
@keyframes flashFade { 100% { opacity: 0; } }
@keyframes screenShake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-10px, 10px); }
  50% { transform: translate(10px, -10px); }
  75% { transform: translate(-10px, -10px); }
}
@keyframes knockbackTumble {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  body { display: block; }
  .app { width: 100vw; min-height: 100dvh; }
  .panel { border: none; border-radius: 0; box-shadow: none; }
  .panel-game { aspect-ratio: auto; width: 100vw; height: 100dvh; }
  
  .fighter { width: 100px; height: 130px; bottom: 15%; }
  .controls-help { display: none; }
  
  .mobile-controls {
    position: absolute; 
    left: max(20px, env(safe-area-inset-left)); 
    right: max(20px, env(safe-area-inset-right)); 
    bottom: max(20px, env(safe-area-inset-bottom)); 
    z-index: 6;
    display: flex; justify-content: space-between; align-items: flex-end;
  }
  
  .mobile-fullscreen-btn { 
    display: block; 
    top: max(10px, env(safe-area-inset-top)); 
    right: max(10px, env(safe-area-inset-right)); 
  }
  
  .hud { 
    left: max(10px, env(safe-area-inset-left)); 
    right: max(10px, env(safe-area-inset-right)); 
    top: max(10px, env(safe-area-inset-top)); 
    gap: 8px; 
  }
  
  .health-wrap { padding: 4px 6px; border-width: 2px; }
  .match-timer { font-size: 0.9rem; }
  .fighter-label { font-size: 0.6rem; }
  .skill-label { font-size: 0.4rem; }
  
  .game-title { font-size: 1.5rem; text-shadow: 2px 2px 0 #000, -2px -2px 0 #000; }
  
  .fighter-select { gap: 10px; }
  .fighter-card { width: 130px; height: 180px; border-width: 4px; padding: 5px; }
  .fighter-card .portrait { width: 90px; max-height: 110px; top: 5%; }
  .fighter-card .shirt { font-size: 0.5rem; margin-bottom: 5px; }
  .fighter-wrapper .name { font-size: 0.8rem; }
  
  .action-btn.start-btn { font-size: 1rem; padding: 15px 20px; width: 90%; max-width: 300px; }
  
  .user-info-bar { flex-direction: column; gap: 8px; padding: 8px; }
  .user-info-bar .action-btn.small { padding: 8px; font-size: 0.5rem; }
  
  .auth-box { padding: 15px; margin: 10px; border-width: 2px; }
  .auth-tab { font-size: 0.5rem; padding: 8px; }
  .auth-form input { padding: 10px; font-size: 0.6rem; }
  
  .leaderboard-table-wrap { margin: 10px; padding: 5px; }
  .leaderboard-table { font-size: 0.6rem; }
  .leaderboard-table th, .leaderboard-table td { padding: 6px; }
  
  .online-panel { padding: 10px; margin: 10px; }
  .room-input { width: 100%; max-width: 200px; font-size: 0.6rem; padding: 10px; }
}

@media (max-width: 980px) and (orientation: portrait) {
  .rotate-notice {
    display: grid; place-items: center; position: absolute; inset: 0; z-index: 100;
    background: #000; font-size: 1.2rem; color: var(--arcade-yellow); text-align: center; padding: 30px;
    line-height: 1.6; font-family: "Press Start 2P", monospace;
  }
}

/* ═══════════════════════════════════════════════════════════
   AUTH & LEADERBOARD PANELS
   ═══════════════════════════════════════════════════════════ */
.panel-auth {
  background: url("./assets/images/background.png") center bottom / cover no-repeat;
  text-align: center;
  padding: 40px 20px;
}
.panel-auth::before {
  content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 0;
}
.auth-box {
  position: relative; z-index: 1;
  max-width: 400px; margin: 0 auto;
  background-color: var(--arcade-bg);
  border: 4px solid var(--arcade-border);
  box-shadow: 4px 4px 0px rgba(0,0,0,0.5);
  padding: 20px;
}
.auth-tabs { display: flex; margin-bottom: 20px; gap: 10px; }
.auth-tab {
  flex: 1; padding: 10px;
  background-color: var(--arcade-blue); color: var(--arcade-white);
  border: 2px solid var(--arcade-border); cursor: pointer;
  font-family: "Press Start 2P", monospace; font-size: 0.6rem; text-transform: uppercase;
}
.auth-tab.active { background-color: var(--arcade-yellow); color: var(--arcade-border); }
.auth-form { display: none; flex-direction: column; gap: 15px; }
.auth-form.active { display: flex; }
.auth-form input {
  padding: 12px; font-family: "Press Start 2P", monospace; font-size: 0.7rem;
  border: 4px solid var(--arcade-grey); background-color: #000; color: var(--arcade-white);
}
.auth-form input:focus { outline: none; border-color: var(--arcade-yellow); }
.auth-error { color: var(--arcade-red); font-size: 0.6rem; min-height: 10px; }

.panel-leaderboard {
  background: url("./assets/images/background.png") center bottom / cover no-repeat;
  text-align: center; padding: 40px 20px;
}
.panel-leaderboard::before {
  content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.8); z-index: 0;
}
.panel-leaderboard > * { position: relative; z-index: 1; }
.leaderboard-table-wrap {
  margin: 20px auto; max-width: 600px;
  background-color: var(--arcade-bg); border: 4px solid var(--arcade-border);
  padding: 10px; box-shadow: 4px 4px 0px rgba(0,0,0,0.5);
}
.leaderboard-table { width: 100%; border-collapse: collapse; font-size: 0.7rem; }
.leaderboard-table th, .leaderboard-table td { padding: 10px; text-align: center; border-bottom: 2px solid var(--arcade-grey); }
.leaderboard-table th { color: var(--arcade-yellow); }
.leaderboard-table td { color: var(--arcade-white); }

.user-info-bar {
  display: flex; justify-content: space-between; align-items: center;
  background-color: var(--arcade-bg); border: 4px solid var(--arcade-border);
  padding: 10px; margin-bottom: 20px; font-size: 0.6rem; color: var(--arcade-white);
  gap: 10px;
}
.user-info-bar .action-btn.small { padding: 8px; font-size: 0.6rem; }
