/* ─── 1980s Retro Neon Grid Theme ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Roboto+Mono&display=swap');
:root {
  --bg-color:    #000;
  --grid-color:  rgba(0,255,255,0.3);
  --neon-pink:   #ff0080;
  --neon-cyan:   #00ffff;
  --neon-yellow: #ffff00;
  --text-color:  #f0f0f0;
  --shadow-glow: rgba(255,0,128,0.8);
}

/* Grid animation */
@keyframes gridMove { from { background-position:0 } to { background-position:60px 60px } }
@keyframes neonFlicker {
  0%,18%,22%,25%,53%,57%,100% { opacity:1 }
  20%,24%,55%                  { opacity:0.8 }
}

/* Reset & background */
* { box-sizing:border-box; margin:0; padding:0 }
body {
  min-height:100vh;
  font-family:'Press Start 2P',monospace;
  color:var(--text-color);
  background:
    linear-gradient(0deg, var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px),
    linear-gradient(45deg, var(--grid-color) 1px, transparent 1px),
    linear-gradient(135deg, var(--grid-color) 1px, transparent 1px),
    var(--bg-color);
  background-size:60px 60px;
  animation:gridMove 8s linear infinite;
  overflow-x:hidden;
  overflow-y:auto;
}

/* Header & back button */
/* Ensure header sits above other elements */
.carousel-header {
  z-index: 1000;

  width:100%;
  padding:1rem 2rem;
  background:rgba(0,0,0,0.7);
}
.back-button {
  font-family:'Roboto Mono',monospace;
  color:var(--neon-cyan);
  border:2px solid var(--neon-cyan);
  padding:0.5rem 1rem;
  text-decoration:none;
  text-transform:uppercase;
  animation:neonFlicker 2s infinite;
  transition:transform .1s;
}
.back-button:hover { transform:scale(1.05) }

/* Main carousel */
/* Ensure main content visible above background */
.carousel-main {
  position: relative;
  z-index: 500;
 display:flex; flex-direction:column; align-items:center; padding:2rem; gap:2rem; }
.gallery-header { display:flex; align-items:center; gap:1rem; }
.logo-preview {
  width:100px; aspect-ratio:1;
  background:rgba(0,0,0,0.7);
  border:2px solid var(--neon-pink);
  border-radius:50%; overflow:hidden;
  box-shadow:0 0 12px var(--shadow-glow);
}
.logo-preview img { width:100%; height:100%; object-fit:cover; }

/* Carousel box */
.carousel-container {
  position:relative; width:80%; max-width:800px; aspect-ratio:16/9;
  background:rgba(0,0,0,0.6);
  border:2px solid var(--neon-yellow);
  border-radius:8px;
  box-shadow:0 0 16px var(--shadow-glow);
  overflow:hidden;
}
.carousel-image { width:100%; height:100%; object-fit:contain; }
.carousel-arrow {
  position:absolute; top:50%; transform:translateY(-50%);
  width:3rem; height:3rem;
  background:var(--neon-yellow);
  color:var(--bg-color);
  border:none; border-radius:50%; display:flex;
  align-items:center; justify-content:center;
  cursor:pointer; transition:transform .2s;
}
.carousel-arrow.left  { left:1rem }
.carousel-arrow.right { right:1rem }
.carousel-arrow:hover { transform:scale(1.1) }

/* Description & requirements */
.carousel-description,
.system-requirements {
  width:80%; max-width:800px;
  background:rgba(0,0,0,0.7);
  border-left:4px solid var(--neon-cyan);
  padding:1rem;
  box-shadow:0 0 8px var(--shadow-glow);
}
.carousel-description p,
.system-requirements h3 { color:var(--neon-yellow) }
.system-requirements ul { list-style:none; padding-left:1.2rem }
.system-requirements li { margin-bottom:.5rem }

/* Download button */
.download-button {
  background:var(--neon-cyan);
  color:var(--bg-color);
  padding:.8rem 2rem;
  border:2px solid var(--neon-pink);
  border-radius:4px;
  box-shadow:0 0 12px var(--shadow-glow);
  transition:transform .2s;
}
.download-button:hover { transform:scale(1.05) }

/* Starfield & snowflakes */
.snow-container {
  position:fixed; top:0; left:0; width:100%; height:100%; pointer-events:none; z-index:-2;
}
.snowflake {
  position:absolute; width:3px; height:3px; background:#fff; border-radius:0;
  animation:fall linear infinite, drift linear infinite;
}
@keyframes fall { 0% { transform: translateY(-10%); } 100% { transform: translateY(110vh); } }
@keyframes drift { 0% { transform: translateX(0); } 50% { transform: translateX(20px);} 100% { transform: translateX(0);} }

/* Compact Music Controller, bottom-right */
/* Compact Music Controller, lower z-index so it doesn't obscure UI */
/* Compact Music Controller, bottom-right */
.music-controller {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.3rem 0.5rem;
  border: 2px solid var(--neon-cyan);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  z-index: 1001;
  pointer-events: auto;
}
  position:fixed; bottom:1rem; right:1rem; left:auto;
  background:rgba(0,0,0,0.7);
  padding:0.3rem 0.5rem;
  border:2px solid var(--neon-cyan);
  border-radius:4px;
  display:flex; align-items:center; gap:0.3rem;
  font-size:0.8rem;
  z-index:1000;
}
.music-controller .ctrl-row { display:flex; align-items:center; gap:0.3rem; }
.music-controller button {
  background:transparent; border:none; color:var(--neon-cyan);
  font-size:1rem; cursor:pointer; transition:transform .1s; padding:0;
}
.music-controller button:hover { transform:scale(1.1); }
.music-controller input[type="range"] { width:80px; height:4px; }

/* Music Title Box */
.music-title-box {
  position:fixed; bottom:3.5rem; right:1rem;
  width:150px; height:1.2rem;
  overflow:hidden; border:2px solid var(--neon-cyan);
  background:rgba(0,0,0,0.7); border-radius:4px;
  padding:2px 4px; z-index:1001;
}
.music-title {
  white-space:nowrap; color:var(--neon-yellow);
  font-family:'Roboto Mono',monospace; font-size:0.8rem;
}
.music-title.scroll { animation: marquee 8s linear infinite; }
@keyframes marquee { 0% { transform:translateX(100%);} 100% { transform:translateX(-100%);} }

@media (max-width:600px) {
  .carousel-main { padding:1rem; gap:1rem }
  .gallery-header { flex-direction:column; align-items:center }
  .logo-preview { width:80px }
  .carousel-container { width:100% }
  .carousel-arrow { width:2.5rem; height:2.5rem }
  .carousel-description,
  .system-requirements { width:100%; padding:.8rem }
  .download-button { padding:.6rem 1.5rem }
  .desktop-only { display:none }
}