:root {
  color-scheme: dark;
  --bg-deep: #13092f;
  --bg-mid: #1b1040;
  --bg-soft: #29135a;
  --accent: #FECE15;
  --accent-strong: #FECE15;
  --text-main: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.9);
  --text-faded: rgba(226, 217, 246, 0.42);
  --shape-stroke: rgba(109, 83, 153, 0.38);
  --shape-fill: rgba(88, 60, 127, 0.23);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 50% 32%, rgba(89, 61, 134, 0.34), transparent 32%),
    radial-gradient(circle at 12% 20%, rgba(84, 58, 127, 0.18), transparent 22%),
    radial-gradient(circle at 86% 70%, rgba(61, 39, 105, 0.18), transparent 24%),
    linear-gradient(180deg, #231050 0%, #180b3d 58%, #12072e 100%);
}

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

body::before {
  opacity: 0.32;
  background:
    radial-gradient(circle at 25% 30%, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 72% 68%, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 100%);
  background-size: 170px 170px, 210px 210px, 260px 260px, 320px 320px;
  animation: starsShift 18s linear infinite;
}

body::after {
  background:
    repeating-linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.017) 0 1px,
      transparent 1px 12px
    ),
    repeating-linear-gradient(
      30deg,
      rgba(0, 0, 0, 0.024) 0 1px,
      transparent 1px 7px
    );
  opacity: 0.23;
  mix-blend-mode: soft-light;
}

.page-shell {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 2rem;
}

.ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient::before {
  content: "";
  position: absolute;
  inset: -6%;
  background:
    radial-gradient(circle at 50% 42%, rgba(121, 92, 180, 0.12), transparent 25%),
    radial-gradient(circle at 18% 22%, rgba(102, 74, 151, 0.14), transparent 18%),
    radial-gradient(circle at 82% 20%, rgba(92, 67, 142, 0.13), transparent 18%),
    radial-gradient(circle at 50% 78%, rgba(69, 44, 113, 0.12), transparent 20%);
  animation: haze 20s ease-in-out infinite alternate;
}

.hero,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  width: min(100%, 54rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__logo {
  width: min(68vw, 29.5rem);
  max-width: 100%;
  filter: drop-shadow(0 1.2rem 2.2rem rgba(0, 0, 0, 0.22));
  animation: float 8s ease-in-out infinite;
}

h1 {
  margin: 1.35rem 0 0;
  font-family: "League Spartan", Impact, sans-serif;
  font-size: clamp(4.4rem, 11vw, 7.1rem);
  line-height: 0.9;
  letter-spacing: 0.035em;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 0.4rem 1.8rem rgba(0, 0, 0, 0.18);
}

.hero__lead {
  margin: 0.65rem 0 0;
  font-size: clamp(1.55rem, 4vw, 2.65rem);
  line-height: 1.1;
  font-weight: 800;
  color: var(--accent);
}

.hero__copy {
  width: min(100%, 24rem);
  margin: 0.8rem 0 0;
  font-size: clamp(1.05rem, 2.3vw, 1.45rem);
  line-height: 1.34;
  color: var(--text-soft);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-width: min(100%, 26.5rem);
  margin-top: 1.65rem;
  padding: 1.12rem 2.2rem;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #ffd244 0%, var(--accent-strong) 100%);
  color: #18144e;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 800;
  text-decoration: none;
  box-shadow:
    0 1.2rem 2.3rem rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    filter 0.28s ease;
  animation: ctaPulse 6s ease-in-out infinite;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-0.25rem);
  box-shadow:
    0 1.55rem 2.7rem rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  filter: brightness(1.03);
}

.cta:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 0.2rem;
}

.cta svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  margin-top: 2.6rem;
  color: var(--text-faded);
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  font-weight: 500;
}

.footer__dot {
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 999px;
  background: currentColor;
}

.shape,
.route,
.orb,
.spark {
  position: absolute;
}

.shape {
  fill: var(--shape-fill);
  stroke: var(--shape-stroke);
  stroke-width: 5;
  opacity: 0.6;
  filter: drop-shadow(0 0 1.4rem rgba(65, 43, 101, 0.2));
  animation: float var(--duration, 15s) ease-in-out infinite var(--delay, 0s);
}

.shape circle {
  fill: rgba(100, 74, 141, 0.3);
  stroke: none;
}

.shape--meeple {
  top: 11%;
  left: 5.5%;
  width: min(14vw, 11rem);
  stroke: none;
  fill: rgba(88, 62, 127, 0.34);
  --duration: 17s;
}

.shape--dice {
  top: 13%;
  right: 6%;
  width: min(16vw, 12.5rem);
  fill: none;
  --duration: 19s;
}

.shape--d20 {
  left: 6.5%;
  bottom: 12%;
  width: min(18vw, 13rem);
  fill: none;
  --duration: 18s;
  --delay: -4s;
}

.shape--cards {
  right: 6%;
  bottom: 11%;
  width: min(15vw, 11.25rem);
  stroke: rgba(104, 79, 147, 0.16);
  fill: rgba(88, 62, 127, 0.27);
  --duration: 16s;
  --delay: -2s;
}

.route {
  opacity: 0.95;
  animation: float var(--duration, 18s) ease-in-out infinite var(--delay, 0s);
}

.route path {
  fill: none;
  stroke: rgba(112, 88, 154, 0.32);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 10 18;
  animation: dash 24s linear infinite;
}

.route--north {
  top: 11%;
  left: 10%;
  width: min(58vw, 54rem);
  height: 17rem;
  --duration: 20s;
}

.route--south {
  left: -2%;
  bottom: 3%;
  width: min(63vw, 60rem);
  height: 18rem;
  opacity: 0.72;
  --duration: 22s;
  --delay: -5s;
}

.route--east {
  top: 31%;
  right: 0;
  width: min(33vw, 29rem);
  height: 22rem;
  opacity: 0.55;
  --duration: 21s;
  --delay: -3s;
}

.orb {
  border-radius: 50%;
  background: rgba(113, 86, 160, 0.48);
  animation:
    orbDrift var(--duration, 14s) ease-in-out infinite alternate,
    orbGlow 8s ease-in-out infinite;
}

.orb--1 {
  top: 4%;
  left: 1.5%;
  width: 0.9rem;
  height: 0.9rem;
  --duration: 22s;
}

.orb--2 {
  top: 9%;
  right: 20%;
  width: 1.2rem;
  height: 1.2rem;
  opacity: 0.8;
  --duration: 17s;
}

.orb--3 {
  top: 14%;
  right: 24%;
  width: 1rem;
  height: 1rem;
  opacity: 0.55;
  --duration: 20s;
}

.orb--4 {
  left: 3%;
  top: 48%;
  width: 1.4rem;
  height: 1.4rem;
  opacity: 0.72;
  --duration: 18s;
}

.orb--5 {
  right: 11%;
  top: 60%;
  width: 1.1rem;
  height: 1.1rem;
  opacity: 0.7;
  --duration: 16s;
}

.orb--6 {
  left: 26%;
  bottom: 10%;
  width: 1rem;
  height: 1rem;
  opacity: 0.62;
  --duration: 19s;
}

.spark {
  width: 0.65rem;
  height: 0.65rem;
  background: rgba(115, 91, 160, 0.24);
  transform: rotate(45deg);
  animation: twinkle var(--duration, 10s) ease-in-out infinite;
}

.spark--1 {
  top: 37%;
  left: 2.1%;
}

.spark--2 {
  top: 29%;
  right: 28%;
  --duration: 11s;
}

.spark--3 {
  bottom: 16%;
  left: 10%;
  --duration: 9s;
}

.spark--4 {
  right: 8%;
  bottom: 28%;
  --duration: 12s;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -0.85rem, 0);
  }
}

@keyframes dash {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: -180;
  }
}

@keyframes ctaPulse {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-0.12rem);
  }
}

@keyframes orbDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(0.8rem, -1rem, 0);
  }
}

@keyframes orbGlow {
  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.9;
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.1;
    transform: rotate(45deg) scale(0.85);
  }

  50% {
    opacity: 0.45;
    transform: rotate(45deg) scale(1.15);
  }
}

@keyframes haze {
  0% {
    transform: translate3d(-1.5%, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(1.5%, 1%, 0) scale(1.04);
  }
}

@keyframes starsShift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-1rem, -1.2rem, 0);
  }
}

@media (max-width: 900px) {
  .route--north {
    width: min(64vw, 42rem);
    left: 6%;
  }

  .route--south {
    width: min(72vw, 42rem);
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding-top: 2.4rem;
    padding-bottom: 1.8rem;
    justify-content: center;
  }

  .hero__logo {
    width: min(78vw, 24rem);
  }

  h1 {
    margin-top: 1.15rem;
    letter-spacing: 0.02em;
  }

  .hero__copy {
    width: min(100%, 24rem);
  }

  .cta {
    width: min(100%, 23rem);
    min-width: 0;
    padding-inline: 1.35rem;
  }

  .footer {
    gap: 0.8rem;
    margin-top: 2.1rem;
  }

  .route--east,
  .shape--cards {
    opacity: 0.38;
  }
}

@media (max-width: 560px) {
  .page-shell {
    justify-content: center;
    padding-inline: 1.1rem;
  }

  .shape--meeple,
  .shape--dice,
  .shape--d20,
  .shape--cards {
    width: 7rem;
  }

  .shape--meeple {
    top: 13%;
    left: -0.75rem;
  }

  .shape--dice {
    top: 11%;
    right: -0.8rem;
  }

  .shape--d20 {
    left: -0.75rem;
    bottom: 14%;
  }

  .shape--cards {
    right: -0.8rem;
    bottom: 14%;
  }

  .route--north {
    left: 8%;
    top: 14%;
    width: 78vw;
    height: 10rem;
    opacity: 0.52;
  }

  .route--south {
    left: -6%;
    bottom: 7%;
    width: 82vw;
    height: 12rem;
    opacity: 0.45;
  }

  .route--east {
    display: none;
  }

  .footer {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
