* {
  box-sizing: border-box;
}

:root {
  --bg: #000000;
  --fg: #f5fff4;
  --green: #50ff2d;
  --green-deep: #0b8f25;
  --green-dark: #041006;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #000;
  color: var(--fg);
}

body {
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at center,
      #000 0 29%,
      #010701 53%,
      #061208 100%
    );
  opacity: 1;
  visibility: visible;
  transition:
    opacity 260ms ease,
    visibility 260ms ease;
}

.entry-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 35px,
      rgba(80,255,45,.024) 35px 36px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 35px,
      rgba(80,255,45,.024) 35px 36px
    );
}

.entry-gate.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-button {
  appearance: none;
  position: relative;
  z-index: 2;
  border: 2px solid var(--green);
  border-radius: 0;
  background: #000;
  color: var(--green);
  padding: 17px 27px;
  font-family: Impact, "Arial Black", Arial, sans-serif;
  font-size: clamp(30px, 6vw, 74px);
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transform: rotate(-1.5deg);
  box-shadow:
    7px 7px 0 #09280c,
    0 0 30px rgba(80,255,45,.12);
  transition:
    transform 120ms ease,
    color 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease;
}

.enter-button:hover,
.enter-button:focus-visible {
  color: #000;
  background: var(--green);
  transform: rotate(1deg) scale(1.05);
  box-shadow:
    7px 7px 0 #0d3711,
    0 0 48px rgba(80,255,45,.28);
  outline: none;
}

button,
a {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.stage {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;

  /*
    Important: the center remains pure black so the black background
    of hero.png visually disappears into the page.
  */
  background:
    radial-gradient(
      ellipse at center,
      #000 0 32%,
      #000 44%,
      rgba(0,0,0,.98) 51%,
      rgba(4,25,7,.94) 72%,
      #071309 100%
    );

  isolation: isolate;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 110px rgba(80,255,45,.10),
    inset 0 0 260px rgba(80,255,45,.05);
}

.green-haze {
  position: absolute;
  z-index: 0;
  top: 50%;
  width: 42vw;
  height: 72vh;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(80,255,45,.15),
      rgba(20,150,39,.06) 43%,
      transparent 70%
    );
  filter: blur(48px);
  pointer-events: none;
}

.green-haze--left {
  left: -20vw;
  transform: translateY(-50%);
}

.green-haze--right {
  right: -20vw;
  transform: translateY(-50%);
}

.scan-grid {
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: .18;
  pointer-events: none;
  background-image:
    linear-gradient(
      rgba(80,255,45,.05) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(80,255,45,.05) 1px,
      transparent 1px
    );
  background-size: 54px 54px;
  -webkit-mask-image:
    radial-gradient(
      ellipse at center,
      transparent 0 37%,
      #000 69%
    );
  mask-image:
    radial-gradient(
      ellipse at center,
      transparent 0 37%,
      #000 69%
    );
}

.video-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(60vw, 820px);
  height: min(82vh, 820px);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  z-index: 3;
  pointer-events: none;
}

#tableVideo {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;

  /*
    Keep the center pure black so black video frames disappear
    into the page instead of looking like a rectangle.
  */
  background: #000;

  filter:
    drop-shadow(
      0 0 18px
      rgba(80,255,45,.08)
    );
}

.project-mark {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 7.5%;
  display: flex;
  align-items: baseline;
  gap: 7px;
  transform: translateX(-50%) rotate(-1deg);
  color: rgba(244,255,243,.40);
  font-family: Impact, "Arial Black", Arial, sans-serif;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  pointer-events: none;
}

.project-mark span {
  font-size: clamp(11px, 1vw, 15px);
}

.project-mark strong {
  color: var(--green);
  font-size: clamp(18px, 2vw, 30px);
  text-shadow:
    0 0 14px rgba(80,255,45,.28);
}

.chaos-links {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.chaos-link {
  --rot: 0deg;
  --scale: 1;
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 14px;
  border: 2px solid var(--green);
  border-radius: 0;
  background: rgba(0,0,0,.95);
  color: var(--green);
  text-decoration: none;
  font-family: Impact, "Arial Black", Arial, sans-serif;
  font-size: clamp(14px, 1.35vw, 21px);
  line-height: 1;
  letter-spacing: .6px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transform:
    translate(-50%, -50%)
    rotate(var(--rot))
    scale(var(--scale));
  transform-origin: center;
  box-shadow:
    5px 5px 0 #041106,
    8px 8px 0 rgba(80,255,45,.14),
    0 0 18px rgba(80,255,45,.06);
  transition:
    transform 120ms ease,
    background 120ms ease,
    color 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
  user-select: none;
}

.chaos-link:nth-child(odd) {
  border-style: dashed;
}

.chaos-link:nth-child(3n) {
  background: var(--green);
  border-color: var(--green);
  color: #000;
  box-shadow:
    5px 5px 0 #000,
    8px 8px 0 rgba(80,255,45,.22),
    0 0 24px rgba(80,255,45,.11);
}

.chaos-link:hover,
.chaos-link:focus-visible {
  --scale: 1.08;
  outline: none;
  background: #efffed;
  border-color: #efffed;
  color: #000;
  box-shadow:
    5px 5px 0 #0d2a10,
    8px 8px 0 rgba(80,255,45,.20),
    0 0 30px rgba(80,255,45,.16);
  z-index: 99;
}

.chaos-link:nth-child(3n):hover,
.chaos-link:nth-child(3n):focus-visible {
  background: #efffed;
  border-color: #efffed;
}

.chaos-link img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  flex: 0 0 auto;
}

.chaos-link[data-link="x"] img,
.chaos-link[data-link="dexscreener"] img {
  filter:
    brightness(0)
    invert(1)
    sepia(1)
    saturate(7)
    hue-rotate(65deg)
    brightness(1.16);
}

.chaos-link[data-link="x"]:hover img,
.chaos-link[data-link="dexscreener"]:hover img,
.chaos-link:nth-child(3n):not([data-link="pumpfun"]) img {
  filter: brightness(0);
}

.chaos-link[data-link="pumpfun"] img,
.chaos-link[data-link="pumpfun"]:hover img {
  filter: none !important;
}

.copy-link {
  appearance: none;
}

.is-hidden {
  display: none !important;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 100;
  transform:
    translate(-50%, 20px)
    rotate(-1deg);
  opacity: 0;
  pointer-events: none;
  padding: 10px 15px;
  border: 2px solid var(--green);
  background: #000;
  color: var(--green);
  font-family: Impact, "Arial Black", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: .7px;
  box-shadow:
    0 0 24px
    rgba(80,255,45,.13);
  transition:
    opacity .15s ease,
    transform .15s ease;
}

.toast.show {
  opacity: 1;
  transform:
    translate(-50%, 0)
    rotate(-1deg);
}

@media (max-width: 900px) {
  .video-wrap {
    width: min(77vw, 700px);
    height: min(70vh, 700px);
  }

  .chaos-link {
    min-height: 39px;
    padding: 8px 10px;
    font-size: 13px;
    gap: 6px;
  }

  .chaos-link img {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 560px) {
  .stage {
    min-height: 460px;
  }

  .video-wrap {
    width: 90vw;
    height: 59vh;
  }

  .project-mark {
    top: 9%;
  }

  .chaos-link {
    max-width: 42vw;
    padding: 7px 9px;
    font-size: 11px;
  }

  .chaos-link img {
    width: 15px;
    height: 15px;
  }
}
