:root {
  --dark: #081611;
  --paper: #fff3dd;
  --edge: #bb9b635c;
  --soft-gold: #e9cc92;
  --panel: #13271e;
}
html { scroll-behavior: smooth; }
.event-page {
  display: block;
  padding: 0;
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(ellipse at 82% 36%, #1f2b19 0%, transparent 42rem),
    radial-gradient(ellipse at 2% 91%, #2b1916 0%, transparent 38rem),
    var(--dark);
}
.top-bar, .party-footer {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  padding: .63rem max(5vw, 1.1rem);
  background: #0b1813;
}
.top-bar { border-bottom: 1px solid #e6cd9830; }
.brand { display: inline-flex; align-items: center; gap: .58rem; text-decoration: none; font-weight: 700; letter-spacing: .115em; text-transform: uppercase; font-size: .87rem; }
.brand span { color: #f6d79a; font-size: 1.35rem; }
.quiet-button, .scene-action {
  border: 1px solid #e6cd986b;
  border-radius: 50rem;
  background: #17261e;
  color: var(--paper);
  min-height: 2.75rem;
  padding: .47rem .95rem;
  font-weight: 650;
  font-size: .91rem;
}
.quiet-button:hover, .scene-action:hover { background: #263a2e; }
.hero { min-height: min(43rem, 81vh); position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--edge); background: #0b1712; }
.hero-art { position: absolute; inset: 0 0 0 27%; overflow: hidden; touch-action: pan-y; }
.hero-art img, .hero-art canvas, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: 54% 34%; }
.hero-art .star-background { opacity: 0; object-position: 71% 46%; filter: brightness(.50) saturate(.83); }
.hero-art canvas { visibility: hidden; }
.hero-art[data-mode="live"] canvas { visibility: visible; }
.hero-art[data-mode="live"] .star-still { opacity: 0; }
.hero-art[data-mode="live"] .star-background { opacity: .93; }
.hero-shade {
  pointer-events: none;
  background:
    linear-gradient(90deg,#0b1712 7%, #0b1712f0 31%, #0b171249 58%, #0b171200 78%),
    linear-gradient(0deg,#0b1712dc 0%, transparent 23%);
}
.hero-wrap { position: relative; z-index: 1; width: min(100%, 81rem); min-height: inherit; padding: clamp(2.6rem,6.5vw,6.85rem) max(5vw,1.2rem); margin-inline: auto; display: flex; align-items: center; pointer-events: none; }
.hero-story { max-width: 39rem; pointer-events: auto; }
.event-date { color: #f7db9c; letter-spacing: .04em; font-weight: 670; font-size: .98rem; text-shadow: 0 2px 12px #000; }
.event-date span { margin-inline: .2rem; }
.hero h1 { margin: .92rem 0 1rem; font: 400 clamp(4.8rem, 8.8vw, 8.6rem)/.82 var(--serif); letter-spacing: -.073em; text-shadow: 0 5px 28px #0009; }
.hero h1 em { color: #f4d398; }
.hero-note { font-size: clamp(1rem,1.44vw,1.26rem); line-height: 1.5; max-width: 26rem; color: #f2e6d2; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.15rem; margin-top: 1.35rem; }
.gold-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.95rem; padding: .58rem 1.02rem; border: 1px solid #ffe4a6; border-radius: .55rem; background: #efd391; color: #2a2011; text-decoration: none; font-weight: 760; box-shadow: 0 0 1.9rem #fcc77032; }
.gold-button:hover { background: #ffe0a8; }
.underlink { text-underline-offset: .25em; color: var(--soft-gold); font-weight: 650; }
.scene-action { position: absolute; pointer-events: auto; right: max(5vw,1.1rem); bottom: 1.6rem; z-index: 1; background: #0d1915cf; backdrop-filter: blur(.7rem); }
.scene-action span { color: #f4d398; }
.content { width: min(calc(100% - 2.2rem), 73rem); margin: 0 auto; padding: clamp(1.2rem, 5vw, 3.35rem) 0; }
.event-grid, .companion-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(.85rem, 2vw,1.45rem); align-items: start; }
.companion-grid { margin-top: clamp(.85rem, 2vw, 1.45rem); align-items: stretch; }
.party-card { min-width: 0; position: relative; overflow: hidden; padding: clamp(1.3rem, 3vw, 2.25rem); border-radius: 1.04rem; border: 1px solid var(--edge); background: radial-gradient(ellipse at right top,#23372b80,transparent 70%),var(--panel); box-shadow: 0 12px 30px #02080550; scroll-margin-top: 1rem; }
.section-label { color: var(--soft-gold); text-transform: uppercase; letter-spacing: .13em; font-weight: 700; font-size: .83rem; margin-bottom: .5rem; }
.party-card h2 { font: 400 clamp(2.33rem,4.4vw,3.56rem)/.97 var(--serif); letter-spacing: -.065em; margin-bottom: .65rem; }
.party-card h3 { font-size: 1.05rem; }
.muted { color: var(--muted); line-height: 1.55; }
.reply-card form { margin-top: 1.2rem; }
.reply-card .choice span, .reply-card .submit, .gold-button { transition: transform .18s ease, background-color .18s ease, border-color .18s ease; }
.reply-card .choice span:active, .reply-card .submit:active, .gold-button:active { transform: scale(.97); }
.reply-card .choice input:checked + span { box-shadow: inset 0 0 1rem #f5d18e15, 0 0 .65rem #eac67b19; }
.list-opt-in { display: flex; align-items: flex-start; gap: .61rem; margin-top: .95rem; color: #dce4d9; font-size: .9rem; line-height: 1.4; }
.list-opt-in input { accent-color: #f0ce86; flex: 0 0 auto; width: 1.03rem; height: 1.03rem; margin: .1rem 0 0; }
.venue-name { font-weight: 700; margin-top: 1rem; }
.plan-links { display: flex; gap: .48rem; flex-wrap: wrap; margin-top: .9rem; }
.plan-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .48rem .6rem; border: 1px solid #c9aa725b; border-radius: .55rem; color: var(--soft-gold); font-size: .91rem; font-weight: 650; text-decoration: none; background: #10251a; }
.plan-links a:hover { background: #304131; }
.weather { border-top: 1px solid var(--line); margin-top: 1.3rem; padding-top: 1.2rem; }
.weather .muted { margin: .42rem 0 .64rem; }
.guest-groups { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: .95rem 0; }
.guest-groups > div { background: #11231a; border: 1px solid var(--line); border-radius: .67rem; padding: .75rem; }
.guest-groups h3 { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.guest-groups h3 span { color: #f2d589; font-weight: 740; }
.guest-groups ul { margin: .6rem 0 0; padding: 0; list-style: none; }
.guest-groups ul:empty { display: none; }
.guest-groups li { padding: .3rem 0; overflow-wrap: anywhere; }
.photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .52rem; }
.photo-grid:not(:empty) { margin-top: .9rem; }
.photo-grid button { border: 1px solid var(--edge); padding: 0; border-radius: .48rem; overflow: hidden; background: #15251b; color: var(--paper); aspect-ratio: 1; }
.photo-grid img { display: block; width: 100%; height: 100%; object-fit: cover; }
.album-card details { margin-top: .9rem; }
.album-card summary { min-height: 2.65rem; padding: .5rem 0; font-weight: 700; color: var(--soft-gold); cursor: pointer; }
.photo-input { display: grid; gap: .55rem; }
.photo-input input { max-width: 100%; overflow: hidden; }
.album-card form { margin-top: .42rem; }
.lightbox { width: min(95%, 56rem); max-height: 94vh; color: var(--paper); background: #102019; border: 1px solid var(--edge); border-radius: .75rem; padding: .6rem; }
.lightbox::backdrop { background: #08110be0; }
.lightbox img { display: block; margin: .4rem auto; max-width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox button { display: block; margin: .4rem .25rem .25rem auto; }
.party-footer { border-top: 1px solid var(--edge); min-height: 4.4rem; color: var(--muted); }
.music-credit { flex: 0 0 100%; margin: 0; font-size: .84rem; line-height: 1.5; }
.music-credit a { color: #f7dfad; text-underline-offset: .16em; }
.toast { z-index: 3; position: fixed; inset: auto 1rem max(1rem,env(safe-area-inset-bottom)) auto; padding: .85rem 1rem; border: 1px solid var(--edge); border-radius: .6rem; background: #1e3428; color: var(--paper); max-width: calc(100% - 2rem); }
.celebration { pointer-events: none; position: absolute; inset: 0; overflow: hidden; }
.celebration i { position: absolute; left: 50%; top: 62%; width: .48rem; height: .48rem; background: var(--piece-color); clip-path: polygon(50% 0,60% 42%,100% 50%,60% 58%,50% 100%,40% 58%,0 50%,40% 42%); animation: reply-star 1s ease-out both; }
@keyframes reply-star { 0% { transform: translate(0,0) rotate(0) scale(.45); opacity: 1; } 68% { opacity: 1; } 100% { transform: translate(var(--x),var(--y)) rotate(var(--spin)) scale(1.3); opacity: 0; } }
@media (max-width: 830px) {
  .hero { min-height: 37rem; }
  .hero-wrap { padding-top: 5.8rem; align-items: end; padding-bottom: 2.25rem; }
  .hero-art { inset: 0 0 0 12%; }
  .hero-art img { object-position: 52% 29%; }
  .hero-shade { background: linear-gradient(90deg,#0b1712cf 0%,#0b171274 46%,transparent 78%),linear-gradient(0deg,#0b1712 2%,#0b1712a1 27%,transparent 66%); }
  .event-grid, .companion-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 550px) {
  .hero { min-height: 37.6rem; }
  .hero-art { inset: 0 0 18% 0; }
  .hero-art img { object-position: 50% 25%; }
  .hero-shade { background: linear-gradient(0deg,#0b1712 5%,#0b1712f2 22%,#0b17126a 50%,transparent 88%),linear-gradient(90deg,#0b171259,transparent 64%); }
  .hero h1 { font-size: clamp(3.55rem, 15vw, 5.6rem); }
  .hero-wrap { padding-bottom: 1.85rem; }
  .hero-note { max-width: 19rem; }
  .scene-action { top: 1rem; bottom: auto; padding: .42rem .66rem; }
  .event-date { font-size: .92rem; }
  .hero-actions { gap: .5rem 1rem; margin-top: 1.08rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .celebration { display: none; }
  .reply-card .choice span, .reply-card .submit, .gold-button { transition: none; }
  .reply-card .choice span:active, .reply-card .submit:active, .gold-button:active { transform: none; }
}
