:root {
  --bg: #07070a;
  --ink: #f5f1e9;
  --muted: #c0b8a7;
  --gold: #d4b16a;
  --card: rgba(12, 12, 18, 0.78);
  --line: rgba(212, 177, 106, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Montserrat, Inter, system-ui, sans-serif;
  line-height: 1.72;
}

.debug-toggle {
  position: fixed;
  top: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.55rem;
  border: 1px solid rgba(226, 194, 127, 0.32);
  border-radius: 999px;
  background: rgba(7, 7, 10, 0.82);
  backdrop-filter: blur(3px);
}

.debug-toggle label {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 241, 233, 0.8);
}

.debug-toggle select {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border: 1px solid rgba(245, 241, 233, 0.25);
  border-radius: 999px;
  padding: 0.32rem 0.72rem;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.82));
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 760px;
  padding: 4.2rem 2rem 2rem;
  z-index: 2;
}

.kicker,
h1,
h2,
h3 {
  font-family: Cinzel, serif;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.kicker {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  margin: 0;
  width: max-content;
}

.hero-subtitle {
  margin: 0 0 0.65rem;
  color: rgba(245, 241, 233, 0.9);
  letter-spacing: 0.05em;
  font-size: clamp(1.05rem, 2.5vw, 1.55rem);
  font-weight: 700;
  font-family: Cinzel, serif;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6.8vw, 5rem);
  text-wrap: balance;
}

.mystery-text {
  color: rgba(245, 241, 233, 0.72);
  margin-top: 0.9rem;
  margin-bottom: 0.2rem;
  font-size: clamp(0.76rem, 1.2vw, 0.92rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.invite-whisper {
  color: rgba(245, 241, 233, 0.62);
  margin-top: 0.15rem;
  margin-bottom: 0.25rem;
  font-size: clamp(0.68rem, 1.05vw, 0.82rem);
  letter-spacing: 0.06em;
}

.countdown {
  margin: 2rem auto 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 0.85rem;
  max-width: 640px;
}

.countdown-item {
  text-align: center;
}

.countdown-value {
  font-family: Cinzel, serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #e2c27f;
  font-variant-numeric: tabular-nums;
  text-shadow:
    0 0 8px rgba(226, 194, 127, 0.35),
    0 0 14px rgba(30, 208, 231, 0.28),
    0 0 24px rgba(30, 208, 231, 0.16);
  line-height: 1.05;
}

.countdown-label {
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: rgba(245, 241, 233, 0.7);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cta {
  border: 1px solid var(--gold);
  color: var(--ink);
  background: rgba(212, 177, 106, 0.1);
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
}

.cta:hover {
  background: rgba(212, 177, 106, 0.2);
}

.ghost {
  border: 1px solid rgba(245, 241, 233, 0.2);
  color: var(--ink);
  background: transparent;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
}

.ambient-text {
  position: absolute;
  inset: auto 0 1.5rem 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  color: rgba(245, 241, 233, 0.24);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  z-index: 2;
}

.osa-inline {
  margin: 0.5rem auto 0;
  display: inline-block;
}

.revealed {
  max-width: 920px;
  margin: 0 auto 5rem;
  padding: 1.2rem;
}

.section-head {
  text-align: center;
  margin: 1rem 0 1.5rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.image-card {
  padding: 0.6rem;
}

.program-intro-image {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(226, 194, 127, 0.3);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.42);
  object-fit: cover;
}

.card p,
.card li {
  line-height: 1.75;
}

ul {
  padding-left: 1.15rem;
}

li + li {
  margin-top: 0.85rem;
}

strong {
  color: #e2c27f;
  font-weight: 700;
}

.hidden {
  display: none;
}

.osa-modal {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 12, 18, 0.97);
  color: var(--ink);
  width: min(94vw, 520px);
  padding: 0;
}

.osa-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.osa-form {
  display: grid;
  gap: 0.7rem;
  padding: 1.2rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(245, 241, 233, 0.2);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.65rem;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.feedback {
  min-height: 1.2em;
  color: var(--muted);
}

.upload-form {
  display: grid;
  gap: 0.7rem;
}

.dropzone {
  border: 1px dashed rgba(226, 194, 127, 0.55);
  border-radius: 12px;
  padding: 1rem;
  background: rgba(212, 177, 106, 0.06);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dropzone p {
  margin: 0.2rem 0;
}

.dropzone.dragover {
  border-color: #e2c27f;
  background: rgba(212, 177, 106, 0.14);
}

.dropzone.has-file {
  border-style: solid;
}

#photoFile {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (min-width: 1024px) {
  .hero-content {
    max-width: 920px;
  }

  .kicker {
    font-size: 1.1rem;
  }

  .mystery-text {
    font-size: 1.3rem;
  }
}

@media (max-width: 640px) {
  .countdown {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
    max-width: 320px;
  }
}
