/* reception.css — Chapter Two on the soft lilac ground (aubergine ink; white only for
 * hairlines): the dusk arch — the one dark, rich element on the page — twinkles, the toast. */
.chapter--evening { color: var(--on-evening); padding-top: 8px; }
.chapter--evening .kicker { color: var(--on-evening); }
.chapter--evening .time__num { color: var(--lilac-800); }
.chapter--evening .time__note { color: var(--on-evening-soft); }

.arch--dusk { margin-top: 64px; width: min(74vw, 304px); }
.arch--dusk .arch__line { border-color: var(--rule-evening); }
.arch--dusk .arch__window { background: #4a3a72; }
/* the reception still (3:4) is narrower than its pan, so cover scales it to the pan's height and
 * crops only the sides: --pic-x picks the crop (the couple centred, both rows of sparklers in).
 * The pan overhangs 11 % of the window's height above and 5 % below (16 % in all, the same
 * scale as the shared -8 %), so the picture sits higher and the bride's hem (~91.5 % down the
 * picture) clears the window bottom; with only 5 % below, this arch drifts at data-parallax 0.04
 * (index.html; the shared default is 0.08), which keeps the picture past the window bottom on
 * screens up to ~1500 px tall (0.04 * (vh - 441) / 2 <= 22 px at the 304 px arch). */
.arch--dusk { --pic-x: 35%; }
.arch--dusk .arch__pan { inset: -11% 0 -5%; }
.arch--dusk .arch__img { object-position: var(--pic-x) 50%; }

/* the twinkles: a box the size and place of the rendered picture (full pan height, 3:4, shifted
 * like object-position), so each dot's --x/--y is a fraction of the source picture and it rides
 * the parallax with it. Soft warm glows on the sparkler heads, flickering only while on screen */
.twinkles {
  position: absolute; top: 0; left: var(--pic-x);
  height: 100%; aspect-ratio: 3 / 4;
  transform: translateX(calc(-1 * var(--pic-x)));
  pointer-events: none;
}
.twinkles i {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 222, 0.95) 0 30%, rgba(255, 214, 150, 0.45) 60%, rgba(255, 200, 130, 0) 100%);
  box-shadow: 0 0 12px 4px rgba(255, 214, 150, 0.4);
  opacity: 0;
  transform: scale(var(--s, 1));
}
[data-live].is-live .twinkles i { animation: twinkle 4.2s var(--ease-soft) var(--d) infinite; }
@keyframes twinkle {
  0%, 100% { opacity: 0; }
  30% { opacity: 0.55; }
  38% { opacity: 0.3; }
  48% { opacity: 0.75; }
  62% { opacity: 0.4; }
}

/* ---- raise a toast (the coupes + their pill are one button) --------------------------------- */
.toast { margin-top: 72px; display: grid; justify-items: center; gap: 22px; }
.toast__btn {
  display: grid;
  justify-items: center;
  gap: 18px;
  transition: transform var(--motion-fast) var(--ease-standard);
}
.toast__btn:active { transform: scale(0.98); }
.toast__btn:focus-visible { outline: none; }
.toast__btn:focus-visible .toast__glasses { outline: 2px solid var(--lilac-800); outline-offset: 8px; border-radius: 10px; }
.toast__glasses { position: relative; display: block; width: min(72vw, 288px); }
.coupes { display: block; width: 100%; height: auto; overflow: visible; }
.coupes use, .coupes path, .coupes ellipse { fill: none; stroke: var(--on-evening); stroke-width: 1.15px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.coupe__wine { stroke: var(--lilac-800); stroke-opacity: 0.7; }
/* both glasses lean in 4 deg at rest and pivot on their feet (defs: foot at 0,0) */
.coupe { transform-box: view-box; transform-origin: 0 0; }
.coupe--l { transform: translate(76px, 108px) rotate(4deg); }
.coupe--r { transform: translate(164px, 108px) rotate(-4deg); }
/* the clink: both lift 8 units and lean in until the rims meet at x = 120 (9.7 deg) */
.toast.is-clinking .coupe--l { animation: clink-l 1150ms var(--ease-standard) both; }
.toast.is-clinking .coupe--r { animation: clink-r 1150ms var(--ease-standard) both; }
@keyframes clink-l {
  0%   { transform: translate(76px, 108px) rotate(4deg); }
  36%  { transform: translate(76px, 100px) rotate(8.9deg); }
  44%  { transform: translate(76px, 99.6px) rotate(9.7deg); }
  54%  { transform: translate(76px, 100px) rotate(8.5deg); }
  100% { transform: translate(76px, 108px) rotate(4deg); }
}
@keyframes clink-r {
  0%   { transform: translate(164px, 108px) rotate(-4deg); }
  36%  { transform: translate(164px, 100px) rotate(-8.9deg); }
  44%  { transform: translate(164px, 99.6px) rotate(-9.7deg); }
  54%  { transform: translate(164px, 100px) rotate(-8.5deg); }
  100% { transform: translate(164px, 108px) rotate(-4deg); }
}

.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubble {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--size); height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 0.6px rgba(90, 70, 135, 0.4);
  opacity: 0;
  animation: bubble-rise var(--dur) var(--ease-standard) var(--delay) forwards;
}
.bubble--ring { background: none; border: 1px solid rgba(90, 70, 135, 0.55); box-shadow: none; }
.bubble--glow { background: var(--white); box-shadow: 0 0 5px 1px rgba(255, 255, 255, 0.9); }
@keyframes bubble-rise {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.6); }
  12%  { opacity: 1; }
  70%  { opacity: 0.9; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); }
}

.toast .hint { transition: opacity var(--motion-medium) var(--ease-standard); }
.toast.is-toasted .hint { opacity: 0; }
.toast__line {
  min-height: 1.2em;
  margin-top: 4px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 30px;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--motion-slow) var(--ease-standard), transform var(--motion-slow) var(--ease-standard);
}
.toast.is-toasted .toast__line { opacity: 1; transform: none; }

.venue--evening { margin-top: 56px; }
.venue--evening .venue__place { color: var(--on-evening-soft); }
