@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Press+Start+2P&display=swap');


:root {
  --paper: #f2f0ea;
  --dim: rgba(242,240,234,.56);
  --green: #9fe870;
  --green-deep: #63cc49;
  --bg: #050706;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #000; }
body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--paper);
  background: #000;
}
button, a { font: inherit; }
.app, .gate, .broadcast, .title-card, .site { position: fixed; inset: 0; }
.gate, .broadcast, .title-card, .site {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s ease, visibility .35s step-end;
}
.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .35s ease, visibility 0s;
}

.gate {
  display: grid;
  place-items: center;
  background: #000;
  z-index: 50;
}
.noise, .title-noise, .site-noise, .scanlines, .grain, .vignette, .site-bg, .site-overlay { pointer-events: none; }
.noise, .title-noise, .site-noise {
  position: absolute;
  inset: -18%;
  opacity: .06;
  background:
    repeating-radial-gradient(circle at 15% 30%, rgba(255,255,255,.95) 0 1px, transparent 1px 4px),
    repeating-radial-gradient(circle at 72% 70%, rgba(255,255,255,.45) 0 1px, transparent 1px 5px);
  background-size: 13px 13px, 19px 19px;
  mix-blend-mode: screen;
  animation: noiseMove 130ms steps(2) infinite;
}
.play-btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.75);
  color: rgba(255,255,255,.8);
  letter-spacing: .19em;
  font-size: 10px;
  cursor: pointer;
  text-transform: uppercase;
}
.play-btn:hover, .play-btn:focus-visible {
  outline: none;
  background: var(--paper);
  color: #050505;
  border-color: var(--paper);
}

.broadcast { background: #000; z-index: 30; }
.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.crt { position: absolute; inset: 0; }
.scanlines {
  z-index: 3;
  opacity: .2;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.01) 0 1px, rgba(0,0,0,.42) 2px 4px);
  mix-blend-mode: multiply;
}
.grain {
  z-index: 4;
  inset: -15%;
  opacity: .07;
  background:
    repeating-radial-gradient(circle at 12% 32%, rgba(255,255,255,.85) 0 1px, transparent 1px 4px),
    repeating-radial-gradient(circle at 80% 60%, rgba(255,255,255,.5) 0 1px, transparent 1px 5px);
  background-size: 15px 15px, 20px 20px;
  mix-blend-mode: screen;
  animation: noiseMove 125ms steps(2) infinite;
}
.vignette { z-index: 5; box-shadow: inset 0 0 14vw 5vw rgba(0,0,0,.72); }

.title-card {
  z-index: 40;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(159,232,112,.14), transparent 25%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,.03), transparent 30%),
    #040605;
}
.title-inner { position: relative; z-index: 2; text-align: center; padding: 24px; }
.title-kicker {
  margin: 0 0 18px;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.title-card h1 {
  margin: 0;
  font-family: 'Bungee', Arial Black, Impact, sans-serif;
  font-size: clamp(92px, 16vw, 220px);
  line-height: .8;
  letter-spacing: -.07em;
  color: var(--paper);
  text-transform: uppercase;
  text-shadow:
    0 2px 0 #000,
    0 4px 0 #000,
    4px 4px 0 rgba(99,204,73,.95),
    -4px 4px 0 rgba(255,255,255,.18),
    0 0 30px rgba(159,232,112,.30);
  transform: skew(-4deg);
}

.title-card h2 {
  margin: 10px 0 0;
  font-family: 'Press Start 2P', 'Bungee', Arial Black, Impact, sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 4.2vw, 58px);
  line-height: 1.15;
  letter-spacing: .04em;
  color: #ffffff;
  text-shadow:
    0 2px 0 #000,
    0 4px 0 #000,
    3px 3px 0 rgba(99,204,73,.95),
    -3px 3px 0 rgba(255,255,255,.20),
    0 0 24px rgba(159,232,112,.28);
}


.site {
  z-index: 20;
  background: #040605;
}
.site-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/chaos-bg.png');
  background-size: cover;
  background-position: center center;
  filter: saturate(1.02) contrast(1.02);
}
.site-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 56%, rgba(159,232,112,.10), transparent 24%),
    linear-gradient(180deg, rgba(0,0,0,.24) 0%, rgba(0,0,0,.46) 56%, rgba(0,0,0,.72) 100%);
}
.site-noise {
  position: absolute;
  inset: -16%;
  opacity: .045;
  z-index: 2;
}
.troll {
  position: absolute;
  left: 50%;
  top: 57%;
  z-index: 4;
  transform: translate(-50%, -50%);
  width: min(42vw, 520px);
  max-height: 72vh;
  object-fit: contain;
  filter:
    drop-shadow(0 0 16px rgba(255,255,255,.24))
    drop-shadow(0 0 48px rgba(159,232,112,.22))
    drop-shadow(0 0 120px rgba(0,0,0,.55));
}
.icon-links {
  position: absolute;
  left: 50%;
  top: 77%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: clamp(86px, 14vw, 170px);
}
.icon-link {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.62);
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 32px rgba(0,0,0,.32);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.icon-link:hover, .icon-link:focus-visible {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(159,232,112,.56);
  background: rgba(12,18,14,.92);
  box-shadow: 0 10px 42px rgba(159,232,112,.16);
  outline: none;
}
.icon-link img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.gmgn-link img {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
}

@keyframes noiseMove {
  0% { transform: translate(0,0); }
  25% { transform: translate(2%, -1%); }
  50% { transform: translate(-1%, 2%); }
  75% { transform: translate(1%, 1%); }
  100% { transform: translate(-2%, -1%); }
}

@media (max-width: 720px) {
  .title-card h1 { font-size: clamp(88px, 28vw, 150px); }
  .title-card h2 { font-size: clamp(22px, 7vw, 38px); }
  .troll { width: min(88vw, 500px); top: 54%; }
  .icon-links { top: 76%; gap: min(22vw, 96px); }
  .icon-link { width: 68px; height: 68px; }
  .icon-link img { width: 32px; height: 32px; }
  .gmgn-link img { width: 42px; height: 42px; }
}

.ending-music { display: none; }
