:root {
  --coal: #120d0a;
  --coal-2: #1a130f;
  --coal-3: #241a14;
  --coal-4: #33251c;
  --ember: #ff6b2c;
  --ember-deep: #d9481a;
  --flame: #ffb24a;
  --cream: #f5e9d6;
  --cream-2: #e9dac2;
  --cream-dim: #cbb9a0;
  --muted: #9b8a77;
  --ink: #2a1d15;
  --tomato: #d8432b;
  --basil: #86ad5f;
  --line: rgba(245, 233, 214, 0.12);
  --line-strong: rgba(245, 233, 214, 0.24);
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --hand: 'Caveat', 'Bradley Hand', cursive;
  --radius: 18px;
  --gutter: 16px;
  --tray-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--coal);
  background-image:
    radial-gradient(120% 60% at 50% -5%, rgba(255, 107, 44, 0.20), transparent 60%),
    radial-gradient(80% 40% at 50% 100%, rgba(255, 107, 44, 0.06), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .8 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: calc(var(--tray-h) + 24px + env(safe-area-inset-bottom));
}
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#embers, #confetti { position: fixed; inset: 0; pointer-events: none; }
#embers { z-index: 0; opacity: .9; }
#confetti { z-index: 60; }
.hero, main, .footer { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 48px var(--gutter) 40px;
}
.oven { width: min(300px, 74vw); height: auto; overflow: visible; margin-bottom: 10px; filter: drop-shadow(0 0 40px rgba(255, 107, 44, .25)); }
.flames path { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.6s ease-in-out infinite alternate; }
.flames .f2 { animation-duration: 1.2s; animation-delay: -.4s; }
.flames .f3 { animation-duration: 1.9s; animation-delay: -.8s; }
.flames .f4 { animation-duration: .9s; animation-delay: -.2s; }
@keyframes flicker {
  0% { transform: scale(1, 1) skewX(0deg); opacity: .95; }
  35% { transform: scale(.94, 1.08) skewX(-3deg); }
  70% { transform: scale(1.04, .93) skewX(2deg); opacity: .8; }
  100% { transform: scale(.98, 1.04) skewX(-1deg); opacity: 1; }
}
.smoke path { animation: smoke 4s ease-in-out infinite; }
@keyframes smoke { 0% { transform: translateY(6px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }

.eyebrow {
  margin: 8px 0 0;
  font-size: 12px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--flame);
}
.title { margin: 8px 0 0; display: flex; flex-direction: column; align-items: center; line-height: .9; }
.title-small {
  font-family: var(--serif); font-weight: 400; font-size: clamp(15px, 4vw, 20px);
  letter-spacing: .5em; text-transform: uppercase; margin-right: -.5em; color: var(--cream-2);
}
.title-big {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(72px, 22vw, 168px); letter-spacing: -.035em;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  background: linear-gradient(180deg, #fff6e6 20%, #ffcf8a 62%, #ff8a3d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(255, 120, 50, .25);
  padding: 0 .1em .2em;
  margin-bottom: -.16em;
}
.title-script {
  font-family: var(--hand); font-weight: 700; font-size: clamp(30px, 8vw, 48px);
  color: var(--ember); transform: rotate(-5deg); margin-top: .02em; margin-left: 2.2em;
  text-shadow: 0 0 24px rgba(255, 107, 44, .45);
}
.lede { max-width: 34em; margin: 22px auto 0; color: var(--cream-dim); font-size: clamp(15px, 3.8vw, 17px); }
.lede strong { color: var(--cream); font-weight: 700; }

.clocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(520px, 100%); margin: 28px auto 0; }
.clock {
  border: 1px solid var(--line); border-radius: 16px; padding: 12px 10px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  backdrop-filter: blur(4px);
}
.clock-label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.clock-time { display: block; margin-top: 4px; font-family: var(--serif); font-size: clamp(20px, 5.6vw, 28px); font-variant-numeric: tabular-nums; color: var(--cream); white-space: nowrap; }
.clock-time small { font-family: var(--sans); font-size: .5em; color: var(--muted); margin: 0 .25em 0 .08em; }
.clock-time.is-done { font-style: italic; color: var(--flame); font-size: clamp(17px, 4.6vw, 22px); }

.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 26px 0 0; }
.facts div { text-align: center; }
.facts dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-family: var(--serif); font-size: 18px; }

.cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 30px;
  padding: 12px 22px; border-radius: 999px; color: var(--coal); text-decoration: none; font-weight: 700;
  background: linear-gradient(180deg, var(--flame), var(--ember));
  box-shadow: 0 10px 30px -8px rgba(255, 107, 44, .7), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.cta svg { width: 18px; height: 18px; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }

/* ---------- Sections ---------- */
main { max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 56px 0 8px; scroll-margin-top: 12px; }
.section-head { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; margin-bottom: 22px; }
.section-num { grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ember); width: 38px; height: 38px; border: 1px solid rgba(255, 107, 44, .5); border-radius: 50%; display: grid; place-items: center; align-self: center; }
.section-head h2 { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(32px, 8vw, 46px); line-height: 1; letter-spacing: -.02em; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- Guests ---------- */
.guests { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.guest {
  position: relative; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 9px 12px 9px 9px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025); transition: border-color .2s, background .2s, transform .2s;
}
.guest:hover { border-color: var(--line-strong); }
.guest:active { transform: scale(.98); }
.guest-av {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--coal);
  background: hsl(var(--h) 55% 72%);
}
.guest.has-choice .guest-av { background: none; }
.guest-av .pizza-art { width: 44px; height: 44px; }
.guest-name { display: flex; flex-direction: column; line-height: 1.2; font-weight: 500; min-width: 0; }
.guest-name small { font-size: 12px; color: var(--muted); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.guest.is-me { border-color: var(--ember); background: rgba(255, 107, 44, .12); box-shadow: 0 0 0 3px rgba(255, 107, 44, .15), 0 8px 26px -10px rgba(255, 107, 44, .6); }
.guest-tag { position: absolute; top: -9px; right: 12px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; background: var(--ember); color: var(--coal); padding: 2px 8px; border-radius: 99px; font-weight: 700; }
.btn-ghost {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  border: 1px dashed var(--line-strong); background: none; color: var(--cream-dim); font-size: 15px;
}
.btn-ghost svg { width: 16px; height: 16px; }
.btn-ghost:hover { color: var(--cream); border-color: var(--cream-dim); }

/* ---------- Menu ---------- */
.base-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; color: var(--cream-dim); font-size: 14px; }
.base-dot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fbf5e6 35%, var(--tomato) 40%); box-shadow: 0 0 0 2px rgba(216, 67, 43, .25); }

.mode { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.mode button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 18px; border-radius: 999px; font-weight: 500; color: var(--cream-dim); transition: color .25s; }
.mode button[aria-checked='true'] { color: var(--coal); }
.mode-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: linear-gradient(180deg, var(--flame), var(--ember)); transition: transform .35s cubic-bezier(.5, 1.6, .4, 1); }
.mode.is-half .mode-pill { transform: translateX(100%); }
.mode-hint { margin: 10px 0 20px; color: var(--muted); font-size: 14px; min-height: 1.5em; }

.menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 14px; }
@media (max-width: 480px) { .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.card { perspective: 1200px; animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.card-inner { display: grid; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.3, .4, 1); }
.card.is-flipped .card-inner { transform: rotateY(180deg); }
.card-face {
  grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 14px 12px 16px; border-radius: var(--radius); border: 1px solid var(--line);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: linear-gradient(180deg, var(--coal-3), var(--coal-2));
}
.card-front { width: 100%; justify-content: center; cursor: pointer; transition: border-color .25s, box-shadow .25s; }
.card-front:hover { border-color: var(--line-strong); }
.card-art { width: 100%; max-width: 150px; aspect-ratio: 1; display: block; margin: 4px auto 10px; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.card-art .pizza-art { width: 100%; height: 100%; display: block; }
.card-front:hover .card-art { transform: rotate(28deg) scale(1.03); }
.card-name { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 21px; line-height: 1.1; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.card-ing { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.diet { display: inline-flex; gap: 3px; }
.diet svg { width: 16px; height: 16px; }
.card-badge { position: absolute; top: 10px; left: 10px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--coal); background: var(--flame); padding: 3px 8px; border-radius: 99px; opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s; }
.card-turn { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; color: var(--muted); opacity: .7; }
.card.is-picked .card-front { border-color: var(--ember); box-shadow: 0 0 0 1px var(--ember), 0 14px 40px -14px rgba(255, 107, 44, .75); background: linear-gradient(180deg, #3a2316, var(--coal-2)); }
.card.is-picked .card-badge { opacity: 1; transform: none; }

.card-back { transform: rotateY(180deg); justify-content: center; gap: 10px; background: linear-gradient(160deg, #f8eddc, #eadbc2); color: var(--ink); border-color: transparent; }
.card-back-name { margin: 0; font-family: var(--serif); font-style: italic; font-size: 15px; color: #8a6a52; }
.card-quote { margin: 0; font-family: var(--hand); font-size: 23px; line-height: 1.12; font-weight: 500; color: var(--ink); }
.card-sign { margin: -4px 0 4px; font-family: var(--hand); font-size: 18px; color: var(--ember-deep); }
.card-sign::before { content: '— '; }
.card-back .btn { width: 100%; }
.btn-text { border: 0; background: none; color: inherit; opacity: .65; font-size: 14px; padding: 6px 10px; text-decoration: underline; text-underline-offset: 3px; }
.btn-text:hover { opacity: 1; }

.btn {
  border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 700; font-size: 15px; line-height: 1.2;
  transition: transform .15s, filter .2s, opacity .2s;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn-ember { color: #1b0f08; background: linear-gradient(180deg, var(--flame), var(--ember)); box-shadow: 0 8px 22px -8px rgba(255, 107, 44, .75), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-ember:hover:not(:disabled) { filter: brightness(1.06); }
.btn:disabled { opacity: .45; box-shadow: none; }
.btn-outline { background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px currentColor; }

/* ---------- Board ---------- */
.thermo { margin-bottom: 18px; }
.thermo-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.thermo-top b { font-family: var(--serif); font-size: 26px; letter-spacing: 0; color: var(--flame); font-variant-numeric: tabular-nums; }
.thermo-bar { margin-top: 6px; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; border: 1px solid var(--line); }
.thermo-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #6b2a12, var(--ember) 60%, var(--flame)); box-shadow: 0 0 18px rgba(255, 107, 44, .8); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.thermo-note { margin: 8px 0 0; font-size: 14px; color: var(--cream-dim); }

.slip {
  position: relative; color: var(--ink); padding: 26px 18px 18px;
  background:
    repeating-linear-gradient(180deg, transparent 0 43px, rgba(120, 80, 50, .16) 43px 44px) 0 54px / 100% calc(100% - 54px) no-repeat,
    linear-gradient(180deg, #faf1e2, #f0e2c9);
  border-radius: 6px 6px 14px 14px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .2);
  transform: rotate(-.6deg);
  -webkit-mask: radial-gradient(circle 6px at 10px 0, transparent 98%, #000) -10px 0 / 20px 100% repeat-x;
          mask: radial-gradient(circle 6px at 10px 0, transparent 98%, #000) -10px 0 / 20px 100% repeat-x;
}
.slip-head { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1.5px dashed rgba(42, 29, 21, .35); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: #7a5a44; }
.slip-list { list-style: none; margin: 0; padding: 0; }
.slip-list li { display: grid; grid-template-columns: minmax(84px, 30%) 1fr auto; align-items: center; gap: 10px; min-height: 44px; padding: 2px 0; }
.slip-name { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.15; overflow-wrap: anywhere; }
.slip-name small { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; color: #8a6a52; font-size: 12px; }
.slip-pick { font-family: var(--hand); font-size: 24px; line-height: 1; color: #1d3f8f; }
.slip-pick small { display: block; font-family: var(--sans); font-size: 11px; color: #8a6a52; margin-top: 2px; letter-spacing: .04em; }
.slip-list li.waiting .slip-pick { color: #9a8673; font-size: 21px; }
.slip-art { width: 38px; height: 38px; }
.slip-art .pizza-art { width: 100%; height: 100%; }
.slip-list li.is-new .slip-pick { animation: ink .9s ease-out; }
@keyframes ink { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.slip-foot { margin: 10px 0 0; padding-top: 10px; border-top: 1.5px dashed rgba(42, 29, 21, .35); font-family: var(--hand); font-size: 21px; color: #7a5a44; text-align: center; }

.halves { margin-top: 18px; display: grid; gap: 10px; }
.half-note { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255, 107, 44, .35); background: rgba(255, 107, 44, .07); font-size: 15px; }
.half-note .pizza-art { width: 42px; height: 42px; flex: none; clip-path: inset(0 50% 0 0); }
.half-note b { color: var(--flame); font-weight: 700; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 76px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(180deg, var(--ember), rgba(255, 107, 44, .1)); }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 30px; padding: 10px 0 18px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 68px; top: 18px; width: 17px; height: 17px; border-radius: 50%; background: var(--coal); border: 2px solid var(--ember); box-shadow: 0 0 14px rgba(255, 107, 44, .7); }
.timeline time { font-family: var(--serif); font-size: 21px; text-align: right; color: var(--flame); font-variant-numeric: tabular-nums; padding-top: 6px; }
.timeline h3 { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 24px; }
.timeline p { margin: 2px 0 0; color: var(--cream-dim); font-size: 15px; }

.footer { text-align: center; padding: 56px var(--gutter) 24px; color: var(--muted); font-size: 13px; }
.footer p { margin: 0; }
.footer-mark { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--cream-2); margin-bottom: 4px !important; }

/* ---------- Tray ---------- */
.tray {
  position: fixed; z-index: 40; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(720px, 100%);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(22, 15, 11, .86); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 22px 22px 0 0;
  box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .8), 0 -1px 0 rgba(255, 107, 44, .35);
}
@media (min-width: 740px) { .tray { bottom: 14px; border-radius: 22px; border-bottom: 1px solid var(--line-strong); padding-bottom: 10px; } }
.tray-row { display: flex; align-items: center; gap: 10px; }
.tray-art { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .04); border: 1px dashed var(--line-strong); }
.tray-art .pizza-art { width: 56px; height: 56px; animation: spinIn .6s cubic-bezier(.2, .9, .3, 1.2); }
.tray-art:has(.pizza-art) { border: 0; background: none; }
@keyframes spinIn { from { transform: rotate(-120deg) scale(.5); opacity: 0; } }
.tray-text { flex: 1; min-width: 0; }
.tray-title { margin: 0; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tray-sub { margin: 1px 0 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray-sub b { color: var(--flame); font-weight: 500; }
.tray-note-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; display: grid; place-items: center; color: var(--cream-dim); position: relative; }
.tray-note-btn svg { width: 19px; height: 19px; }
.tray-note-btn.has-note::after { content: ''; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); }
.tray-go { flex: none; padding: 12px 16px; }
.tray.is-pulse { animation: pulse .6s ease-out; }
@keyframes pulse { 30% { box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .8), 0 0 0 2px var(--ember), 0 -10px 40px -6px rgba(255, 107, 44, .6); } }
.tray.is-prompt .tray-note-btn, .tray.is-closed .tray-note-btn { display: none; }
.tray-note { padding: 10px 2px 2px; }
.tray-note input { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .35); color: var(--cream); font: inherit; font-size: 16px; }
.tray-note input::placeholder { color: var(--muted); }
.tray-note input:focus { outline: none; border-color: var(--ember); }
.tray-note p { margin: 6px 4px 0; font-size: 12px; color: var(--muted); }

/* ---------- Dialogs & toast ---------- */
.dialog {
  width: min(400px, calc(100% - 32px)); border: 0; border-radius: 26px; padding: 28px 24px 22px; text-align: center;
  color: var(--ink); background: linear-gradient(170deg, #fbf3e6, #ecdcc2);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .9);
}
.dialog[open] { animation: pop .45s cubic-bezier(.2, 1.2, .3, 1); }
@keyframes pop { from { transform: scale(.85) translateY(20px); opacity: 0; } }
.dialog::backdrop { background: rgba(10, 6, 4, .7); backdrop-filter: blur(6px); }
.dialog-art { width: 150px; height: 150px; margin: -4px auto 8px; }
.dialog-art .pizza-art { width: 100%; height: 100%; animation: spinIn 1s cubic-bezier(.2, .9, .3, 1.1); filter: drop-shadow(0 16px 20px rgba(80, 30, 10, .35)); }
.dialog-eyebrow { margin: 0; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; color: var(--ember-deep); }
.dialog h3 { margin: 4px 0 6px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 32px; line-height: 1.1; }
.dialog-quote { margin: 0 0 10px; font-family: var(--hand); font-size: 26px; line-height: 1.12; color: #1d3f8f; }
.dialog-sub { margin: 0 0 18px; font-size: 14px; color: #7a5a44; }
.dialog input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid rgba(42, 29, 21, .25); background: #fffaf2; font: inherit; font-size: 16px; color: var(--ink); margin-bottom: 16px; }
.dialog input:focus { outline: none; border-color: var(--ember); }
.dialog-actions { display: flex; justify-content: center; gap: 10px; align-items: center; }
.dialog form[method='dialog'] .btn { min-width: 140px; }

.toast {
  position: fixed; z-index: 70; left: 50%; top: 16px; transform: translate(-50%, -140%);
  max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 14px;
  background: var(--cream); color: var(--ink); font-weight: 500; font-size: 15px; text-align: center;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .7); transition: transform .4s cubic-bezier(.2, 1.2, .3, 1), visibility .4s;
  visibility: hidden;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
