:root {
  color-scheme: light;
  --cream: #fbebd0;
  --wine: #421616;
  --plum: #251520;
  --ink: #171117;
  --gold: #f9b94f;
  --display: "Instrument Serif", Georgia, serif;
  --condensed: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--cream); font: 400 1rem/1.55 var(--body); }
.splash-open { overflow: hidden; }
.splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--cream); opacity: 1; transition: opacity .4s ease; }
.splash.is-finished { opacity: 0; pointer-events: none; }
.splash video { display: block; width: min(92vw, 440px); max-height: 92svh; height: auto; object-fit: contain; mix-blend-mode: multiply; }
#splash-skip { position: absolute; right: clamp(1rem,4vw,3rem); bottom: clamp(1rem,4vh,2rem); min-height: 44px; padding: .5rem .7rem; border: 0; background: transparent; color: var(--wine); font-size: .85rem; }
#splash-skip span { margin-left: .4rem; }
#splash-skip:hover { color: #3c291b; }
img { display: block; width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #ffb84c; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font: 400 clamp(3.65rem, 8vw, 8rem)/.87 var(--display); letter-spacing: -.045em; }
h2 em { color: var(--gold); font-weight: 400; }
.wrap { width: min(100% - 112px, 1240px); margin-inline: auto; }
.eyebrow { font-size: .875rem; line-height: 1.35; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: .68rem 1.25rem; border: 1px solid transparent; border-radius: 4px; text-decoration: none; font-weight: 700; font-size: .94rem; line-height: 1.25; transition: background .2s, color .2s, border-color .2s; }
.skip { position: fixed; top: 1rem; left: 1rem; z-index: 9; padding: .7rem 1rem; background: var(--cream); color: var(--ink); transform: translateY(-170%); }
.skip:focus { transform: translateY(0); }

.hero { isolation: isolate; position: relative; min-height: 650px; height: min(100svh, 1100px); overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; color: #fff2d9; }
.hero-photo, .hero-shade, .motes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-photo { object-fit: cover; object-position: center 57%; animation: hero-drift 4.8s ease-out both; }
.hero-shade { background: linear-gradient(180deg, #1c0f08b8 0%, #20120dbf 22%, #27130d64 42%, transparent 64%, #1c0f0ac9 100%); }
@keyframes hero-drift { from { transform: scale(1.055); } to { transform: scale(1); } }
.motes { pointer-events: none; }
.motes i { position: absolute; width: 4px; height: 4px; left: var(--x); top: var(--y); background: #ffd687; border-radius: 50%; box-shadow: 0 0 14px 2px #fbb64e9c; opacity: 0; animation: float 4.8s var(--delay) ease-in-out both; }
.motes i:nth-child(1) { --x: 12%; --y: 75%; --delay: -4s; }.motes i:nth-child(2) { --x: 24%; --y: 48%; --delay: -1s; }.motes i:nth-child(3) { --x: 43%; --y: 85%; --delay: -3s; }.motes i:nth-child(4) { --x: 65%; --y: 67%; --delay: -2.5s; }.motes i:nth-child(5) { --x: 84%; --y: 67%; --delay: -2s; }.motes i:nth-child(6) { --x: 92%; --y: 55%; --delay: -.5s; }
@keyframes float { 35%, 65% { opacity: .6; } 100% { transform: translate(24px,-58px); opacity: 0; } }
.nav, .hero-foot { width: min(100% - 104px, 1480px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.nav { min-height: 86px; border-bottom: 1px solid #ffe8c548; }
.monogram { font: 400 2.1rem/1 var(--display); text-decoration: none; white-space: nowrap; }
.monogram span { font-style: italic; color: #ffc773; padding-inline: .1em; }
.nav-links { display: flex; align-items: center; gap: 1.85rem; font-size: .91rem; font-weight: 600; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-rsvp { border: 1px solid #f8ddada0; padding: .48rem 1rem; border-radius: 3px; }
.hero-copy { align-self: start; text-align: center; margin-top: clamp(42px, 9.9vh, 132px); margin-inline: 1rem; }
.hero-kicker { display: flex; gap: .85rem; align-items: center; justify-content: center; letter-spacing: .23em; }
.hero-kicker span { display: block; width: 29px; height: 1px; background: #f6ce9291; }
.hero h1 { font-size: clamp(4.5rem, 11vw, 11.4rem); margin-top: .18em; line-height: .84; text-shadow: 0 4px 40px #230c0b7a; }
.hero h1 em { color: #f9c77e; font-size: .77em; }
.hero-date { margin-top: 1.3rem; font-size: .93rem; font-weight: 600; letter-spacing: .06em; }
.hero-date i { display: inline-block; width: 4px; height: 4px; border-radius: 100%; background: #f9c77e; margin: 0 .52rem .2rem; }
.hero-foot { min-height: 78px; border-top: 1px solid #ffe8c548; gap: 1rem; }
.hero-foot p { font: italic 1.35rem/1 var(--display); }
.scroll-link { display: flex; align-items: center; gap: .7rem; font-size: .88rem; text-decoration: none; white-space: nowrap; }
.scroll-link i::after { content: ""; position: absolute; top: 4px; left: 4px; width: 2px; height: 4px; border-radius: 3px; background: #ffdc9c; }
.scroll-link i { position: relative; width: 12px; height: 19px; border: 1px solid #ffdc9c; border-radius: 7px; }

.gateway { position: relative; overflow: hidden; background: #d7c7a5; color: #30251a; text-align: center; }
.bus-stop-scene { container-type: inline-size; position: relative; width: min(100%,1800px); margin-inline: auto; }
.bus-stop-art { width: 100%; height: auto; }
.bus-stop-board { position: absolute; top: 29%; left: 50%; width: 62%; transform: translate(-50%,-50%); color: #30251a; }
.arch-kannada { font-size: .9cqw; line-height: 1.1; font-weight: 700; }
.bus-stop-board h2 { margin: .05em 0 .08em; font: 600 3.1cqw/1.02 var(--condensed); letter-spacing: .014em; text-transform: uppercase; white-space: nowrap; }
.arch-date { font: 700 max(.75rem,1.35cqw)/1.2 var(--condensed); letter-spacing: .025em; text-transform: uppercase; white-space: nowrap; }
.arch-date span { margin-inline: .14em; }
.bus-stop-link { position: absolute; top: 87%; left: 50%; transform: translateX(-50%); gap: .7rem; background: #254653; border: 1px solid #f9e6be94; color: #fff0d0; box-shadow: 0 4px 12px #33261544; white-space: nowrap; }
.bus-stop-link:hover { background: #17333e; }
.bus-departure { position: absolute; bottom: -2%; left: -20%; width: 140%; pointer-events: none; visibility: hidden; will-change: transform; }
.bus-departure::after { content: ""; position: absolute; bottom: 3%; left: 9%; width: 82%; height: 5%; border-radius: 50%; background: #28211c52; filter: blur(7px); z-index: -1; }
.bus-departure img { width: 100%; height: auto; filter: drop-shadow(0 6px 3px #231c1b33); }
.gateway[data-bus-ready="true"] .bus-departure { visibility: visible; }
.gateway.is-departing .bus-departure { animation: bus-pull-away 3.8s .45s cubic-bezier(.45,0,.75,.62) both; }
@keyframes bus-pull-away { from { transform: translateX(0); } to { transform: translateX(125%); } }
.bus-replay { position: absolute; bottom: .5rem; right: .65rem; padding: .45rem .6rem; min-height: 40px; font-size: .72rem; border: 0; background: #e9dbbece; color: #353c35; }
.bus-replay:hover { background: #fff0d0; }

@media (max-width: 680px) {
  .bus-stop-scene { width: 620px; max-width: none; left: 50%; margin-inline: 0; transform: translateX(-50%); }
  .bus-stop-board .arch-kannada { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .bus-stop-link { min-height: 42px; padding: .55rem .8rem; font-size: .82rem; }
  .bus-replay { position: relative; bottom: auto; right: auto; margin: .25rem auto .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gateway .bus-departure { display: none; animation: none; }
}

.arcade { background: #e6ab50; color: #351c20; padding-block: 87px; background-image: radial-gradient(circle,#793b2525 1px,transparent 1.5px); background-size: 8px 8px; }
.arcade-layout { display: grid; grid-template-columns: minmax(15rem,.65fr) minmax(0,1.35fr); gap: clamp(1.8rem,5vw,5.1rem); align-items: center; }
.arcade-copy .eyebrow { color: #5d2b26; }
.arcade h2 { margin: .9rem 0 1.1rem; }
.arcade h2 em { color: #77312c; }
.arcade-copy > p:last-child { max-width: 27ch; }
.game { overflow: hidden; border: 2px solid #281821; border-radius: 8px; background: #261a26; color: #ffe9c9; box-shadow: 8px 8px 0 #763a2f9c; }
.game-head, .game-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .55rem .85rem; }
.game-head { font: 700 1.07rem/1.2 var(--condensed); text-transform: uppercase; letter-spacing: .08em; }
.game-head div { display: flex; gap: .75rem; }
#best { color: #e6a770; }
.game-screen { position: relative; overflow: hidden; background: #5b343e; touch-action: manipulation; }
.game-screen canvas { display: block; width: 100%; min-height: 168px; height: auto; object-fit: fill; image-rendering: pixelated; }
.game-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .6rem; background: #231422a8; }
.game-overlay p { font: 800 clamp(1.8rem,4vw,3.6rem)/.98 var(--condensed); text-shadow: 0 2px #2d1928; text-transform: uppercase; }
.game-btn { background: #f9b94f; color: #2b1820; }
.game-btn:hover { background: #ffda8c; }
.game-foot { font-size: .875rem; }
.game-foot button { min-width: 4.1rem; padding: .25rem .42rem; border: 1px solid #d8a8878c; border-radius: 3px; color: #ffe9c9; background: transparent; }
.game-foot button:disabled { opacity: .5; cursor: default; }

.rsvp { background: #f1d5a4; padding: 93px 0; color: #451c1d; }
.invite { max-width: 1060px; margin-inline: auto; display: grid; grid-template-columns: 1.55fr 1fr; background: #f9e8c5; border: 2px solid #923c32; outline: 1px solid #923c32; outline-offset: 6px; box-shadow: 0 26px 65px #864b3440; }
.invite-main { padding: clamp(2rem,5vw,4.8rem); }
.invite .eyebrow { color: #87382a; }
.invite h2 { margin: .85rem 0 1rem; font-size: clamp(3.3rem,6vw,5.3rem); }
.invite h2 em { color: #9a4036; }
.rsvp-btn { background: #702b2c; color: #ffeed2; margin-top: 1.5rem; }
.rsvp-btn:hover { background: #4e1f22; }
.invite-date { align-self: start; position: sticky; top: 2rem; text-align: center; border-left: 1px dashed #aa6380aa; display: grid; place-content: center; padding: 2.2rem 1.25rem; justify-items: center; }
.invite-stamp { border: 1px solid #943e33; outline: 1px dashed #943e33; outline-offset: 4px; display: grid; grid-auto-flow: column; align-items: center; place-content: center; width: 80px; height: 73px; margin: 0 0 1.45rem; font: 2.15rem/1 var(--display); transform: rotate(-9deg); }
.invite-stamp span { font-style: italic; color: #963f32; }
.big-date { font: 400 clamp(3rem,6.6vw,6rem)/.95 var(--display); margin: .3rem 0 .65rem; white-space: nowrap; }
.big-date em { color: #9d4432; }

.music { background: #252f26; padding: 78px 0 95px; overflow: hidden; }
.music-layout { display: grid; gap: clamp(2.5rem,9vw,8rem); grid-template-columns: 1fr .85fr; align-items: center; }
.music-copy .eyebrow { color: #ffd282; }
.music-copy h2 { margin: .85rem 0 1.2rem; font-size: clamp(3.7rem,7.1vw,7.3rem); }
.music-copy > p:not(.eyebrow) { color: #e7e4c9; }
.spotify-btn { background: #d1e79a; color: #1e3022; margin: 1.2rem .55rem 0 0; }
#suggest-link { color: #eae4c7; border-color: #b9c49480; background: transparent; }
#suggest-link:hover { background: #ffffff15; }
.spotify-btn:hover { background: #ebf6cc; }
.record-art { width: 77%; position: relative; isolation: isolate; aspect-ratio: 1; max-width: 400px; margin-left: 4%; transform: rotate(-6deg); }
.record-art img { height: 100%; object-fit: cover; border: 1px solid #e0c093; box-shadow: 7px 12px 38px #0d1819a0; }
.record { position: absolute; z-index: -1; top: 4%; left: 39%; width: 92%; height: 92%; border-radius: 50%; border: 2px solid #424239; background: repeating-radial-gradient(circle,#242323 0 2px,#343433 2px 3px,#161717 3px 5px); display: grid; place-items: center; box-shadow: 2px 8px 29px #111915af; }
.record i { display: block; width: 31%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle,#1c1c17 0 7%,#fbc168 8% 31%,#a94a2e 32% 65%,#fbc168 66%); }
.footer { background: #171c18; color: #ead5b6; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 86px; font-size: .875rem; }
.footer-inner > a:last-child { text-underline-offset: 4px; white-space: nowrap; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 68px); }
  .nav,.hero-foot { width: calc(100% - 68px); }
  .arcade-layout { grid-template-columns: minmax(12rem,.7fr) minmax(0,1.3fr); }
}
@media (max-width: 680px) {
  .wrap, .nav,.hero-foot { width: calc(100% - 36px); }
  .nav { min-height: 65px; }.nav-links { gap: .95rem; }.monogram { font-size: 1.82rem; }
  .hero { min-height: 590px; height: min(94svh,850px); }.hero-photo { object-position: 52% 58%; }
  .hero-copy { margin-top: clamp(62px, 12vh, 110px); }.hero h1 { font-size: clamp(3.55rem, 13.6vw, 6.5rem); }
  .hero-kicker { font-size: .8rem; }.hero-date { margin-top: 1rem; }.hero-foot { min-height: 68px; }.hero-foot p { font-size: 1.12rem; }
  .arcade,.rsvp,.music { padding-block: 62px; }
  .arcade-layout { gap: 1.45rem; }.arcade-copy > p:last-child { max-width: 33ch; }.game { box-shadow: 4px 5px 0 #763a2f9c; }
  .invite { grid-template-columns: 1fr; margin-inline: .4rem; }.invite-main { padding: 2rem 1.3rem; }.invite-date { border-left: 0; border-top: 1px dashed #aa6380aa; padding: 1.5rem 1rem; }.invite-stamp { display: none; }
  .record-art { width: 67%; margin-inline: 6% auto; }.music-layout { gap: 2.7rem; }.music-copy { grid-row: 1; }
  .footer-inner { min-height: 76px; gap: .6rem; }.footer-inner p { max-width: 15ch; text-align: center; }
}
@media (max-width: 510px) {
  .arch-kannada { display: none; }
  .arch h2 { font-size: clamp(.9rem,5cqw,1.5rem); }
  .arch-date { font-size: clamp(.65rem,3.1cqw,.91rem); }
  .sign-btn { bottom: 13%; }
}
@media (max-width: 350px) {
  .nav,.hero-foot,.wrap { width: calc(100% - 26px); }.nav-links { gap: .55rem; }.nav-rsvp { padding-inline: .6rem; }
  .hero h1 { font-size: 3.35rem; }.hero-date { font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .motes { display: none; }
}

.guest-invite { margin-top: .65rem; color: #ffddb2; font-weight: 600; text-shadow: 0 2px 12px #24140c; }
.leaderboard { display: grid; gap: .55rem; border-top: 1px solid #f9bd8263; padding: .75rem .85rem 1rem; }
.leaderboard-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .15rem .85rem; }
.leaderboard h3 { font: 700 1.35rem/1 var(--condensed); }
.leaderboard p { font-size: .875rem; color: #f0d4b6; }
.leaderboard-list { margin: 0; padding-left: 1.8rem; font-variant-numeric: tabular-nums; }
.leaderboard-list li { padding: .24rem .1rem .24rem .25rem; border-bottom: 1px solid #ffffff25; }
.leaderboard-list li::marker { color: #f7ba72; font-weight: 700; }
.leaderboard-list li strong { float: right; margin-left: .3rem; color: #ffd39a; }
.leaderboard-list li span { overflow-wrap: anywhere; }
.score-feedback:empty { display: none; }
#score-retry { justify-self: start; }
.guest-entry { display: grid; gap: .45rem; }
.guest-entry label { font-weight: 700; }
.guest-entry p { font-size: .91rem; }
.guest-entry > div { display: flex; flex-wrap: wrap; gap: .5rem; }
.guest-entry input { flex: 1 1 9rem; min-width: 0; min-height: 46px; border: 1px solid #a05d48; border-radius: 4px; padding: .55rem .65rem; font: inherit; background: #fff6e8; color: #351c20; }
.guest-entry input:focus-visible { outline: 2px solid #b25d35; outline-offset: 2px; }


.game-overlay-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }

@media (max-width: 680px) {
  .arcade-layout, .music-layout { grid-template-columns: 1fr; }
  .arcade-copy h2 br { display: none; }

}

.rsvp-embedded { margin-top: 1.2rem; }
#rsvp-frame { display: block; width: 100%; border: 0; color-scheme: light; }
#rsvp-direct-link { display: inline-block; margin-top: .5rem; font-size: .8rem; color: #753f33; text-underline-offset: .2em; }
@media (max-width: 680px) {
  .invite-date { position: static; }
}
