:root {
  --arena-navy: #082f36;
  --arena-gold: #bd8a20;
  --arena-white: #f8f8f3;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--arena-navy);
}

body {
  color: var(--arena-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.splash {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--arena-navy);
}

.splash__picture,
.splash__image,
.splash__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.splash__image {
  display: block;
  object-fit: cover;
  object-position: center center;
}

.splash__shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 24, 29, 0) 46%, rgba(4, 29, 34, 0.2) 67%, rgba(4, 27, 32, 0.86) 100%),
    linear-gradient(90deg, rgba(3, 22, 27, 0.38) 0%, rgba(3, 22, 27, 0) 52%);
  pointer-events: none;
}

.splash__message {
  position: absolute;
  z-index: 2;
  left: clamp(1.5rem, 4.75vw, 6.5rem);
  right: clamp(1.5rem, 4.75vw, 6.5rem);
  bottom: max(clamp(2.25rem, 6.75vh, 6rem), env(safe-area-inset-bottom));
  text-wrap: balance;
}

.splash__rule {
  display: block;
  width: clamp(2.1rem, 3vw, 3.75rem);
  height: clamp(0.18rem, 0.32vw, 0.34rem);
  margin-bottom: clamp(0.95rem, 1.6vw, 1.55rem);
  border-radius: 999px;
  background: var(--arena-gold);
}

.splash h1 {
  max-width: 24ch;
  margin: 0;
  color: var(--arena-white);
  font-size: clamp(2rem, 4.15vw, 4.65rem);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.04;
  text-shadow: 0 0.12em 0.42em rgba(0, 0, 0, 0.58);
}

@media (min-width: 768px) and (min-aspect-ratio: 3 / 2) {
  .splash h1 {
    max-width: 28ch;
  }
}

@media (max-width: 767px) {
  .splash__shade {
    background: linear-gradient(
      180deg,
      rgba(3, 24, 29, 0) 48%,
      rgba(4, 29, 34, 0.22) 66%,
      rgba(4, 27, 32, 0.94) 100%
    );
  }

  .splash__message {
    left: max(env(safe-area-inset-left), 1.55rem);
    right: max(env(safe-area-inset-right), 1.55rem);
    bottom: max(3.4rem, calc(env(safe-area-inset-bottom) + 1.65rem));
  }

  .splash h1 {
    max-width: 19ch;
    font-size: clamp(2rem, 8.2vw, 2.45rem);
    line-height: 1.08;
  }
}

@media (max-height: 600px) and (orientation: landscape) {
  .splash__message {
    bottom: 1.6rem;
  }

  .splash h1 {
    max-width: 27ch;
    font-size: clamp(1.8rem, 4.2vw, 3.25rem);
  }
}
