:root {
  --bg: #050505;
  --text: #f8f8f8;
  --glow: rgba(255, 255, 255, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  overflow: hidden;
  font-family: "Cinzel Decorative", serif;
}

.title,
.ui {
  opacity: 0;
}

body.started .title,
body.started .ui {
  opacity: 1;
}

body.subscribe-active .title,
body.subscribe-active .ui {
  opacity: 0;
  transition: opacity 0.6s ease;
}

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.title {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 8vh;
  text-align: center;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.45em;
  font-size: clamp(28px, 6vw, 64px);
  text-shadow: 0 0 16px var(--glow), 0 0 40px rgba(255, 255, 255, 0.2);
  pointer-events: none;
  user-select: none;
  transition: opacity 0.6s ease;
}

.ui {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 3vh;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.start-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: opacity 0.9s ease;
}

.start-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.start-btn {
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 999px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.subscribe-btn {
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.subscribe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.55);
}

.subscribe-overlay {
  position: fixed;
  inset: 0;
  background: #f7f7f4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subscribe-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.subscribe-card {
  width: min(520px, 90vw);
  padding: 40px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  text-align: center;
  color: #111;
}

.subscribe-card h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 4vw, 32px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.subscribe-card p {
  margin: 0 0 24px;
  font-family: "Times New Roman", serif;
  font-size: 16px;
}

.subscribe-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.subscribe-row input {
  flex: 1 1 220px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 15px;
}

.subscribe-submit {
  border: 1px solid rgba(0, 0, 0, 0.4);
  background: #111;
  color: #f7f7f4;
  padding: 12px 18px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.subscribe-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.subscribe-status {
  margin-top: 14px;
  min-height: 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333;
}

.subscribe-consent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333;
}

.subscribe-consent input {
  width: 16px;
  height: 16px;
}

.subscribe-status.is-error {
  color: #8f1d1d;
}

.subscribe-status.is-success {
  color: #0f5d3a;
}

.subscribe-back {
  margin-top: 18px;
  border: none;
  background: transparent;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

@media (max-width: 600px) {
  .title {
    bottom: 10vh;
    letter-spacing: 0.3em;
  }

  .ui {
    bottom: 2vh;
  }
}
