@font-face {
  font-family: 'Pinyon Script';
  src: url('assets/fonts/pinyon-script-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('assets/fonts/montserrat-regular-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #f1e8da;
  color: #f5f5f3;
  --lime: #c9ff5a;
  --hue: 280;
  --paper: #f1e8da;
  --ink: #705c47;
  --script: 'Pinyon Script', 'Snell Roundhand', 'Apple Chancery', cursive;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { min-height: 100svh; background: #000; }
body.is-playing { color-scheme: dark; }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 2px solid var(--lime); outline-offset: 7px; }
button:disabled { cursor: wait; }
button svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
main, .welcome, .club { position: fixed; inset: 0; }

.welcome {
  z-index: 20;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  transition: opacity 2600ms cubic-bezier(.4, 0, .2, 1), visibility 2600ms;
}
.welcome-content { position: relative; z-index: 1; width: 100%; max-width: 1100px; text-align: center; padding: 36px 24px; transform: translateY(-8px); transition: transform 2600ms cubic-bezier(.4, 0, .2, 1); }
h1 {
  margin: 0;
  font-weight: 400;
}
.welcome-eyebrow { display: block; font-family: 'Montserrat', Arial, sans-serif; font-size: clamp(12px, 1.7vw, 19px); font-weight: 400; letter-spacing: .29em; text-transform: uppercase; line-height: 1.6; margin-bottom: 18px; padding-left: .29em; }
.wedding-title { display: block; font-family: var(--script); font-size: clamp(65px, 17.5vw, 184px); font-weight: 400; letter-spacing: -.015em; line-height: 1.25; white-space: nowrap; }
.heart-divider { display: flex; align-items: center; justify-content: center; gap: 23px; margin: 22px 0 38px; }
.heart-divider span { width: 67px; height: 1px; background: #705c4775; }
.heart-divider svg { width: 23px; height: 23px; stroke: var(--ink); stroke-width: 1.35; stroke-linejoin: round; stroke-linecap: round; }
.start-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 37px;
  height: 53px;
  padding: 0 24px 0 29px;
  border: 1px solid #705c4780;
  border-radius: 999px;
  background: #ffffff15;
  color: var(--ink);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: box-shadow 200ms, transform 200ms, background 200ms;
}
.start-button:hover { background: var(--ink); color: var(--paper); box-shadow: 0 8px 30px #705c4715; transform: translateY(-2px); }
.start-button:active { transform: translateY(0) scale(.97); }
.start-button:focus-visible { outline-color: var(--ink); }
.start-button svg { width: 19px; height: 19px; stroke-width: 1.3; }
.sound-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 19px 0 0; color: #8b7966; font-family: 'Montserrat', Arial, sans-serif; font-size: 10px; letter-spacing: .04em; }
.sound-hint svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.error-message { color: #984a3b; font-size: 13px; max-width: 320px; margin: 20px auto 0; line-height: 1.5; }
.welcome-paper { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 35%, #fff9, transparent 66%), radial-gradient(ellipse at 10% 90%, #c6ad8d12, transparent 55%); }
body.is-playing .welcome { opacity: 0; visibility: hidden; pointer-events: none; }
body.is-playing .welcome-content { transform: translateY(-22px) scale(.985); }

.club { overflow: clip; isolation: isolate; opacity: 0; visibility: hidden; background: #000; transition: opacity 500ms, visibility 500ms; }
body.is-playing .club { opacity: 1; visibility: visible; }
#lights { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-credit { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; opacity: 0; color: #eee5d7; padding-bottom: 35px; will-change: opacity, transform; }
.intro-credit p { margin: 0 0 8px; font-family: 'Montserrat', Arial, sans-serif; font-size: clamp(11px, 1.1vw, 14px); letter-spacing: .13em; font-weight: 400; opacity: 0; will-change: opacity; }
.intro-credit > span { font-family: var(--script); font-size: clamp(65px, 9vw, 128px); line-height: 1.5; white-space: nowrap; opacity: 0; will-change: opacity, transform; }
.intro-credit .credit-note { margin: 0; color: #c4b8a8; font-size: clamp(9px, .85vw, 11px); letter-spacing: .08em; }
.couple-backdrop { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; will-change: opacity, transform; padding: 36px 24px 75px; }
.couple-backdrop img { display: block; width: min(74vw, 470px, 55.187svh, 496px); height: auto; aspect-ratio: 867 / 1084; border-radius: 50% 50% 2px 2px / 34% 34% 2px 2px; box-shadow: 0 0 75px #d3bb9315; user-select: none; }
.color-wash { position: absolute; inset: -25%; opacity: 0; pointer-events: none; mix-blend-mode: screen; background: conic-gradient(from 45deg at 50% 50%, #f006c7, #a900ff, #090953, #0076ff, #0adba8, #ded637, #f006c7); filter: blur(80px); will-change: transform, opacity; }
.stage-flash { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at 50% 65%, #fff8, #b6c9ff42 35%, #b676ff1a 70%, transparent); mix-blend-mode: screen; pointer-events: none; }
.faces { position: absolute; inset: 0; pointer-events: none; }
.face { position: absolute; top: 0; left: 0; width: 220px; height: auto; opacity: 0; transform-origin: center; will-change: transform, opacity; user-select: none; }
.main-face { z-index: 3; filter: drop-shadow(0 0 35px #0008); }
.ghost { z-index: 2; filter: drop-shadow(0 0 10px #f08aff); }
.vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 40%, #0005 100%); pointer-events: none; }

@media (max-width: 600px) {
  .welcome-content { padding: 24px 18px; }
  .welcome-eyebrow { font-size: 10px; margin-bottom: 19px; letter-spacing: .26em; }
  .wedding-title { font-size: clamp(65px, 18.5vw, 108px); }
  .heart-divider { margin: 20px 0 32px; gap: 19px; }
  .heart-divider span { width: 48px; }
  .heart-divider svg { width: 21px; height: 21px; }
  .start-button { height: 50px; font-size: 10px; gap: 32px; padding: 0 23px 0 26px; }
  .sound-hint { margin-top: 18px; font-size: 9px; }
  .intro-credit { padding-bottom: 25px; }
  .intro-credit p { font-size: 10px; }
  .intro-credit > span { font-size: clamp(62px, 17vw, 100px); }
  .couple-backdrop { padding: 30px 20px 85px; }
  .couple-backdrop img { width: min(82vw, 51.188svh, 424px); }
}

@media (max-height: 480px) and (min-width: 600px) {
  .welcome-content { padding: 15px 24px; transform: none; }
  .welcome-eyebrow { font-size: 11px; margin-bottom: 1px; }
  .wedding-title { font-size: 100px; line-height: 1.05; }
  .heart-divider { margin: 8px 0 16px; }
  .start-button { height: 44px; }
  .sound-hint { margin-top: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .welcome, .welcome-content, .club, .start-button { transition-duration: 150ms; }
  body.is-playing .welcome-content { transform: translateY(-8px); }
  .color-wash { filter: blur(50px); }
}
