@font-face {
  font-family: "Luckiest Guy";
  src: url("/fonts/LuckiestGuy.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07080d;
  --bg-2: #0b1218;
  --ink: #f2f6f8;
  --muted: #9aa8b4;
  --pool: #3ec8e8;
  --pool-dim: #1c6f86;
  --yellow: #ffe14a;
  --red: #e23b3b;
  --line: rgba(62, 200, 232, 0.22);
  --bezel: #2a2e35;
  --bezel-hi: #5a5f68;
  --radius: 18px;
  --font-display: "Luckiest Guy", system-ui, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -80px, rgba(32, 110, 140, 0.28), transparent 60%),
    radial-gradient(800px 400px at 80% 120%, rgba(30, 60, 80, 0.18), transparent 70%),
    var(--bg);
  line-height: 1.6;
  min-height: 100%;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--pool); }

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--yellow);
  color: #111;
  padding: 0.5rem 0.8rem;
  z-index: 20;
  font-weight: 700;
}
.skip:focus { top: 1rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.12) 0px,
    rgba(0, 0, 0, 0.12) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.28;
  mix-blend-mode: multiply;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem 4rem;
}

.hero-glow {
  position: absolute;
  width: min(520px, 80vw);
  height: min(520px, 80vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 200, 232, 0.18), transparent 68%);
  filter: blur(8px);
  z-index: 0;
}

.logo {
  position: relative;
  z-index: 1;
  width: min(420px, 82vw);
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.55));
}

.tagline {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.4vw, 2.6rem);
  color: var(--yellow);
  letter-spacing: 0.02em;
  margin: 0.2rem 0 0.35rem;
  text-shadow: 0 2px 0 #000, 0 0 24px rgba(255, 225, 74, 0.25);
  line-height: 1.15;
}

.studio {
  position: relative;
  z-index: 1;
  color: var(--muted);
  margin: 0.85rem auto 2rem;
  font-size: 1.05rem;
  max-width: 36rem;
}

.scroll {
  position: relative;
  z-index: 1;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  background: rgba(10, 16, 22, 0.5);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.scroll:hover, .scroll:focus-visible {
  border-color: var(--pool);
  color: var(--pool);
  background: rgba(62, 200, 232, 0.08);
}

/* Game section */
.game {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto 5rem;
  padding: 3rem 0 0;
  text-align: center;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #062028;
  background: var(--pool);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
}

.badge-steam {
  background: transparent;
  color: var(--yellow);
  border: 1px solid var(--yellow);
}

.game h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.5vw, 4.1rem);
  line-height: 1.05;
  margin: 0.2rem 0 1rem;
  color: var(--ink);
  letter-spacing: 0.01em;
  text-shadow: 0 3px 0 #000, 0 0 30px rgba(62, 200, 232, 0.2);
}

.lead {
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

/* CRT TV frame */
.tv {
  margin: 0 auto 3.5rem;
  max-width: 860px;
}

.tv-bezel {
  background: linear-gradient(180deg, #3a3e46 0%, #1c1e24 55%, #14161a 100%);
  border-radius: 22px 22px 28px 28px;
  padding: 16px 16px 0;
  box-shadow:
    0 0 0 2px #0a0a0c,
    0 0 0 3px #5a616a,
    0 24px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.tv-screen {
  position: relative;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.tv-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tv-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.28) 100%),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.03) 0px,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px,
      transparent 3px
    );
}

.sound-btn {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.62);
  color: var(--ink);
  font: 650 0.8rem/1 var(--font-body);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
}
.sound-btn:hover, .sound-btn:focus-visible {
  border-color: var(--pool);
  color: var(--pool);
}
.sound-btn[aria-pressed="true"] {
  background: var(--pool);
  color: #062028;
  border-color: var(--pool);
}

.tv-chin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem 0.95rem;
}

.tv-grill {
  width: 72px;
  height: 14px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    to bottom,
    #111 0 2px,
    #3a3d44 2px 4px
  );
  box-shadow: inset 0 0 0 1px #111;
}

.tv-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e23b3b;
  box-shadow: 0 0 8px #e23b3b;
}

.tv-knob {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8a8f98, #2a2d33);
  box-shadow: inset 0 0 0 2px #1a1c20, 0 1px 0 #666;
}

.tv figcaption {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.gallery-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--yellow);
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
}

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  cursor: zoom-in;
  color: inherit;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shot-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 0.8rem 0.7rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink);
}

.shot:hover, .shot:focus-visible {
  transform: translateY(-3px);
  border-color: var(--pool);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--pool);
  outline: none;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  justify-content: center;
  margin-bottom: 0.7rem;
}

.social a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
}
.social a:hover, .social a:focus-visible { color: var(--pool); }

.copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Lightbox */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 3.5rem 4rem;
}

.lightbox-figure { margin: 0; max-width: min(1280px, 100%); }
.lightbox-figure img {
  max-height: calc(100svh - 7rem);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-figure figcaption {
  text-align: center;
  color: var(--muted);
  margin-top: 0.7rem;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: transparent;
  color: var(--ink);
  border: 0;
  cursor: pointer;
  font-size: 2.4rem;
  line-height: 1;
  padding: 0.2rem 0.6rem;
}
.lightbox-close { top: 0.6rem; right: 0.8rem; font-size: 2.6rem; }
.lightbox-prev { left: 0.4rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.4rem; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover,
.lightbox-close:focus-visible, .lightbox-prev:focus-visible, .lightbox-next:focus-visible {
  color: var(--yellow);
}

@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery li:first-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot { transition: none; }
  .shot:hover, .shot:focus-visible { transform: none; }
  .scanlines { display: none; }
}
