/* ========= GLOBAL ========= */
body {
  margin: 0;
  font-family: 'Courier New', monospace;
  background: #000022;
  color: #fff;
}

/* ========= SPLASH LOGO (used on some subpages) ========= */
.logo-container {
  text-align: center;
  margin: 20px 0 10px;
}
.rad-logo {
  width: 200px;
  image-rendering: pixelated;
  background: none;
}
.banner-title {
  font-size: 20px;
  margin: 10px 0 0;
  color: #0ff;
  text-shadow: 1px 1px 2px #000;
}

/* ========= ICONS (reused) ========= */
.menu-icons {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.menu-item { text-align: center; }
.menu-item img {
  width: 90px;
  height: auto;
  image-rendering: pixelated;
  border: 2px solid #fff;
  background: #222;
  padding: 6px;
  transition: transform .15s ease, filter .15s ease;
}
.menu-item img:hover {
  transform: scale(1.08);
  filter: brightness(1.2);
}
.menu-item p { margin: 6px 0 0; font-size: 13px; }

/* ========= GALLERY GRID ========= */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.gallery-grid img {
  width: 200px;
  height: auto;
  border: 2px solid #444;
  cursor: pointer;
  transition: transform 0.2s;
  image-rendering: pixelated;
}
.gallery-grid img:hover {
  transform: scale(1.05);
  filter: brightness(1.3);
}

/* ========= POPUP (lore) ========= */
.lore-popup {
  display: none;
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #0f0;
  border: 2px solid #0f0;
  width: 80%;
  max-width: 600px;
  padding: 20px;
  font-family: 'Courier New', monospace;
  z-index: 9999;
  box-shadow: 0 0 10px #0f0;
}
.close-btn {
  float: right;
  cursor: pointer;
  background: #0f0;
  color: #000;
  padding: 4px 8px;
  font-weight: bold;
}

/* ========= TOP BANNER ========= */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #000;
  border-bottom: 2px solid #0f0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar .home-link,
.topbar .demo-link {
  color: #0f0;
  text-decoration: none;
  font-weight: bold;
}
.topbar .home-link { justify-self: start; }
.topbar .demo-link { justify-self: end; font-size: 20px; }
.topbar .tagline {
  text-align: center;
  color: #0ff;
  font-size: 14px;
}

/* ========= HOME HERO (3‑column) ========= */
.hero {
  max-width: 1200px;
  margin: 24px auto 10px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 24px;
}
.frame {
  border: 2px solid #0ff;
  background: #0a0a1e;
  box-shadow: 0 0 10px rgba(0,255,255,0.2);
  padding: 8px;
}
.hero-video { width: 100%; height: auto; display: block; }
.caption { margin-top: 8px; font-size: 12px; color: #9ef; opacity: .9; }

.console-img {
  width: 240px;
  height: auto;
  display: block;
  margin: 0 auto 16px;
  image-rendering: pixelated;
}
.side-logo { width: 100%; height: auto; display: block; }

/* ========= CONTROLS (mute + CRT) ========= */
.ui-controls {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  z-index: 1000;
}
.ui-controls button {
  background: #000; color: #0ff; border: 1px solid #0ff;
  padding: 6px 10px; cursor: pointer; font-family: monospace;
}
.ui-controls button:hover { background: #0ff; color: #000; }

/* ========= CRT EFFECT (default ON) ========= */
body.crt-on {
  position: relative;
  overflow-x: hidden;
}
body.crt-on::before {
  /* scanlines */
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.04) 0px,
      rgba(255,255,255,0.04) 1px,
      transparent 2px,
      transparent 3px
    );
  mix-blend-mode: overlay;
  z-index: 9999;
}
body.crt-on::after {
  /* glow vignette + subtle flicker */
  content: "";
  pointer-events: none;
  position: fixed;
  inset: -2%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.05), rgba(0,0,0,0.4) 65%);
  animation: crt-flicker 2.2s infinite steps(2, end);
  z-index: 9998;
}
@keyframes crt-flicker {
  0%, 19%, 21%, 23%, 80%, 100% { opacity: 1; }
  20%, 22% { opacity: 0.92; }
  81% { opacity: 0.96; }
}

/* ========= DEMO TEASER (hero-left) ========= */
.demo-teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  padding: 28px 16px 12px;
}
.demo-label {
  color: #0ff;
  font-size: 11px;
  letter-spacing: .18em;
  margin: 0 0 14px;
}
.demo-subtitle {
  font-size: 17px;
  line-height: 1.55;
  color: #e0f4ff;
  margin: 0 0 22px;
}
.play-btn {
  display: inline-block;
  background: #0f0;
  color: #000;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: .1em;
  padding: 10px 32px;
  text-decoration: none;
  border: 2px solid #0f0;
  transition: background .15s, color .15s;
}
.play-btn:hover { background: #000; color: #0f0; }
.demo-hint {
  font-size: 11px;
  color: #446;
  margin: 14px 0 0;
}

/* ========= GAME EMBED SECTION ========= */
.demo-section {
  max-width: 1000px;
  margin: 36px auto 28px;
  padding: 0 16px;
  text-align: center;
}
.section-title {
  color: #0ff;
  font-size: 20px;
  margin: 0 0 8px;
  letter-spacing: .06em;
}
.section-sub {
  color: #778;
  font-size: 13px;
  margin: 0 0 18px;
}
.game-wrap iframe {
  box-shadow: 0 0 24px rgba(0,255,255,0.15);
}
.game-caption {
  font-size: 11px;
  color: #334;
  margin-top: 8px;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .console-img { width: 200px; }
  .menu-item img { width: 84px; }
  .topbar .tagline { font-size: 13px; }
}
@media (max-width: 480px) {
  .menu-item img { width: 76px; }
  .console-img { width: 180px; }
}

