


.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: 10px 14px;
  border-right: 1px solid var(--panel-border);
  background: rgba(var(--panel-bg), 0.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  min-height: 0;
}

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

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


.control-panel-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.panel-section-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin: 0 0 2px 0;
}

.skin-selector {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.skin-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  transition: var(--transition-smooth);
}

.skin-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(34, 197, 94, 0.4);
  color: var(--text-primary);
}

.skin-btn.active {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  color: #39ff14;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

.mode-selector {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mode-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: left;
  transition: var(--transition-smooth);
}

.mode-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(34, 197, 94, 0.4);
  color: var(--text-primary);
}

.mode-btn.active {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.2);
}

.mode-btn.active .mode-name {
  color: #39ff14;
}


.mode-btn-insane:hover {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.1);
}

.mode-btn-insane.active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(245, 158, 11, 0.2) 100%);
  border-color: #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.4);
}

.mode-btn-insane.active .mode-name {
  color: #ff453a;
  text-shadow: 0 0 8px rgba(255, 69, 58, 0.6);
}

.mode-name {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

.mode-desc {
  display: block;
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 1px;
  line-height: 1.25;
}


.stage-grid-selector {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.stage-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  color: var(--text-secondary);
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-smooth);
}

.stage-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(34, 197, 94, 0.4);
}

.stage-btn.active {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #39ff14;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.3);
}

.reset-group {
  margin-top: auto;
  padding-top: 4px;
}

.reset-btn {
  width: 100%;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.reset-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}


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

.arcade-cabinet {
  background: linear-gradient(180deg, #2b1408 0%, #150904 100%);
  border: 4px solid #b45309;
  border-radius: 14px;
  width: 100%;
  max-width: min(800px, calc((100vh - 170px) * (784 / 448)));
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.85),
    0 0 25px rgba(245, 158, 11, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}


.arcade-cabinet.skin-nes {
  background: linear-gradient(180deg, #28150c 0%, #110804 100%);
  border-color: #d97706;
}

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

.arcade-cabinet.skin-cyber .arcade-marquee {
  background: #05070d;
  border-bottom-color: #00f0ff;
}

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

.arcade-cabinet.skin-c64 {
  background: #140d04;
  border-color: #f59e0b;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(245, 158, 11, 0.1);
}

.arcade-cabinet.skin-c64 .arcade-marquee {
  background: #1f1406;
  border-bottom-color: #f59e0b;
}

.arcade-cabinet.skin-c64 .marquee-title {
  color: #f59e0b;
}


.arcade-cabinet.mode-insane {
  border-color: #ef4444 !important;
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(239, 68, 68, 0.5) !important;
  animation: lodeInsanePulse 2s infinite alternate;
}

@keyframes lodeInsanePulse {
  0% { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(239, 68, 68, 0.35); }
  100% { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9), 0 0 35px rgba(245, 158, 11, 0.55); }
}


.arcade-marquee {
  background: linear-gradient(180deg, #4c1d95 0%, #2e1065 100%);
  padding: 6px 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: #fbbf24;
  letter-spacing: 2px;
}

.marquee-title {
  font-family: var(--font-arcade, 'VT323', monospace);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}


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

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

.canvas-holder {
  position: relative;
  width: 100%;
  aspect-ratio: 784 / 448;
  max-height: calc(100vh - 215px);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
}

#loderunner-canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}


.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.28) 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-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: opacity 0.2s ease;
}

.screen-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  display: none;
}

.overlay-panel {
  background: rgba(18, 24, 38, 0.95);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 18px 24px;
  text-align: center;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.25);
}

.win-panel {
  border-color: #22c55e;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(34, 197, 94, 0.3);
}

.death-panel {
  border-color: #ef4444;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 20px rgba(239, 68, 68, 0.3);
}

.overlay-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 4px;
  margin-bottom: 8px;
}

.success-badge {
  background: rgba(34, 197, 94, 0.2);
  color: #34d399;
  border-color: rgba(34, 197, 94, 0.4);
}

.arcade-title {
  font-family: var(--font-arcade, 'VT323', monospace);
  font-size: 32px;
  letter-spacing: 2px;
  color: #fbbf24;
  margin: 4px 0 2px 0;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

.victory-neon {
  color: #34d399;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
}

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

.arcade-tagline {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tutorial-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
}

.tutorial-characters-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.char-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border-radius: 4px;
}

.char-badge.enemy {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.char-badge.gold {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.char-vs {
  font-size: 10px;
  color: var(--text-muted);
}

.tutorial-controls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.tut-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tut-key {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: #34d399;
}

.tut-action {
  font-size: 9.5px;
  color: var(--text-muted);
}

.inst-hint {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.arcade-start-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: var(--transition-smooth);
}

.arcade-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.6);
}

.cleared-stats-summary, .death-stats-summary {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 12px 0 16px 0;
}

.summary-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 100px;
}

.summary-label {
  font-size: 9.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.summary-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
}

.highlight-green { color: #34d399; }
.highlight-yellow { color: #fbbf24; }

.new-record-banner {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  color: #000;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}


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


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

.dpad-cross {
  display: grid;
  grid-template-columns: 26px 26px 26px;
  grid-template-rows: 24px 24px 24px;
  align-items: center;
  justify-items: center;
}

.dpad-btn {
  background: #2a2a3c;
  color: #94a3b8;
  border: 1px solid #475569;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 25px;
  height: 23px;
  user-select: none;
  transition: all 0.1s ease;
}

.dpad-up    { grid-column: 2; grid-row: 1; }
.dpad-left  { grid-column: 1; grid-row: 2; }
.dpad-center{ grid-column: 2; grid-row: 2; width: 23px; height: 21px; background: #1c1c28; border: 1px solid #334155; }
.dpad-right { grid-column: 3; grid-row: 2; }
.dpad-down  { grid-column: 2; grid-row: 3; }

.dpad-btn:hover, .dpad-btn:active, .dpad-btn.active {
  background: #38bdf8;
  color: #000;
  border-color: #0284c7;
  transform: scale(0.92);
}

.dpad-label {
  font-size: 8.5px;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}


.acme-brand-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.acme-logo {
  font-family: var(--font-arcade, 'VT323', monospace);
  font-size: 14px;
  color: #f59e0b;
  letter-spacing: 2px;
}

.acme-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-muted);
}


.arcade-dig-buttons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.dig-buttons-row {
  display: flex;
  gap: 10px;
}

.dig-btn-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.arcade-dig-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #78350f;
  background: radial-gradient(circle at 35% 35%, #f59e0b 0%, #b45309 85%);
  color: #000;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  transition: all 0.1s ease;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dig-left-btn {
  background: radial-gradient(circle at 35% 35%, #ef4444 0%, #b91c1c 85%);
  border-color: #7f1d1d;
  color: #fff;
}

.arcade-dig-btn:hover {
  filter: brightness(1.15);
}

.arcade-dig-btn:active, .arcade-dig-btn.active {
  transform: scale(0.92);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.dig-key-hint {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-muted);
}


.hud-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hud-stat-num {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

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

.stage-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  padding: 1px 5px;
  border-radius: 4px;
}

.gold-count-indicator {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: #fbbf24;
}

.gold-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.gold-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  transition: width 0.25s ease;
}

.lives-icons-container {
  display: flex;
  gap: 6px;
  font-size: 15px;
  margin-top: 2px;
}

.keyboard-legend {
  margin-top: auto;
}

.legend-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
}

.legend-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 10px;
  color: var(--text-secondary);
}

.legend-list kbd {
  font-family: var(--font-mono);
  font-size: 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--panel-border);
  padding: 1px 4px;
  border-radius: 3px;
  color: var(--text-primary);
}


.game-footer-content {
  background: rgba(10, 14, 22, 0.85);
  border-top: 1px solid var(--panel-border);
  padding: 32px 16px 20px 16px;
  margin-top: 24px;
}

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

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

.game-description-article h3 {
  font-size: 16px;
  color: #fbbf24;
  margin: 20px 0 8px 0;
}

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

.game-description-article ul {
  padding-left: 20px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.coyote-gadgets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.gadget-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 12px;
}

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

.gadget-card p {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 0;
}

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