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

:root {
  --neon-pink: #ff2d75;
  --neon-cyan: #00f0ff;
  --neon-yellow: #ffe600;
  --neon-purple: #b026ff;
  --ar-green: #00ff88;
  --bg-dark: #0a0a0f;
  --text: #e0e0e0;
  --text-dim: rgba(255, 255, 255, 0.4);
}

body {
  font-family: 'Orbitron', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

/* === Arcade Scene (background) === */
.arcade-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.arcade-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) saturate(1.2);
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.7) 100%);
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
  mix-blend-mode: overlay;
}

/* === HUD (AR overlay) === */
.hud {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  pointer-events: none;
}

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

/* Top bar */
.hud-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  justify-content: center;
}

.hud-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.2rem, 4vw, 2.2rem);
  color: var(--neon-cyan);
  text-shadow:
    0 0 10px var(--neon-cyan),
    0 0 40px var(--neon-cyan),
    0 0 80px rgba(0, 240, 255, 0.2);
  letter-spacing: 0.4em;
  animation: flicker 5s infinite alternate;
}

.hud-corner {
  width: 20px;
  height: 20px;
  border-color: var(--neon-cyan);
  border-style: solid;
  border-width: 0;
  opacity: 0.6;
}

.hud-tl { border-top-width: 2px; border-left-width: 2px; }
.hud-tr { border-top-width: 2px; border-right-width: 2px; }

/* === Cabinet Area (center) === */
.cabinet-area {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.cabinet {
  position: relative;
  width: 300px;
  height: 400px;
  perspective: 800px;
}

.screen {
  width: 100%;
  height: 85%;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  border: 3px solid rgba(0, 240, 255, 0.4);
  box-shadow:
    0 0 20px rgba(0, 240, 255, 0.2),
    0 0 60px rgba(0, 240, 255, 0.1),
    inset 0 0 30px rgba(0, 0, 0, 0.5);
  background: #000;
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.screen:hover {
  border-color: var(--neon-pink);
  box-shadow:
    0 0 25px rgba(255, 45, 117, 0.3),
    0 0 60px rgba(255, 45, 117, 0.15),
    inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.screen:hover img {
  transform: scale(1.05);
}

.screen-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255, 255, 255, 0.03) 100%
  );
  pointer-events: none;
}

.cabinet-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  text-align: center;
  margin-top: 0.8rem;
  color: var(--neon-yellow);
  text-shadow: 0 0 8px var(--neon-yellow);
  letter-spacing: 0.15em;
}

/* Nav arrows */
.nav-arrow {
  background: none;
  border: 2px solid rgba(0, 240, 255, 0.4);
  color: var(--neon-cyan);
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  text-shadow: 0 0 10px var(--neon-cyan);
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.3);
}

.nav-arrow:hover,
.nav-arrow:focus {
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  text-shadow: 0 0 15px var(--neon-pink);
  box-shadow: 0 0 20px rgba(255, 45, 117, 0.3);
  outline: none;
  background: rgba(255, 45, 117, 0.1);
}

/* === AR Info Panel === */
.ar-panel {
  position: relative;
  max-width: 500px;
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 4px;
}

.ar-border {
  position: absolute;
  top: -1px;
  left: 20px;
  width: 60px;
  height: 3px;
  background: var(--ar-green);
  box-shadow: 0 0 10px var(--ar-green);
}

.ar-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  color: var(--ar-green);
  text-shadow: 0 0 6px var(--ar-green);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.ar-desc {
  font-size: 0.65rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 0.6rem;
  font-weight: 400;
}

.ar-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.ar-controls {
  font-size: 0.5rem;
  color: var(--text-dim);
}

.ar-tags {
  display: flex;
  gap: 0.4rem;
}

.ar-tags .tag {
  font-size: 0.4rem;
  padding: 0.2em 0.5em;
  border: 1px solid var(--neon-purple);
  border-radius: 2px;
  color: var(--neon-purple);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.ar-prompt {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 6px var(--neon-cyan);
  animation: pulse 2s infinite;
}

/* === Bottom HUD === */
.hud-bottom {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.hud-hint {
  font-size: 0.55rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  padding: 0.4em 0.8em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.3);
}

/* === Animations === */
@keyframes flicker {
  0%, 94%, 100% { opacity: 1; }
  95% { opacity: 0.85; }
  96% { opacity: 1; }
  97% { opacity: 0.9; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* === Responsive === */
@media (max-width: 600px) {
  .cabinet {
    width: 220px;
    height: 300px;
  }

  .nav-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .ar-panel {
    padding: 0.8rem 1rem;
  }

  .hud-bottom {
    gap: 0.8rem;
  }

  .hud-hint {
    font-size: 0.45rem;
  }

  .cabinet-area {
    gap: 1rem;
  }
}
