*{box-sizing:border-box}html{color-scheme:dark;background:#130910}body{margin:0;color:#fff5f3;font:16px/1.5 "Segoe UI",Arial,sans-serif;min-height:100svh;display:flex;flex-direction:column;isolation:isolate;background:radial-gradient(ellipse at 83% 43%,#57152f66,transparent 45%),radial-gradient(ellipse at 10% 77%,#47132966,transparent 45%),linear-gradient(118deg,#130d15,#220c18 54%,#180a13);position:relative}body:before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(117deg,transparent 60%,#f15c9f08 61%,transparent 65%),linear-gradient(112deg,transparent 65%,#f76c9908 67%,transparent 70%)}header,footer,main{width:min(1120px,calc(100% - 100px));margin-inline:auto}header,footer{display:flex;align-items:center;justify-content:space-between}header{padding:23px 0;border-bottom:1px solid #ffd2e423}.brand{display:flex;align-items:center;gap:10px;font:italic bold 28px Georgia,serif;letter-spacing:-1.5px}.brandmark{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#ef97b6;color:#311020;font:26px Georgia}time,.micro,.booth-info,.eyebrow,footer{font:11px/1.4 Consolas,"Courier New",monospace;letter-spacing:.15em;text-transform:uppercase}time{color:#dfcdd3}time i{color:#bd7391;font-style:normal}main{flex:1;display:grid;align-content:center;padding:52px 0;outline:none}.layout{display:grid;grid-template-columns:1fr minmax(0,.9fr);align-items:center;gap:clamp(42px,7vw,110px)}.copy{max-width:560px}.eyebrow{color:#ff9cc3;display:flex;align-items:center;gap:11px;font-weight:bold}.eyebrow:before{content:"";height:1px;width:28px;background:#fb80b1}h1{font:normal clamp(54px,6.6vw,95px)/.95 Georgia,"Times New Roman",serif;letter-spacing:-.055em;margin:26px 0}h1 em{color:#f99bbb;font-weight:normal}.lead{color:#dfcad4;max-width:400px;margin:0 0 26px;font-size:clamp(16px,1.4vw,19px);line-height:1.57}.cta,.option,.quiet,input{font:inherit}.cta{display:inline-flex;align-items:center;justify-content:center;gap:11px;border:1px solid #ffb0cd;border-radius:999px;background:#f69abe;color:#2c0c1b;padding:15px 25px;font-weight:650;box-shadow:0 6px 34px #e732801e;text-decoration:none}.cta svg{width:20px;height:20px}.cta:hover{background:#ffbad1;transform:translateY(-2px)}button,a{cursor:pointer;touch-action:manipulation}button{transition:background .22s,transform .22s}button:disabled{cursor:default;opacity:.65}.quiet{background:none;border:0;color:#efc1d2;text-decoration:underline;text-underline-offset:4px;padding:10px}.note{color:#bd9faa;font-size:13px;margin:14px 0 0}.booth{position:relative;isolation:isolate;margin:0 auto;width:min(100%,385px);transform:rotate(3deg);background:#e9deda;color:#351727;padding:11px 11px 0;box-shadow:0 28px 60px #0007}.booth:before{content:"";position:absolute;inset:6px -10px -8px 8px;border:1px solid #e296b56b;z-index:-1;pointer-events:none}.finder{position:relative;aspect-ratio:4/4.55;overflow:hidden;background:#220c19}.finder>img,.finder video{height:100%;width:100%;object-fit:cover;display:block}.finder video{position:absolute;inset:0;transform:scaleX(-1)}.finder video[hidden]{display:none}.corners{position:absolute;inset:16px;background:linear-gradient(white,white) left top/15px 1px,linear-gradient(white,white) left top/1px 15px,linear-gradient(white,white) right top/15px 1px,linear-gradient(white,white) right top/1px 15px,linear-gradient(white,white) left bottom/15px 1px,linear-gradient(white,white) left bottom/1px 15px,linear-gradient(white,white) right bottom/15px 1px,linear-gradient(white,white) right bottom/1px 15px;background-repeat:no-repeat;opacity:.7;pointer-events:none}.booth-info{display:flex;justify-content:space-between;align-items:center;padding:13px 4px 14px;font-size:10px;font-weight:bold}.spark{position:absolute;top:3%;right:-28px;color:#ffb8d0;font:60px/1 Georgia;text-shadow:0 0 25px #ff68a4;pointer-events:none}.photo{display:block;width:100%;max-height:53svh;object-fit:contain;border-radius:5px}.scene-enter{animation:enter .58s cubic-bezier(.2,.75,.25,1) both}@keyframes enter{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}footer{border-top:1px solid #ffd2e423;color:#b497a4;gap:15px;font-size:9px;padding:18px 0;letter-spacing:.13em}.star{margin-left:auto;color:#ee9bbd;font-size:19px}.bars{width:42px;height:15px;background:repeating-linear-gradient(90deg,#ba98a7 0 1px,transparent 1px 3px,#ba98a7 3px 6px,transparent 6px 8px)}.choices,form{display:grid;gap:10px;max-width:450px}.option,input{padding:13px 18px;color:#fff2f6;background:#ffffff08;border:1px solid #ffffff38;border-radius:12px;text-align:left}.option:hover{background:#f49bc423}.choices{counter-reset:ans}.option:before{counter-increment:ans;content:"0" counter(ans);font:12px Consolas,monospace;color:#ed93b9;margin-right:14px}input{width:100%}input:read-only{border-color:#96cfb8}label{display:grid;gap:4px;font-size:13px;color:#e6c9d6}.compact h1{font-size:clamp(36px,4.8vw,68px);line-height:1.02}.heartbtn{background:none;border:0;color:#ff8dbd;font:110px/1 Georgia;text-shadow:0 0 7px #ff6ba3,0 0 34px #fe358d;animation:breathe 3.2s ease-in-out infinite}.heartbtn small{display:block;font:14px "Segoe UI",sans-serif;margin:12px 0}.giftbox{text-align:center}.envelope{position:relative;background:#efabc2;color:#5c1836;border:2px solid #ffc8da;border-radius:8px;width:min(85%,315px);aspect-ratio:1.65;box-shadow:0 12px 45px #0005;transition:transform .65s}.envelope:before{content:"";position:absolute;inset:0;background:#ffd3df;clip-path:polygon(0 0,100% 0,50% 64%);transition:transform .6s;transform-origin:top}.envelope.open:before{transform:rotateX(120deg)}.envelope span{position:relative;font:44px Georgia;color:#a12e5b}.giftbox .cta{margin-top:15px}.giftbox img{max-height:290px}#flash{position:fixed;inset:0;z-index:10;background:white;pointer-events:none;opacity:0}#reaction:not(:empty){position:fixed;inset:0;z-index:5;background:#180a14;display:grid;place-content:center;justify-items:center;gap:14px;text-align:center;font:italic 38px Georgia;color:#ffb1d0}.face{width:165px;height:157px;object-fit:cover;object-position:35% 14%;clip-path:url(#heartmask)}.scene-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ffe6ac;outline-offset:4px}@keyframes breathe{50%{text-shadow:0 0 12px #ff6ba3,0 0 48px #fe358d}}@media(min-width:1500px){main{max-height:950px;margin-block:auto}}@media(max-width:730px){header,footer,main{width:calc(100% - 40px)}header{padding:13px 0}.brand{font-size:22px}.brandmark{width:29px;height:29px;font-size:22px}time{font-size:9px}main{padding:30px 0}.layout{grid-template-columns:1fr;gap:22px}.copy{max-width:none}.entry{grid-template-areas:"head" "art" "action";gap:17px}.entry .copy{display:contents}.entry .heading{grid-area:head}.entry .actions{grid-area:action}.entry .booth{grid-area:art;width:min(65vw,250px)}.entry .finder{aspect-ratio:1.12}.entry h1{margin:12px 0 0;font-size:clamp(48px,13vw,76px)}.entry h1 br{display:none}.entry .lead{max-width:100%;margin:6px 0 13px}.entry .actions{text-align:center}.booth-info{padding:8px 3px;font-size:8px}.spark{font-size:43px;right:-20px}.eyebrow{font-size:10px}.photo{max-height:40svh}.layout:not(.entry) .art{grid-row:1}.compact h1,h1{margin:15px 0}.lead{margin-bottom:18px}.note{margin-top:9px}footer{padding:11px 0}.scene-actions{justify-content:inherit}.entry .scene-actions{justify-content:center}.finder{aspect-ratio:1}.layout:not(.entry) .booth{width:min(60vw,250px)}}@media(prefers-reduced-motion:reduce){*,*:before{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}
.paper{width:min(100%,440px);padding:22px 27px;background:#f3e9e1;color:#39272e;font:italic 19px/1.52 Georgia,serif;box-shadow:0 12px 32px #0502053d;margin-bottom:20px;border-radius:2px;animation:unfold .8s cubic-bezier(.2,.7,.3,1) both}.paper p{margin:0}.paper strong{display:block;font-weight:normal;font-size:1.14em;margin-bottom:9px}@keyframes unfold{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}.giftbox:has(a[download]) img{animation:unfold .75s ease-out both}.booth-info span{white-space:nowrap}body:has(#parcel){background:linear-gradient(95deg,#150c1af7,#1b0c1bd9),url(assets/snow.webp) center 35%/cover}
.compliment {
  margin: 0;
  padding: 14px 8px 2px;
  color: #702444;
  font: italic clamp(19px, 3vw, 26px)/1.18 Georgia, serif;
  text-align: center;
  text-wrap: balance;
}

/* Club lighting stays behind the photos and controls throughout the evening. */
.club-lights {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.club-lights::before, .club-lights::after {
  content: "";
  position: absolute;
  top: -15%;
  width: min(72vw, 840px);
  height: 145%;
  transform-origin: 50% 0;
  background: conic-gradient(from 166deg at 50% 0, transparent, #ff599814 6deg, #ffaac431 12deg, #fb58981b 17deg, transparent 29deg);
  mask-image: linear-gradient(#000 3%, #0009 53%, transparent 95%);
  animation: spotlight 14s ease-in-out infinite alternate;
}
.club-lights::before { left: -19%; }
.club-lights::after { right: -22%; animation-delay: -8s; animation-direction: alternate-reverse; }
.club-lights i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 4px;
  height: 4px;
  background: #ffe3e4;
  border-radius: 50%;
  box-shadow: 0 0 7px 2px #ff96c7a6, 0 0 20px 5px #ff598d46;
  animation: glimmer 9s var(--delay) ease-in-out infinite alternate;
}
.club-lights i:nth-child(3n+1)::after {
  content: "";
  position: absolute;
  inset: -6px;
  background: #ffd4df;
  clip-path: polygon(50% 0,57% 43%,100% 50%,57% 57%,50% 100%,43% 57%,0 50%,43% 43%);
}
@keyframes spotlight { from { transform: rotate(-11deg); } to { transform: rotate(14deg); } }
@keyframes glimmer {
  from { opacity: .24; transform: translate(0, 7px) scale(.75); }
  to { opacity: .85; transform: translate(7px, -9px) scale(1.12); }
}
.cta, .cta:hover {
  color: #380e23;
  background: linear-gradient(165deg,#ffe3eb 0%,#ffb6d2 30%,#f793b7 62%,#d87198 100%);
  border-color: #ffcedd;
  box-shadow: inset 0 1px 1px #fff9, inset 0 -2px 3px #96274f33, 0 4px 0 #741e40, 0 8px 25px #ed498638;
  transition: transform .2s ease, box-shadow .25s ease;
}
.cta svg, #next span {
  border-radius: 50%;
  background: #70163615;
  padding: 6px;
  width: 32px;
  height: 32px;
}
.cta:has(svg), #next { padding-block: 9px; }
#next span { display: inline-grid; place-content: center; }
.option {
  display: flex;
  align-items: center;
  background: linear-gradient(115deg,#512138bb,#321525cc);
  border-color: #a85a796b;
  box-shadow: inset 0 1px #ffc0d515;
}
.option:before {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #f29abb55;
  color: #ffd2e2;
}
.quiet { border-radius: 999px; border: 1px solid #b976936b; text-decoration: none; padding-inline: 16px; }
@media (hover:hover) {
  .cta:hover { box-shadow: inset 0 1px 1px #fffc, 0 4px 0 #86264c, 0 10px 35px #f1559455; }
  .option:hover, .quiet:hover { background: #5a253ebe; }
}
.cta:active, .option:active { transform: translateY(1px) scale(.985); }
.cta:disabled { transform: none; }
:fullscreen body { min-height: 100dvh; }
body { padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
@media (prefers-reduced-motion: reduce) {
  .club-lights i { animation: none; opacity: .4; }
  .club-lights::before, .club-lights::after { animation: none; }
}

.ruby-button {
  display: grid;
  justify-items: center;
  width: min(100%, 480px);
  margin: auto;
  padding: 0 0 14px;
  border: 0;
  border-radius: 40%;
  background: transparent;
  color: #ffe4ed;
}
.ruby-stage {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1.08;
  place-items: center;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 53%, #fa23623d, #bb195720 45%, transparent 72%);
}
.ruby {
  position: relative;
  width: 80%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px #680a2f70);
  transform-origin: 50% 57%;
  animation: ruby-pulse 3.1s ease-in-out infinite;
}
@keyframes ruby-pulse {
  0%, 50%, 100% { transform: scale(1); }
  15% { transform: scale(1.035); }
  26% { transform: scale(1.009); }
  36% { transform: scale(1.022); }
}
.orbit {
  position: absolute;
  width: 97%;
  height: 46%;
  transform: rotate(-22deg);
  pointer-events: none;
}
.orbit-front {
  height: 36%;
  transform: rotate(17deg);
  mask-image: linear-gradient(to bottom, transparent 2%, #0005 20%, black 63%);
}
.orbit i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff5e9;
  box-shadow: 0 0 6px 2px #ffa3b5, 0 0 14px 5px #ff627f66;
  offset-path: ellipse(49% 49% at 50% 50%);
  offset-rotate: 0deg;
  animation: ruby-orbit 12s linear infinite;
}
.orbit i:nth-child(2) { animation-delay: -4s; width: 3px; height: 3px; }
.orbit i:nth-child(3) { animation-delay: -8s; }
.orbit-front i { animation-duration: 16s; animation-direction: reverse; }
.orbit i:first-child::after {
  content: "";
  position: absolute;
  inset: -5px;
  background: #fff0df;
  clip-path: polygon(50% 0,57% 43%,100% 50%,57% 57%,50% 100%,43% 57%,0 50%,43% 43%);
}
@keyframes ruby-orbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.ruby-caption {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: italic clamp(20px, 2.2vw, 26px)/1.35 Georgia, serif;
}
.ruby-caption::before, .ruby-caption::after {
  content: "";
  width: 29px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f39cb7);
}
.ruby-caption::after { transform: scaleX(-1); }
@media (max-width:730px) {
  .ruby-stage { max-width: min(100%, 44svh); }
}
@media (prefers-reduced-motion:reduce) {
  .ruby, .orbit i { animation: none; }
  .orbit i:nth-child(2) { offset-distance: 36%; }
  .orbit i:nth-child(3) { offset-distance: 72%; }
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
body, time, footer, .micro, .booth-info, .eyebrow, .option::before {
  font-family: Manrope, sans-serif;
}
h1, .brand, .compliment, .ruby-caption, .paper, #reaction:not(:empty) {
  font-family: "Cormorant Garamond", serif;
}
h1, h1 em { font-weight: 550; letter-spacing: -.038em; }
.ruby-caption, .compliment, .paper { font-weight: 550; }
.tap-prompt, .gift-download span, #hint {
  font: italic 550 clamp(20px, 2.2vw, 26px)/1.25 "Cormorant Garamond", serif;
  color: #ffc2d7;
}
.tap-prompt {
  display: inline-block;
  background: transparent;
  border: 0;
  padding: 8px 0;
  text-align: inherit;
}
body:has([data-screen-tap]) { cursor: pointer; }
.gift-download { display: grid; gap: 12px; text-decoration: none; }

@font-face {
  font-family: "Great Vibes";
  src: url("assets/fonts/great-vibes-wordmark.woff2") format("woff2");
  font-display: swap;
}
header .brand {
  display: inline-grid;
  gap: 0;
  position: relative;
  padding-bottom: .14em;
  font: 400 clamp(43px, 5.2vw, 64px)/1.15 "Great Vibes", "Cormorant Garamond", serif;
  letter-spacing: 0;
}
.brand-script {
  padding: .06em .15em 0 .06em;
  color: #ffe0ce;
  background: linear-gradient(105deg,#ed99b0 12%,#fdd7bd 38%,#fff6df 47%,#f6bdc4 55%,#ef9ab1 80%);
  background-size: 245% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: script-light 7.5s ease-in-out infinite alternate;
}
.brand-flourish {
  position: absolute;
  bottom: 0;
  left: 4%;
  width: 91%;
  height: .31em;
  overflow: visible;
  stroke: #ffcfdb;
  filter: drop-shadow(0 0 1px #ff498e) drop-shadow(0 1px 3px #ff398c);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-dasharray: 220;
  animation: ink-flourish 1.5s ease-out both;
}
@keyframes script-light {
  0%, 15% { background-position: 100% 50%; }
  85%, 100% { background-position: 0% 50%; }
}
@keyframes ink-flourish {
  from { stroke-dashoffset: 220; opacity: .2; }
  to { stroke-dashoffset: 0; opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-script, .brand-flourish { animation: none; }
}
@media (forced-colors: active) {
  .brand-script { -webkit-text-fill-color: CanvasText; }
  .brand-flourish { stroke: CanvasText; }
}

header .brand { isolation: isolate; }
.brand-script, .brand-ink { grid-area: 1 / 1; }
.brand-script {
  position: relative;
  z-index: 1;
  -webkit-text-stroke: .33px #ffe7dc;
  background-image: linear-gradient(105deg,#ee779e 5%,#ffcdc1 24%,#ffefcc 39%,#fffaf5 48%,#ffb4cc 57%,#efa4b5 78%);
}
.brand-ink {
  pointer-events: none;
  padding: .06em .15em 0 .06em;
  transform: translateY(.8px);
  color: #a11755;
  -webkit-text-stroke: 2px #a62c62;
  text-shadow: 0 1px 0 #580d2f, 0 0 3px #ff5d9c, 0 0 8px #ff338bba, 0 0 19px #e9257566;
}
.brand-glints {
  pointer-events: none;
  position: absolute;
  z-index: 2;
  inset: 0;
}
.brand-glints i {
  position: absolute;
  width: .25em;
  aspect-ratio: 1;
  left: 14%;
  top: 20%;
  filter: drop-shadow(0 0 3px #ff83b3);
  animation: neon-glint 5.8s ease-in-out infinite;
}
.brand-glints i::before {
  content: "";
  display: block;
  height: 100%;
  background: #fff1da;
  clip-path: polygon(50% 0,57% 41%,100% 50%,57% 57%,50% 100%,43% 57%,0 50%,43% 41%);
}
.brand-glints i:nth-child(2) { left: 62%; top: 14%; width: .18em; animation-delay: -2s; }
.brand-glints i:nth-child(3) { left: 75%; top: 86%; width: .16em; animation-delay: -4s; }
@keyframes neon-glint {
  0%, 65%, 100% { opacity: .17; transform: scale(.56); }
  28% { opacity: .98; transform: scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-glints i { animation: none; opacity: .7; }
}
@media (forced-colors: active) {
  .brand-ink, .brand-glints { display: none; }
  .brand-script { -webkit-text-stroke: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .booth,
  .art > .photo:not([src="assets/rebus.webp"]) {
    transform-origin: 50% 12%;
    animation: photo-sway 7.8s ease-in-out infinite;
  }
  .booth { animation-duration: 8.6s; }
  .booth:has(video:not([hidden])) { animation-play-state: paused; }
}
@keyframes photo-sway {
  0%, 100% { rotate: -.72deg; }
  50% { rotate: .72deg; }
}

.entry .heading { text-align: center; }
.entry .heading .eyebrow { justify-content: center; }
.entry .heading .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: #fb80b1;
}
@media (min-width: 731px) {
  .entry {
    grid-template-areas: "head head" "action art";
    row-gap: 24px;
  }
  .entry .copy { display: contents; }
  .entry .heading { grid-area: head; }
  .entry .actions { grid-area: action; justify-self: center; }
  .entry .booth { grid-area: art; }
  .entry h1 { margin: 14px 0 0; }
  .entry h1 br { display: none; }
}

html:fullscreen { overflow-y: auto; }
#scene form input { font-size: max(16px, 1em); }
@media (pointer: coarse) {
  body:has(#scene input:focus)::after {
    content: "";
    flex: none;
    height: max(22svh, var(--keyboard-cover, 0px));
  }
}

.club-lights { isolation: isolate; opacity: .46; }
.club-interior {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #10071284, #190c1b50 60%, #13071633),
              linear-gradient(0deg, #160a14aa, transparent 27%, #1c0b1d22 85%, #13091244),
              url("assets/dancefloor.webp") 56% 50% / cover no-repeat;
  opacity: .78;
  transition: opacity 1s ease;
}
.mirror-spots {
  position: absolute;
  width: clamp(210px, 37vw, 680px);
  height: 47%;
  top: 12%;
  right: -4%;
  opacity: .36;
  background-image: radial-gradient(ellipse 3px 5px at 9px 7px, #ffddbc 8%, #ee9fc477 45%, transparent),
                    radial-gradient(ellipse 3px 4px at 21px 20px, #e99ce0aa 6%, transparent);
  background-size: 31px 26px, 39px 37px;
  mask-image: radial-gradient(ellipse at 52% 40%, black, transparent 66%);
  animation: mirror-drift 13s ease-in-out infinite alternate;
}
@keyframes mirror-drift {
  from { transform: translate3d(-4%, -2%, 0) skewY(-16deg) rotate(-7deg); }
  to { transform: translate3d(4%, 7%, 0) skewY(-7deg) rotate(2deg); }
}
.level-meter {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 19px;
  width: 39px;
  color: #ed95b5;
}
.level-meter b {
  flex: 1;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(#ffd6bc, currentColor 55%, #ad3a6b);
  transform-origin: bottom;
  animation: club-level 1.9s ease-in-out infinite alternate;
}
.level-meter b:nth-child(2n) { animation-delay: -.8s; animation-duration: 1.55s; }
.level-meter b:nth-child(3n) { animation-delay: -1.3s; animation-direction: alternate-reverse; }
.level-meter b:nth-child(4n+1) { height: 70%; animation-delay: -.4s; }
@keyframes club-level { from { transform: scaleY(.25); } to { transform: scaleY(.96); } }
body:has(.ruby-stage) .club-interior { opacity: .96; }
body:has(.ruby-stage) .club-lights::before,
body:has(.ruby-stage) .club-lights::after {
  background: conic-gradient(from 164deg at 50% 0, transparent, #ed58a938 8deg, #ffb8ce49 13deg, #e45cbe20 19deg, transparent 30deg);
}
body:has(.choices, #scene form, .paper) .club-interior { opacity: .4; }
body:has(.choices, #scene form, .paper) .mirror-spots { opacity: .14; }
body:has(#scene input:focus) .mirror-spots,
body:has(#scene input:focus) .level-meter b { animation-play-state: paused; }
body:has(#parcel) .club-interior, body:has(#parcel) .mirror-spots { opacity: 0; }
@media (max-width: 730px) {
  .club-interior { background-position: center, center, 77% center; }
}
@media (prefers-reduced-motion: reduce) {
  .mirror-spots, .level-meter b { animation: none; }
  .level-meter b:nth-child(2n) { transform: scaleY(.54); }
}
#music-toggle {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin-block: -8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
}
#music-toggle[aria-pressed="false"] .level-meter b {
  animation-play-state: paused;
  opacity: .52;
}

/* Match the document behind the mobile browser chrome to the reaction screen. */
html:has(#reaction:not(:empty)),
body:has(#reaction:not(:empty)) {
  background: #180a14;
}
body:has(#reaction:not(:empty)) > :is(header, main, footer, .club-lights),
body:has(#reaction:not(:empty))::before {
  visibility: hidden;
}
#reaction > * { animation: enter .3s ease-out both; }
.club-diva {
  width: clamp(124px, 37vw, 178px);
  max-height: 40svh;
  object-fit: contain;
  filter: drop-shadow(0 0 16px #ea44853d);
}

header .brand {
  transform-origin: 50% -10px;
  margin-left: 4px;
}
.sign-frame {
  pointer-events: none;
  position: absolute;
  inset: 0 -7px -4px;
  z-index: -1;
  border: 1px solid #ef94baad;
  border-radius: 8px 17px 8px 17px;
  background: linear-gradient(125deg,#4b193467,#170714ce 68%,#49203990);
  box-shadow: inset 0 0 0 2px #270f20, inset 0 0 9px #eb42774d, 0 0 4px #f4458d88, 0 4px 10px #0007;
}
.sign-frame::before, .sign-frame::after {
  content: "";
  position: absolute;
  bottom: calc(100% - 3px);
  width: 3px;
  height: clamp(14px, 2.5vw, 25px);
  border-radius: 0 0 3px 3px;
  background: repeating-linear-gradient(135deg,#422939 0 2px,#cd9fae 2px 3px,#684653 3px 5px);
  box-shadow: 0 1px 2px #000b;
}
.sign-frame::before { left: 15%; }
.sign-frame::after { right: 15%; }
@media (prefers-reduced-motion: no-preference) {
  header .brand { animation: sign-swing 6.8s ease-in-out infinite alternate; }
  .brand-ink { animation: neon-current 8.4s ease-in-out infinite; }
}
@keyframes sign-swing { from { rotate: -.85deg; } to { rotate: .85deg; } }
@keyframes neon-current {
  0%, 61%, 70%, 81%, 100% { opacity: 1; }
  66% { opacity: .43; }
  76% { opacity: .72; }
}
.success-jewel {
  position: relative;
  width: clamp(142px, 43vw, 192px);
  isolation: isolate;
}
.success-jewel svg {
  position: relative;
  display: block;
  width: 100%;
  filter: drop-shadow(0 0 9px #f9509966);
}
.success-sparks { position: absolute; inset: 0; pointer-events: none; }
.success-sparks i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  color: #ffcfaa;
  transform: rotate(var(--angle)) translateY(-96px);
}
.success-sparks i::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  clip-path: polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%);
}
.success-sparks i:nth-child(even) { color: #ffa9cc; width: 5px; height: 5px; }
@media (prefers-reduced-motion: no-preference) {
  .success-sparks i { animation: answer-spark 1.25s var(--delay) ease-out 2 both; }
  .success-jewel svg { animation: portrait-beat 1.35s ease-in-out 2; }
  .heart-trace { stroke-dasharray: 1; animation: trace-answer .85s ease-out both; }
}
@keyframes portrait-beat { 42% { transform: scale(1.035); } }
@keyframes trace-answer { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes answer-spark {
  0% { opacity: 0; transform: rotate(var(--angle)) translateY(-62px) scale(.4); }
  32% { opacity: .95; }
  100% { opacity: 0; transform: rotate(var(--angle)) translateY(-118px) scale(.8); }
}

body.opening {
  min-height: 100dvh;
  background: radial-gradient(ellipse at center, #23101c 0%, #100a10 48%, #0a070b 100%);
}
.opening > :is(header, footer, .club-lights), .opening::before { display: none; }
.opening main { display: grid; place-content: center; margin: auto; text-align: center; }
.count-digit, .opening-invite {
  display: block;
  font-family: "Cormorant Garamond", serif;
  color: #ffdbdf;
  text-shadow: 0 0 24px #ed60994d;
}
.count-digit {
  font-size: clamp(112px, 22vmin, 194px);
  line-height: 1;
  animation: count-beat var(--count-beat, 1800ms) ease-in-out both;
}
.opening-invite {
  border: 0;
  padding: 16px;
  background: transparent;
  font-size: clamp(32px, 6vw, 58px);
  font-style: italic;
  line-height: 1.12;
  text-wrap: balance;
  animation: enter .85s ease-out both;
}
@keyframes count-beat {
  0% { opacity: 0; transform: scale(.96); }
  22%, 72% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.035); }
}
@media (prefers-reduced-motion: reduce) {
  .count-digit, .opening-invite { animation: none; }
}
