:root {
  --bg-dark: #070913;
  --bg-cabinet: #121626;
  --neon-cyan: #00f3ff;
  --neon-pink: #ff007f;
  --neon-purple: #9d4edd;
  --neon-blue: #3a86c8;
  --neon-gold: #ffb703;
  --text-primary: #e2e8f0;
  --text-dim: #718096;
  --bezel-color: #1a1e36;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(157, 78, 221, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 243, 255, 0.15) 0%, transparent 40%),
    linear-gradient(180deg, #05060f 0%, #0c0d21 100%);
  color: var(--text-primary);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  padding: 20px;
}

/* ARCADE CABINET CONTAINER */
.arcade-cabinet {
  background: var(--bg-cabinet);
  border: 4px solid #20263f;
  border-radius: 24px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.7),
    0 0 50px rgba(0, 243, 255, 0.1),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  width: 530px;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  border-bottom-width: 12px;
}

.arcade-cabinet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-pink), transparent);
  animation: flowing-light 4s infinite linear;
}

@keyframes flowing-light {
  0% { background-position: -200px 0; }
  100% { background-position: 600px 0; }
}

/* CABINET TOP BEZEL / MARQUEE */
.cabinet-bezel-top {
  background: #0f1220;
  padding: 15px 25px;
  border-bottom: 3px solid #20263f;
  position: relative;
}

.bezel-marquee {
  background: #090a15;
  border: 2px solid #2b3152;
  border-radius: 8px;
  padding: 10px;
  position: relative;
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 0 15px rgba(0, 243, 255, 0.2);
}

.marquee-text-glowing {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: 4px;
  color: var(--neon-cyan);
  text-shadow: 
    0 0 5px var(--neon-cyan),
    0 0 10px var(--neon-cyan),
    0 0 20px rgba(0, 243, 255, 0.5);
  animation: marquee-pulse 2s infinite ease-in-out;
}

@keyframes marquee-pulse {
  0%, 100% {
    opacity: 0.9;
    text-shadow: 0 0 5px var(--neon-cyan), 0 0 10px var(--neon-cyan), 0 0 20px rgba(0, 243, 255, 0.4);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 8px var(--neon-cyan), 0 0 18px var(--neon-cyan), 0 0 30px rgba(0, 243, 255, 0.8), 0 0 40px rgba(0, 243, 255, 0.4);
  }
}

.scanlines-bezel {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 2;
  pointer-events: none;
}

/* SCREEN CONTAINER & CRT EFFECT */
.screen-container {
  position: relative;
  width: 480px;
  height: 640px;
  margin: 20px auto;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid var(--bezel-color);
  box-shadow: 
    inset 0 0 40px rgba(0, 0, 0, 0.9),
    0 0 15px rgba(0, 0, 0, 0.5);
  background: #000;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* CRT SCANLINE AND CURVATURE EFFECTS */
.crt-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
  z-index: 10;
}

.scanlines {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.15) 50%
  );
  background-size: 100% 6px;
  pointer-events: none;
  z-index: 11;
}

/* GAME OVERLAYS (MENU, PAUSE, ETC.) */
.overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.glassmorphism {
  background: rgba(10, 12, 28, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 243, 255, 0.2);
  box-shadow: 
    0 8px 32px 0 rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(0, 243, 255, 0.1);
}

.menu-content {
  width: 100%;
  max-width: 400px;
  padding: 30px 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 6;
}

.text-center {
  text-align: center;
}

/* LOGO AND TEXTS */
.game-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 3.5rem;
  letter-spacing: -2px;
  margin-bottom: 2px;
  line-height: 1;
  font-style: italic;
}

.neon-cyan {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.6), 0 0 20px rgba(0, 243, 255, 0.3);
}

.neon-purple {
  color: var(--neon-pink);
  text-shadow: 0 0 10px rgba(255, 0, 127, 0.6), 0 0 20px rgba(255, 0, 127, 0.3);
}

.tagline {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 3px;
  color: var(--text-dim);
  margin-bottom: 30px;
}

.menu-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 2px;
  margin-bottom: 25px;
  text-transform: uppercase;
}

.glow-cyan-text {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.glow-pink-text {
  color: var(--neon-pink);
  text-shadow: 0 0 10px rgba(255, 0, 127, 0.5);
}

.glow-gold-text {
  color: var(--neon-gold);
  text-shadow: 0 0 10px rgba(255, 183, 3, 0.5);
}

/* HUD LAYER */
.hud-layer {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 4;
  pointer-events: none;
}

.hud-layer * {
  pointer-events: auto;
}

.score-container, .best-container {
  background: rgba(7, 9, 19, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 8px;
  min-width: 80px;
  text-align: center;
}

.score-container {
  border-left: 3px solid var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.15);
}

.best-container {
  border-right: 3px solid var(--neon-gold);
  box-shadow: 0 0 10px rgba(255, 183, 3, 0.15);
}

.hud-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.hud-value {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.1rem;
  color: #fff;
}

.hud-icon-btn {
  background: rgba(7, 9, 19, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hud-icon-btn:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
  transform: scale(1.05);
}

.hud-icon-btn:active {
  transform: scale(0.95);
}

/* BUTTONS */
.arcade-btn {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 2px;
  padding: 14px 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: #0f1225;
  color: #fff;
  cursor: pointer;
  outline: none;
  width: 100%;
  max-width: 260px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.arcade-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: skewX(-25deg);
  transition: 0.75s;
}

.arcade-btn:hover::after {
  left: 150%;
}

.arcade-btn:hover {
  transform: translateY(-2px);
  background: #151a34;
}

.arcade-btn:active {
  transform: translateY(1px);
}

.glow-cyan {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}
.glow-cyan:hover {
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.5), inset 0 0 5px rgba(0, 243, 255, 0.2);
  text-shadow: 0 0 5px #fff;
}

.glow-purple {
  border-color: var(--neon-purple);
  box-shadow: 0 0 10px rgba(157, 78, 221, 0.2);
}
.glow-purple:hover {
  box-shadow: 0 0 15px rgba(157, 78, 221, 0.5), inset 0 0 5px rgba(157, 78, 221, 0.2);
  text-shadow: 0 0 5px #fff;
}

.glow-blue {
  border-color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(58, 134, 200, 0.2);
}
.glow-blue:hover {
  box-shadow: 0 0 15px rgba(58, 134, 200, 0.5), inset 0 0 5px rgba(58, 134, 200, 0.2);
  text-shadow: 0 0 5px #fff;
}

.menu-actions.vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.arcade-btn-small {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  background: #0f1225;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.glow-gold {
  border-color: var(--neon-gold);
  color: var(--neon-gold);
}
.glow-gold:hover {
  background: var(--neon-gold);
  color: #000;
  box-shadow: 0 0 12px rgba(255, 183, 3, 0.5);
  font-weight: 900;
}

/* SKIN SELECTOR */
.skin-selector-box {
  background: rgba(7, 9, 19, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 15px;
  width: 100%;
  max-width: 290px;
  margin-bottom: 25px;
}

.skin-selector-box h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.skin-carousel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.carousel-nav-btn {
  background: transparent;
  border: none;
  color: var(--neon-cyan);
  font-family: 'Press Start 2P', monospace;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 10px;
  transition: transform 0.1s ease;
}

.carousel-nav-btn:hover {
  color: #fff;
  transform: scale(1.2);
  text-shadow: 0 0 5px var(--neon-cyan);
}

.skin-display-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
}

.skin-name {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 5px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.skin-description {
  font-size: 0.75rem;
  color: var(--text-dim);
  min-height: 32px;
  line-height: 1.3;
}

/* SETTINGS AND FORM ELEMENTS */
.settings-box {
  width: 100%;
  max-width: 280px;
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 25px;
}

.settings-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 10px;
  display: block;
}

.volume-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.neon-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #1a1e36;
  border-radius: 3px;
  outline: none;
}

.neon-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--neon-cyan);
  cursor: pointer;
  box-shadow: 0 0 8px var(--neon-cyan);
  transition: transform 0.1s ease;
}

.neon-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* RESULTS & LEADERBOARD FORM */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  width: 100%;
  max-width: 290px;
  margin-bottom: 25px;
}

.result-card {
  background: rgba(7, 9, 19, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 10px;
}

.result-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 5px;
}

.result-value {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.4rem;
}

.leaderboard-form {
  width: 100%;
  max-width: 290px;
  margin-bottom: 25px;
}

.pulse-border-box {
  border: 1.5px solid var(--neon-gold);
  border-radius: 10px;
  padding: 15px;
  background: rgba(255, 183, 3, 0.03);
  box-shadow: 0 0 10px rgba(255, 183, 3, 0.05);
  animation: border-glow-pulse 2s infinite alternate;
}

@keyframes border-glow-pulse {
  0% { box-shadow: 0 0 5px rgba(255, 183, 3, 0.1); }
  100% { box-shadow: 0 0 15px rgba(255, 183, 3, 0.3); }
}

.form-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.form-subtitle {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.input-row {
  display: flex;
  gap: 8px;
}

.cyber-input {
  flex: 1;
  background: #090a15;
  border: 1.5px solid rgba(255, 183, 3, 0.4);
  border-radius: 6px;
  color: #fff;
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  padding: 8px;
  text-align: center;
  text-transform: uppercase;
  outline: none;
}

.cyber-input:focus {
  border-color: var(--neon-gold);
  box-shadow: 0 0 8px rgba(255, 183, 3, 0.3);
}

.error-msg {
  font-size: 0.65rem;
  color: var(--neon-pink);
  margin-top: 8px;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
}

/* LEADERBOARD TABLE */
.leaderboard-table-container {
  width: 100%;
  max-width: 420px;
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 25px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(7, 9, 19, 0.4);
}

/* Custom Scrollbar for Leaderboard */
.leaderboard-table-container::-webkit-scrollbar {
  width: 6px;
}
.leaderboard-table-container::-webkit-scrollbar-track {
  background: transparent;
}
.leaderboard-table-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.leaderboard-table-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.leaderboard-table th, .leaderboard-table td {
  padding: 10px 15px;
}

.leaderboard-table th {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  background: #0f1220;
  z-index: 1;
}

.leaderboard-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.leaderboard-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.01);
}

.leaderboard-table tbody tr.new-record {
  background: rgba(255, 183, 3, 0.06);
  border-bottom: 1px solid rgba(255, 183, 3, 0.2);
}

.leaderboard-table tbody tr.new-record td {
  color: var(--neon-gold);
  font-weight: 700;
}

.col-rank { width: 15%; text-align: center; }
.col-pilot { width: 30%; font-family: 'Press Start 2P', monospace; font-size: 0.7rem; }
.col-score { width: 25%; font-family: 'Press Start 2P', monospace; font-size: 0.7rem; color: #fff; text-align: right; }
.col-date { width: 30%; font-size: 0.7rem; color: var(--text-dim); text-align: right; }

.rank-gold { color: var(--neon-gold); font-weight: bold; }
.rank-silver { color: #cccccc; font-weight: bold; }
.rank-bronze { color: #cd7f32; font-weight: bold; }

/* HINTS */
.controls-hint {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  line-height: 1.5;
  margin-top: 15px;
}

/* PHYSICAL CONTROLS (CABINET BOTTOM) */
.cabinet-controls {
  background: #090b14;
  border-top: 4px solid #20263f;
  padding: 25px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  height: 130px;
}

.joystick-assembly {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.joystick-base {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a2e45 0%, #0d0f19 100%);
  border: 3px solid #1a1e35;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.8), 0 2px 4px rgba(255,255,255,0.05);
}

.joystick-shaft {
  position: absolute;
  width: 10px;
  height: 38px;
  background: linear-gradient(90deg, #999 0%, #ddd 50%, #666 100%);
  bottom: 40px;
  left: calc(50% - 5px);
  transform-origin: bottom center;
  border-radius: 5px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
  animation: joystick-idle 6s infinite ease-in-out;
}

.joystick-ball {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 10px 10px, #ff3b30 0%, #8b0000 80%, #4a0000 100%);
  top: 10px;
  left: calc(50% - 16px);
  box-shadow: 
    0 4px 10px rgba(0,0,0,0.6),
    0 0 15px rgba(255, 0, 0, 0.4);
  animation: joystick-ball-idle 6s infinite ease-in-out;
}

@keyframes joystick-idle {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(5deg) skewX(2deg); }
  40% { transform: rotate(-3deg) skewX(-1deg); }
  60% { transform: rotate(2deg); }
}

@keyframes joystick-ball-idle {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(3px, 1px); }
  40% { transform: translate(-2px, -1px); }
  60% { transform: translate(1px, 0); }
}

.arcade-buttons {
  display: flex;
  gap: 25px;
}

.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.arcade-button {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 4px;
  cursor: pointer;
  position: relative;
}

.arcade-button:active .btn-cap {
  transform: translateY(3px);
  box-shadow: 
    0 1px 0 rgba(0,0,0,0.8),
    inset 0 2px 5px rgba(0,0,0,0.4);
}

.btn-cap {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 0.62rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* Cyan Flap Button */
.cyan-btn {
  background: #063c46;
  box-shadow: 0 4px 0 #021a1f, 0 8px 15px rgba(0,0,0,0.6);
}
.cyan-btn .btn-cap {
  background: radial-gradient(circle, var(--neon-cyan) 0%, #089bb3 80%);
  box-shadow: 
    0 3px 0 #056777,
    inset 0 1px 2px rgba(255,255,255,0.4),
    0 0 10px rgba(0, 243, 255, 0.4);
}
.cyan-btn:hover .btn-cap {
  box-shadow: 
    0 3px 0 #056777,
    inset 0 1px 2px rgba(255,255,255,0.6),
    0 0 15px rgba(0, 243, 255, 0.8);
}

/* Purple Pause Button */
.purple-btn {
  background: #2b113f;
  box-shadow: 0 4px 0 #12071c, 0 8px 15px rgba(0,0,0,0.6);
}
.purple-btn .btn-cap {
  background: radial-gradient(circle, var(--neon-purple) 0%, #6f26a1 80%);
  box-shadow: 
    0 3px 0 #4a1370,
    inset 0 1px 2px rgba(255,255,255,0.4),
    0 0 10px rgba(157, 78, 221, 0.4);
}
.purple-btn:hover .btn-cap {
  box-shadow: 
    0 3px 0 #4a1370,
    inset 0 1px 2px rgba(255,255,255,0.6),
    0 0 15px rgba(157, 78, 221, 0.8);
}

.btn-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 1px;
  color: var(--text-dim);
  font-weight: 700;
}

/* Speakers */
.speaker-grille {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 50px;
}

.grille-slats {
  height: 4px;
  background: #04050a;
  border-radius: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* RESPONSIVE SCALING */
@media (max-width: 560px) {
  body {
    padding: 0;
  }
  .arcade-cabinet {
    border-radius: 0;
    border: none;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
  }
  .screen-container {
    flex: 1;
    margin: 5px auto;
    width: 100vw;
    height: auto;
    max-height: calc(100vh - 200px);
    aspect-ratio: 3 / 4;
  }
  .cabinet-bezel-top {
    padding: 8px 15px;
  }
  .marquee-text-glowing {
    font-size: 1.4rem;
  }
  .cabinet-controls {
    height: 110px;
    padding: 10px 15px;
  }
  .joystick-assembly {
    width: 70px;
    height: 70px;
  }
  .joystick-base {
    width: 50px;
    height: 50px;
  }
  .joystick-shaft {
    height: 30px;
    bottom: 30px;
  }
  .joystick-ball {
    width: 24px;
    height: 24px;
    left: calc(50% - 12px);
    top: 8px;
  }
  .arcade-button {
    width: 44px;
    height: 44px;
  }
  .arcade-buttons {
    gap: 15px;
  }
}
