:root {
  --bg: #020202;
}

@font-face {
  font-family: "Goga";
  src: url("./assets/fonts/goga-black-italic.otf") format("opentype");
  font-style: italic;
  font-weight: 900;
}

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

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

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
}

.video-stage {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.video-stage__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 47.5% center;
  transform: scale(1.04);
  transform-origin: center center;
}

.site-brand-link {
  position: fixed;
  top: 0;
  left: 16px;
  z-index: 3;
  display: block;
  width: 290px;
  height: 88px;
  line-height: 0;
}

.site-brand {
  width: 192px;
  height: auto;
  user-select: none;
  display: block;
  transform: translateY(-16px);
}

.beta-panel {
  position: absolute;
  left: 50%;
  top: calc(60% + 192px);
  z-index: 1;
  width: min(calc(100vw - 32px), 560px);
  transform: translate(-50%, -50%);
}

.beta-form {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.beta-form.is-submitted .beta-form__button {
  display: none;
}

.beta-form.is-submitted .beta-form__field {
  flex: 0 1 320px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.beta-form.is-submitted {
  display: block;
}

.beta-form__field {
  position: relative;
  flex: 1;
  min-width: 0;
  padding-bottom: 8px;
}

.beta-form__input {
  width: 100%;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 10px;
  font-family: "Goga", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  background: rgba(7, 7, 7, 0.64);
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  backdrop-filter: blur(14px);
}

.beta-form__input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.beta-form__input:focus {
  border-color: #ffffff;
  background: rgba(7, 7, 7, 0.7);
}

.beta-form__input.is-error {
  border-color: #ff5a5a;
}

.beta-form__input.is-success {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(7, 7, 7, 0.88);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.beta-form__input.is-success::placeholder {
  color: #ffffff;
}

.beta-form__message {
  position: absolute;
  left: 4px;
  top: calc(100% - 6px);
  padding: 4px 12px;
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #ff5a5a;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.beta-form__message.is-visible {
  opacity: 1;
}

.beta-form__button {
  padding: 18px 30px;
  border: none;
  border-radius: 10px;
  background-color: #ffffff;
  color: #111111;
  font-family: "Goga", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.beta-form__button:hover {
  background-color: #e6e6e6;
  transform: translateY(-1px);
}

.beta-form__button:active {
  transform: translateY(0);
}

.sound-toggle {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 1;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.sound-toggle__icon {
  width: 34px;
  height: 34px;
}

.sound-toggle__icon--off {
  display: none;
}

.sound-toggle.is-muted .sound-toggle__icon--on {
  display: none;
}

.sound-toggle.is-muted .sound-toggle__icon--off {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .video-stage__media {
    object-position: 48.5% center;
    transform: scale(1.09);
  }

  .beta-panel {
    top: calc(63% + 144px);
    width: min(calc(100vw - 24px), 520px);
  }

  .beta-form {
    flex-direction: column;
  }

  .beta-form__field,
  .beta-form__button {
    width: 100%;
  }

  .site-brand-link {
    top: 0;
    left: 12px;
    width: 210px;
    height: 64px;
  }

  .site-brand {
    width: 164px;
    transform: translateY(-13px);
  }

  .sound-toggle {
    right: 16px;
    bottom: 16px;
    width: 60px;
    height: 60px;
  }
}
