:root {
  --black: #0b0b0b;
  --white: #ffffff;
  --accent: #b65c43;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; }

body {
  overflow: hidden;
  color: var(--black);
  background: var(--black);
  font-family: "Special Elite", Georgia, serif;
}

button { font: inherit; }

.start-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #000;
  transition: opacity .55s ease, visibility 0s .55s;
}

.start-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,.67);
  pointer-events: none;
}

.start-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .7;
  filter: saturate(.65) contrast(1.05);
}

.start-screen.open { opacity: 0; visibility: hidden; pointer-events: none; }

.start-screen button {
  position: relative;
  z-index: 2;
  min-width: 240px;
  padding: 18px 28px;
  color: var(--white);
  background: transparent;
  border: 1px solid #777;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Rye", Georgia, serif;
  font-size: 18px;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.start-screen button:hover { color: #000; background: #fff; border-color: #fff; }

.music-button {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 30;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  color: #fff;
  background: rgba(0,0,0,.65);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.music-button:not([hidden]) { display: flex; }
.music-button:hover { background: rgba(0,0,0,.82); }

main, .scene { width: 100%; height: 100%; }

.scene {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s ease, transform .45s ease, visibility 0s .45s;
}

.scene.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.bubble {
  margin-inline: auto;
  max-width: 640px;
  padding: 25px 29px;
  color: var(--black);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 16px;
  font-size: clamp(22px, 2.25vw, 34px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.02em;
  box-shadow: 0 12px 35px rgba(0,0,0,.12);
  backdrop-filter: blur(10px);
}

.next-button, .simple-button {
  margin-top: 20px;
  padding: 13px 21px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
}

.next-button { color: #fff; background: var(--accent); border: 1px solid var(--accent); }
.next-button:hover { background: #954833; border-color: #954833; }

.image-scene .background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78) contrast(.94);
}

.message { position: absolute; z-index: 2; top: 50%; left: 50%; width: min(88vw, 680px); text-align: center; transform: translate(-50%, -50%); }
.image-scene::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: rgba(18,18,18,.25); }

.reveal {
  overflow-y: auto;
  padding: 8vh 7vw;
  color: #fff;
}

.reveal-content {
  position: relative;
  z-index: 2;
  width: min(92vw, 820px);
  min-height: 84vh;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.reveal h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(29px, 3.2vw, 48px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.035em;
}

.reveal p { margin: 0; color: #d6d6d6; font-size: 13px; }

.reveal .ticket-image {
  display: block;
  width: min(100%, 720px);
  border-radius: 13px;
  box-shadow: 0 22px 55px rgba(0,0,0,.48);
}

.reveal::after { background: rgba(10,10,10,.68); }

.reveal-buttons { margin-top: 0; }
.simple-button { margin-left: 10px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.45); }
.simple-button:hover { border-color: #fff; }

.confetti { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; background: var(--color); animation: fall var(--fall) linear forwards; }
@keyframes fall { to { transform: translate3d(var(--drift), 105vh, 0) rotate(720deg); } }

@media (max-width: 760px) {
  .message { top: 50%; right: auto !important; bottom: auto; left: 50% !important; width: calc(100% - 40px); transform: translate(-50%, -50%); }
  .message .bubble { padding: 22px; font-size: clamp(21px, 6vw, 30px); }
  .image-scene::after { background: rgba(24,19,14,.3); }
  .reveal { padding: 92px 20px 50px; }
  .reveal-content { min-height: 0; align-items: center; gap: 24px; }
  .reveal h2 { font-size: 8.5vw; }
  .reveal p { margin-top: 18px; }
  .reveal-buttons { margin-top: 0; }
  .music-button { top: 15px; right: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
