:root {
  color-scheme: dark;
  --amber: #f9b21c;
  --black: #050606;
  --muted-amber: rgba(249, 178, 28, 0.76);
}

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

html {
  min-width: 20rem;
  background: var(--black);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow-x: hidden;
  color: var(--amber);
  background:
    radial-gradient(
      ellipse at 50% 47%,
      rgba(249, 178, 28, 0.075) 0,
      rgba(249, 178, 28, 0.028) 25%,
      transparent 58%
    ),
    linear-gradient(180deg, #080909 0%, var(--black) 62%, #020303 100%);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 2;
  opacity: 0.5;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.15) 3px,
    rgba(0, 0, 0, 0.15) 4px
  );
}

body::after {
  z-index: 1;
  background: radial-gradient(
    ellipse at center,
    transparent 45%,
    rgba(0, 0, 0, 0.3) 76%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.landing {
  position: relative;
  z-index: 0;
  width: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 9vh, 7rem) clamp(1.25rem, 5vw, 4rem) 2rem;
}

.brand-lockup {
  width: min(100%, 46rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.6rem, 4vh, 2.8rem);
  text-align: center;
  animation: arrive 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-logo {
  display: block;
  width: clamp(18rem, 48vw, 39rem);
  max-width: 100%;
  height: auto;
  filter:
    drop-shadow(0 0 4px rgba(249, 178, 28, 0.42))
    drop-shadow(0 0 22px rgba(249, 178, 28, 0.12));
  animation: signal-breathe 10s ease-in-out infinite;
}

.descriptor {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85em;
  color: var(--muted-amber);
  font-size: clamp(0.72rem, 1.25vw, 0.86rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(249, 178, 28, 0.16);
}

.descriptor span:not(.separator) {
  white-space: nowrap;
}

.descriptor-tail {
  display: inline-flex;
  align-items: center;
  gap: 0.85em;
}

.separator {
  opacity: 0.5;
}

.game-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  margin-top: clamp(0.15rem, 1vh, 0.55rem);
  padding: 0.8rem 0.95rem 0.75rem;
  border-block: 1px solid rgba(249, 178, 28, 0.25);
  color: rgba(249, 178, 28, 0.78);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    text-shadow 180ms ease,
    transform 180ms ease;
}

.game-index,
.game-node {
  color: rgba(249, 178, 28, 0.52);
  font-size: 0.75rem;
}

.game-arrow {
  margin-left: 0.12em;
  font-size: 1rem;
}

.game-link:hover {
  color: #ffd477;
  border-color: rgba(249, 178, 28, 0.62);
  text-shadow: 0 0 12px rgba(249, 178, 28, 0.4);
  transform: translateY(-1px);
}

.game-link:focus-visible {
  color: #ffd477;
  outline: 2px solid var(--amber);
  outline-offset: 5px;
}

.site-footer {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding: 1.5rem max(1.25rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom));
}

.status {
  color: rgba(249, 178, 28, 0.72);
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }
}

@keyframes signal-breathe {
  0%,
  100% {
    filter:
      drop-shadow(0 0 4px rgba(249, 178, 28, 0.42))
      drop-shadow(0 0 22px rgba(249, 178, 28, 0.12));
  }

  50% {
    filter:
      drop-shadow(0 0 6px rgba(249, 178, 28, 0.52))
      drop-shadow(0 0 30px rgba(249, 178, 28, 0.18));
  }
}

@media (max-width: 34rem) {
  .landing {
    padding-inline: 1rem;
  }

  .brand-lockup {
    gap: 1.45rem;
  }

  .brand-logo {
    width: min(100%, 22rem);
  }

  .descriptor {
    max-width: 20rem;
    flex-wrap: wrap;
    column-gap: 0.7em;
    row-gap: 0.08rem;
    letter-spacing: 0.14em;
  }

  .game-link {
    gap: 0.55em;
    padding-inline: 0.65rem;
    letter-spacing: 0.1em;
  }
}

@media (max-height: 34rem) and (orientation: landscape) {
  .landing {
    padding-block: 1.25rem 0.75rem;
  }

  .brand-lockup {
    gap: 0.8rem;
  }

  .brand-logo {
    width: min(58vw, 25rem);
  }

  .site-footer {
    padding-block: 0.75rem max(0.75rem, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-lockup,
  .brand-logo {
    animation: none;
  }

  .game-link {
    transition: none;
  }
}
