:root {
  --bg: #0a0a0a;
  --fg: #f5f5f5;
  --accent: #d53a40;
  --muted: #888;
  --error: #ff4d4d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("images/logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1.5rem 8rem;
  text-align: center;
}

.hero {
  padding: 3rem 0 1rem;
}

.hero__title {
  font-size: clamp(2.25rem, 9vw, 3.5rem);
  letter-spacing: 0.1em;
  margin: 0 0 0.25rem;
}

.hero__season {
  color: var(--accent);
  font-size: clamp(1.5rem, 6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  margin: 0 0 1.5rem;
}

.hero__logo {
  display: none;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 0.5rem;
}

.release-date {
  color: var(--fg);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin: 0 0 2rem;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
}

.countdown__value {
  font-size: 2rem;
  font-weight: 700;
}

.countdown__label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.socials a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--muted);
}

.instructions {
  margin: 2rem auto 0;
  max-width: 340px;
  background: #1f0a0b;
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 0 24px rgba(213, 58, 64, 0.4);
}

.instructions__title {
  margin: 0 0 1rem;
  font-weight: 800;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.instructions__list {
  margin: 0;
  padding-left: 1.25rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.instructions__list li::marker {
  color: var(--accent);
  font-weight: 800;
}

.instructions__list a {
  color: var(--fg);
  font-weight: 700;
}

.code-section {
  margin-top: 2rem;
}

#code-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#code-form[hidden] {
  display: none;
}

#code-input {
  background: #1a1a1a;
  border: 1px solid var(--muted);
  color: var(--fg);
  padding: 0.75rem;
  font-size: 1rem;
  text-align: center;
  text-transform: uppercase;
}

#code-form button {
  background: var(--accent);
  border: none;
  color: var(--fg);
  padding: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.code-error {
  color: var(--error);
  margin-top: 0.75rem;
}

.reward-container {
  margin-top: 1.5rem;
}

.reward-container a {
  display: inline-block;
  background: var(--accent);
  color: var(--fg);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.75);
}

.modal[hidden] {
  display: none;
}

.modal__box {
  max-width: 340px;
  background: #1f0a0b;
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 0 30px rgba(213, 58, 64, 0.5);
  text-align: center;
}

.modal__title {
  margin: 0 0 0.75rem;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.modal__text {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.modal__text strong {
  color: var(--fg);
  font-size: 1.15em;
  font-weight: 700;
}

.modal__box button {
  background: var(--accent);
  color: var(--fg);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: #1a1a1a;
  border-top: 1px solid var(--muted);
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

.cookie-banner__actions {
  display: flex;
  gap: 1rem;
}

.cookie-banner__actions button {
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.cookie-banner[hidden] {
  display: none;
}

@media (max-width: 360px) {
  .countdown {
    gap: 0.5rem;
  }
  .countdown__value {
    font-size: 1.5rem;
  }
  .release-date {
    font-size: 1rem;
  }
}
