* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: #07040a;
  color: #ffe7c2;
  font-family: 'VT323', monospace;
  overflow: hidden;
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,0.18) 3px
  );
}
.glow {
  pointer-events: none;
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 122, 26, 0.18), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(170, 68, 255, 0.12), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 80, 40, 0.1), transparent 42%);
}

.screen {
  position: relative;
  z-index: 2;
  width: min(1100px, 100%);
  height: 100%;
  padding: 28px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#select-screen {
  justify-content: flex-start;
  overflow-y: auto;
}
.hidden { display: none; }

.logo-fox {
  width: 148px;
  height: 148px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 18px rgba(255, 122, 26, 0.55));
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.marquee {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(22px, 5vw, 42px);
  letter-spacing: 0.08em;
  margin-top: 18px;
  color: #ff8a1a;
  text-shadow:
    0 0 8px #ff6a00,
    0 4px 0 #5a2200,
    0 0 28px rgba(255, 122, 26, 0.6);
}
.tagline {
  margin-top: 14px;
  font-size: 26px;
  color: #c9a27a;
  letter-spacing: 0.18em;
  text-transform: lowercase;
}
.start-btn {
  margin-top: 36px;
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  color: #1a0c04;
  background: linear-gradient(#ffe08a, #ff9a2a);
  border: 4px solid #5a2200;
  padding: 16px 28px;
  cursor: pointer;
  box-shadow: 0 6px 0 #3a1400, 0 0 22px rgba(255, 154, 42, 0.35);
  animation: pulse 1.2s steps(2, end) infinite;
}
.start-btn:active { transform: translateY(3px); box-shadow: 0 3px 0 #3a1400; }
@keyframes pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}
.hint {
  margin-top: 16px;
  color: #7a5a40;
  font-size: 20px;
}

.select-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  align-self: stretch;
  justify-content: center;
}
.select-header img {
  width: 52px;
  height: 52px;
  image-rendering: pixelated;
}
.select-header h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(12px, 2.4vw, 18px);
  color: #ff8a1a;
}
.select-header p {
  font-size: 22px;
  color: #c9a27a;
}

.cabinets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(980px, 100%);
}
.cabinet {
  text-decoration: none;
  color: inherit;
  background: linear-gradient(#2a1620, #140a12);
  border: 4px solid #4a2418;
  border-radius: 10px 10px 6px 6px;
  overflow: hidden;
  box-shadow: 0 10px 0 #0a0408, 0 0 0 1px #000;
  transform: translateY(0);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.cabinet:hover, .cabinet:focus {
  transform: translateY(-6px);
  box-shadow: 0 16px 0 #0a0408, 0 0 24px rgba(255, 122, 26, 0.25);
  outline: none;
}
.cabinet-top {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
  padding: 10px 8px 8px;
  background: linear-gradient(#ff7a1a, #c44a08);
  color: #1a0c04;
  letter-spacing: 0.04em;
}
.cabinet-screen {
  height: 132px;
  margin: 10px 12px 0;
  border: 4px solid #1a1014;
  background: #0c1018;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  image-rendering: pixelated;
  box-shadow: inset 0 0 18px rgba(0,0,0,0.6);
}
.cabinet-screen img {
  width: 72px;
  height: 72px;
  image-rendering: pixelated;
}
.cabinet-screen.tower img { width: 52px; height: 52px; }
.cabinet-screen.runner {
  background:
    linear-gradient(#1a1a2e, #16213e 70%, #2d1b0e 70%, #2d1b0e);
}
.cabinet-screen.chrono {
  background: linear-gradient(#0b0014, #1a1a2e 55%, #0a1f0a);
}
.cabinet-screen.tailship {
  background:
    radial-gradient(circle at 50% 38%, rgba(240, 211, 107, 0.38), transparent 52%),
    linear-gradient(#2a1428, #120c18 68%, #3a1e18);
}

.cabinet-screen.knockout {
  background:
    radial-gradient(ellipse at 50% 28%, rgba(255, 80, 40, 0.28), transparent 52%),
    linear-gradient(#1a1030 0%, #0c0818 48%, #2a1810 48%, #1a100c);
  gap: 18px;
}
.cabinet-screen .glove {
  width: 28px;
  height: 22px;
  background: #d03040;
  border-radius: 10px 10px 8px 8px;
  box-shadow: 0 0 8px #ff406088, inset 0 -3px 0 #8a1020;
  position: relative;
}
.cabinet-screen .glove::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: -5px;
  height: 6px;
  background: #f0d8c0;
  border-radius: 2px;
}
.cabinet-screen .tail-mark {
  font-size: 42px;
  color: #f0d36b;
  text-shadow: 0 0 16px #f0d36b99, 0 0 28px #ff4fa355;
}
.pixel-scene {
  width: 28px;
  height: 36px;
  background: #ff8800;
  box-shadow:
    8px 8px 0 #ff8800,
    -6px 14px 0 #cc6622,
    6px -10px 0 #22cc66,
    16px -10px 0 #22cc66;
  position: relative;
  top: 10px;
}

.cabinet-screen.claw {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 154, 42, 0.25), transparent 45%),
    linear-gradient(#1a1028 0%, #0c1420 55%, #1a2830 55%, #142018);
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.cabinet-screen .claw-hook {
  width: 10px;
  height: 28px;
  background: linear-gradient(#d0d8e0, #8890a0);
  border-radius: 2px;
  position: relative;
  box-shadow: 0 0 8px rgba(255, 180, 80, 0.35);
}
.cabinet-screen .claw-hook::before,
.cabinet-screen .claw-hook::after {
  content: "";
  position: absolute;
  bottom: -6px;
  width: 12px;
  height: 10px;
  border: 3px solid #ffb040;
  border-top: none;
  border-radius: 0 0 8px 8px;
}
.cabinet-screen .claw-hook::before { left: -10px; transform: rotate(18deg); }
.cabinet-screen .claw-hook::after { right: -10px; transform: rotate(-18deg); }
.cabinet-screen .claw-prize {
  width: 36px;
  height: 40px;
  margin-top: 10px;
  background: #ff8800;
  border-radius: 40% 40% 30% 30%;
  box-shadow:
    -10px -6px 0 -8px #0d8a52,
    10px -6px 0 -8px #b84820,
    0 -14px 0 -10px #ff8800,
    14px 6px 0 -12px #ffb070;
  position: relative;
}


.cabinet-screen.foxpac {
  background:
    radial-gradient(circle at 30% 55%, rgba(232, 120, 32, 0.35), transparent 40%),
    radial-gradient(circle at 70% 45%, rgba(57, 255, 20, 0.28), transparent 42%),
    linear-gradient(#050814 0%, #0a1830 55%, #081018);
  gap: 14px;
}
.cabinet-screen .foxpac-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F5F5F5;
  box-shadow:
    0 -8px 0 -6px #E87820,
    6px -6px 0 -8px #E87820,
    -6px -6px 0 -8px #E87820,
    10px 4px 0 -10px #E87820,
    0 0 12px rgba(232, 120, 32, 0.55);
  position: relative;
}
.cabinet-screen .foxpac-dot::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #050814;
}
.cabinet-screen .foxpac-ghost {
  width: 26px;
  height: 28px;
  background: #39FF14;
  border-radius: 12px 12px 4px 4px;
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.65);
  position: relative;
}
.cabinet-screen .foxpac-ghost::before,
.cabinet-screen .foxpac-ghost::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 5px;
  height: 5px;
  background: #061018;
  border-radius: 50%;
}
.cabinet-screen .foxpac-ghost::before { left: 5px; }
.cabinet-screen .foxpac-ghost::after { right: 5px; }

.cabinet-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 132px;
}
.genre {
  font-size: 16px;
  color: #f7c948;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cabinet-body p {
  font-size: 20px;
  line-height: 1.15;
  color: #e8d2b8;
  flex: 1;
}
.play {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: #7dff9a;
  margin-top: 4px;
}

.ghost-btn {
  margin-top: 22px;
  background: transparent;
  border: 2px solid #4a2418;
  color: #c9a27a;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

@media (max-width: 980px) {
  .cabinets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(720px, 100%);
  }
}
@media (max-width: 780px) {
  body { overflow: auto; }
  .screen { justify-content: flex-start; padding-top: 36px; }
  .cabinets {
    grid-template-columns: 1fr;
    width: min(360px, 100%);
  }
  .cabinet-screen { height: 110px; }
  .logo-fox { width: 110px; height: 110px; }
}


.enter3d-btn {
  display: inline-block;
  margin-top: 18px;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: #7dff9a;
  text-decoration: none;
  padding: 12px 16px;
  border: 2px solid #3a8848;
  background: rgba(20, 40, 28, 0.55);
  box-shadow: 0 0 18px rgba(80, 255, 140, 0.18);
  letter-spacing: 0.06em;
}
.enter3d-btn:hover {
  color: #b8ffd0;
  background: rgba(40, 80, 50, 0.65);
  box-shadow: 0 0 24px rgba(80, 255, 140, 0.28);
}
.enter3d-btn.compact {
  margin-top: 22px;
  font-size: 10px;
  padding: 10px 14px;
}
.select-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
}
