* {
  box-sizing: border-box;
}

:root {
  --bg: #000;
  --fg: #fff;
  --green: #55d98a;
  --edge: 22px;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  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: #000;
  opacity: 1;
  visibility: visible;
  transition: opacity 260ms ease, visibility 260ms ease;
}

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

.enter-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 18px 28px;
  font-family: Impact, "Arial Black", Arial, sans-serif;
  font-size: clamp(30px, 6vw, 74px);
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transform: rotate(-1.5deg);
  transition: transform 120ms ease, color 120ms ease;
}

.enter-button:hover,
.enter-button:focus-visible {
  color: var(--green);
  transform: rotate(1deg) scale(1.06);
  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;
  background: #000;
  isolation: isolate;
}

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

.video-wrap::before {
  content: "";
  position: absolute;
  inset: -16%;
  background: radial-gradient(circle, rgba(76, 224, 139, .10), transparent 62%);
  filter: blur(30px);
  z-index: -1;
}

#tableVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.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 #fff;
  border-radius: 0;
  background: #000;
  color: #fff;
  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 #000,
    7px 7px 0 rgba(255,255,255,.13);
  transition:
    transform 120ms ease,
    background 120ms ease,
    color 120ms ease,
    border-color 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(85,217,138,.20);
}

.chaos-link:hover,
.chaos-link:focus-visible {
  --scale: 1.08;
  outline: none;
  background: #fff;
  border-color: #fff;
  color: #000;
  z-index: 99;
}

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

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

/* Dark SVG marks become white on black links. */
.chaos-link[data-link="x"] img,
.chaos-link[data-link="dexscreener"] img {
  filter: brightness(0) invert(1);
}

.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);
}

/* Keep the supplied Pump.fun SVG in its original colors everywhere. */
.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 #fff;
  background: #000;
  color: #fff;
  font-family: Impact, "Arial Black", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: .7px;
  transition: opacity .15s ease, transform .15s ease;
}

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

@media (max-width: 900px) {
  :root {
    --edge: 12px;
  }

  .video-wrap {
    width: min(74vw, 650px);
    height: min(62vh, 650px);
  }

  .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: 82vw;
    height: 52vh;
  }

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

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