/* 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; }
.arch--dusk .arch__img { object-position: 50% 60%; }
/* the dusk loop: the same picture in motion (3:4 like its poster), faded in once a frame is
 * presented (js/loops.js .is-on); the CSS twinkles are only the fallback without it */
.arch__video { position: absolute; inset: 0; max-width: none; opacity: 0; transition: opacity 400ms linear; }
.arch__video.is-on { opacity: 1; }
.arch--dusk.has-video .twinkles { display: none; }

.twinkles { position: absolute; inset: 0; pointer-events: none; }
.twinkles i {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 6px 2px rgba(246, 231, 200, 0.55);
  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; }
  45% { opacity: 0.85; }
  60% { opacity: 0.6; }
}

/* ---- 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); }
