:root {
  color-scheme: dark;
  background: #1f2023;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: #f4f4f5;
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.055), transparent 34rem),
    #1f2023;
  cursor: default;
  caret-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.landing {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2.4rem, 6vh, 4.5rem);
  padding: 2rem 1rem;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.board-wrapper {
  position: relative;
  width: min(43vh, 76vw, 410px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  filter: drop-shadow(0 1.4rem 2.5rem rgba(0, 0, 0, 0.45));
}

.dartboard {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.arrow-wrapper {
  position: absolute;
  z-index: 3;
  opacity: 0;
  transform-origin: center;
  pointer-events: none;
}

.arrow-img {
  display: block;
  width: 150px;
  height: auto;
  user-select: none;
  transform-origin: bottom center;
  -webkit-user-drag: none;
}

.arrow1 {
  animation: fly1 0.3s linear forwards;
}

.arrow1 .arrow-img {
  animation: straighten 0.4s linear forwards;
}

.arrow2 {
  animation: fly2 0.3s 0.3s linear forwards;
}

.arrow2 .arrow-img {
  animation: straighten 0.4s 0.4s linear forwards;
}

.arrow3 {
  animation: fly3 0.3s 0.6s linear forwards;
}

.arrow3 .arrow-img {
  animation: straighten 0.4s 0.7s linear forwards;
}

.brand {
  position: relative;
  z-index: 5;
  text-align: center;
  opacity: 0;
  animation: reveal 0.75s 0.9s ease-out forwards;
}

.brand h1 {
  margin: 0;
  color: #f3f4f6;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(3.2rem, 11vw, 7.2rem);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.025em;
  line-height: 0.88;
  text-transform: uppercase;
  transform: skew(-7deg) rotate(-2deg);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.24);
  text-shadow:
    3px 3px 0 #111214,
    6px 6px 0 rgba(0, 0, 0, 0.5),
    -2px 1px 0 rgba(255, 255, 255, 0.1);
}

.brand h1::after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: -0.22em;
  left: 4%;
  height: 0.11em;
  border-radius: 999px 40% 999px 35%;
  background: #f3f4f6;
  box-shadow: 0.1em 0.08em 0 #111214;
  transform: rotate(-1deg);
}

.brand p {
  position: relative;
  z-index: 2;
  margin: 2.4rem 0 0;
  color: #aeb3ba;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(0.9rem, 2.4vw, 1.25rem);
  font-weight: 900;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
}

@keyframes fly1 {
  from { top: 40vh; left: -100vw; transform: scale(3.5); opacity: 1; }
  to { top: 38%; left: 48%; transform: translate(-51%, -78%) scale(0.17); opacity: 1; }
}

@keyframes fly2 {
  from { top: 120vh; left: 140vw; transform: scale(3.5); opacity: 1; }
  to { top: 54%; left: 57%; transform: translate(-59%, -65%) scale(0.17); opacity: 1; }
}

@keyframes fly3 {
  from { top: 80vh; left: -100vw; transform: scale(3.5); opacity: 1; }
  to { top: 60%; left: 44%; transform: translate(-58%, -26%) scale(0.17); opacity: 1; }
}

@keyframes straighten {
  from { transform: rotateX(-50deg); }
  to { transform: rotateX(0); }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(1rem) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-height: 650px) {
  .landing {
    gap: 1.8rem;
    padding-block: 1rem;
  }

  .board-wrapper {
    width: min(48vh, 65vw, 320px);
  }

  .brand h1 {
    font-size: clamp(2.6rem, 9vw, 5rem);
  }

  .brand p {
    margin-top: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arrow-wrapper,
  .arrow-img,
  .brand {
    animation-duration: 1ms !important;
    animation-delay: 0s !important;
  }
}
