:root {
  color-scheme: light;
  --acid: #dfff00;
  --acid-bright: #edff47;
  --ink: #16130f;
  --bone: #f4ebdd;
  --signal: #ff3b18;
  --bronze: #7f6a3f;
  --hairline: rgba(22, 19, 15, 0.42);
  --pointer-x: 72%;
  --pointer-y: 48%;
  --cursor-x: -100px;
  --cursor-y: -100px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  font-family:
    "Courier New", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    monospace;
  background: var(--acid);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(
      circle at var(--pointer-x) var(--pointer-y),
      var(--acid-bright) 0,
      transparent 25rem
    ),
    repeating-linear-gradient(
      0deg,
      rgba(22, 19, 15, 0.025) 0,
      rgba(22, 19, 15, 0.025) 1px,
      transparent 1px,
      transparent 4px
    ),
    var(--acid);
}

body::before,
body::after {
  position: fixed;
  z-index: 20;
  pointer-events: none;
  content: "";
}

body::before {
  inset: 0;
  opacity: 0.16;
  background:
    repeating-radial-gradient(
      circle at 18% 30%,
      transparent 0,
      transparent 2px,
      rgba(22, 19, 15, 0.32) 3px,
      transparent 4px
    );
  background-size: 7px 7px;
  mix-blend-mode: multiply;
}

body::after {
  inset: 0;
  border: 1px solid rgba(22, 19, 15, 0.35);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.8rem 1rem;
  color: var(--bone);
  background: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-frame {
  display: grid;
  min-height: 100svh;
  grid-template-rows: 3.7rem minmax(0, 1fr) 3.7rem;
}

.ticker {
  position: relative;
  z-index: 10;
  display: flex;
  min-width: 0;
  overflow: hidden;
  color: var(--acid);
  background: var(--ink);
  border-block: 1px solid var(--ink);
}

.ticker__track {
  display: flex;
  width: 100%;
  min-width: 68rem;
  align-items: center;
  justify-content: space-around;
  gap: 1.25rem;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.2rem, 2.1vw, 2rem);
  line-height: 1;
  white-space: nowrap;
  animation: ticker-drift 18s linear infinite alternate;
}

.ticker__track span:nth-child(3n) {
  color: var(--bone);
}

.ticker__track--reverse {
  animation-direction: alternate-reverse;
}

main {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 0;
  padding: clamp(1rem, 2vw, 2.25rem);
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

main::before {
  position: absolute;
  z-index: -2;
  inset: 1rem;
  border: 1px solid var(--hairline);
  content: "";
  background:
    linear-gradient(
      90deg,
      transparent calc(50% - 0.5px),
      var(--hairline) 50%,
      transparent calc(50% + 0.5px)
    ),
    linear-gradient(
      transparent calc(50% - 0.5px),
      var(--hairline) 50%,
      transparent calc(50% + 0.5px)
    );
}

.masthead,
footer {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(0.95rem, 1.65vw, 1.55rem);
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.wordmark {
  position: relative;
  padding-left: 0.85rem;
}

.wordmark::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0.42rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--signal);
  content: "";
  transform: translateY(-50%);
}

.way-out {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  text-decoration: none;
}

.way-out span {
  color: var(--signal);
  transition: transform 180ms ease;
}

.way-out:hover span,
.way-out:focus-visible span {
  transform: translate(0.2rem, -0.2rem);
}

.gateway-grid {
  position: relative;
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1.02fr) minmax(27rem, 0.98fr);
  align-items: center;
  gap: clamp(0.5rem, 2vw, 2rem);
}

.message {
  position: relative;
  z-index: 3;
  align-self: stretch;
  display: flex;
  min-width: 0;
  padding: clamp(1.25rem, 3.5vh, 3rem) 0 1rem clamp(0.4rem, 1.5vw, 1.6rem);
  flex-direction: column;
  justify-content: center;
}

h1 {
  position: relative;
  z-index: 4;
  max-width: none;
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(5.6rem, 10.9vw, 11rem);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.052em;
  line-height: 0.76;
  text-wrap: balance;
  text-transform: uppercase;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.message p {
  position: relative;
  z-index: 6;
  max-width: 42rem;
  margin: clamp(1rem, 2.6vh, 2.2rem) 0 0 0.5rem;
  font-size: clamp(0.84rem, 1.22vw, 1.18rem);
  font-weight: 700;
  line-height: 1.42;
}

.message p span {
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 0.22em;
  text-underline-offset: 0.14em;
}

.portal-zone {
  position: relative;
  z-index: 5;
  display: grid;
  min-width: 0;
  height: 100%;
  place-items: center;
}

.portal {
  --magnet-x: 0px;
  --magnet-y: 0px;
  position: relative;
  width: min(47vw, 42rem, 73vh);
  min-width: 27rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: drop-shadow(0.9rem 1rem 0 rgba(255, 59, 24, 0.8));
  transform:
    perspective(62rem)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  transition: filter 250ms ease;
}

.portal::before,
.portal::after {
  position: absolute;
  z-index: 7;
  width: 1rem;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  content: "";
}

.portal::before {
  top: -0.45rem;
  left: 50%;
  transform: translateX(-50%);
}

.portal::after {
  right: -0.45rem;
  bottom: 29%;
}

.portal__orbit,
.portal__ticks,
.portal__spokes,
.portal__core,
.portal__link {
  position: absolute;
  border-radius: 50%;
}

.portal__orbit--outer {
  inset: 0;
  border: clamp(0.8rem, 1.2vw, 1.25rem) double var(--ink);
  background:
    repeating-conic-gradient(
      from 2deg,
      var(--ink) 0 0.45deg,
      transparent 0.45deg 4deg
    );
  box-shadow:
    inset 0 0 0 0.5rem var(--acid),
    inset 0 0 0 0.62rem var(--ink);
  -webkit-mask: radial-gradient(circle, transparent 0 77%, #000 77.2% 100%);
  mask: radial-gradient(circle, transparent 0 77%, #000 77.2% 100%);
  animation: orbit-spin 34s linear infinite;
}

.portal__ticks {
  inset: 7%;
  border: 1px solid var(--ink);
  background: repeating-conic-gradient(
    var(--ink) 0 1.2deg,
    transparent 1.2deg 9deg
  );
  -webkit-mask: radial-gradient(circle, transparent 0 82%, #000 82.4% 100%);
  mask: radial-gradient(circle, transparent 0 82%, #000 82.4% 100%);
  animation: orbit-spin 48s linear infinite reverse;
}

.portal__orbit--middle {
  inset: 13%;
  border: clamp(0.35rem, 0.7vw, 0.72rem) solid var(--ink);
  box-shadow:
    0 0 0 0.18rem var(--acid),
    0 0 0 0.3rem var(--ink),
    inset 0 0 0 0.24rem var(--acid),
    inset 0 0 0 0.34rem var(--ink);
}

.portal__spokes {
  inset: 16%;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(223, 255, 0, 0.76) 0 0.35deg,
      transparent 0.35deg 12deg
    ),
    repeating-radial-gradient(
      circle,
      transparent 0 8%,
      rgba(223, 255, 0, 0.25) 8.3% 8.6%,
      transparent 8.9% 15%
    ),
    var(--ink);
  box-shadow: inset 0 0 4rem #000;
}

.portal__core {
  inset: 26%;
  border: 1px solid rgba(223, 255, 0, 0.45);
  background: radial-gradient(circle, #211d16 0, #0b0907 73%);
  box-shadow:
    0 0 0 1px rgba(223, 255, 0, 0.38),
    inset 0 0 3.5rem #000;
}

.portal__link {
  z-index: 8;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bone);
  text-decoration: none;
}

.portal__link::before,
.portal__link::after {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  content: "";
  transform: translate(-50%, -50%);
}

.portal__link::before {
  width: 78%;
  height: 1px;
  background: rgba(223, 255, 0, 0.55);
}

.portal__link::after {
  width: 1px;
  height: 78%;
  background: rgba(223, 255, 0, 0.55);
}

.portal__button {
  position: relative;
  z-index: 3;
  display: flex;
  min-width: min(68%, 22rem);
  padding: clamp(0.9rem, 1.5vw, 1.45rem) clamp(1rem, 1.7vw, 1.7rem);
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 2px solid var(--ink);
  outline: 2px solid var(--signal);
  outline-offset: 0.35rem;
  color: var(--ink);
  background: var(--signal);
  box-shadow:
    0.65rem 0.65rem 0 var(--acid),
    0.65rem 0.65rem 0 2px var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.05rem, 1.65vw, 1.7rem);
  letter-spacing: 0.025em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  transform: translate(var(--magnet-x), var(--magnet-y));
  transition:
    transform 120ms ease-out,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.portal__button span:last-child {
  font-size: 1.25em;
}

.portal__hint {
  position: absolute;
  z-index: 4;
  top: calc(50% + clamp(3.6rem, 5.2vw, 5rem));
  left: 50%;
  width: max-content;
  color: var(--acid);
  font-size: clamp(0.58rem, 0.82vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  transform: translateX(-50%);
}

.portal__hint--touch {
  display: none;
}

.portal:hover,
.portal:focus-within {
  filter:
    drop-shadow(1.2rem 1.25rem 0 rgba(255, 59, 24, 0.92))
    drop-shadow(-0.55rem -0.5rem 0 rgba(22, 19, 15, 0.3));
}

.portal__link:hover .portal__button,
.portal__link:focus-visible .portal__button {
  color: var(--ink);
  background: var(--bone);
  box-shadow:
    0.9rem 0.9rem 0 var(--acid),
    0.9rem 0.9rem 0 2px var(--ink);
}

.portal__link:focus-visible {
  outline: 0.35rem solid var(--bone);
  outline-offset: 0.38rem;
}

.portal[data-active="true"] .portal__orbit--outer {
  animation-duration: 7s;
}

.portal[data-active="true"] .portal__ticks {
  animation-duration: 11s;
}

.slash {
  position: absolute;
  z-index: 2;
  top: 46%;
  left: 4%;
  width: min(57vw, 52rem);
  height: clamp(0.42rem, 0.85vw, 0.8rem);
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      var(--signal) 0 2.5rem,
      #e53012 2.5rem 2.8rem,
      var(--signal) 2.8rem 4.4rem
    );
  box-shadow:
    0 0.18rem 0 rgba(22, 19, 15, 0.85),
    0 -0.12rem 0 rgba(244, 235, 221, 0.45);
  transform: rotate(-49deg);
  transform-origin: center;
}

.barcode {
  position: absolute;
  z-index: 7;
  top: 17%;
  right: 1.5rem;
  width: 1.3rem;
  height: 7rem;
  background: repeating-linear-gradient(
    0deg,
    var(--ink) 0 0.24rem,
    transparent 0.24rem 0.38rem,
    var(--ink) 0.38rem 0.48rem,
    transparent 0.48rem 0.62rem
  );
}

.stamps {
  position: relative;
  z-index: 7;
  display: flex;
  margin: clamp(1rem, 3vh, 2.4rem) 0 0 0.45rem;
  gap: clamp(1rem, 2.4vw, 2.4rem);
}

.stamp {
  display: grid;
  width: clamp(5rem, 8vw, 7.6rem);
  height: clamp(2.4rem, 4.2vw, 4rem);
  place-items: center;
  border: clamp(0.16rem, 0.28vw, 0.28rem) solid var(--signal);
  color: var(--signal);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.8rem);
  line-height: 1;
  transform: rotate(-3deg);
}

.stamp--bars {
  transform: rotate(3deg);
}

.registration {
  position: absolute;
  width: 1.35rem;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.registration::before,
.registration::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ink);
  content: "";
  transform: translate(-50%, -50%);
}

.registration::before {
  width: 2.2rem;
  height: 1px;
}

.registration::after {
  width: 1px;
  height: 2.2rem;
}

.registration--left {
  top: 16%;
  left: -0.85rem;
}

.registration--right {
  right: 0;
  bottom: 12%;
}

footer {
  padding: 0.65rem 0.35rem 0.1rem;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: clamp(0.62rem, 0.88vw, 0.86rem);
  font-weight: 800;
  letter-spacing: 0.06em;
}

footer::before,
footer::after {
  height: 1px;
  background: var(--ink);
  content: "";
  flex: 1;
}

footer span:first-child {
  order: -1;
}

.pointer {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  display: none;
  width: 1.1rem;
  aspect-ratio: 1;
  pointer-events: none;
  border: 2px solid var(--signal);
  border-radius: 50%;
  box-shadow: 0 0 0 0.22rem rgba(223, 255, 0, 0.72);
  transform: translate(calc(var(--cursor-x) - 50%), calc(var(--cursor-y) - 50%));
}

.js .pointer {
  display: block;
}

.is-launching .portal__button {
  color: var(--ink);
  background: var(--acid);
  transform: scale(1.06);
}

@keyframes orbit-spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes ticker-drift {
  from {
    transform: translateX(-1.5%);
  }

  to {
    transform: translateX(1.5%);
  }
}

@media (max-width: 66rem) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .site-frame {
    min-height: 100svh;
    grid-template-rows: 3rem minmax(0, 1fr) 3rem;
  }

  main {
    min-height: calc(100svh - 6rem);
    overflow: hidden;
  }

  .gateway-grid {
    padding-top: 1.5rem;
    grid-template-columns: 1fr;
    align-content: start;
  }

  .message {
    align-self: auto;
    padding: 1.5rem 0.25rem 0;
  }

  h1 {
    max-width: 7ch;
    font-size: clamp(5rem, 18vw, 9rem);
  }

  h1 span {
    white-space: normal;
  }

  .message p {
    max-width: 36rem;
  }

  .stamps {
    display: none;
  }

  .portal-zone {
    height: auto;
    min-height: min(88vw, 34rem);
  }

  .portal {
    width: min(84vw, 34rem);
    min-width: 19rem;
  }

  .slash {
    top: 34%;
    left: -8%;
    width: 80vw;
  }

  .barcode {
    display: none;
  }
}

@media (max-width: 38rem) {
  .ticker__track {
    min-width: 46rem;
    font-size: 1.25rem;
  }

  main {
    padding: 0.9rem;
  }

  main::before {
    inset: 0.55rem;
  }

  .masthead {
    font-size: 0.95rem;
  }

  .wordmark {
    padding-left: 0.68rem;
  }

  .way-out {
    padding-right: 0;
  }

  h1 {
    max-width: 6.4ch;
    font-size: clamp(4.45rem, 23vw, 7rem);
    line-height: 0.77;
  }

  .message p {
    max-width: 31rem;
    margin-left: 0.15rem;
    font-size: 0.78rem;
  }

  .portal-zone {
    min-height: min(96vw, 27rem);
  }

  .portal {
    width: min(91vw, 27rem);
    min-width: 18rem;
    filter: drop-shadow(0.48rem 0.56rem 0 rgba(255, 59, 24, 0.84));
  }

  .portal__button {
    min-width: 72%;
    padding: 0.86rem 0.8rem;
    font-size: clamp(0.86rem, 4vw, 1.12rem);
    box-shadow:
      0.42rem 0.42rem 0 var(--acid),
      0.42rem 0.42rem 0 2px var(--ink);
  }

  .portal__hint {
    top: calc(50% + 3.25rem);
    font-size: 0.52rem;
  }

  .slash {
    top: 29%;
    left: -20%;
    width: 104vw;
    height: 0.43rem;
  }

  footer {
    gap: 0.5rem;
    font-size: 0.55rem;
    text-align: center;
  }
}

@media (min-width: 67rem) and (max-height: 47rem) {
  .site-frame {
    grid-template-rows: 2.7rem minmax(0, 1fr) 2.7rem;
  }

  .ticker__track {
    font-size: 1.2rem;
  }

  .portal {
    width: min(39vw, 31rem, 72vh);
    min-width: 23rem;
  }

  h1 {
    font-size: clamp(5.4rem, 9.5vw, 8.8rem);
  }

  .stamps {
    margin-top: 0.8rem;
  }
}

@media (min-width: 48rem) and (max-width: 66rem) and (max-height: 36rem) {
  .site-frame {
    grid-template-rows: 2.4rem minmax(0, 1fr) 2.4rem;
  }

  .ticker__track {
    font-size: 1rem;
  }

  main {
    min-height: calc(100svh - 4.8rem);
    padding: 0.65rem 1rem;
  }

  .masthead {
    font-size: 0.82rem;
  }

  .gateway-grid {
    padding-top: 0;
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.9fr);
    align-content: stretch;
    align-items: center;
    gap: 0.5rem;
  }

  .message {
    align-self: stretch;
    padding: 0.5rem 0 0;
  }

  h1 {
    max-width: none;
    font-size: clamp(4rem, 10.2vw, 5.4rem);
  }

  h1 span {
    white-space: nowrap;
  }

  .message p {
    max-width: 29rem;
    margin-top: 0.8rem;
    font-size: 0.7rem;
  }

  .portal-zone {
    min-height: 0;
    height: 100%;
  }

  .portal {
    width: min(36vw, 72vh, 19rem);
    min-width: 17rem;
  }

  .portal__button {
    font-size: 0.9rem;
  }

  .portal__hint {
    top: calc(50% + 3.2rem);
    font-size: 0.49rem;
  }

  .slash {
    top: 45%;
    left: 1%;
    width: 50vw;
    height: 0.35rem;
  }

  footer {
    padding-top: 0.25rem;
    font-size: 0.5rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .pointer {
    display: none;
  }

  .portal {
    transform: none;
  }

  .portal__hint--pointer {
    display: none;
  }

  .portal__hint--touch {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  body {
    background:
      radial-gradient(circle at 72% 48%, var(--acid-bright) 0, transparent 25rem),
      repeating-linear-gradient(
        0deg,
        rgba(22, 19, 15, 0.025) 0,
        rgba(22, 19, 15, 0.025) 1px,
        transparent 1px,
        transparent 4px
      ),
      var(--acid);
  }

  .pointer {
    display: none;
  }

  .portal,
  .portal__button {
    transform: none;
  }
}

@media (forced-colors: active) {
  .portal__spokes,
  .portal__core {
    forced-color-adjust: none;
  }

  .portal__button,
  .way-out,
  .skip-link {
    border: 2px solid ButtonText;
  }
}
