:root {
  --bg: #070014;
  --panel: rgba(16, 0, 36, 0.86);
  --text: #f4ecff;
  --muted: #c9b3db;
  --pink: #ff2bd6;
  --cyan: #00f0ff;
  --ink: #120018;
  --focus: #00f0ff;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--text); scroll-behavior: smooth; }
body {
  font-family: "Rajdhani", sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% 18%, rgba(255,43,214,0.32), transparent 55%),
    radial-gradient(ellipse 70% 40% at 80% 0%, rgba(0,240,255,0.18), transparent 50%),
    linear-gradient(180deg, #140028 0%, #070014 42%, #070014 100%);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
@media (min-width: 700px) {
  .wrap { width: min(1180px, calc(100% - 64px)); }
}

/* Skip link */
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 20;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
}
.skip:focus { top: 12px; }

body::before {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  height: 42vh;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,43,214,0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.2) 1px, transparent 1px);
  background-size: 100% 28px, 48px 100%;
  transform: perspective(200px) rotateX(56deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  z-index: 0;
}

.sun {
  position: absolute;
  right: 8%;
  top: 24px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff9de8 0%, #ff2bd6 42%, #6b00ff 100%);
  box-shadow: 0 0 90px rgba(255,43,214,0.75), 0 0 160px rgba(255,43,214,0.35);
  z-index: -1;
  opacity: 0.7;
  mask-image: repeating-linear-gradient(to bottom, #000 0 8px, transparent 8px 14px);
}
@media (min-width: 700px) {
  .sun { right: 16%; top: 36px; width: 300px; height: 300px; opacity: 0.92; }
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 14px;
  flex-wrap: wrap;
}
@media (min-width: 700px) {
  header { padding: 22px 0 16px; flex-wrap: nowrap; }
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg.logo { width: 38px; height: 38px; filter: drop-shadow(0 0 8px #ff2bd6); flex-shrink: 0; }
.wordmark {
  font-family: "Michroma", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-shadow: 0 0 6px #fff, 0 0 14px var(--cyan), 0 0 28px var(--cyan);
}
nav ul { display: flex; gap: 18px; list-style: none; align-items: center; }
@media (min-width: 700px) { nav ul { gap: 26px; } }
nav a {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.86rem;
  color: var(--muted);
  padding: 6px 2px;
  border-radius: 2px;
}
nav a:hover, nav a[aria-current="page"] {
  color: var(--cyan);
  text-shadow: 0 0 8px var(--cyan);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.hero {
  padding: 20px 0 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 48px; min-height: 420px; padding: 28px 0 18px; }
}
.open-sign {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 16px;
  border: 2px solid var(--pink);
  font-family: "Monoton", cursive;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--pink);
  text-shadow: 0 0 8px #fff, 0 0 16px var(--pink), 0 0 32px var(--pink);
  box-shadow: 0 0 18px rgba(255,43,214,0.55), inset 0 0 12px rgba(255,43,214,0.2);
  animation: flicker 6s linear infinite;
}
.kicker {
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pink);
  font-size: 0.82rem;
  margin-bottom: 16px;
  text-shadow: 0 0 10px rgba(255,43,214,0.7);
}
.hero h1, .page-title {
  font-family: "Michroma", sans-serif;
  font-size: clamp(2.1rem, 8vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  color: #f4ffff;
  text-shadow:
    0 0 6px #fff,
    0 0 14px var(--cyan),
    0 0 28px var(--cyan),
    0 0 56px var(--cyan);
}
.hero h1 span, .page-title span {
  color: #fff0fc;
  text-shadow:
    0 0 6px #fff,
    0 0 14px var(--pink),
    0 0 28px var(--pink),
    0 0 56px var(--pink);
}
.hero h1 .flicker, .page-title .flicker, .open-sign {
  animation: flicker 5.2s linear infinite;
}
.open-sign { animation-duration: 6s; }
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; filter: brightness(1); }
  20%, 24% { opacity: 0.45; filter: brightness(0.6); }
  54%, 56% { opacity: 0.7; filter: brightness(0.8); }
  54.3% { opacity: 0.2; }
}
.tagline, .lede {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--muted);
  max-width: 32ch;
  margin-bottom: 28px;
  line-height: 1.4;
}
@media (min-width: 700px) {
  .tagline, .lede { font-size: 1.35rem; }
}
.actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.92rem;
  border: 0;
  cursor: pointer;
  color: inherit;
  background: none;
}
.btn-primary {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 0 0 22px rgba(0,240,255,0.65), 0 0 48px rgba(0,240,255,0.25);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary {
  background: transparent;
  color: var(--pink);
  border: 1px solid var(--pink);
  box-shadow: 0 0 16px rgba(255,43,214,0.4);
}
.btn-secondary:hover { background: rgba(255,43,214,0.1); }
.hero-panel {
  border: 1px solid rgba(0,240,255,0.7);
  background: var(--panel);
  box-shadow:
    0 0 0 1px rgba(255,43,214,0.35),
    0 0 28px rgba(0,240,255,0.28),
    0 0 60px rgba(255,43,214,0.18);
  position: relative;
}
.hero-panel::before, .hero-panel::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid var(--cyan);
  z-index: 2;
  box-shadow: 0 0 10px var(--cyan);
}
.hero-panel::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.hero-panel::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.hero-panel .screen { display: block; height: 200px; background: #000; }
@media (min-width: 700px) {
  .hero-panel .screen { height: 230px; }
}
.hero-panel .screen img { width: 100%; height: 100%; object-fit: cover; }
.hero-panel .meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  border-top: 1px solid rgba(0,240,255,0.35);
  gap: 12px;
}
.hero-panel .meta strong {
  font-family: "Michroma", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.genre {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink);
  text-shadow: 0 0 8px rgba(255,43,214,0.6);
}
.badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--pink);
  padding: 6px 12px;
  box-shadow: 0 0 16px rgba(255,43,214,0.7);
  flex-shrink: 0;
}
.badge:hover { filter: brightness(1.08); }

.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 16px; flex-wrap: wrap;
  margin: 28px 0 16px;
  border-top: 1px solid rgba(0,240,255,0.28);
  padding-top: 26px;
}
.section-head h2, .about h2, .prose h2 {
  font-family: "Michroma", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-shadow: 0 0 12px rgba(0,240,255,0.55);
}
.section-head p { color: var(--muted); font-weight: 600; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding-bottom: 48px;
}
/* Mobile: 3 live games, then a centered leftover, then the two placeholders as a pair. */
@media (max-width: 899px) {
  .grid .card-live:nth-child(3):not(:last-child) {
    grid-column: 1 / -1;
    width: calc((100% - 14px) / 2);
    justify-self: center;
  }
}
/* Desktop: 3 equal live tiles on the first row; 2 placeholders centered on the second. */
@media (min-width: 900px) {
  .grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
  }
  .grid .card { grid-column: span 2; }
  .grid .card-soon:nth-last-child(2) { grid-column: 2 / span 2; }
  .grid .card-soon:last-child { grid-column: 4 / span 2; }
}
.card {
  background: var(--panel);
  border: 1px solid rgba(0,240,255,0.45);
  display: flex; flex-direction: column;
  box-shadow: 0 0 16px rgba(0,240,255,0.12), inset 0 0 18px rgba(0,240,255,0.04);
  position: relative;
  z-index: 1;
}
.grid, .hero, .page-hero, .about, .prose-block, .player, .not-found, header, footer {
  position: relative;
  z-index: 1;
}
.card-live {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0,240,255,0.35), 0 0 40px rgba(255,43,214,0.12);
}
.card-soon {
  opacity: 1;
  border-color: rgba(255, 43, 214, 0.55);
  box-shadow: 0 0 18px rgba(255,43,214,0.18), 0 0 22px rgba(0,240,255,0.1);
  pointer-events: none;
  text-align: center;
  user-select: none;
}
.card-soon .card-body {
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
}
.thumb { height: 110px; overflow: hidden; background: #000; }
@media (min-width: 700px) { .thumb { height: 128px; } }
.thumb svg, .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 {
  font-family: "Michroma", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.card-soon h3 {
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0,240,255,0.55), 0 0 16px rgba(255,43,214,0.35);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.blurb { color: var(--muted); font-size: 0.98rem; font-weight: 600; line-height: 1.35; flex: 1; }
.play {
  margin-top: 10px;
  align-self: flex-start;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--ink);
  background: var(--cyan);
  padding: 7px 14px;
  box-shadow: 0 0 14px rgba(0,240,255,0.55);
}
.play:hover { filter: brightness(1.08); }

.about, .prose-block {
  border-top: 1px solid rgba(0,240,255,0.28);
  padding: 28px 0 36px;
}
.about h2, .prose-block h2 {
  margin-bottom: 10px;
  text-shadow: 0 0 12px rgba(0,240,255,0.45);
}
.about p, .prose p {
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.55;
}
.prose p + p { margin-top: 1em; }
.prose a, .about a, .footer-links a {
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0,240,255,0.45);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover, .about a:hover { color: #fff; }

.page-hero { padding: 12px 0 8px; }
.page-hero .page-title { margin-bottom: 12px; }

footer {
  border-top: 1px solid rgba(255,43,214,0.4);
  padding: 22px 0 32px;
  color: var(--muted);
  font-size: 0.92rem;
  display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  font-weight: 600;
}
footer .footer-links { display: flex; gap: 18px; }
footer .footer-links a { text-decoration: none; color: var(--muted); }
footer .footer-links a:hover { color: var(--cyan); }

/* Game player */
.player {
  margin: 8px 0 48px;
  border: 1px solid rgba(0,240,255,0.7);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,43,214,0.18), transparent 55%),
    var(--bg);
  box-shadow:
    0 0 0 1px rgba(255,43,214,0.35),
    0 0 28px rgba(0,240,255,0.28),
    0 0 60px rgba(255,43,214,0.18);
  position: relative;
}
.player::before, .player::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid var(--cyan);
  z-index: 2;
  box-shadow: 0 0 10px var(--cyan);
  pointer-events: none;
}
.player::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.player::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.player-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,240,255,0.35);
  background: var(--panel);
}
.player-toolbar p { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.player-toolbar .tools { display: flex; gap: 10px; flex-wrap: wrap; }
.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(16,0,36,0.95), var(--bg));
  box-shadow: inset 0 0 0 1px rgba(255,43,214,0.35), inset 0 0 24px rgba(0,240,255,0.12);
}
.player-frame iframe {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border: 1px solid rgba(0,240,255,0.45);
  background: var(--bg);
  color-scheme: dark;
  box-shadow: 0 0 16px rgba(255,43,214,0.2), 0 0 24px rgba(0,240,255,0.15);
}
.player-fallback {
  display: none;
  padding: 36px 20px 40px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(7,0,20,0.35), rgba(7,0,20,0.72)),
    var(--fallback-image, #000) center / cover no-repeat;
  min-height: 360px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.player-fallback.is-visible { display: flex; }
.player.is-fallback .player-frame { display: none; }
.player.is-fallback .player-fallback { display: flex; }
.player-fallback h2 {
  font-family: "Michroma", sans-serif;
  letter-spacing: 0.08em;
  text-shadow: 0 0 14px var(--cyan);
}
.player-fallback p { color: var(--muted); font-weight: 600; max-width: 36ch; }

.not-found { padding: 48px 0 80px; }
.not-found p { margin-bottom: 28px; }

@media (prefers-reduced-motion: reduce) {
  .flicker, .open-sign, .hero h1 .flicker, .page-title .flicker {
    animation: none !important;
  }
}

body.page-inner .sun {
  width: 160px;
  height: 160px;
  top: 76px;
  right: 5%;
  opacity: 0.85;
  z-index: 0;
}
.grid { isolation: isolate; }
.thumb, .soon-thumb { background: #0b0018; isolation: isolate; }

.page-hero .lede + .lede { margin-top: -12px; max-width: 62ch; font-size: 1.1rem; }
