@font-face {
  font-family: Cinzel;
  src: url("assets/fonts/cinzel-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Cinzel;
  src: url("assets/fonts/cinzel-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-500i.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --teal: #003f43;
  --emerald: #002b30;
  --gold: #d4af37;
  --champagne: #f4de9b;
  --white: #ffffff;
  --ink: #e9f4f3;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--emerald);
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

body {
  background-image:
    linear-gradient(180deg, rgba(0, 25, 28, 0.55), rgba(0, 18, 22, 0.72)),
    url("assets/arovia-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 18vh rgba(0, 0, 0, 0.55);
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 10, 12, 0.55) 100%);
  z-index: 1;
}

#particles,
#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

#confetti {
  z-index: 4;
}

#lightBurst {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
  background: radial-gradient(circle at center, rgba(244, 222, 155, 0.55), rgba(212, 175, 55, 0.12) 28%, transparent 62%);
}

#lightBurst.flash {
  animation: burst 1.8s ease-out forwards;
}

#stage {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  width: 1920px;
  height: 1080px;
  transform: translate(-50%, -50%) scale(var(--stage-scale, 1));
  transform-origin: center center;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 80px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.7s ease, visibility 0.7s;
}

.screen.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.screen-inner {
  width: 1100px;
  max-width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.logo {
  filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.55)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
  background: radial-gradient(circle, rgba(244, 222, 155, 0.16), rgba(0, 43, 48, 0) 68%);
  padding: 12px;
}

.logo-hero {
  width: 520px;
  animation: glowIn 1.8s ease both;
}

.logo-launch {
  width: 360px;
}

.logo-reveal {
  width: 420px;
  animation: logoReveal 1.4s ease both;
}

.eyebrow,
.subtitle,
.guest-cred,
.guest-role,
.preview-kicker {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-family: Cinzel, Georgia, serif;
  font-size: 18px;
  color: var(--champagne);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.brand-title,
.guest-name,
.section-heading,
.reveal-headline,
.countdown-number {
  font-family: Cinzel, Georgia, serif;
  font-weight: 700;
}

.gold-text {
  color: #f4de9b;
  text-shadow: 0 2px 0 #8a6a18, 0 0 28px rgba(212, 175, 55, 0.55);
}

.brand-title {
  font-size: 92px;
  line-height: 0.92;
  letter-spacing: 0.12em;
}

.ceremony-title,
.section-heading {
  font-size: 34px;
  color: var(--champagne);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reveal-headline {
  font-size: 42px;
  color: var(--champagne);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tagline,
.guest-message,
.invite-line,
.celebrate-line,
.closing-line {
  font-size: 28px;
  font-style: italic;
  color: #f8f3e4;
  max-width: 720px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

.web-url {
  font-family: Cinzel, Georgia, serif;
  font-size: 32px;
  color: #f4de9b;
  letter-spacing: 0.16em;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
}

.reveal-url {
  animation: urlRise 1.4s ease 0.4s both;
}

.gold-rule {
  width: 280px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
  margin: 6px 0;
}

.gold-rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--gold);
}

.gold-rule.short {
  width: 140px;
}

.gold-btn,
.launch-btn,
.ghost-btn,
.visit-link {
  appearance: none;
  border: 1px solid var(--gold);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Cinzel, Georgia, serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gold-btn,
.visit-link {
  margin-top: 20px;
  padding: 18px 36px;
  border-radius: 999px;
  color: var(--emerald);
  background: linear-gradient(180deg, #fff1c2, var(--champagne) 35%, var(--gold) 78%, #b38b22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28), 0 0 24px rgba(212, 175, 55, 0.35);
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gold-btn:hover,
.visit-link:hover,
.launch-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.32), 0 0 32px rgba(244, 222, 155, 0.5);
}

.gold-btn:active,
.launch-btn:active {
  transform: scale(0.97);
}

.guest-layout {
  width: 1280px;
  max-width: 100%;
}

.guest-card,
.browser,
.qr-frame,
.photo-frame {
  border: 1px solid rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 0 1px rgba(244, 222, 155, 0.15), 0 18px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(212, 175, 55, 0.18);
}

.guest-card {
  display: grid;
  grid-template-columns: minmax(320px, 460px) 1fr;
  gap: 48px;
  align-items: center;
  text-align: left;
  padding: 36px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(0, 43, 48, 0.82), rgba(0, 31, 36, 0.9));
  width: 100%;
}

.photo-frame {
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(244, 222, 155, 0.18), rgba(0, 43, 48, 0.4));
}

.photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
  object-position: center top;
  border-radius: 8px;
  background: #dfe7e6;
}

.guest-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guest-name {
  font-size: 52px;
  letter-spacing: 0.04em;
}

.guest-name.compact {
  font-size: 28px;
}

.guest-role {
  letter-spacing: 0.14em;
}

.guest-message.subtle {
  opacity: 0.86;
  font-size: 22px;
}

.launch-grid {
  width: 1560px;
  height: 100%;
  display: grid;
  grid-template-columns: 580px 1fr;
  gap: 56px;
  align-items: center;
}

.launch-guest,
.launch-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.launch-photo img {
  max-height: 760px;
}

.launch-btn {
  margin: 18px 0 8px;
  min-width: 520px;
  padding: 28px 36px;
  border-radius: 18px;
  font-size: 42px;
  font-weight: 700;
  color: #1a1504;
  background: linear-gradient(180deg, #fff4c8 0%, #f4de9b 28%, #d4af37 68%, #b38920 100%);
  box-shadow:
    0 0 0 2px rgba(255, 244, 200, 0.35),
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 48px rgba(212, 175, 55, 0.55);
  animation: breathe 2.6s ease-in-out infinite;
}

.launch-btn[disabled] {
  pointer-events: none;
  opacity: 0.7;
  animation: none;
}

.invite-line {
  max-width: 520px;
  font-size: 22px;
}

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

.countdown-label {
  font-family: Cinzel, serif;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--champagne);
  margin-bottom: 12px;
}

.countdown-number {
  font-size: 280px;
  line-height: 0.85;
  color: var(--champagne);
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.75), 0 0 80px rgba(244, 222, 155, 0.35);
  animation: countPop 0.9s ease;
}

.screen-countdown.dim .atmosphere {
  opacity: 1;
}

.explore-inner,
.qr-inner {
  width: min(1080px, 100%);
}

.browser {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 24, 28, 0.88);
  text-align: center;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 14, 16, 0.9);
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d4af37;
  opacity: 0.75;
}

.address {
  flex: 1;
  margin-left: 12px;
  border-radius: 999px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--champagne);
  font-family: Cinzel, serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.browser-body {
  padding: 40px 48px 48px;
}

.preview-logo {
  width: 160px;
  margin: 0 auto 8px;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.35));
}

.preview-headline {
  font-family: Cinzel, serif;
  font-size: 36px;
  color: var(--white);
  margin: 8px 0;
}

.preview-tag {
  font-style: italic;
  color: var(--champagne);
  margin-bottom: 22px;
}

.service-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.service-row li {
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 12px;
  padding: 16px 8px;
  color: var(--champagne);
  font-family: Cinzel, serif;
  font-size: 16px;
  letter-spacing: 0.06em;
  background: rgba(0, 63, 67, 0.45);
}

.qr-frame {
  padding: 18px;
  background: #fff;
  border-radius: 16px;
}

.qr-frame img {
  display: block;
  width: 380px;
  height: auto;
}

.closing-line {
  margin-top: 8px;
}

.explore-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.explore-actions .ghost-btn {
  margin-top: 20px;
}

.hud-btn {
  position: fixed;
  z-index: 20;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(0, 25, 28, 0.55);
  color: var(--champagne);
  font-family: Cinzel, serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

.hud-btn:hover,
.hud-btn:focus {
  opacity: 1;
}

.hud-restart {
  right: auto;
  left: 18px;
}

body.launch-mode .hud-restart {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(0, 10, 12, 0.62);
}

.modal[hidden] {
  display: none;
}

.modal-card {
  width: min(420px, 90vw);
  padding: 28px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(180deg, #003f43, #002226);
  border: 1px solid var(--gold);
  color: var(--white);
}

.modal-card p {
  font-size: 1.25rem;
  margin-bottom: 18px;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.ghost-btn {
  background: transparent;
  color: var(--champagne);
  padding: 0.8em 1.3em;
  border-radius: 999px;
}

.fade-1 { animation: fadeUp 0.9s ease 0.1s both; }
.fade-2 { animation: fadeUp 0.9s ease 0.25s both; }
.fade-3 { animation: fadeUp 0.9s ease 0.4s both; }
.fade-4 { animation: fadeUp 0.9s ease 0.55s both; }
.fade-5 { animation: fadeUp 0.9s ease 0.7s both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glowIn {
  from { opacity: 0; filter: drop-shadow(0 0 0 rgba(212, 175, 55, 0)); }
  to { opacity: 1; filter: drop-shadow(0 0 22px rgba(212, 175, 55, 0.55)); }
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255, 244, 200, 0.28), 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 36px rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 0 0 2px rgba(255, 244, 200, 0.5), 0 18px 48px rgba(0, 0, 0, 0.45), 0 0 64px rgba(244, 222, 155, 0.7); }
}

@keyframes countPop {
  0% { opacity: 0; transform: scale(0.72); filter: blur(8px); }
  35% { opacity: 1; transform: scale(1.06); filter: blur(0); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes burst {
  0% { opacity: 0; transform: scale(0.7); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.4); }
}

@keyframes logoReveal {
  from { opacity: 0; transform: scale(0.86); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes urlRise {
  from { opacity: 0; letter-spacing: 0.4em; }
  to { opacity: 1; letter-spacing: 0.16em; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: opacity 0.2s ease !important;
  }

  .screen {
    transform: none;
  }
}
