:root {
  --bg: #0a0a0f;
  --bg-soft: #11111b;
  --panel: rgba(16, 17, 27, 0.88);
  --panel-strong: rgba(18, 20, 34, 0.96);
  --text: #f6f7fb;
  --muted: #a6accd;
  --cyan: #00ffff;
  --magenta: #ff00ff;
  --lime: #99ff33;
  --border: rgba(0, 255, 255, 0.2);
  --shadow: 0 0 24px rgba(0, 255, 255, 0.12), 0 0 48px rgba(255, 0, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Courier New", Courier, monospace;
  background:
    radial-gradient(circle at top left, rgba(255, 0, 255, 0.15), transparent 28%),
    radial-gradient(circle at top right, rgba(0, 255, 255, 0.15), transparent 25%),
    linear-gradient(180deg, #090910 0%, #050509 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
}

/* ===== SITE HEADER ===== */

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-radius: 0;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 255, 255, 0.15);
  box-shadow: 0 2px 24px rgba(0, 255, 255, 0.08);
}

.site-header-logo {
  color: var(--cyan);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.25);
}

.site-header-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.site-header-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.site-header-nav a:hover,
.site-header-nav a:focus-visible {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.site-header-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.site-header-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: background 160ms ease;
}

.site-header-hamburger:hover span {
  background: var(--cyan);
}

/* ===== SITE SHELL ===== */

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 64px;
  position: relative;
}

/* ===== PANELS ===== */

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.inset {
  background: linear-gradient(180deg, rgba(13, 16, 28, 0.95), rgba(8, 10, 18, 0.98));
}

/* ===== HERO ===== */

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 24px;
  padding: 28px;
  align-items: center;
}

.hero-copy h1,
.section-heading h2,
.feature-card h2,
.game-card h3,
.game-layout h1,
.meta-card h2 {
  margin: 0;
  line-height: 1.05;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  max-width: 11ch;
  text-shadow: 0 0 24px rgba(0, 255, 255, 0.2);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--cyan);
  font-size: 0.82rem;
  margin: 0 0 14px;
}

.hero-text,
.section-heading p,
.game-card p,
.feature-card p,
.meta-card p,
.status-line,
.scoreboard p,
.instructions li,
.deploy-note p,
.footer-note {
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions,
.game-meta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ===== BUTTONS ===== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 255, 255, 0.55);
  box-shadow: 0 0 18px rgba(0, 255, 255, 0.18);
}

.button.primary {
  color: #051013;
  background: linear-gradient(135deg, var(--cyan), #7df9ff);
  border-color: transparent;
  box-shadow: 0 0 24px rgba(0, 255, 255, 0.24);
}

/* ===== HERO ART ===== */

.hero-art {
  min-height: 360px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(700px) rotateX(72deg) translateY(34%);
  transform-origin: center top;
  opacity: 0.45;
}

.cat-badge {
  display: none;
}

.pixel-orb {
  position: absolute;
  border-radius: 16px;
  box-shadow: 0 0 22px currentColor;
}

.orb-a {
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.7), rgba(0, 255, 255, 0.08));
  color: rgba(0, 255, 255, 0.55);
  left: 16%;
  top: 18%;
}

.orb-b {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.8), rgba(255, 0, 255, 0.08));
  color: rgba(255, 0, 255, 0.55);
  right: 24%;
  top: 38%;
}

.orb-c {
  width: 118px;
  height: 118px;
  background: linear-gradient(135deg, rgba(153, 255, 51, 0.7), rgba(153, 255, 51, 0.08));
  color: rgba(153, 255, 51, 0.45);
  left: 36%;
  bottom: 14%;
}

/* ===== HERO MASCOT ===== */

.hero-mascot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(3.5rem, 8vw, 6rem);
  color: var(--magenta);
  text-shadow:
    0 0 20px rgba(255, 0, 255, 0.5),
    0 0 40px rgba(255, 0, 255, 0.25),
    0 0 80px rgba(255, 0, 255, 0.12);
  animation: mascot-pulse 3s ease-in-out infinite;
  user-select: none;
}

@keyframes mascot-pulse {
  0%, 100% {
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.5), 0 0 40px rgba(255, 0, 255, 0.25);
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    text-shadow: 0 0 30px rgba(255, 0, 255, 0.7), 0 0 60px rgba(255, 0, 255, 0.35), 0 0 100px rgba(255, 0, 255, 0.15);
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* ===== SECTIONS ===== */

.section-block {
  margin-top: 28px;
  padding: 28px;
}

/* ===== GAME GRID ===== */

.game-grid,
.feature-strip {
  display: grid;
  gap: 18px;
}

.game-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.game-card,
.feature-card,
.meta-card,
.deploy-note {
  padding: 22px;
  border-radius: 20px;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-card.active {
  border-color: rgba(0, 255, 255, 0.35);
  box-shadow: 0 0 28px rgba(0, 255, 255, 0.12);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.game-card.active:hover {
  transform: translateY(-3px) scale(1.012);
  box-shadow: 0 0 36px rgba(0, 255, 255, 0.2);
  border-color: rgba(0, 255, 255, 0.55);
}

.card-topline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.78rem;
  color: var(--text);
}

.status-pill.live {
  border-color: rgba(0, 255, 255, 0.45);
  color: var(--cyan);
}

.status-pill.queued {
  border-color: rgba(255, 0, 255, 0.35);
  color: #ff8cff;
}

.game-card ul,
.instructions ul {
  padding-left: 20px;
}

/* ===== FEATURE STRIP ===== */

.feature-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

/* ===== GAME LAYOUT (game pages) ===== */

.page-nav {
  margin-bottom: 18px;
}

.page-nav a {
  color: var(--cyan);
  text-decoration: none;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
}

.arcade-frame {
  padding: 18px;
}

.canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 255, 0.18);
  background: linear-gradient(180deg, #020308, #0d1020);
  box-shadow: inset 0 0 42px rgba(0, 255, 255, 0.08);
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.status-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 0.9rem;
}

.sidebar-stack {
  display: grid;
  gap: 18px;
}

.scoreboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.score-slot {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.score-slot strong {
  display: block;
  font-size: 2.2rem;
  margin-top: 6px;
}

.kbd {
  display: inline-flex;
  align-items: center;
  min-width: 2.1em;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
}

/* ===== FOOTER ===== */

.footer-note {
  margin-top: 16px;
  font-size: 0.92rem;
}

.site-footer {
  margin-top: 40px;
  padding: 0 0 24px;
  text-align: center;
}

.footer-divider {
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.4), 0 0 28px rgba(0, 255, 255, 0.15);
  border-radius: 2px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.site-footer .footer-note {
  font-size: 0.82rem;
  margin-top: 0;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  .hero,
  .game-layout,
  .feature-strip,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 280px;
  }

  .site-header-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--panel-strong);
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
    gap: 0;
    backdrop-filter: blur(8px);
  }

  .site-header-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 1rem;
  }

  #mobile-menu-toggle:checked ~ .site-header .site-header-nav {
    display: flex;
  }

  .site-header-hamburger {
    display: flex;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 18px;
  }

  .hero,
  .section-block,
  .arcade-frame,
  .meta-card,
  .deploy-note {
    padding: 18px;
  }

  .hero-copy h1 {
    max-width: none;
  }
}
