/* Deck the Halls with Rosewood: downtown Raleigh at night, everyone decked out */
:root {
  --night: #070b1d;
  --night-2: #121d45;
  --ink: #050608;
  --cream: #f4f0ea;
  --paper: #fbf9f5;
  --gold: #a68e51;
  --gold-hi: #e3c47a;
  --gold-deep: #7d6a34;
  --ruby: #d6203a;
  --emerald: #1f8a4c;
  --magenta: #e2459a;
  --teal: #1fb5b0;
  --silver: #c3ccd6;
  --text: #1b1d24;
  --muted: #5b5e68;
  --script: 'Cinzel Decorative', 'Cinzel', 'Trajan Pro', Georgia, serif;
  --sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 18px/1.55 var(--sans); color: var(--text); background: var(--cream); overflow-x: hidden; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.script-h { font-family: var(--script); font-weight: 700; line-height: 1.15; letter-spacing: .01em; }
.kicker { margin: 0 0 6px; font-size: 14px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; }

/* ---------- buttons ---------- */
.btn-gold, .btn-rsvp, .float-rsvp {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 34px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 16px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; text-decoration: none;
  color: #1a1407;
  background: linear-gradient(180deg, #f6e3a8, var(--gold-hi) 45%, #b8954a);
  box-shadow: 0 0 0 1px rgba(255,255,255,.4) inset, 0 10px 26px rgba(0,0,0,.35), 0 0 22px rgba(227,196,122,.35);
  transition: transform .2s cubic-bezier(.2,1.6,.4,1), box-shadow .2s;
  position: relative; overflow: hidden;
}
.btn-gold::after, .btn-rsvp::after, .float-rsvp::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%) -160% 0 / 250% 100% no-repeat; animation: sheen 4s ease-in-out infinite 1.5s; }
@keyframes sheen { 0%, 70% { background-position: -160% 0; } 100% { background-position: 160% 0; } }
.btn-gold:hover, .btn-rsvp:hover, .float-rsvp:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset, 0 14px 30px rgba(0,0,0,.4), 0 0 34px rgba(227,196,122,.6); }
.btn-gold:active { transform: translateY(1px); }
.btn-gold[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-gold.big { min-height: 62px; font-size: 18px; }
.btn-line { min-height: 46px; padding: 0 20px; border: 1.5px solid currentColor; border-radius: 999px; background: none; cursor: pointer; font: 400 14px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: inherit; }
.btn-line.small { min-height: 38px; font-size: 12px; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: start center; overflow: hidden; background: var(--night); color: #fff; isolation: isolate; }
.hero picture { position: absolute; inset: 0; z-index: -3; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
/* night-time scrim so the invitation reads clearly over the lit Capitol (like the photo in the rough draft) */
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, rgba(5,7,18,.78) 0%, rgba(5,7,18,.55) 55%, rgba(5,7,18,0) 100%),
    linear-gradient(180deg, rgba(5,7,18,.55) 0%, rgba(5,7,18,.15) 60%, rgba(5,7,18,0) 75%); }
#snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.hero-copy { width: min(820px, 100%); padding: clamp(46px, 9vh, 96px) var(--gutter) 0; text-align: center; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.eyebrow { margin: 0; font-size: clamp(13px, 3.4vw, 17px); font-weight: 400; letter-spacing: .34em; text-transform: uppercase; line-height: 1.7; }
.title { margin: 6px 0 0; font-family: var(--script); font-weight: 700; font-size: clamp(28px, 7.6vw, 96px); line-height: 1.1; letter-spacing: .01em; white-space: nowrap; color: #fff; text-shadow: 0 0 24px rgba(255,236,190,.45), 0 4px 22px rgba(0,0,0,.6); animation: glowin 1.6s ease-out both; }
@keyframes glowin { from { opacity: 0; filter: blur(8px); letter-spacing: .06em; } to { opacity: 1; filter: none; letter-spacing: 0; } }
.with { margin: 2px 0 0; font-size: clamp(14px, 3.6vw, 20px); font-weight: 400; letter-spacing: .28em; text-transform: uppercase; }
.where { margin: 16px 0 0; font-family: var(--script); font-weight: 700; font-size: clamp(24px, 5.6vw, 42px); line-height: 1.15; color: var(--gold-hi); }
.date { margin: 6px 0 26px; font-size: clamp(13px, 3.4vw, 16px); font-weight: 700; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-hi); }
.btn-rsvp { min-height: 62px; padding: 0 54px; font-size: 20px; letter-spacing: .4em; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; width: 30px; height: 48px; margin-left: -15px; border: 2px solid rgba(255,255,255,.7); border-radius: 16px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* ---------- BLACK BAND ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 9vw, 96px) var(--gutter); background: var(--ink); color: #fff; text-align: center; }
.band > :not(.twinkles), .dj > :not(.twinkles) { position: relative; z-index: 1; }
.twinkles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.twinkles .tw { position: absolute; color: #fff; opacity: 0; filter: drop-shadow(0 0 4px rgba(255,255,255,.6)); animation: twinkle 5s ease-in-out infinite; }
.twinkles .tw.gold { color: var(--gold-hi); filter: drop-shadow(0 0 5px rgba(227,196,122,.7)); }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); } 40%, 60% { opacity: .9; transform: scale(1) rotate(25deg); } }
.box { background: rgba(5,6,8,.55); }
.band h2 { margin: 0 auto 38px; max-width: 34em; font-size: clamp(17px, 3.8vw, 26px); font-weight: 400; letter-spacing: .24em; text-transform: uppercase; }
.boxes { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 1060px; margin: 0 auto; }
.box { padding: 22px 24px 24px; text-align: left; border: 1.5px solid rgba(255,255,255,.85); transition: border-color .3s, transform .3s, box-shadow .3s; }
.box:hover { border-color: var(--gold-hi); transform: translateY(-3px); box-shadow: 0 0 30px rgba(227,196,122,.18); }
.box h3 { margin: 0 0 10px; font-size: 24px; font-weight: 400; }
.box p { margin: 0; font-size: 17px; font-weight: 300; line-height: 1.7; }
.box strong { font-weight: 700; color: var(--gold-hi); }
.box-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; }
.box-links a { font-size: 13px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); text-underline-offset: 4px; }
.box-links.center { justify-content: center; }
.box-links.center a { color: var(--emerald); }

/* ---------- TINSEL ---------- */
.tinsel { height: 96px; margin: -48px 0; position: relative; z-index: 2; background: url('/static/tinsel.svg?v=2') repeat-x center / auto 96px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); animation: shimmer 6s linear infinite; pointer-events: none; }
.tinsel.flip { transform: scaleX(-1); }
@keyframes shimmer { 0%, 100% { filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)) brightness(1); } 50% { filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)) brightness(1.18); } }

/* ---------- DECK THE CEO ---------- */
.ceo { padding: clamp(80px, 11vw, 130px) var(--gutter) clamp(64px, 9vw, 100px); text-align: center; background: var(--cream); }
.lead { margin: 0 auto 4px; max-width: 34em; font-size: clamp(18px, 4.4vw, 24px); font-weight: 400; }
.ceo .script-h, .stockings .script-h { margin: 6px 0 0; font-size: clamp(34px, 7vw, 66px); color: var(--ruby); }
.sub { margin: 0 auto 30px; max-width: 32em; color: var(--muted); }
.sub.big { font-size: clamp(20px, 4.6vw, 26px); color: inherit; }
.dressup { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; max-width: 1080px; margin: 0 auto; }
.dressup > * { min-width: 0; } /* let the tab row scroll instead of widening the page on phones */
.doll-wrap { position: relative; }
.doll { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin: 30px auto 0; }
.doll::before { content: ''; position: absolute; inset: 6% 6% 0; border-radius: 50% 50% 8px 8px; background: radial-gradient(ellipse at 50% 60%, #fff 0%, #f1e6d2 60%, transparent 72%); }
.doll img, .doll .outfits { position: absolute; inset: 0; width: 100%; height: 100%; }
.doll .outfits { overflow: visible; }
.doll.poof { animation: poof .45s ease; }
@keyframes poof { 30% { transform: scale(1.035) rotate(-1deg); } 60% { transform: scale(.99) rotate(.5deg); } }
.outfits .bulbs > * { animation: blink 1.1s ease-in-out infinite alternate; }
.outfits .bulbs > :nth-child(2n) { animation-delay: -.5s; }
.outfits .bulbs > :nth-child(3n) { animation-delay: -.8s; }
.outfits .sparkles > * { animation: blink .9s ease-in-out infinite alternate; }
.outfits .sparkles > :nth-child(odd) { animation-delay: -.45s; }
.outfits .star-glow, .outfits .nose-glow { animation: pulse 1.4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes blink { from { opacity: .35; } to { opacity: 1; } }
@keyframes pulse { from { opacity: .5; transform: scale(.85); } to { opacity: 1; transform: scale(1.1); } }
.meter { max-width: 360px; margin: 10px auto 0; }
.meter-label { margin: 0 0 6px; font-size: 15px; letter-spacing: .06em; }
.meter-label strong { color: var(--ruby); }
.meter-bar { height: 12px; border-radius: 999px; background: #e3ddd2; overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.15); }
.meter-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: repeating-linear-gradient(-45deg, var(--ruby) 0 10px, #fff 10px 20px); transition: width .5s cubic-bezier(.2,1.4,.4,1); animation: candy 1s linear infinite; }
@keyframes candy { to { background-position: 28px 0; } }

.closet { padding: 22px; border-radius: 22px; background: var(--paper); box-shadow: 0 18px 40px rgba(40,30,10,.12), 0 0 0 1px rgba(166,142,81,.25); }
.closet-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.closet-tabs button { flex: 1 0 auto; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font: 400 14px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.closet-tabs button[aria-selected=true] { background: var(--text); color: #fff; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 16px 0 18px; min-height: 120px; }
.chip { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 92px; padding: 10px 8px; border: 2px solid #e6dfd2; border-radius: 16px; background: #fff; cursor: pointer; font: 400 15px var(--sans); color: var(--text); transition: transform .18s cubic-bezier(.2,1.6,.4,1), border-color .2s, box-shadow .2s; }
.chip .ico { font-size: 28px; line-height: 1; }
.chip:hover { transform: translateY(-2px); border-color: var(--gold); }
.chip[aria-pressed=true] { border-color: var(--ruby); box-shadow: 0 0 0 3px rgba(214,32,58,.18); transform: rotate(-1.5deg); }
.chip[aria-pressed=true]::after { content: '✓'; position: absolute; top: 6px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--ruby); color: #fff; font-size: 12px; line-height: 20px; }
.closet-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.closet-actions .btn-line { color: var(--text); }
.burst { position: absolute; z-index: 5; width: 26px; height: 26px; color: var(--gold-hi); pointer-events: none; animation: burst .7s ease-out forwards; }
@keyframes burst { from { opacity: 1; transform: translate(0,0) scale(.4) rotate(0); } to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(120deg); } }

/* ---------- DJ BOOTH ---------- */
.dj { isolation: isolate; position: relative; padding: clamp(80px, 11vw, 130px) var(--gutter) clamp(80px, 10vw, 120px); color: #fff; text-align: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, #3a1450 0%, #120a2a 45%, var(--ink) 80%); }
.dj-copy { position: relative; z-index: 2; }
.dj .kicker { color: var(--gold-hi); }
.dj h2 { margin: 0 auto 26px; max-width: 18em; font-size: clamp(26px, 5.6vw, 44px); font-weight: 400; line-height: 1.25; }
.dj h2 .script-h { display: block; margin-bottom: 6px; font-size: 1.35em; color: var(--gold-hi); text-shadow: 0 0 18px rgba(227,196,122,.55); }
.needle-soon { margin: 14px 0 0; color: var(--silver); font-style: italic; }
.booth { position: relative; max-width: 860px; margin: 40px auto 0; }
.booth-svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.6)); }
.neon { font: 700 38px var(--script); fill: #ffe6f4; filter: drop-shadow(0 0 6px #ff4fa3) drop-shadow(0 0 14px #ff4fa3); }
.platter { transform-box: fill-box; transform-origin: center; }
.eq rect { fill: #3bd16b; transform-box: fill-box; transform-origin: bottom; transform: scaleY(.25); }
.eq .e2 { fill: #ffd23b; } .eq .e3 { fill: #ff7ad1; } .eq .e4 { fill: #2fb0ff; }
.cone { transform-box: fill-box; transform-origin: center; }
.booth-lights circle { opacity: .4; }
.beams { position: absolute; inset: -140px 0 auto; height: 520px; display: flex; justify-content: space-around; pointer-events: none; opacity: .25; transition: opacity .6s; }
.beams i { width: 90px; height: 520px; transform-origin: 50% 0; background: linear-gradient(180deg, rgba(255,255,255,.75), transparent 85%); clip-path: polygon(45% 0, 55% 0, 100% 100%, 0 100%); filter: blur(2px); mix-blend-mode: screen; }
.beams i:nth-child(1) { background: linear-gradient(180deg, rgba(255,79,163,.8), transparent 85%); transform: rotate(18deg); }
.beams i:nth-child(2) { background: linear-gradient(180deg, rgba(47,176,255,.8), transparent 85%); transform: rotate(-12deg); }
.beams i:nth-child(3) { background: linear-gradient(180deg, rgba(255,210,59,.8), transparent 85%); transform: rotate(4deg); }
.beams i:nth-child(4) { background: linear-gradient(180deg, rgba(59,209,107,.8), transparent 85%); transform: rotate(14deg); }
.beams i:nth-child(5) { background: linear-gradient(180deg, rgba(214,32,58,.8), transparent 85%); transform: rotate(-20deg); }
body.playing .beams { opacity: .9; }
body.playing .beams i { animation: sweep 3.2s ease-in-out infinite alternate; }
body.playing .beams i:nth-child(2n) { animation-duration: 2.6s; animation-direction: alternate-reverse; }
@keyframes sweep { from { transform: rotate(-28deg); } to { transform: rotate(28deg); } }
body.playing .platter { animation: spin 1.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
body.playing .eq rect { animation: eq .5s ease-in-out infinite alternate; }
body.playing .eq .e2 { animation-duration: .38s; } body.playing .eq .e3 { animation-duration: .62s; } body.playing .eq .e4 { animation-duration: .44s; }
@keyframes eq { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
body.playing .cone { animation: thump .48s ease-in-out infinite alternate; }
@keyframes thump { to { transform: scale(1.08); } }
body.playing .booth-lights circle { animation: chase .8s steps(2) infinite; }
body.playing .booth-lights circle:nth-child(2n) { animation-delay: -.4s; }
@keyframes chase { 0% { opacity: .25; } 50% { opacity: 1; } }
body.playing .xfade { animation: fade 2.4s ease-in-out infinite alternate; }
@keyframes fade { from { transform: translateX(-26px); } to { transform: translateX(26px); } }
.player-slot { width: min(560px, 100%); margin: 24px auto 0; }
.player-slot .frame { position: relative; aspect-ratio: 16 / 9; min-height: 200px; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 2px var(--gold), 0 20px 40px rgba(0,0,0,.5); }
.player-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-slot .btn-line { margin-top: 14px; color: #fff; }

/* ---------- RSVP over the tinsel boots ---------- */
.rsvp { position: relative; isolation: isolate; overflow: hidden; padding: clamp(90px, 10vw, 130px) var(--gutter) clamp(70px, 9vw, 110px); background: #1a1d22; }
/* soft, blurred fill so the photo never looks cropped on wide screens */
.rsvp::before { content: ''; position: absolute; inset: -40px; z-index: -2; background: url('/static/rsvp-boots.jpg?v=2') center / cover no-repeat; filter: blur(22px) brightness(.62) saturate(1.1); }
/* the photo itself: whole boots visible, edges fading into the blur */
.rsvp::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; z-index: -1; aspect-ratio: 2400 / 1340; transform: translateX(-50%); background: url('/static/rsvp-boots.jpg?v=2') center / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
/* wide screens: boots on the left, form overlapping the photo's right edge */
@media (min-width: 900px) {
  .rsvp::after { left: 36%; }
  .rsvp .rsvp-card { margin: 0 max(5vw, calc(50% - 600px)) 0 auto; }
}
@media (max-width: 700px) {
  .rsvp { padding-top: 92vw; }
  .rsvp::after { top: 0; bottom: auto; left: 0; width: 100%; height: 108vw; aspect-ratio: auto; transform: none; background-image: url('/static/rsvp-boots-sm.jpg?v=2'); background-position: 50% 30%; background-size: cover; -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent 100%); mask-image: linear-gradient(180deg, #000 75%, transparent 100%); }
  .rsvp::before { background-position: center top; }
}
.rsvp-card { position: relative; width: min(430px, 100%); margin: 0 auto; padding: 30px clamp(20px, 5vw, 40px) 30px; text-align: center;
  background: rgba(251,249,245,.94); backdrop-filter: blur(6px); border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.45);
  border-top: 10px solid transparent; border-image: repeating-linear-gradient(-45deg, var(--ruby) 0 12px, #fff 12px 24px) 10; }
.rsvp-card .kicker { color: var(--gold-deep); }
.rsvp-card .script-h { margin: 4px 0 16px; font-size: 48px; color: var(--ruby); }
/* ---------- FOOTER ---------- */
.foot { position: relative; padding: 70px var(--gutter) calc(44px + env(safe-area-inset-bottom, 0px)); text-align: center; background: var(--ink); color: #cfd3dd; }
.foot .tinsel { position: absolute; left: 0; right: 0; top: 0; margin: -48px 0 0; }
.foot-logo { display: block; width: 200px; margin: 14px auto 10px; }
.foot p { margin: 4px 0; font-size: 16px; }
.mail { font-weight: 700; word-break: break-word; }

/* ---------- FLOATING RSVP ---------- */
.float-rsvp { position: fixed; z-index: 40; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); min-height: 52px; padding: 0 28px; font-size: 15px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* ---------- RSVP form ---------- */
form { text-align: left; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input[type=text], .field input[type=email] { width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid #ddd5c6; border-radius: 12px; background: #fff; font: 400 18px var(--sans); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(166,142,81,.2); }
.field input[aria-invalid=true] { border-color: var(--ruby); }
.tickets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ticket { position: relative; display: block; cursor: pointer; }
.field .ticket { margin: 0; text-transform: none; letter-spacing: 0; }
.ticket input { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ticket span { display: flex; align-items: center; justify-content: center; min-height: 64px; padding: 8px 12px; border: 2px solid #ddd5c6; border-radius: 16px; background: #fff; font: 700 19px var(--sans); color: var(--text); transition: all .2s cubic-bezier(.2,1.6,.4,1); }
.tickets.small .ticket span { min-height: 50px; font-size: 17px; }
.ticket:hover span { border-color: var(--gold); transform: translateY(-2px); }
.ticket input:focus-visible + span { outline: 3px solid var(--gold-hi); outline-offset: 2px; }
.ticket input:checked + span { border-color: var(--emerald); background: var(--emerald); color: #fff; transform: scale(1.03) rotate(-1deg); box-shadow: 0 8px 18px rgba(31,138,76,.3); }
.ticket.no input:checked + span { border-color: var(--ruby); background: var(--ruby); box-shadow: 0 8px 18px rgba(214,32,58,.3); transform: scale(1.03) rotate(1deg); }
.tickets.small .ticket input:checked + span { background: var(--text); border-color: var(--text); box-shadow: none; }
.err { margin: 6px 0 0; font-size: 14px; font-weight: 400; color: var(--ruby); }
.err:empty { display: none; }
.submit { width: 100%; margin-top: 6px; }
.form-status { min-height: 1.4em; margin: 12px 0 0; text-align: center; font-weight: 400; color: var(--ruby); }
.done { padding: 10px 0; }
.done-script { margin: 0; font-family: var(--script); font-weight: 700; font-size: clamp(26px, 7vw, 40px); line-height: 1.2; color: var(--ruby); }
.done-big { margin: 6px 0 14px; font-size: 22px; font-weight: 400; }
.link-btn { margin-top: 14px; padding: 8px; border: 0; background: none; cursor: pointer; font: 400 16px var(--sans); color: var(--emerald); text-decoration: underline; text-underline-offset: 4px; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,1.2,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- WIDER ---------- */
@media (min-width: 760px) {
  .boxes { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .line { grid-template-columns: repeat(10, 1fr); }
}
@media (min-width: 900px) {
  .dressup { grid-template-columns: 1.05fr 1fr; gap: 40px; }
  .closet { text-align: left; }
  .closet-actions { justify-content: flex-start; }
}
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; gap: 0; } }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .twinkles .tw { opacity: .35; transform: none; }
}

/* ---------- Deck the CEO: pick his look ---------- */
.stage { position: relative; width: min(100%, 500px); aspect-ratio: 1; margin: 20px auto 0; border-radius: 26px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(166,142,81,.3), 0 24px 50px rgba(40,30,10,.16); }
.stage::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 8px #fff, inset 0 0 0 10px rgba(166,142,81,.35); }
.stage img, .stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage img { animation: look-in .45s cubic-bezier(.2,1.3,.4,1); }
.stage.poof img, .stage.poof video { animation: look-in .45s cubic-bezier(.2,1.3,.4,1); }
@keyframes look-in { from { opacity: .3; transform: scale(.96); } }
.look-name { position: absolute; z-index: 3; left: 50%; bottom: 18px; margin: 0; padding: 6px 18px; transform: translateX(-50%); white-space: nowrap; border-radius: 999px; background: rgba(27,29,36,.82); color: #fff; font-size: 15px; font-weight: 400; letter-spacing: .08em; }
.closet-h { margin: 0 0 10px; font-family: var(--script); font-weight: 700; font-size: 30px; line-height: 1.2; color: var(--ruby); text-align: center; }
.chips { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.chip { min-height: 82px; }
.chip-dance { grid-column: 1 / -1; min-height: 70px; flex-direction: row; gap: 10px; color: #fff; border-color: transparent;
  background: linear-gradient(90deg, #e2459a, #d6203a, #e3c47a, #1f8a4c, #1fb5b0, #e2459a); background-size: 300% 100%; animation: disco 6s linear infinite; font-weight: 700; letter-spacing: .06em; }
.chip-dance:hover { border-color: transparent; }
.chip-dance[aria-pressed=true] { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ruby); }
@keyframes disco { to { background-position: 300% 0; } }
@media (min-width: 900px) { .closet-h { text-align: left; } }
/* Cinzel Decorative fuses letter pairs (e.g. T+H in "THE"); keep every letter separate */
body, .neon { font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0, "dlig" 0, "calt" 0; }
/* phones: keep "Celebrate Christmas with us," together on one line */
@media (max-width: 600px) { .band h2 { font-size: 15px; letter-spacing: .14em; } }
.date { margin-top: 18px; }

/* the tree-dress lady stands behind the decks, as if she's DJ Jolly */
.booth-stage { position: relative; padding-top: 30%; }
.dj-lady { position: absolute; z-index: 0; left: 50%; bottom: 38%; width: 74%; height: auto; transform: translateX(-50%); transform-origin: 50% 100%; filter: drop-shadow(0 10px 24px rgba(0,0,0,.5)); animation: groove 3.2s ease-in-out infinite; }
.booth-svg { position: relative; z-index: 1; }
@keyframes groove { 0%, 100% { transform: translateX(-50%) rotate(-1.5deg); } 50% { transform: translateX(-50%) rotate(1.5deg) translateY(-4px); } }
body.playing .dj-lady { animation: dance .55s ease-in-out infinite alternate; }
@keyframes dance { from { transform: translateX(-50%) rotate(-4deg) translateY(0); } to { transform: translateX(-50%) rotate(4deg) translateY(-12px); } }
/* the one-line title can be wider than the 820px text column; center it on the column regardless */
.title { width: max-content; max-width: none; margin-left: 50%; transform: translateX(-50%); }

/* Deck the CEO intro lines: owner-specified line breaks; wide enough that each line fits on one row on laptops */
.ceo .lead { max-width: 48em; }
.ceo .sub { max-width: 52em; }
