/* Cinderella Ball: public site styles.
   Palette sampled from the logo: midnight navy, gold, and moonlight blue. */

:root {
  --night: #0B1127;
  --night-2: #121A3A;
  --night-3: #23305E;
  --gilt: #EFC074;
  --gilt-hover: #F6D293;
  --gilt-line: rgba(239, 192, 116, .38);
  --moon: #BACFEF;
  --porcelain: #F5F6FA;
  --tint: #ECEFF6;
  --paper: #FFFFFF;
  --ink: #10172F;
  --ink-2: #4A5170;
  --bronze: #7A5A1C;
  --line: #DCE1EC;
  --ok: #1F6B45;
  --danger: #A12B2B;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Futura", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --wrap: 1160px;
  --shadow: 0 1px 2px rgba(16, 23, 47, .06), 0 14px 34px -14px rgba(16, 23, 47, .22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--porcelain); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; font-weight: 400;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bronze); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 {
  font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em;
  letter-spacing: -.005em; font-optical-sizing: auto; text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.lede { font-size: 1.18rem; color: var(--ink-2); }
.hint { font-size: .92rem; color: var(--ink-2); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 60; background: var(--paper); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; }
:focus-visible { outline: 2px solid #D29A38; outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: .8rem 1.7rem; border-radius: 999px; border: 1px solid transparent;
  font: 500 1.02rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--gilt { background: var(--gilt); color: var(--night); }
.btn--gilt:hover { background: var(--gilt-hover); color: var(--night); }
.btn--night { background: var(--night); color: #fff; }
.btn--night:hover { background: var(--night-3); color: #fff; }
.btn--outline { border-color: var(--gilt-line); color: var(--gilt); background: transparent; }
.btn--outline:hover { background: rgba(239, 192, 116, .1); color: #fff; }
.btn--ghost { border-color: #C9D0E0; background: var(--paper); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: #8A2020; color: #fff; }
.btn--wide { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--night); color: #fff;
  padding: clamp(2.25rem, 6vw, 4.5rem) 0 clamp(7rem, 13vw, 10rem);
}
.hero__sky {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1100px 560px at 88% -12%, rgba(186, 207, 239, .13), transparent 62%),
    radial-gradient(800px 480px at -8% 112%, rgba(239, 192, 116, .08), transparent 62%);
}
.hero__sky::after {
  content: ""; position: absolute; inset: 0; opacity: .7;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 78% 12%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 92% 46%, var(--gilt), transparent),
    radial-gradient(1.1px 1.1px at 58% 8%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 6% 62%, var(--gilt), transparent),
    radial-gradient(1.1px 1.1px at 70% 78%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 33% 88%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 97% 84%, #fff, transparent);
}
.hero__grid {
  position: relative; display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center;
  gap: clamp(1rem, 3vw, 3.5rem); align-items: center;
}
.hero__logo { margin: 0; width: min(76vw, 440px); }
.hero__logo img { width: 100%; }
.hero__copy { max-width: 36rem; }
.hero__invite { font-family: var(--serif); font-style: italic; color: var(--moon); font-size: clamp(1.05rem, 2.2vw, 1.3rem); margin-bottom: .5rem; }
.hero__date { font-family: var(--serif); font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.1; margin-bottom: .2rem; text-wrap: balance; }
.hero__time { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.6vw, 1.65rem); color: var(--gilt); margin-bottom: .5rem; }
.hero__venue { color: var(--moon); letter-spacing: .02em; margin-bottom: 1.6rem; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 460px) minmax(0, 540px); justify-content: center; justify-items: start; text-align: left; }
}

.countdown { margin: 0 0 1.75rem; }
.countdown__label { font-size: .92rem; color: var(--moon); margin-bottom: .45rem; }
.countdown__units { display: inline-grid; grid-auto-flow: column; border-top: 1px solid var(--gilt-line); border-bottom: 1px solid var(--gilt-line); }
.countdown__units > div { position: relative; padding: .65rem clamp(.75rem, 2.4vw, 1.35rem); text-align: center; }
.countdown__units > div + div::before {
  content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: var(--gilt-line);
}
.countdown__num {
  display: block; min-width: 2ch; font-family: var(--serif); font-size: clamp(2rem, 5.4vw, 3.1rem); line-height: 1;
  color: var(--gilt); font-variant-numeric: lining-nums tabular-nums;
}
.countdown__units small { display: block; margin-top: .35rem; font-size: .8rem; letter-spacing: .06em; color: var(--moon); }
.countdown__done { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--gilt); }

.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
@media (min-width: 960px) { .hero__actions { justify-content: flex-start; } }

.status { margin: 1rem 0 0; font-size: .98rem; color: var(--moon); }
.status::before {
  content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .6rem; vertical-align: .08em;
  background: #7ED3A3; box-shadow: 0 0 0 4px rgba(126, 211, 163, .16);
}
.status[data-state="waitlist"]::before { background: var(--gilt); box-shadow: 0 0 0 4px rgba(239, 192, 116, .16); }
.status[data-state="closed"]::before { background: #8A93B5; box-shadow: none; }
.status--pill { display: inline-block; margin: .25rem 0 2rem; padding: .7rem 1.15rem; border-radius: 12px; background: var(--night); color: #fff; }

/* ---------- Arched photo band ---------- */
.band { position: relative; z-index: 1; margin-top: clamp(-8rem, -11vw, -5rem); }
.band__track {
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: clamp(.9rem, 2.2vw, 1.6rem);
  width: min(100% - 2.5rem, 980px); margin: 0 auto;
}
.arch {
  margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--night-2);
  border-radius: 999px 999px 18px 18px; box-shadow: var(--shadow);
  outline: 1px solid rgba(239, 192, 116, .55); outline-offset: 6px;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--raised { transform: translateY(-1.75rem); }
@media (max-width: 640px) {
  .band__track {
    grid-template-columns: repeat(3, 70%); width: 100%; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 1rem 1.25rem 1.5rem; scrollbar-width: none;
  }
  .band__track::-webkit-scrollbar { display: none; }
  .arch { scroll-snap-align: center; }
  .arch--raised { transform: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--tint { background: var(--tint); }
.section--night { background: var(--night); color: #DCE3F4; }
.section--night h2, .section--night h3 { color: #fff; }

.evening { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .evening { grid-template-columns: 1.08fr .92fr; } }
.invitation { position: relative; background: var(--paper); border-radius: 6px; padding: clamp(1.75rem, 4.5vw, 3.1rem); box-shadow: var(--shadow); }
.invitation::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(122, 90, 28, .32); border-radius: 3px; pointer-events: none; }
.facts { margin: 1.25rem 0 1.5rem; display: grid; }
.facts > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--bronze); }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts > div { grid-template-columns: 1fr; gap: .1rem; } }
.note { margin: 0; font-size: .98rem; color: var(--ink-2); }
.evening__photo { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.evening__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 899px) { .evening__photo img { aspect-ratio: 3 / 2; } }

.rules { display: grid; margin: 0 0 2.5rem; border-top: 1px solid #CDD4E4; }
@media (min-width: 760px) { .rules { grid-template-columns: 1fr 1fr; column-gap: 3.5rem; } }
.rule { padding: 1.4rem 0; border-bottom: 1px solid #CDD4E4; }
.rule h3 { margin-bottom: .3rem; }
.rule p { margin: 0; color: var(--ink-2); }

.practices { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .practices { grid-template-columns: .85fr 1.15fr; align-items: start; } }
.practice-list { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.practice { display: grid; grid-template-columns: 5.25rem 1fr; gap: 1.5rem; padding: 1.5rem; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.practice__date { padding-right: 1.25rem; border-right: 1px solid var(--line); text-align: center; }
.practice__day { display: block; font-family: var(--serif); font-size: 3.1rem; line-height: 1; color: var(--night); }
.practice__month { display: block; margin-top: .25rem; font-size: .9rem; letter-spacing: .08em; color: var(--bronze); }
.practice h3 { margin-bottom: .15rem; }
.practice p { margin: 0 0 .35rem; color: var(--ink-2); }
.practice .practice__time { color: var(--ink); font-weight: 500; }

.attire { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .attire { grid-template-columns: 1fr 1fr; } }
.attire__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.attire__photos figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 14px 14px; box-shadow: var(--shadow); }
.attire__photos figure:nth-child(2) { margin-top: 2.75rem; }
.attire__photos img { width: 100%; height: 100%; object-fit: cover; }
.attire__cols { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 560px) { .attire__cols { grid-template-columns: 1fr 1fr; } }
.stars { list-style: none; margin: 0; padding: 0; }
.stars li { position: relative; margin-bottom: .55rem; padding-left: 1.45rem; }
.stars li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: .62rem; height: .62rem; background: var(--bronze);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.section--night .stars li::before { background: var(--gilt); }

.mission { display: grid; gap: clamp(2.25rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 960px) { .mission { grid-template-columns: .95fr 1.05fr; } }
.mission__photo { margin: 0; }
.mission__photo img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px;
  outline: 1px solid rgba(239, 192, 116, .55); outline-offset: 8px;
}
.mission__photo figcaption { margin-top: 1.1rem; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gilt); }
.mission__kicker { margin-bottom: .35rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gilt); }
.mission__lede { color: var(--moon); }
.mission__statement { margin: 1.25rem 0 1.9rem; padding-left: 1.5rem; border-left: 2px solid var(--gilt); }
.mission__statement p { margin: 0 0 .95rem; font-size: 1.08rem; line-height: 1.7; color: #DCE3F4; }
.mission__statement p:first-child { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.45; color: #fff; }
.mission__statement a, .mission__url { color: var(--gilt); }
.mission__statement a:hover, .mission__url:hover { color: #fff; }
.mission__link { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.4rem; }
.mission__link .btn { text-align: center; }
@media (max-width: 520px) { .mission__link .btn { width: 100%; } .mission__link { justify-content: center; } }

.moments { padding: clamp(3rem, 7vw, 5rem) 0 0; }
.moments__grid { display: grid; gap: 1rem; }
@media (min-width: 760px) { .moments__grid { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.moments figure { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.moments img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 1.15rem 2.5rem 1.15rem 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.3rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font: 300 1.7rem/1 var(--sans); color: var(--bronze); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding-bottom: 1.2rem; color: var(--ink-2); }

.closing { background: var(--night); color: #fff; }
.closing__photo { position: relative; margin: 0; }
.closing__photo img { width: 100%; aspect-ratio: 16 / 9; max-height: 80vh; object-fit: cover; }
.closing__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11, 17, 39, 0) 50%, var(--night) 100%); }
.closing__text { position: relative; margin-top: clamp(-5rem, -7vw, -1.5rem); padding-bottom: clamp(4rem, 8vw, 6rem); text-align: center; }
.closing__text h2 { color: #fff; }
.closing__text p { color: var(--moon); }

.footer { padding: 3rem 0 7rem; background: #070B1A; color: #AEB8D6; font-size: .95rem; }
.footer__inner { display: grid; gap: .6rem; justify-items: center; text-align: center; }
.footer a { color: var(--gilt); }
@media (min-width: 900px) { .footer { padding-bottom: 3rem; } }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(11, 17, 39, .95); border-top: 1px solid var(--gilt-line);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { width: 100%; }
@media (min-width: 900px) { .sticky-cta { display: none !important; } }

/* ---------- Inner pages (register, manage, unsubscribe) ---------- */
.pagebar { background: var(--night); color: #fff; }
.pagebar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.pagebar a { display: inline-flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.25rem; }
.pagebar img { width: 44px; height: 44px; }
.pagebar__meta { font-size: .9rem; color: var(--moon); }
@media (max-width: 520px) { .pagebar__meta { display: none; } }

.page { padding: clamp(2rem, 5vw, 3.5rem) 0 5rem; }
.page h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
.panel { margin: 0 0 1.5rem; padding: clamp(1.25rem, 4vw, 2.25rem); background: var(--paper); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.panel h2 { font-size: 1.6rem; }
.notice { margin: 0 0 1.5rem; padding: .95rem 1.15rem; border: 1px solid #D5DDEE; border-radius: 12px; background: #EEF2FA; }
.notice--night { background: var(--night); border-color: var(--night); color: #fff; }
.notice--warn { background: #FFF7E6; border-color: #F0D6A0; color: #5E4411; }
.notice--error { background: #FDEEEE; border-color: #F1C7C7; color: #7F1D1D; }
.notice--ok { background: #EAF6EF; border-color: #BFE3CD; color: #1E4D35; }

.steps { display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; font-size: .92rem; color: var(--ink-2); }
.steps li { display: flex; align-items: center; gap: .45rem; }
.steps li + li::before { content: ""; width: 1.4rem; height: 1px; margin-right: .3rem; background: #C9D0E0; }
.steps span { display: inline-grid; place-items: center; width: 1.65rem; height: 1.65rem; border: 1px solid #C9D0E0; border-radius: 50%; font-size: .85rem; }
.steps .is-current { color: var(--ink); font-weight: 500; }
.steps .is-current span { background: var(--night); border-color: var(--night); color: #fff; }
.steps .is-done span { background: var(--gilt); border-color: var(--gilt); color: var(--night); }
@media (max-width: 420px) { .steps { gap: .4rem .35rem; font-size: .88rem; } .steps li + li::before { width: .7rem; margin-right: .15rem; } }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.legend { display: block; margin-bottom: .55rem; font-weight: 500; }
legend.legend { float: left; width: 100%; padding: 0; }
legend.legend + * { clear: both; }
.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.field > label { font-weight: 500; font-size: .98rem; }
.field input:not([type="radio"]):not([type="checkbox"]), .field textarea, .field select {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1px solid #C3CADC; border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--night); outline: 3px solid rgba(11, 17, 39, .12); outline-offset: 0; }
.field.has-error input:not([type="radio"]):not([type="checkbox"]) { border-color: var(--danger); }
.error, .error-text { margin: .2rem 0 0; font-size: .92rem; color: var(--danger); }
.error:empty, .error-text:empty { display: none; }
.check { display: flex; align-items: flex-start; gap: .75rem; padding: .5rem 0; cursor: pointer; line-height: 1.45; }
.check input { flex: none; width: 1.3rem; height: 1.3rem; margin: .1rem 0 0; accent-color: var(--night); }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.choice { position: relative; display: block; }
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
  min-height: 54px; padding: .6rem .8rem; border: 1px solid #C3CADC; border-radius: 12px;
  background: #fff; text-align: center; font-weight: 500; line-height: 1.25; cursor: pointer;
}
.choice small { font-weight: 400; font-size: .82rem; opacity: .8; }
.choice input:checked + span { background: var(--night); border-color: var(--night); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid #D29A38; outline-offset: 2px; }
.choice input:disabled + span { opacity: .45; cursor: not-allowed; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.person { margin: 0 0 1.25rem; padding: clamp(1.1rem, 3.5vw, 1.75rem); background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.person h2 { font-size: 1.7rem; margin-bottom: 1rem; }
.person h2::before {
  content: ""; display: inline-block; width: .7rem; height: .7rem; margin-right: .6rem; vertical-align: .2em; background: var(--gilt);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}
.grid-2 { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.guardian { margin: .5rem 0 1rem; padding: 1.1rem 1.2rem; border-left: 3px solid var(--gilt); border-radius: 0 12px 12px 0; background: #FFFAF0; }
.guardian h3 { font-size: 1.25rem; margin-bottom: .2rem; }
.linkish { padding: 0; border: 0; background: none; color: var(--bronze); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: .25rem 0 1rem; }
@media (min-width: 640px) { .amounts { grid-template-columns: repeat(6, 1fr); } }
.amounts .choice span { min-height: 66px; font-family: var(--serif); font-size: 1.3rem; }
.amounts .choice small { font-family: var(--sans); font-size: .72rem; letter-spacing: .02em; }
.custom-amount { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.custom-amount input { max-width: 9rem; }
.total { font-size: 1.1rem; }
.total strong { font-family: var(--serif); font-size: 1.5rem; }
.hold { display: block; margin: 0 0 1rem; padding: .7rem 1rem; border-radius: 10px; background: #FFF7E6; color: #5E4411; font-size: .95rem; }
.hold strong { font-variant-numeric: tabular-nums; color: var(--ink); }
.pay-buttons { display: grid; gap: .75rem; max-width: 440px; margin: 1.25rem 0 .75rem; }
.summary-list { margin: 0 0 1.25rem; padding: 0; list-style: none; }
.summary-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.summary-list li span:last-child { color: var(--ink-2); }

.result { text-align: center; padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 5vw, 3rem); }
.result h1 { margin-bottom: .75rem; }
.result .star { width: 42px; height: 42px; margin: 0 auto 1rem; color: #D29A38; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }

dialog { max-width: min(640px, 92vw); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
dialog::backdrop { background: rgba(11, 17, 39, .62); }
.dialog__body { max-height: 65vh; overflow: auto; padding: 1.5rem 1.5rem 1rem; white-space: pre-wrap; }
.dialog__body h2 { white-space: normal; font-size: 1.5rem; }
.dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; padding: 1rem 1.5rem 1.5rem; border-top: 1px solid var(--line); }

.receipt { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.receipt td { padding: .5rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.receipt td:first-child { width: 42%; padding-right: 1rem; color: var(--ink-2); }

@media print {
  .pagebar, .no-print, .btn { display: none !important; }
  body { background: #fff; }
  .panel { box-shadow: none; border: 1px solid #ccc; }
}
