:root {
  color-scheme: dark;
  font-family: "Mulish", Arial, sans-serif;
  color: #fff;
  background: #080d0f;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --text-muted: #6b7280;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

.landing {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  background-color: #080d0f;
  background-image: url("../assets/hero-background.png");
  background-position: center;
  background-size: cover;
}

.site-header {
  position: relative;
  z-index: 1;
  display: flex;
  height: 96px;
  flex: 0 0 96px;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  background: rgb(8 13 15 / 60%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 100px;
  height: 96px;
  object-fit: contain;
}

.brand-name,
.header-login {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 8px;
}

.header-login {
  border: 0;
  padding: 14px 0 14px 14px;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  color: #fff;
}

.header-login:hover,
.header-login:focus-visible {
  color: #c5d8e8;
}

.hero {
  width: min(100%, 851px);
  margin-top: 119px;
  padding: 25px 50px 50px;
}

.hero-copy {
  width: 100%;
}

.hero-content,
.hero-heading {
  display: contents;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.welcome {
  font-size: 32px;
}

.select-title {
  overflow: visible;
  font-size: 100px;
  letter-spacing: 50px;
  line-height: 1.2;
  white-space: nowrap;
}

.powered-by {
  margin: 0;
  font-size: 24px;
  line-height: 1.4;
}

.powered-by strong {
  font-weight: 700;
}

.hero-divider {
  width: 250px;
  height: 1px;
  margin: 8px 0 20px;
}

.hero-divider img {
  display: block;
  width: 100%;
  height: 1px;
}

.hero-description {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 751px;
  font-size: 24px;
  line-height: 1.35;
}

.hero-description p {
  margin: 0;
}

.tagline {
  text-transform: uppercase;
}

.join-button {
  display: flex;
  width: 300px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin-top: 48px;
  border: 1px solid #63809c;
  border-radius: 12px;
  color: inherit;
  background: #11191d;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.join-label-mobile {
  display: none;
}

.join-button:hover,
.join-button:focus-visible {
  border-color: #a9bfd2;
  background: #1b2931;
}

.access-dialog {
  width: min(420px, calc(100% - 32px));
  border: 1px solid #63809c;
  border-radius: 12px;
  padding: 30px;
  color: #fff;
  background: #11191d;
}

.access-dialog::backdrop {
  background: rgb(0 0 0 / 72%);
}

.access-dialog form {
  position: relative;
}

.access-dialog h2 {
  margin: 0 35px 12px 0;
  font-size: 22px;
  font-weight: 400;
}

.access-dialog p {
  margin: 0 0 24px;
  line-height: 1.5;
}

.dialog-close {
  position: absolute;
  top: -18px;
  right: -14px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.dialog-action {
  min-width: 120px;
  border: 1px solid #63809c;
  border-radius: 8px;
  padding: 10px 16px;
  background: #11191d;
  cursor: pointer;
}

.welcome-intro {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  padding: 32px 24px;
  color: #fff;
  background:
    radial-gradient(ellipse at 50% 45%, rgb(33 48 57 / 70%), transparent 57%),
    #020709;
  text-align: center;
}

.welcome-intro[open] {
  display: flex;
}

.welcome-intro::backdrop {
  background: #020709;
}

.intro-content {
  display: flex;
  width: min(100%, 380px);
  flex-direction: column;
  align-items: center;
}

.intro-logo {
  width: 112px;
  height: 108px;
  object-fit: contain;
  animation: intro-logo-arrive 1.1s cubic-bezier(.2, .75, .25, 1) both;
}

.intro-message {
  margin-top: 24px;
  opacity: 0;
  animation: intro-message-arrive 700ms ease 650ms forwards;
}

.intro-message h1 {
  margin: 0;
  font-size: clamp(24px, 7vw, 32px);
  font-weight: 400;
  letter-spacing: 1px;
}

.intro-message p {
  margin: 8px 0 0;
  color: #bdc5ca;
  font-size: 15px;
}

.intro-message strong {
  color: #fff;
}

.intro-word-stage {
  display: grid;
  min-height: 74px;
  place-items: center;
  margin-top: 34px;
}

.intro-word-stage span {
  color: #fff;
  font-size: clamp(30px, 9vw, 42px);
  font-weight: 400;
  letter-spacing: clamp(5px, 2vw, 10px);
  text-transform: uppercase;
}

.intro-word-stage span.is-visible {
  animation: intro-word-arrive 600ms cubic-bezier(.2, .75, .25, 1) both;
}

.intro-controls {
  position: absolute;
  right: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.intro-sound,
.intro-skip {
  border: 1px solid rgb(99 128 156 / 65%);
  border-radius: 999px;
  padding: 10px 16px;
  color: #e4e9ec;
  background: rgb(17 25 29 / 62%);
  font-size: 14px;
  cursor: pointer;
}

.intro-sound:hover,
.intro-skip:hover,
.intro-sound:focus-visible,
.intro-skip:focus-visible {
  border-color: #a9bfd2;
  background: #1b2931;
}

.welcome-intro.is-leaving {
  animation: intro-fade-out 350ms ease forwards;
}

footer {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

@keyframes intro-logo-arrive {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.72) rotate(-18deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
  }
}

@keyframes intro-message-arrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes intro-word-arrive {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes intro-fade-out {
  to {
    opacity: 0;
  }
}

@media (max-width: 700px) {
  .landing {
    min-height: 100vh;
    min-height: 100svh;
    background-image: none;
    background-color: #020709;
  }

  .site-header {
    height: 132px;
    flex-basis: 132px;
    padding: 12px 16px 24px;
    background: #020709;
  }

  .brand {
    gap: 12px;
  }

  .brand-mark {
    width: 100px;
    height: 96px;
  }

  .brand-name,
  .header-login {
    font-size: 16px;
    letter-spacing: 8px;
  }

  .header-login {
    width: 109px;
    padding-right: 0;
  }

  .hero {
    display: flex;
    width: 100%;
    min-height: 627px;
    flex: 1 0 627px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    background-image: url("../assets/mobile-background.png");
    background-position: center;
    background-size: cover;
  }

  .hero-copy {
    display: flex;
    width: 100%;
    min-height: 627px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    overflow: hidden;
    border-radius: 12px;
    padding: 25px 12px;
    background: rgb(2 7 9 / 83%);
  }

  .hero-content {
    display: flex;
    width: min(100%, 338px);
    flex-direction: column;
    align-items: center;
  }

  .hero-heading {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    align-items: center;
    text-align: center;
  }

  .welcome {
    font-size: 24px;
  }

  .select-title {
    font-size: clamp(38px, 11.65vw, 48px);
    letter-spacing: clamp(12px, 5.83vw, 24px);
  }

  .powered-by {
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
  }

  .hero-divider {
    width: min(250px, 70%);
    margin: 12px auto 20px;
    background-image: url("../assets/mobile-divider.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 1px;
  }

  .hero-divider img {
    visibility: hidden;
  }

  .hero-description {
    align-items: center;
    gap: 12px;
    max-width: 338px;
    font-size: 16px;
    line-height: 1.3;
    text-align: center;
  }

  .hero-description .tagline {
    font-size: clamp(17px, 5.83vw, 24px);
    white-space: nowrap;
  }

  .join-button {
    width: min(300px, 100%);
    min-height: 42px;
    flex: 0 0 auto;
    margin-top: 0;
  }

  .join-label-desktop {
    display: none;
  }

  .join-label-mobile {
    display: inline;
  }
}

@media (max-width: 390px) {
  .site-header {
    height: 132px;
    flex-basis: 132px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 88px;
  }

  .brand-name,
  .header-login {
    font-size: 14px;
    letter-spacing: 6px;
  }

  .header-login {
    width: auto;
  }

  .hero-copy {
    gap: 40px;
  }

  .hero-description .tagline {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }
}