


.game-viewport {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  height: calc(100vh - 73px);
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  gap: 16px;
  padding: 0 16px;
  box-sizing: border-box;
}

.game-sidebar {
  padding: 16px;
  border-right: 1px solid var(--panel-border);
  background: rgba(12, 20, 39, 0.45);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  min-height: 0;
}

.gameplay-sidebar {
  border-right: none;
  border-left: 1px solid var(--panel-border);
}

.mobile-settings-toggle {
  display: none;
}


.stage-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.stage-unlocked-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-accent);
  background: rgba(var(--primary-accent-rgb), 0.15);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(var(--primary-accent-rgb), 0.3);
}

.stage-selector-scroll {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: calc(100vh - 360px);
  min-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.stage-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.stage-btn:hover:not(.locked) {
  background: rgba(var(--primary-accent-rgb), 0.1);
  border-color: var(--primary-accent);
  transform: translateX(2px);
}

.stage-btn.active {
  background: rgba(var(--primary-accent-rgb), 0.2);
  border-color: var(--primary-accent);
  box-shadow: 0 0 12px rgba(var(--primary-accent-rgb), 0.25);
}

.stage-btn.locked {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(80%);
}

.stage-btn-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-badge-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.stage-btn.active .stage-badge-num {
  background: var(--primary-accent);
  color: #000;
}

.stage-btn-name {
  font-size: 13px;
  font-weight: 600;
}

.stage-btn-dist {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}


.game-arena-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 6px;
  position: relative;
}

.arcade-cabinet {
  background: linear-gradient(180deg, #1c1511 0%, #0d0a08 100%);
  border: 4px solid #4a3628;
  border-radius: 16px;
  width: 100%;
  max-width: min(780px, calc((100vh - 170px) * (16 / 9)));
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.8),
    0 0 25px rgba(245, 158, 11, 0.15);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}


.arcade-cabinet.skin-arcade {
  background: linear-gradient(180deg, #24140c 0%, #110904 100%);
  border-color: #78350f;
}

.arcade-cabinet.skin-cyber {
  background: linear-gradient(180deg, #0b0f19 0%, #05070d 100%);
  border-color: #00f0ff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 240, 255, 0.25);
}

.arcade-cabinet.skin-cyber .arcade-marquee {
  background: linear-gradient(180deg, #090e17 0%, #020408 100%);
  border-bottom-color: #00f0ff;
}

.arcade-cabinet.skin-cyber .marquee-title {
  color: #00f0ff;
  text-shadow: 0 0 6px #fff, 0 0 14px #00f0ff, 0 0 24px #00f0ff;
}

.arcade-cabinet.skin-handheld {
  background: #879169;
  border-color: #556038;
  border-width: 6px;
}

.arcade-cabinet.skin-handheld .arcade-marquee {
  background: #4a5430;
  border-bottom-color: #2e351b;
}

.arcade-cabinet.skin-handheld .marquee-title {
  color: #c7d19e;
  text-shadow: none;
}


.arcade-marquee {
  background: linear-gradient(180deg, #180b03 0%, #0a0401 100%);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #f59e0b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.marquee-decor-left, .marquee-decor-right {
  font-size: 10px;
  color: #f59e0b;
  letter-spacing: 3px;
  opacity: 0.8;
}

.marquee-title {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 900;
  color: #fde047;
  letter-spacing: 4px;
  text-shadow: 
    0 0 4px #fff,
    0 0 10px #f59e0b,
    0 0 20px #d97706;
}


.arcade-screen-container {
  background: #000;
  padding: 8px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.arcade-screen-bezel {
  background: #070707;
  border: 3px solid #1f1f1f;
  border-radius: 8px;
  position: relative;
  width: 100%;
  overflow: hidden;
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.9);
}

.canvas-holder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 220px);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#roadrunner-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}


.crt-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.25) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 5;
  opacity: 0.55;
}

.screen-glare {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    135deg, 
    rgba(255, 255, 255, 0.05) 0%, 
    rgba(255, 255, 255, 0.01) 35%, 
    transparent 35%
  );
  pointer-events: none;
  z-index: 6;
}


.screen-shake {
  animation: shake 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(3px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
  40%, 60% { transform: translate3d(3px, 0, 0); }
}


.arcade-joystick-panel {
  background: linear-gradient(180deg, #181822 0%, #0e0e14 100%);
  border-top: 2px solid #2e2e42;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 52px;
}

.joystick-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.joystick-base {
  width: 36px;
  height: 36px;
  background: #111;
  border: 2px solid #333;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.8);
}

.joystick-shaft {
  width: 6px;
  height: 22px;
  background: linear-gradient(90deg, #aaa, #ddd, #666);
  border-radius: 3px;
  position: absolute;
  bottom: 12px;
  transform-origin: bottom center;
  transition: transform 0.1s ease;
}

.joystick-knob {
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 35% 35%, #ff4d4d, #cc0000, #660000);
  border-radius: 50%;
  position: absolute;
  top: -8px;
  left: -5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.panel-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #888;
  letter-spacing: 1px;
}

.acme-brand-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #08080c;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.acme-logo {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  color: #f59e0b;
  letter-spacing: 2px;
}

.acme-sub {
  font-size: 8px;
  color: #777;
  letter-spacing: 1px;
}

.arcade-buttons-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

.arcade-btn-holder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.arcade-arcade-btn {
  width: 52px;
  height: 32px;
  border-radius: 16px;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 0, 0, 0.4);
  transition: all 0.1s ease;
  user-select: none;
}

.arcade-arcade-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
}

.btn-jump {
  background: radial-gradient(circle at 35% 35%, #38bdf8, #0284c7);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.btn-beep {
  background: radial-gradient(circle at 35% 35%, #fbbf24, #d97706);
  color: #1a0a00;
}

.button-subtext {
  font-family: var(--font-mono);
  font-size: 8px;
  color: #777;
  letter-spacing: 0.5px;
}


.screen-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(8, 6, 12, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 16px;
  transition: opacity 0.25s ease;
}

.screen-overlay.hidden {
  display: none !important;
}

.overlay-panel {
  background: rgba(18, 22, 36, 0.95);
  border: 2px solid var(--panel-border);
  border-radius: 14px;
  padding: 20px 28px;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(var(--primary-accent-rgb), 0.2);
}

.overlay-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 3px 10px;
  border-radius: 12px;
}

.overlay-badge.victory-badge {
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}

.arcade-title {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #fff;
  margin: 0;
}

.arcade-title.victory-title {
  color: #38bdf8;
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}

.arcade-title.death-neon {
  color: #ef4444;
  text-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

.neon-pulse {
  animation: neon-glow 1.5s ease-in-out infinite alternate;
}

@keyframes neon-glow {
  from { text-shadow: 0 0 4px #fff, 0 0 10px #f59e0b; }
  to { text-shadow: 0 0 8px #fff, 0 0 18px #f59e0b, 0 0 30px #d97706; }
}

.arcade-tagline {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.overlay-instructions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin: 4px 0;
}

.inst-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.inst-key {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
}

.inst-desc {
  font-size: 10px;
  color: #aaa;
}

.inst-hint {
  font-size: 11px;
  color: #fde68a;
  margin: 0;
}

.arcade-start-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  border: none;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.arcade-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

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

.arcade-secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--panel-border);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.arcade-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.overlay-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
}


.stage-stats-summary {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  padding: 10px 0;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: 4px 0;
}

.summary-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.summary-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.summary-value {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: #38bdf8;
}

.grand-win-score {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #f59e0b;
}


.stage-status-card {
  background: rgba(var(--primary-accent-rgb), 0.06);
  border: 1px solid rgba(var(--primary-accent-rgb), 0.25);
}

.stat-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.stage-number-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #000;
  background: var(--primary-accent);
  padding: 2px 8px;
  border-radius: 10px;
}

.hud-stage-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 4px 0;
  text-align: left;
  width: 100%;
}

.lives-counter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.lives-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #aaa;
}

.lives-hearts {
  display: flex;
  gap: 4px;
}

.heart {
  font-size: 14px;
  filter: grayscale(100%) opacity(0.3);
  transition: all 0.2s ease;
}

.heart.active {
  filter: none;
  animation: heartPulse 1.2s infinite;
}

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


.stamina-percent {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: #10b981;
}

.stamina-bar-track {
  width: 100%;
  height: 10px;
  background: #0d111d;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

.stamina-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #38bdf8 100%);
  border-radius: 5px;
  transition: width 0.15s ease, background 0.3s ease;
}

.stamina-bar-fill.warning {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.stamina-bar-fill.danger {
  background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
  animation: blinkDanger 0.5s infinite alternate;
}

@keyframes blinkDanger {
  from { opacity: 1; }
  to { opacity: 0.5; }
}

.stamina-hint {
  font-size: 10px;
  color: var(--text-muted);
  text-align: left;
  width: 100%;
}
.turbo-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  text-transform: uppercase;
}
.turbo-badge.active {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  border-color: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.7);
  animation: turboPulse 0.4s infinite alternate;
}
@keyframes turboPulse {
  from { transform: scale(1); filter: brightness(1); }
  to { transform: scale(1.08); filter: brightness(1.3); }
}
.turbo-bar-track {
  width: 100%;
  height: 10px;
  background: #0d111d;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}
.turbo-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8 0%, #a855f7 50%, #f59e0b 100%);
  border-radius: 5px;
  transition: width 0.15s ease;
}
.turbo-hint {
  font-size: 10px;
  color: #94a3b8;
  text-align: left;
  width: 100%;
}


.distance-value {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
}

.distance-bar-track {
  position: relative;
  width: 100%;
  height: 10px;
  background: #0d111d;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}

.distance-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #10b981 100%);
  border-radius: 5px;
  transition: width 0.2s ease;
}

.distance-finish-flag {
  position: absolute;
  right: -2px;
  top: -6px;
  font-size: 12px;
}


.danger-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.danger-badge.safe {
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
}

.danger-badge.warning {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
}

.danger-badge.danger {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
  animation: blinkDanger 0.4s infinite alternate;
}

.coyote-tracker-track {
  position: relative;
  width: 100%;
  height: 18px;
  background: #090c14;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 6px;
}

.coyote-icon-marker {
  position: absolute;
  top: -1px;
  font-size: 14px;
  transform: translateX(-50%);
  transition: left 0.3s ease;
}

.roadrunner-icon-marker {
  position: absolute;
  right: 4px;
  top: -1px;
  font-size: 14px;
}


.legend-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #888;
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: block;
}

.legend-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: #ccc;
}

.legend-list kbd {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
  font-size: 10px;
}


.mobile-touch-controller {
  display: none;
  width: 100%;
  max-width: 440px;
  margin-top: 8px;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.touch-dpad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dpad-mid-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dpad-center {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.touch-btn {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
}

.touch-btn:active {
  background: var(--primary-accent);
  color: #000;
  transform: scale(0.95);
}

.touch-actions {
  display: flex;
  gap: 10px;
}

.touch-action-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.touch-action-btn:active {
  transform: scale(0.92);
}

.touch-jump {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  color: #fff;
}

.touch-beep {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #1a0a00;
}


.game-footer-content {
  background: rgba(var(--panel-bg), 0.5);
  border-top: 1px solid var(--panel-border);
  padding: 40px 24px;
  margin-top: 40px;
}

.content-container {
  max-width: 1000px;
  margin: 0 auto;
}

.game-description-article h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.game-description-article h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-accent);
  margin-top: 24px;
  margin-bottom: 8px;
}

.game-description-article p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.coyote-gadgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.gadget-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 16px;
}

.gadget-card h4 {
  font-size: 14px;
  color: #fbbf24;
  margin-bottom: 6px;
}

.gadget-card p {
  font-size: 12px;
  margin-bottom: 0;
}

.game-description-article ul {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.game-description-article li {
  margin-bottom: 8px;
}

.footer-bottom-bar {
  border-top: 1px solid var(--panel-border);
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}




@media (max-width: 1440px) and (min-width: 1025px) {
  .game-viewport {
    grid-template-columns: 260px 1fr 260px;
    gap: 12px;
    padding: 0 12px;
  }
  .arcade-cabinet {
    max-width: min(740px, calc((100vh - 165px) * (16 / 9)));
  }
  .canvas-holder {
    max-height: calc(100vh - 210px);
  }
  .stage-selector-scroll {
    max-height: calc(100vh - 340px);
  }
}


@media (max-height: 768px) {
  .game-header {
    padding: 8px 24px;
  }
  .game-viewport {
    height: calc(100vh - 60px);
    gap: 10px;
  }
  .arcade-marquee {
    padding: 6px 12px;
  }
  .marquee-title {
    font-size: 16px;
    letter-spacing: 3px;
  }
  .arcade-joystick-panel {
    padding: 4px 12px;
    min-height: 44px;
  }
  .joystick-base {
    width: 28px;
    height: 28px;
  }
  .joystick-shaft {
    height: 16px;
    bottom: 8px;
  }
  .joystick-knob {
    width: 12px;
    height: 12px;
    top: -6px;
    left: -3px;
  }
  .arcade-arcade-btn {
    width: 44px;
    height: 26px;
    font-size: 9px;
  }
  .arcade-cabinet {
    max-width: min(700px, calc((100vh - 150px) * (16 / 9)));
  }
  .canvas-holder {
    max-height: calc(100vh - 180px);
  }
  .overlay-panel {
    padding: 14px 20px;
    gap: 8px;
  }
  .arcade-title {
    font-size: 20px;
  }
}


@media (max-width: 1024px) {
  .mobile-settings-toggle {
    display: flex !important;
  }
  .game-body {
    overflow-x: hidden;
    height: auto;
  }
  .game-viewport {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    min-height: calc(100vh - 56px);
    overflow-y: visible;
    padding: 8px 12px;
    gap: 10px;
  }
  .settings-sidebar {
    display: none;
  }
  .settings-sidebar.mobile-open {
    display: flex !important;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 20, 32, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99;
    padding: 24px;
    overflow-y: auto;
    animation: fadeIn 0.2s ease;
  }
  .gameplay-sidebar {
    border: none;
    padding: 0;
    background: transparent;
    width: 100%;
    max-width: 500px;
    order: -1;
  }
  .game-stats-hud {
    flex-direction: row;
    gap: 8px;
    width: 100%;
  }
  .hud-stat-box {
    padding: 6px 10px;
    flex: 1;
    text-align: center;
    border-radius: 8px;
    align-items: center;
  }
  .hud-stat-num {
    font-size: 18px;
  }
  .keyboard-legend {
    display: none;
  }
  .mobile-touch-controller {
    display: none !important;
  }
  .arcade-joystick-panel {
    display: none;
  }
}
