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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #0b1a12;
  font-family: "Pixelify Sans", "Segoe UI", sans-serif;
  color: #f4f7ea;
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
}

.hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  pointer-events: none;
  user-select: none;
}

.sound-toggle {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 3px solid #1e1408;
  background: rgba(12, 22, 14, 0.72);
  color: #ffe27a;
  font: 700 13px/1 "Pixelify Sans", sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 4px 4px 0 #1e1408;
  backdrop-filter: blur(6px);
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  background: rgba(18, 36, 22, 0.88);
  outline: none;
}

.sound-toggle[aria-pressed="true"] {
  color: #b6f08a;
}

.sound-hint {
  position: absolute;
  top: max(56px, calc(env(safe-area-inset-top) + 48px));
  right: max(12px, env(safe-area-inset-right));
  z-index: 3;
  margin: 0;
  max-width: 220px;
  padding: 8px 10px;
  border: 3px solid #1e1408;
  background: rgba(12, 22, 14, 0.78);
  color: #ffe27a;
  font-size: 12px;
  line-height: 1.3;
  text-align: right;
  box-shadow: 4px 4px 0 #1e1408;
}

.subscribe {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  width: min(560px, calc(100% - 24px));
  transform: translateX(-50%);
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(8, 16, 10, 0.55) 18%, rgba(8, 16, 10, 0.82));
  text-align: center;
}

.subscribe__label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 0 #1e1408, 0 0 12px rgba(0, 0, 0, 0.65);
}

.subscribe__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.subscribe input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 12px 12px;
  border: 3px solid #1e1408;
  background: rgba(250, 247, 230, 0.94);
  color: #1e1408;
  font: 700 15px/1.2 "Pixelify Sans", sans-serif;
  box-shadow: 4px 4px 0 #1e1408;
}

.subscribe input[type="email"]::placeholder {
  color: #6d6452;
  font-weight: 400;
}

.subscribe input[type="email"]:focus {
  outline: 2px solid #ffe27a;
  outline-offset: 2px;
}

.subscribe button[type="submit"] {
  flex: 0 0 auto;
  padding: 12px 16px;
  border: 3px solid #1e1408;
  background: #e7c23a;
  color: #1e1408;
  font: 700 15px/1 "Pixelify Sans", sans-serif;
  cursor: pointer;
  box-shadow: 4px 4px 0 #1e1408;
}

.subscribe button[type="submit"]:hover,
.subscribe button[type="submit"]:focus-visible {
  background: #ffe27a;
  outline: none;
}

.subscribe button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
}

.subscribe__status {
  min-height: 1.2em;
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 700;
  text-shadow: 0 2px 0 #1e1408;
}

.subscribe__status.is-ok {
  color: #b6f08a;
}

.subscribe__status.is-err {
  color: #ffb4a2;
}

.login-link {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 16px;
  border: 3px solid #1e1408;
  background: rgba(250, 247, 230, 0.92);
  color: #1e1408;
  font: 700 14px/1 "Pixelify Sans", sans-serif;
  text-decoration: none;
  box-shadow: 4px 4px 0 #1e1408;
}

.login-link:hover,
.login-link:focus-visible {
  background: #ffe27a;
  outline: none;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 768px) {
  .hero {
    object-position: center center;
  }

  .sound-hint {
    display: none;
  }

  .subscribe__row {
    flex-direction: column;
  }

  .subscribe button[type="submit"] {
    width: 100%;
  }

  .sound-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .sound-toggle {
    padding: 10px 12px;
  }
}
