:root { --night: #0D0F0E; --night2: #151816; --gold: #E3C891; --gold-d: #B8995C; --cream: #F4EDE0; --pink: #FF4F8B; --pink-l: #FFD3E2; --muted: #A69F92;
  --deco: 'Italiana', 'Didot', serif; --neon: 'Monoton', cursive; --sans: 'Outfit', system-ui, sans-serif; }
html, body { margin: 0; background: var(--night); scrollbar-width: none; }
body::-webkit-scrollbar { display: none; }
html.ah-locked, html.ah-locked body { overflow: hidden; height: 100%; }
.ah { color: var(--cream); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; background: var(--night); }
.ah :where(h1, h2, p, ol, li) { margin: 0; padding: 0; }
.ah ol { list-style: none; }
.ah-mask { display: block; overflow: hidden; padding: .04em 0 .12em; }
.ah-mask > span { display: block; }
.ah-label { font: 500 11px/1 var(--sans); letter-spacing: .4em; text-transform: uppercase; color: var(--gold-d); }
.ah-orn { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 22px auto; }
.ah-orn i { width: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ah-orn i:last-child { transform: scaleX(-1); }
.ah-orn b { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

/* ------------ opening: the door */
.ah-open { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; cursor: pointer;
  -webkit-tap-highlight-color: transparent; outline: none; overflow: hidden; animation: ahBail .01s 12s forwards; }
@keyframes ahBail { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.ah-wall { position: absolute; inset: 0; background-color: #1a1412;
  background-image: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.75)),
    repeating-linear-gradient(0deg, transparent 0 26px, rgba(0,0,0,.55) 26px 28px),
    repeating-linear-gradient(90deg, #2a1f1b 0 58px, #241a17 58px 60px); }
.ah-wall::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 45% at 50% 30%, rgba(255,214,150,.18), transparent 70%), radial-gradient(120% 90% at 50% 50%, transparent 40%, rgba(0,0,0,.8)); }
.ah-lamp { position: absolute; top: 9%; left: 50%; width: 46px; height: 18px; margin-left: -23px; border-radius: 46px 46px 6px 6px; background: #2a2420; box-shadow: 0 14px 60px 24px rgba(255,200,120,.22); }
.ah-lamp::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -5px; height: 6px; border-radius: 6px; background: #ffe2a8; box-shadow: 0 0 18px 6px rgba(255,214,150,.6); }
.ah-doorway { position: relative; perspective: 1100px; }
.ah-door { position: relative; width: min(58vw, 250px); aspect-ratio: 5 / 8.4; border-radius: 6px 6px 2px 2px; transform-origin: 0% 50%; transform-style: preserve-3d;
  background: linear-gradient(90deg, #121615 0%, #1c2220 50%, #121615 100%); box-shadow: 0 0 0 8px #0b0d0c, 0 0 0 10px rgba(227,200,145,.35), 0 40px 60px -20px rgba(0,0,0,.9); }
.ah-panel { position: absolute; left: 14%; right: 14%; border: 1px solid rgba(227,200,145,.28); border-radius: 3px; box-shadow: inset 0 0 0 5px rgba(0,0,0,.25); }
.ah-panel--a { top: 30%; height: 28%; } .ah-panel--b { top: 64%; height: 28%; }
.ah-slot { position: absolute; top: 12%; left: 22%; right: 22%; height: 11%; overflow: hidden; border-radius: 2px; background: #050505; box-shadow: 0 0 0 3px #a88a52, 0 0 0 4px #5e4b28; }
.ah-eyes { display: block; width: 100%; height: 100%; }
.ah-plate { position: absolute; inset: 0; background: linear-gradient(#c9a868, #8e7139); }
.ah-plate::after { content: ""; position: absolute; left: 50%; top: 50%; width: 24%; height: 2px; margin: -1px 0 0 -12%; background: rgba(0,0,0,.35); }
.ah-knob { position: absolute; right: 11%; top: 52%; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f6dfa5, #8e7139); box-shadow: 0 2px 4px rgba(0,0,0,.6); }
.ah-door-no { position: absolute; top: 4%; left: 0; right: 0; text-align: center; font: 400 12px/1 var(--deco); letter-spacing: .3em; color: var(--gold); }
.ah-say { position: absolute; left: -40px; right: -40px; top: -44px; text-align: center; white-space: nowrap; font: 400 20px/1 var(--deco); letter-spacing: .06em; color: var(--cream); opacity: 0; }
.ah-door-line { position: relative; font: 400 clamp(20px, 5.6vw, 26px)/1.3 var(--deco); letter-spacing: .02em; color: var(--cream); text-align: center; max-width: 22ch; }
.ah-hint { position: absolute; bottom: 40px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 10px; font: 500 11px/1 var(--sans); letter-spacing: .36em; text-transform: uppercase; color: rgba(244,237,224,.65); }
.ah-hint i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 10px var(--pink); animation: ahBlink 1.6s ease-in-out infinite; }
@keyframes ahBlink { 50% { opacity: .25; } }

/* ------------ hero */
.ah-hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 90px 24px; box-sizing: border-box; text-align: center;
  background: radial-gradient(70% 50% at 50% 42%, rgba(255,79,139,.12), transparent 70%), radial-gradient(120% 80% at 50% 50%, #161a18 0%, var(--night) 70%); overflow: hidden; }
.ah-kicker { font: 500 11px/1.4 var(--sans); letter-spacing: .4em; text-transform: uppercase; color: var(--gold); }
.ah-neon { position: relative; margin: 18px 0 6px; }
.ah-neon-num { display: block; font: 400 clamp(130px, 44vw, 300px)/1 var(--neon); color: var(--pink-l);
  text-shadow: 0 0 4px #fff, 0 0 10px var(--pink), 0 0 22px var(--pink), 0 0 46px var(--pink), 0 0 90px rgba(255,79,139,.8); }
.ah-neon.is-off .ah-neon-num { color: #3a2a30; text-shadow: none; }
.ah-name { font: 400 clamp(56px, 17vw, 140px)/1 var(--deco); letter-spacing: .02em; color: var(--gold); }
.ah-hero .ah-orn { margin: 18px auto 16px; }
.ah-age-line { font: 300 clamp(18px, 5vw, 22px)/1.4 var(--sans); letter-spacing: .04em; color: var(--cream); }

/* ------------ invite */
.ah-invite { padding: clamp(100px, 16svh, 160px) 30px; display: flex; justify-content: center; text-align: center; }
.ah-invite-text { max-width: 24ch; font: 400 clamp(26px, 7.4vw, 44px)/1.35 var(--deco); letter-spacing: .01em; color: var(--cream); }

/* ------------ menu */
.ah-menu { padding: clamp(40px, 6svh, 80px) 22px clamp(110px, 16svh, 160px); display: flex; justify-content: center; }
.ah-menu-card { position: relative; width: min(100%, 460px); padding: 46px 28px 40px; box-sizing: border-box; text-align: center;
  border: 1px solid rgba(227,200,145,.45); outline: 1px solid rgba(227,200,145,.2); outline-offset: 6px;
  background: radial-gradient(100% 60% at 50% 0%, rgba(227,200,145,.08), transparent 70%); }
.ah-h2 { margin-top: 16px !important; font: 400 clamp(40px, 11vw, 64px)/1 var(--deco); color: var(--gold); }
.ah-items { margin-top: 10px !important; }
.ah-item { display: flex; align-items: baseline; gap: 10px; padding: 16px 0; text-align: left; }
.ah-item-name { font: 400 clamp(22px, 6vw, 28px)/1.2 var(--deco); color: var(--cream); }
.ah-dots { flex: 1; min-width: 20px; border-bottom: 1px dotted rgba(227,200,145,.55); transform: translateY(-5px); }
.ah-item-time { font: 500 13px/1 var(--sans); letter-spacing: .14em; color: var(--gold); white-space: nowrap; }

/* ------------ pour */
.ah-pour { position: relative; padding: clamp(80px, 12svh, 130px) 24px; display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 90svh; justify-content: center; box-sizing: border-box; }
.ah-glass { display: block; height: auto; overflow: visible; }
.ah-pglass { width: min(62vw, 300px); filter: drop-shadow(0 0 30px rgba(227,200,145,.18)); }
.ah-bubbles circle { animation: ahRise 2.8s linear infinite; transform-box: fill-box; }
.ah-bubbles circle:nth-child(2n) { animation-duration: 3.6s; animation-delay: -1.2s; }
.ah-bubbles circle:nth-child(3n) { animation-duration: 2.2s; animation-delay: -.6s; }
@keyframes ahRise { from { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } to { transform: translateY(-62px); opacity: 0; } }
.ah-pour-line { margin-top: 34px !important; max-width: 16ch; font: 400 clamp(32px, 9vw, 56px)/1.15 var(--deco); color: var(--gold); }

/* ------------ matchbook */
.ah-details { padding: clamp(80px, 12svh, 130px) 24px clamp(100px, 15svh, 150px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.ah-match-wrap { perspective: 1200px; }
.ah-match { position: relative; width: min(74vw, 320px); aspect-ratio: 3 / 4.2; }
.ah-match-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box;
  background: var(--cream); color: #1a1615; border-radius: 6px; box-shadow: 0 30px 50px -20px rgba(0,0,0,.8); }
.ah-mi-day { font: 600 12px/1 var(--sans); letter-spacing: .4em; text-transform: uppercase; color: #b13a62; padding-left: .4em; }
.ah-mi-date { font: 400 clamp(96px, 30vw, 128px)/.95 var(--deco); }
.ah-mi-month { font: 400 clamp(24px, 6.4vw, 30px)/1.1 var(--deco); }
.ah-mi-year { font: 500 13px/1 var(--sans); letter-spacing: .2em; color: #8a7a5a; vertical-align: middle; }
.ah-mi-time { margin-top: 12px !important; font: 500 12px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.ah-mi-rule { display: block; width: 40px; height: 1px; background: #b13a62; margin: 18px auto; }
.ah-mi-venue { font: 400 17px/1.4 var(--sans); max-width: 22ch; }
.ah-match-cover { position: absolute; inset: 0; transform-origin: 50% 0%; transform-style: preserve-3d; z-index: 2; }
.ah-cover-front, .ah-cover-back { position: absolute; inset: 0; border-radius: 6px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.ah-cover-front { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 22px; box-sizing: border-box; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #c43e6d 0%, #8e1f47 70%); color: var(--cream);
  box-shadow: inset 0 0 0 8px #8e1f47, inset 0 0 0 9px rgba(244,237,224,.5), 0 30px 50px -20px rgba(0,0,0,.8); }
.ah-cf-top { font: 500 11px/1 var(--sans); letter-spacing: .4em; text-transform: uppercase; color: var(--gold); }
.ah-cf-name { margin-top: 10px; font: 400 clamp(44px, 13vw, 60px)/1 var(--deco); }
.ah-cf-age { font: 400 clamp(64px, 20vw, 90px)/1 var(--neon); color: var(--pink-l); text-shadow: 0 0 10px rgba(255,79,139,.8); }
.ah-cf-strike { position: absolute; left: 0; right: 0; bottom: 0; height: 13%; background: repeating-linear-gradient(90deg, #4a3c33 0 3px, #2c231e 3px 6px); border-top: 2px solid rgba(0,0,0,.4); }
.ah-cover-back { background: #7a1a3d; transform: rotateX(180deg); box-shadow: inset 0 0 0 8px #6a1534; }
.ah-dress { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ah-dress-text { max-width: 24ch; font: 400 clamp(22px, 6vw, 28px)/1.3 var(--deco); color: var(--cream); }

/* ------------ note */
.ah-note { padding: 10px 30px clamp(110px, 16svh, 160px); display: flex; justify-content: center; text-align: center; }
.ah-note-text { max-width: 30ch; font: 300 18px/1.6 var(--sans); color: var(--muted); }

/* ------------ close */
.ah-close { position: relative; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100px 24px 120px; box-sizing: border-box; text-align: center;
  background: radial-gradient(70% 45% at 50% 38%, rgba(227,200,145,.14), transparent 70%), #0a0b0a; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.ah-cheers { display: flex; justify-content: center; gap: 0; margin-bottom: 30px; }
.ah-cl, .ah-cr { width: min(34vw, 170px); }
.ah-cl { transform: rotate(14deg) translateX(10%); transform-origin: 50% 90%; }
.ah-cr { transform: rotate(-14deg) translateX(-10%); transform-origin: 50% 90%; }
.ah-close-title { font: 400 clamp(54px, 16vw, 130px)/1 var(--deco); color: var(--gold); }
.ah-ct1 { font-size: .5em; color: var(--cream); letter-spacing: .08em; }
.ah-rsvp { margin-top: 18px !important; font: 500 12px/1.6 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--pink-l); text-shadow: 0 0 10px rgba(255,79,139,.7); }
.ah-tap { position: absolute; left: 0; right: 0; bottom: 38px; font: 500 11px/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: rgba(244,237,224,.55); }

@media (min-width: 900px) {
  .ah-details { flex-direction: row; justify-content: center; gap: 80px; }
  .ah-dress { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .ah-bubbles circle, .ah-hint i { animation: none; } }
