:root {
  color-scheme: light;
  --font-body: "Instrument Sans", "Aptos", "Segoe UI", sans-serif;
  --font-display: "DM Serif Display", "Iowan Old Style", "Palatino Linotype", serif;
  --bg: #f3e6d8;
  --surface: rgba(248, 239, 226, 0.86);
  --surface-strong: rgba(255, 250, 242, 0.985);
  --surface-soft: rgba(240, 228, 211, 0.94);
  --border: rgba(87, 54, 37, 0.24);
  --text: #261813;
  --text-soft: rgba(38, 24, 19, 0.84);
  --text-faint: rgba(77, 56, 43, 0.66);
  --text-heading: #432117;
  --text-heading-soft: #5d3426;
  --royal-gold: #b18527;
  --royal-gold-soft: #d7b46a;
  --royal-gold-deep: #7c5713;
  --royal-oxblood: #5f1f1c;
  --royal-oxblood-soft: #7f352f;
  --shadow-xl: 0 30px 80px rgba(84, 51, 35, 0.17);
  --shadow-lg: 0 20px 48px rgba(84, 51, 35, 0.13);
  --shadow-md: 0 12px 28px rgba(84, 51, 35, 0.11);
  --shadow-sm: 0 8px 18px rgba(84, 51, 35, 0.08);
  --accent-broccoli: #6fa553;
  --accent-chicken: #f0c7a3;
  --accent-sweet-potatoes: #ff9868;
  --accent-coconut-yogurt: #fff4df;
  --accent-banana: #f6d666;
  --accent-oranges: #ff9445;
  --accent-pineapple: #ffd24d;
  --accent-black-beans: #281f1d;
  --accent-peas: #93d15b;
  --accent-water: #8bd6ff;
  --accent-avocado: #8bae72;
  --accent-toast: #c68a50;
  --asset-banquet-table: url("./assets/banquet-sprites/banquet-table-v1.png");
  --asset-banquet-runner: url("./assets/banquet-sprites/banquet-runner-v1.png");
  --asset-banquet-chair: url("./assets/banquet-sprites/banquet-chair-v1.png");
  --asset-banquet-plate: url("./assets/banquet-sprites/banquet-plate-v1.png");
  --asset-banquet-platter: url("./assets/banquet-sprites/banquet-platter-v1.png");
  --focus-outline: rgba(214, 143, 92, 0.72);
  --focus-ring: rgba(235, 206, 171, 0.72);
  --transition: 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 10% 14%, rgba(210, 164, 54, 0.16), transparent 24%),
    radial-gradient(circle at 84% 16%, rgba(128, 60, 51, 0.1), transparent 22%),
    radial-gradient(circle at 82% 72%, rgba(142, 112, 56, 0.1), transparent 20%),
    linear-gradient(180deg, #f7efe3 0%, #edddcb 52%, #f4e7d8 100%);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  color: inherit;
  background: none;
  cursor: pointer;
}

main {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.food-particle-layer,
.grain-overlay,
.ambient-lights {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.food-particle-layer {
  z-index: 30;
  overflow: visible;
}

.grain-overlay {
  z-index: 1;
  opacity: 0.06;
  background-image:
    linear-gradient(transparent, rgba(255, 255, 255, 0.08)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.ambient-lights {
  z-index: 0;
  filter: blur(46px);
  opacity: 0.24;
}

.ambient-light {
  position: absolute;
  border-radius: 999px;
}

.ambient-light--broccoli {
  width: 240px;
  height: 240px;
  top: 14%;
  left: 8%;
  background: rgba(129, 179, 95, 0.18);
}

.ambient-light--sunrise {
  width: 320px;
  height: 320px;
  top: 10%;
  right: 6%;
  background: rgba(255, 194, 108, 0.18);
}

.ambient-light--water {
  width: 280px;
  height: 280px;
  right: 8%;
  bottom: 10%;
  background: rgba(133, 211, 255, 0.18);
}

.ambient-light--coconut {
  width: 220px;
  height: 220px;
  left: 28%;
  bottom: 8%;
  background: rgba(255, 244, 223, 0.3);
}

.feast-poster {
  width: min(804px, 100%);
  animation: posterRise 860ms cubic-bezier(0.16, 1, 0.3, 1);
}

.poster-head h1,
.success-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.94;
}

.poster-head h1 {
  font-size: clamp(3.55rem, 5.7vw, 4.65rem);
  color: var(--text-heading);
  line-height: 0.9;
  letter-spacing: -0.042em;
  white-space: nowrap;
  max-width: none;
  text-shadow: 0 1px 0 rgba(255, 248, 232, 0.28);
}

.poster-lede {
  margin: 12px auto 0;
  max-width: 33ch;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.56;
  font-weight: 500;
  color: rgba(42, 28, 21, 0.92);
}

.poster-meta a,
.poster-meta a:visited,
.poster-meta a:hover,
.poster-meta a:active {
  color: rgba(255, 240, 214, 0.98);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(248, 222, 184, 0.44);
  text-underline-offset: 0.22em;
}

.poster-meta a:hover {
  text-decoration-color: currentColor;
}

.poster-stage {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  gap: 0;
  isolation: isolate;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(110, 67, 38, 0.22);
  background:
    radial-gradient(circle at 16% 10%, rgba(223, 176, 71, 0.28), transparent 26%),
    radial-gradient(circle at 84% 78%, rgba(126, 47, 42, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 251, 243, 0.994), rgba(241, 226, 198, 0.988));
  box-shadow:
    0 28px 58px rgba(96, 60, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  --stage-accent-soft: rgba(230, 190, 96, 0.22);
  --stage-accent-strong: rgba(148, 59, 48, 0.16);
  --wake-x: 50%;
  --wake-y: 32%;
}

.poster-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at var(--wake-x) var(--wake-y), var(--stage-accent-soft), transparent 30%),
    radial-gradient(circle at calc(var(--wake-x) + 10%) calc(var(--wake-y) + 18%), var(--stage-accent-strong), transparent 34%);
  transition: opacity 360ms ease, background 360ms ease;
}

.poster-stage.is-reacting::before {
  opacity: 1;
}

.poster-stage.is-reacting-big::before {
  opacity: 1;
  background:
    radial-gradient(circle at var(--wake-x) var(--wake-y), var(--stage-accent-soft), transparent 36%),
    radial-gradient(circle at calc(var(--wake-x) + 10%) calc(var(--wake-y) + 18%), var(--stage-accent-strong), transparent 42%);
}

.poster-art {
  position: relative;
  min-height: auto;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.poster-art::before,
.poster-art::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 1;
}

.poster-art::before {
  top: 0;
  height: min(22%, 176px);
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 224, 164, 0.22), transparent 34%),
    radial-gradient(circle at 84% 14%, rgba(255, 207, 123, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 249, 241, 0.9), rgba(255, 249, 241, 0));
}

.poster-art::after {
  bottom: 0;
  height: 42px;
  background: linear-gradient(180deg, rgba(248, 239, 226, 0), rgba(248, 239, 226, 0.82));
}

.poster-head {
  position: absolute;
  top: clamp(58px, 6.1vw, 92px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: grid;
  justify-items: center;
  width: calc(100% - 52px);
  text-align: center;
}

.poster-art__image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(1.03) contrast(1.04) brightness(1.01);
  margin-top: -28px;
  margin-bottom: -52px;
  transform: none;
}

.poster-lede {
  margin: 10px auto 0;
  max-width: 34rem;
}

.poster-meta {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 3;
  width: min(calc(100% - 48px), 44rem);
  margin: 0;
  padding: 0;
}

.poster-meta__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0;
  color: rgba(255, 240, 214, 0.98);
  font-family: var(--font-display);
  font-size: clamp(1.42rem, 0.96rem + 1.34vw, 1.98rem);
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 1.06;
  text-align: center;
  text-wrap: balance;
  text-shadow:
    0 1px 0 rgba(255, 250, 241, 0.58),
    0 10px 18px rgba(83, 27, 22, 0.24);
}

.poster-meta__item--link {
  color: rgba(255, 240, 214, 0.98);
  font-weight: 700;
  border-bottom: 0;
}

.poster-rsvp {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 20px 22px 18px;
  background:
    radial-gradient(circle at 16% 90%, rgba(233, 196, 101, 0.12), transparent 22%),
    radial-gradient(circle at 86% 12%, rgba(140, 79, 63, 0.08), transparent 22%);
}

.poster-rsvp::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      rgba(111, 165, 83, 0.52),
      rgba(246, 214, 102, 0.62) 24%,
      rgba(255, 148, 69, 0.6) 52%,
      rgba(139, 174, 114, 0.5) 76%,
      rgba(198, 138, 80, 0.42)
    );
}

.poster-rsvp::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 124px;
  background:
    linear-gradient(180deg, rgba(255, 149, 69, 0.05), rgba(255, 149, 69, 0)),
    radial-gradient(circle at 14% 22%, rgba(139, 214, 255, 0.08), transparent 32%);
  pointer-events: none;
  opacity: 0.8;
}

.reservation-strip__intro h2,
.success-card__eyebrow {
  margin: 0;
}

.field-popout {
  position: absolute;
  display: grid;
  place-items: center;
  left: 0;
  top: 0;
  opacity: 0;
  z-index: 8;
  transform-origin: center center;
  pointer-events: none;
}

.field-popout .food-sprite {
  pointer-events: none;
}

.rsvp-form {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 12px 0;
  align-items: stretch;
}

.rsvp-form::before {
  content: "";
  position: absolute;
  inset: 6px 0 34px;
  z-index: 0;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.88), rgba(239, 220, 186, 0.82)),
    radial-gradient(circle at 22% 18%, rgba(210, 166, 58, 0.14), transparent 26%),
    radial-gradient(circle at 78% 72%, rgba(113, 40, 35, 0.08), transparent 28%);
  border: 1px solid rgba(164, 122, 67, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 22px 38px rgba(92, 55, 36, 0.06);
  pointer-events: none;
}

.rsvp-form::after {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 44px;
  left: calc(39% - 13px);
  width: 26px;
  z-index: 1;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255, 251, 244, 0) 0, rgba(255, 251, 244, 0.95) 20%, rgba(230, 209, 174, 0.98) 50%, rgba(255, 251, 244, 0.95) 80%, rgba(255, 251, 244, 0) 100%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(233, 214, 182, 0.98));
  border: 1px solid rgba(168, 126, 68, 0.12);
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.84),
    inset -1px 0 0 rgba(160, 117, 63, 0.14),
    0 10px 18px rgba(92, 55, 36, 0.06);
  pointer-events: none;
}

.reservation-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "intro intro"
    "name name"
    "attendance attendance"
    "counts counts"
    "phone phone";
  gap: 11px 14px;
  align-items: end;
  align-content: start;
  min-height: 100%;
  padding: 24px 26px 22px 22px;
  border-radius: 28px 0 0 28px;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(244, 232, 214, 0.98)),
    repeating-linear-gradient(
      180deg,
      rgba(188, 142, 102, 0.07) 0,
      rgba(188, 142, 102, 0.07) 1px,
      transparent 1px,
      transparent 34px
    );
  border: 0;
  box-shadow: inset -1px 0 0 rgba(160, 117, 63, 0.06);
  width: 100%;
  justify-self: stretch;
  margin: 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.reservation-strip::after {
  content: none;
  pointer-events: none;
}

.reservation-strip__intro {
  grid-area: intro;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "title"
    "note";
  row-gap: 6px;
  align-items: start;
  padding: 0 4px 0 2px;
  position: relative;
}

.reservation-strip__intro::after {
  content: none;
}

.reservation-strip__intro h2 {
  grid-area: title;
  font-family: var(--font-body);
  font-size: clamp(1.86rem, 2.08vw, 2.1rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--text-heading);
  max-width: 11ch;
  text-wrap: balance;
}

.reservation-strip__note {
  grid-area: note;
  margin: 0;
  max-width: 23ch;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(77, 51, 39, 0.88);
  line-height: 1.36;
  justify-self: start;
  text-align: left;
}

.field-shell--name {
  grid-area: name;
}

.attendance-shell {
  grid-area: attendance;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 2px 0 0;
  border: 0;
  min-width: 0;
}

.attendance-shell.is-invalid .attendance-option span {
  border-color: rgba(214, 74, 74, 0.42);
  box-shadow:
    0 0 0 3px rgba(242, 168, 168, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.attendance-shell legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.attendance-option {
  position: relative;
  display: block;
  min-width: 0;
}

.attendance-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.attendance-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 20px;
  border-radius: 15px;
  border: 1px solid rgba(148, 107, 53, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 252, 246, 0.99), rgba(246, 237, 223, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 10px 18px rgba(92, 55, 36, 0.055);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: rgba(69, 45, 33, 0.9);
  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition),
    color var(--transition),
    transform var(--transition);
}

.attendance-option:hover span {
  transform: translateY(-1px);
}

.attendance-option input:checked + span {
  color: #fff6ea;
  border-color: rgba(172, 131, 68, 0.76);
  background:
    linear-gradient(180deg, rgba(136, 49, 42, 0.99), rgba(95, 28, 25, 0.99));
  box-shadow:
    0 14px 22px rgba(120, 52, 39, 0.22),
    inset 0 1px 0 rgba(245, 214, 171, 0.24);
}

.attendance-option input:focus-visible + span {
  outline: 2px solid var(--focus-outline);
  outline-offset: 3px;
}

.field-shell--phone {
  grid-area: phone;
}

.reservation-strip__counts {
  grid-area: counts;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.reservation-strip[data-attendance="cant-make-it"] .reservation-strip__counts,
.reservation-strip[data-attendance="cant-make-it"] .field-shell--phone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.field-shell {
  display: grid;
  gap: 7px;
  position: relative;
  isolation: isolate;
}

.attendance-shell__hint,
.field-shell__hint {
  margin: 0;
  min-height: 0;
  font-size: clamp(0.75rem, 0.72rem + 0.12vw, 0.81rem);
  line-height: 1.35;
  color: rgba(79, 57, 43, 0.68);
  padding-inline: 2px;
  transition: color var(--transition);
}

.attendance-shell__hint:empty,
.field-shell__hint:empty {
  display: none;
}

.attendance-shell__hint[data-state="error"],
.field-shell__hint[data-state="error"] {
  color: #a44444;
}

.attendance-shell:focus-within .attendance-shell__hint:not([data-state="error"]),
.field-shell:focus-within .field-shell__hint:not([data-state="error"]) {
  color: rgba(92, 62, 43, 0.82);
}

.field-shell label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(66, 42, 30, 0.88);
  position: relative;
  z-index: 2;
  transition: color var(--transition);
}

.field-shell:focus-within label {
  color: rgba(74, 45, 32, 0.98);
}

.field-shell input {
  width: 100%;
  height: 60px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(128, 89, 53, 0.2);
  background: rgba(255, 251, 244, 0.99);
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 6px 14px rgba(91, 57, 39, 0.045);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition),
    background var(--transition);
  position: relative;
  z-index: 2;
}

.field-shell input::placeholder {
  color: rgba(64, 45, 34, 0.4);
}

.field-shell--count input {
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.field-shell input[type="number"] {
  appearance: textfield;
}

.field-shell input[type="number"]::-webkit-outer-spin-button,
.field-shell input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.field-shell input:focus {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(255, 134, 84, 0.46);
  box-shadow:
    0 0 0 4px var(--focus-ring),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.field-shell input.is-invalid {
  border-color: rgba(214, 74, 74, 0.5);
  box-shadow:
    0 0 0 4px rgba(242, 168, 168, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.field-shell input:disabled {
  cursor: not-allowed;
  color: rgba(49, 33, 23, 0.48);
  background: rgba(247, 240, 232, 0.92);
}

.food-sprite {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  pointer-events: none;
  will-change: transform, opacity;
}

.food-sprite__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 10px rgba(92, 55, 36, 0.12));
  user-select: none;
  -webkit-user-drag: none;
}

.food-sprite--chip {
  width: 28px;
  height: 28px;
}

.food-sprite--popout {
  width: 124px;
  height: 124px;
}

.food-sprite--trail,
.food-sprite--burst {
  width: 36px;
  height: 36px;
}

.food-sprite--celebration {
  width: 64px;
  height: 64px;
}

.food-sprite--floating {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}

.field-popout.food-sprite--floating {
  z-index: 12;
}

.party-table {
  --banquet-ripple-origin-x: 50%;
  --banquet-ripple-origin-y: 56%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 100%;
  padding: 20px 22px 20px 24px;
  border-radius: 0 28px 28px 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.42), transparent 24%),
    radial-gradient(circle at 84% 82%, rgba(126, 47, 42, 0.06), transparent 32%),
    linear-gradient(180deg, rgba(252, 245, 234, 0.98), rgba(232, 208, 170, 0.98));
  border: 0;
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(138, 86, 49, 0.07);
  position: relative;
  overflow: hidden;
  width: 100%;
  justify-self: stretch;
  align-self: stretch;
  z-index: 2;
  margin: 0;
}

.party-table::after {
  content: "";
  position: absolute;
  inset: 2% 2% 3%;
  background:
    radial-gradient(circle, rgba(255, 250, 220, 1) 0 0.42px, transparent 0.9px) 50% 50% / 16px 16px,
    radial-gradient(circle, rgba(255, 236, 166, 0.94) 0 0.46px, transparent 1px) 50% 50% / 18px 18px,
    radial-gradient(circle, rgba(249, 210, 112, 0.9) 0 0.58px, transparent 1.18px) 50% 50% / 22px 22px,
    radial-gradient(circle, rgba(232, 179, 66, 0.9) 0 0.78px, transparent 1.46px) 50% 50% / 28px 28px,
    radial-gradient(circle, rgba(196, 136, 40, 0.78) 0 0.98px, transparent 1.8px) 50% 50% / 36px 36px,
    radial-gradient(circle, rgba(153, 98, 24, 0.52) 0 1.08px, transparent 1.98px) 50% 50% / 48px 48px;
  filter:
    drop-shadow(0 0 4px rgba(241, 198, 96, 0.42))
    drop-shadow(0 0 10px rgba(255, 232, 166, 0.38));
  opacity: 0;
  pointer-events: none;
  transform: scale(0.08);
  transform-origin: center;
  clip-path: circle(0% at var(--banquet-ripple-origin-x) var(--banquet-ripple-origin-y));
  mix-blend-mode: screen;
  -webkit-mask-image:
    repeating-radial-gradient(
      circle at var(--banquet-ripple-origin-x) var(--banquet-ripple-origin-y),
      transparent 0 30px,
      #000 30px 39px,
      transparent 39px 78px,
      #000 78px 88px,
      transparent 88px 134px,
      #000 134px 145px,
      transparent 145px 198px,
      #000 198px 210px,
      transparent 210px 270px,
      #000 270px 283px,
      transparent 283px 360px
    );
  mask-image:
    repeating-radial-gradient(
      circle at var(--banquet-ripple-origin-x) var(--banquet-ripple-origin-y),
      transparent 0 30px,
      #000 30px 39px,
      transparent 39px 78px,
      #000 78px 88px,
      transparent 88px 134px,
      #000 134px 145px,
      transparent 145px 198px,
      #000 198px 210px,
      transparent 210px 270px,
      #000 270px 283px,
      transparent 283px 360px
    );
  z-index: 5;
}

.party-table::before {
  content: "";
  position: absolute;
  inset: -10% -12%;
  background:
    radial-gradient(circle at var(--banquet-ripple-origin-x) var(--banquet-ripple-origin-y), rgba(188, 134, 42, 0.11), rgba(188, 134, 42, 0.035) 22%, transparent 58%);
  filter: blur(9px);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.22);
  transform-origin: center;
  clip-path: circle(0% at var(--banquet-ripple-origin-x) var(--banquet-ripple-origin-y));
  mix-blend-mode: screen;
  z-index: 4;
}

.party-table__header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 8px 0 0;
}

.party-table__header strong {
  font-family: var(--font-body);
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(86, 40, 29, 0.96);
  font-variant-numeric: tabular-nums;
}

.party-table__scene {
  position: relative;
  min-height: 332px;
  height: 100%;
  padding: 0 0 6px;
  border-radius: 20px;
  overflow: visible;
}

.party-table__scene::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  width: 430px;
  height: 356px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(184, 128, 58, 0.22), rgba(184, 128, 58, 0.08) 58%, transparent 86%);
  filter: blur(14px);
  opacity: 0.64;
  pointer-events: none;
}

.party-table__scene::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 54%;
  width: 486px;
  height: 410px;
  transform: translate(-50%, -50%) scale(0.16);
  transform-origin: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 250, 234, 0.98), rgba(255, 231, 166, 0.78) 24%, rgba(255, 215, 117, 0.44) 48%, rgba(255, 215, 117, 0.16) 64%, transparent 82%),
    linear-gradient(90deg, transparent 0%, rgba(255, 249, 222, 0.18) 42%, rgba(255, 246, 205, 0.78) 50%, rgba(255, 249, 222, 0.18) 58%, transparent 100%);
  filter: blur(12px);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.party-table__surface {
  position: absolute;
  left: 50%;
  top: 54%;
  width: 396px;
  height: 396px;
  transform: translate(-50%, -50%);
  background: center / contain no-repeat var(--asset-banquet-table);
  z-index: 1;
  pointer-events: none;
}

.party-table__chairs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.party-table__surface::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 49.5%;
  width: 302px;
  height: 60px;
  transform: translate(-50%, -50%);
  background: center / contain no-repeat var(--asset-banquet-runner);
  filter: drop-shadow(0 10px 12px rgba(98, 56, 40, 0.1));
}

.party-table__tally {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.table-place {
  --seat-size: 178px;
  --chair-origin-x: 0px;
  --chair-origin-y: 10px;
  --chair-offset-y: -92px;
  --plate-origin-x: 0px;
  --plate-origin-y: 2px;
  --plate-offset-y: -6px;
  position: absolute;
  left: calc(var(--place-x) * 1%);
  top: calc(var(--place-y) * 1%);
  width: var(--seat-size);
  height: var(--seat-size);
  transform: translate(-50%, -50%) rotate(calc(var(--place-rotate) * 1deg)) scale(var(--place-scale));
  transform-origin: center center;
}

.table-place__chair {
  position: absolute;
  left: calc(50% + var(--chair-origin-x));
  top: calc(50% + var(--chair-origin-y));
  width: 164px;
  height: 200px;
  background: center / contain no-repeat var(--asset-banquet-chair);
  transform: translate(-50%, -50%) translateY(var(--chair-offset-y));
  filter: drop-shadow(0 14px 22px rgba(92, 55, 36, 0.22));
}

.table-place__chair::before,
.table-place__chair::after {
  content: none;
}

.table-place__plate {
  position: absolute;
  left: calc(50% + var(--plate-origin-x));
  top: calc(50% + var(--plate-origin-y));
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  background: center / contain no-repeat var(--asset-banquet-plate);
  transform: translate(-50%, -50%) translateY(var(--plate-offset-y));
  opacity: 1;
  filter: drop-shadow(0 10px 12px rgba(92, 55, 36, 0.12));
}

.table-place__plate::before {
  content: none;
}

.table-place__plate::after {
  content: none;
}

.table-place--empty .table-place__chair,
.table-place--empty .table-place__plate {
  opacity: 1;
}

.table-place__food {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.table-place__food .food-sprite--chip {
  width: 26px;
  height: 26px;
}

.table-place--newest .table-place__plate {
  filter:
    drop-shadow(0 0 0 rgba(0, 0, 0, 0))
    drop-shadow(0 0 8px rgba(255, 212, 110, 0.26))
    drop-shadow(0 10px 12px rgba(92, 55, 36, 0.12));
}

.party-table__platter {
  position: absolute;
  left: 50%;
  top: 54.3%;
  display: grid;
  place-items: center;
  min-height: 0;
  width: 180px;
  height: 120px;
  padding: 0 0 12px;
  border-radius: 0;
  transform: translate(-50%, -50%);
  color: #fff7ee;
  background: transparent;
  box-shadow: none;
  z-index: 3;
  filter:
    drop-shadow(0 14px 22px rgba(108, 62, 40, 0.2))
    drop-shadow(0 0 10px rgba(214, 179, 100, 0.08));
  transition:
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 200ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 180ms ease;
  will-change: transform, filter;
}

.party-table__platter::before {
  content: "";
  position: absolute;
  inset: 17% 13% 20%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 248, 229, 0.88), rgba(255, 228, 150, 0.36) 42%, rgba(255, 221, 135, 0.12) 68%, rgba(255, 247, 225, 0) 84%);
  box-shadow:
    0 0 22px rgba(255, 216, 122, 0.3),
    0 0 42px rgba(255, 227, 155, 0.16);
  opacity: 0;
  transform: scale(0.9);
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
  pointer-events: none;
  z-index: 1;
}

.party-table__platter:hover {
  transform: translate(-50%, calc(-50% - 3px)) scale(1.018);
  filter:
    drop-shadow(0 18px 28px rgba(129, 66, 47, 0.22))
    drop-shadow(0 0 18px rgba(214, 179, 100, 0.2));
}

.party-table__platter:hover::before {
  opacity: 0.82;
  transform: scale(1.04);
}

.party-table__platter:active {
  transform: translate(-50%, calc(-50% + 1px)) scale(0.988);
  filter:
    drop-shadow(0 10px 18px rgba(108, 62, 40, 0.18))
    drop-shadow(0 0 12px rgba(214, 179, 100, 0.12));
}

.party-table__platter.is-ready:not(.is-loading):not(:hover):not(:active) {
  animation: platterInvite 2.15s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.party-table__platter.is-ready:not(.is-loading):not(:hover):not(:active)::before {
  animation: platterInviteGlow 2.15s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.party-table__platter.is-ready:not(.is-loading):not(:hover):not(:active) .party-table__platter-label {
  animation: platterLabelInvite 2.15s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.party-table__platter-shell {
  position: absolute;
  inset: 0;
  background: center / contain no-repeat var(--asset-banquet-platter);
  pointer-events: none;
}

.party-table__platter-shell::before {
  content: none;
}

.party-table__platter-shell::after {
  content: none;
}

.party-table__platter-rim {
  display: none;
}

.party-table__platter:hover .party-table__platter-rim {
  box-shadow: none;
}

.party-table__platter-handle {
  display: none;
}

.party-table__platter-handle--left {
  left: -1px;
}

.party-table__platter-handle--right {
  right: -1px;
}

.party-table__platter.is-loading {
  color: rgba(99, 58, 36, 0.86);
}

.party-table__platter.is-loading .party-table__platter-shell::before {
  animation: platterGlow 900ms cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}

.party-table__platter.is-loading .party-table__platter-rim {
  box-shadow:
    inset 0 0 0 1px rgba(255, 239, 205, 0.44),
    inset 0 0 0 5px rgba(255, 249, 236, 0.18),
    0 0 0 4px rgba(228, 190, 103, 0.12);
}

.party-table__platter-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: none;
  min-height: 0;
  padding: 0 0.12em;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 1.16rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 0.92;
  white-space: nowrap;
  text-align: center;
  transform: translate(-50%, calc(-50% - 7px));
  color: #782a23;
  text-shadow:
    0 1px 0 rgba(255, 250, 242, 0.96),
    0 5px 10px rgba(111, 45, 31, 0.08);
  transition:
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
    letter-spacing 200ms cubic-bezier(0.22, 1, 0.36, 1),
    color 180ms ease;
}

.party-table__platter:hover .party-table__platter-label {
  transform: translate(-50%, calc(-50% - 7px));
  letter-spacing: 0.03em;
  color: #6d1f1a;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform var(--transition),
    background var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.button:hover:not(.party-table__platter) {
  transform: translateY(-2px);
}

.button:active:not(.party-table__platter) {
  transform: translateY(0) scale(0.99);
}

.button--primary {
  color: #fff7ee;
  background:
    linear-gradient(135deg, #bf6134 0%, #96382e 46%, #6f2622 100%);
  box-shadow:
    0 16px 30px rgba(118, 56, 42, 0.34),
    inset 0 1px 0 rgba(248, 219, 173, 0.28);
}

.party-table__platter.button--primary {
  background: none;
  box-shadow: none;
}

.button--secondary {
  border: 1px solid rgba(168, 126, 68, 0.22);
  background: rgba(255, 252, 247, 0.86);
  color: var(--royal-oxblood);
}

.button--submit {
  width: auto;
}

.party-table__platter.button--submit {
  display: grid;
  place-items: center;
  width: 180px;
  height: 120px;
  min-height: 0;
  padding: 0 0 12px;
  gap: 0;
  border-radius: 0;
}

.button.is-loading {
  pointer-events: none;
  opacity: 0.8;
  cursor: progress;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.party-table__platter:disabled::before,
.party-table__platter.is-loading::before {
  opacity: 0;
  animation: none;
}

.form-message {
  margin: 0;
  min-height: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(59, 40, 31, 0.78);
  grid-column: 1 / -1;
  padding-inline: 2px;
  padding-top: 2px;
  text-align: left;
}

.form-message:empty {
  display: none;
}

.field-shell[data-pop-placement="top-right"]:focus-within input {
  border-color: rgba(198, 138, 80, 0.32);
  box-shadow:
    0 0 0 4px rgba(198, 138, 80, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.field-shell[data-pop-placement="bottom-left"]:focus-within input {
  border-color: rgba(139, 214, 255, 0.42);
  box-shadow:
    0 0 0 4px rgba(139, 214, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.field-shell[data-pop-placement="left"]:focus-within input {
  border-color: rgba(246, 214, 102, 0.42);
  box-shadow:
    0 0 0 4px rgba(246, 214, 102, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.field-shell[data-pop-placement="right"]:focus-within input {
  border-color: rgba(147, 209, 91, 0.42);
  box-shadow:
    0 0 0 4px rgba(147, 209, 91, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.form-message.is-error {
  color: #b24b4b;
}

.form-message.is-success {
  color: #4d7f42;
}

.button:focus-visible,
.poster-meta a:focus-visible,
.field-shell input:focus-visible {
  outline: 2px solid var(--focus-outline);
  outline-offset: 3px;
}

.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(56, 34, 24, 0.24);
  backdrop-filter: blur(14px) saturate(0.92);
  -webkit-backdrop-filter: blur(14px) saturate(0.92);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition),
    visibility var(--transition);
}

.success-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.success-particle-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: clip;
}

.success-card {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  display: grid;
  justify-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition:
    opacity 280ms ease,
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.success-overlay.is-visible .success-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.success-card__slip {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
}

.success-card__art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 24px 38px rgba(84, 51, 35, 0.22))
    drop-shadow(0 10px 18px rgba(157, 114, 57, 0.12));
}

.success-card__paper {
  position: absolute;
  inset: 24.9% 13.5% 8.7%;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 12px;
  text-align: center;
  color: #4b2f22;
}

.success-card__paper h2 {
  font-size: clamp(1.72rem, 4.7vw, 2.18rem);
  line-height: 0.92;
  margin: 0;
  padding-top: 2px;
  color: var(--text-heading);
  text-wrap: balance;
}

.success-card__message {
  margin: 0;
  max-width: 28ch;
  color: rgba(80, 53, 39, 0.88);
  line-height: 1.5;
  font-size: 0.95rem;
}

.success-card__message:empty {
  display: none;
}

.party-total__label {
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(126, 89, 34, 0.82);
}

.success-slip {
  display: grid;
  grid-template-columns: repeat(2, minmax(8.2rem, 8.85rem));
  justify-content: center;
  width: fit-content;
  max-width: min(100%, 18.35rem);
  justify-self: center;
  transform: translateX(8px);
  gap: 12px 14px;
  margin: 0 auto;
  padding: 6px 0 2px;
  border-radius: 0;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.success-slip__row {
  display: grid;
  gap: 2px;
  width: 100%;
  box-sizing: border-box;
  padding-inline: 0;
  justify-items: start;
  text-align: left;
}

.success-slip__row--wide {
  grid-column: 1 / -1;
  padding-bottom: 12px;
  padding-inline: 0;
  border-bottom: 1px solid rgba(161, 114, 58, 0.26);
  box-shadow: 0 1px 0 rgba(247, 232, 201, 0.42);
  margin-bottom: 10px;
  justify-items: center;
  text-align: center;
}

.success-slip__term {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(138, 100, 44, 0.72);
}

.success-slip__value {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
  color: #4d3125;
}

.success-slip__value--feast {
  display: grid;
  gap: 4px;
}

.success-slip__value--feast a,
.success-slip__value--feast a:visited {
  color: rgba(122, 59, 47, 0.96);
  text-decoration: underline;
  text-decoration-color: rgba(148, 83, 61, 0.24);
  text-underline-offset: 0.18em;
}

.success-card__gift {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 14px;
  padding-top: 0;
}

.success-card__gift-link,
.success-card__gift-link:visited {
  display: inline;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  color: rgba(122, 59, 47, 0.96);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(148, 83, 61, 0.24);
  text-underline-offset: 0.18em;
  box-shadow: none;
}

.success-card__gift-link.is-placeholder,
.success-card__gift-link.is-placeholder:visited {
  color: rgba(108, 72, 52, 0.72);
  box-shadow: none;
  pointer-events: none;
  text-decoration-color: rgba(108, 72, 52, 0.16);
}

.success-card__gift-note {
  margin: 0;
  max-width: 31ch;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(88, 60, 45, 0.82);
}

.success-overlay[data-success-kind="regrets"] .success-card__gift {
  display: none;
}

.success-overlay[data-success-kind="regrets"] .success-card__paper {
  gap: 10px;
}

.success-overlay[data-success-kind="regrets"] .success-card__message {
  max-width: 30ch;
  font-size: 0.92rem;
}

@keyframes posterRise {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes platterInvite {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    filter:
      drop-shadow(0 16px 24px rgba(108, 62, 40, 0.2))
      drop-shadow(0 0 12px rgba(219, 186, 110, 0.14))
      drop-shadow(0 0 26px rgba(255, 235, 176, 0.08));
  }

  42% {
    transform: translate(-50%, calc(-50% - 7px)) scale(1.046);
    filter:
      drop-shadow(0 21px 33px rgba(129, 66, 47, 0.26))
      drop-shadow(0 0 19px rgba(224, 191, 111, 0.24))
      drop-shadow(0 0 34px rgba(255, 239, 188, 0.14));
  }

  66% {
    transform: translate(-50%, calc(-50% - 3px)) scale(1.02);
    filter:
      drop-shadow(0 18px 27px rgba(119, 64, 44, 0.22))
      drop-shadow(0 0 16px rgba(219, 186, 110, 0.18))
      drop-shadow(0 0 28px rgba(255, 235, 176, 0.1));
  }
}

@keyframes platterInviteGlow {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.98);
  }

  42% {
    opacity: 0.56;
    transform: scale(1.14);
  }

  66% {
    opacity: 0.34;
    transform: scale(1.04);
  }
}

@keyframes platterLabelInvite {
  0%,
  100% {
    transform: translate(-50%, calc(-50% - 7px));
    color: #782a23;
  }

  42% {
    transform: translate(-50%, calc(-50% - 10px));
    color: #6c201b;
  }

  66% {
    transform: translate(-50%, calc(-50% - 8px));
    color: #742620;
  }
}

@keyframes banquetCardSweep {
  0% {
    opacity: 0;
    transform: scale(0.12);
    clip-path: circle(0% at var(--banquet-ripple-origin-x) var(--banquet-ripple-origin-y));
  }

  32% {
    opacity: 0.18;
    transform: scale(0.42);
    clip-path: circle(26% at var(--banquet-ripple-origin-x) var(--banquet-ripple-origin-y));
  }

  78% {
    opacity: 0.14;
    transform: scale(0.96);
    clip-path: circle(92% at var(--banquet-ripple-origin-x) var(--banquet-ripple-origin-y));
  }

  100% {
    opacity: 0;
    transform: scale(1.02);
    clip-path: circle(152% at var(--banquet-ripple-origin-x) var(--banquet-ripple-origin-y));
  }
}

@keyframes banquetCardGlitter {
  0% {
    opacity: 0;
    transform: scale(0.08) rotate(-1deg);
    clip-path: circle(0% at var(--banquet-ripple-origin-x) var(--banquet-ripple-origin-y));
    background-position:
      50% 50%,
      50% 50%,
      50% 50%,
      50% 50%,
      50% 50%,
      50% 50%;
  }

  22% {
    opacity: 1;
    clip-path: circle(20% at var(--banquet-ripple-origin-x) var(--banquet-ripple-origin-y));
  }

  82% {
    opacity: 1;
    transform: scale(0.98) rotate(1deg);
    clip-path: circle(102% at var(--banquet-ripple-origin-x) var(--banquet-ripple-origin-y));
    background-position:
      calc(50% - 18px) calc(50% - 14px),
      calc(50% - 34px) calc(50% - 28px),
      calc(50% - 64px) calc(50% - 56px),
      calc(50% + 82px) calc(50% - 32px),
      calc(50% - 30px) calc(50% + 82px),
      calc(50% + 48px) calc(50% + 70px);
  }

  100% {
    opacity: 0;
    transform: scale(1) rotate(1deg);
    clip-path: circle(152% at var(--banquet-ripple-origin-x) var(--banquet-ripple-origin-y));
    background-position:
      calc(50% - 40px) calc(50% - 32px),
      calc(50% - 64px) calc(50% - 50px),
      calc(50% - 134px) calc(50% - 114px),
      calc(50% + 152px) calc(50% - 54px),
      calc(50% - 58px) calc(50% + 152px),
      calc(50% + 82px) calc(50% + 128px);
  }
}

@keyframes banquetReadyHalo {
  0% {
    opacity: 0.12;
    transform: translate(-50%, -50%) scale(0.92);
    filter: blur(12px);
  }

  28% {
    opacity: 0.18;
    transform: translate(-50%, -50%) scale(1.02);
    filter: blur(14px);
  }

  100% {
    opacity: 0.1;
    transform: translate(-50%, -50%) scale(1);
    filter: blur(12px);
  }
}

@keyframes banquetReadyShimmer {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.14);
    filter: blur(8px);
  }

  16% {
    opacity: 0.18;
    transform: translate(-50%, -50%) scale(0.28);
    filter: blur(10px);
  }

  54% {
    opacity: 0.1;
    transform: translate(-50%, -50%) scale(0.84);
    filter: blur(11px);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.08);
    filter: blur(12px);
  }
}

.party-table.is-rsvp-ready::before {
  animation: banquetCardSweep 2800ms cubic-bezier(0.16, 1, 0.3, 1) 1;
}

.party-table.is-rsvp-ready::after {
  animation: banquetCardGlitter 2900ms cubic-bezier(0.16, 1, 0.3, 1) 1;
}

.party-table__scene.is-rsvp-ready::before {
  animation: banquetReadyHalo 1200ms cubic-bezier(0.16, 1, 0.3, 1) 1;
}

.party-table__scene.is-rsvp-ready::after {
  animation: banquetReadyShimmer 1200ms cubic-bezier(0.16, 1, 0.3, 1) 1;
}

@keyframes orbitDrift {
  from {
    transform: translateY(0px) rotate(-2deg);
  }
  to {
    transform: translateY(-8px) rotate(3deg);
  }
}

@keyframes orbitReveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.88);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes haloPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
  }
  50% {
    opacity: 0.94;
    transform: scale(1.04);
  }
}

@keyframes platterGlow {
  from {
    opacity: 0.32;
    transform: scale(0.96);
  }
  to {
    opacity: 0.7;
    transform: scale(1.03);
  }
}

@media (max-width: 1080px) {
  .rsvp-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .rsvp-form::before {
    inset: 8px 0 30px;
    border-radius: 28px;
  }

  .rsvp-form::after {
    display: none;
  }

  .poster-head {
    top: 46px;
    width: calc(100% - 34px);
  }

  .poster-head h1 {
    font-size: clamp(3rem, 6.4vw, 3.95rem);
    white-space: normal;
    max-width: 11ch;
    text-wrap: balance;
  }

  .poster-meta {
    width: min(calc(100% - 24px), 40rem);
  }

  .poster-rsvp {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 20px;
  }

  .rsvp-form {
    gap: 16px;
  }

  .reservation-strip {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 26px;
    min-height: auto;
    padding: 16px 18px 16px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.76),
      0 10px 18px rgba(92, 55, 36, 0.05);
  }

  .reservation-strip::after {
    display: none;
  }

  .party-table__scene {
    min-height: 256px;
  }

  .party-table {
    --banquet-ripple-origin-y: 60%;
    width: 100%;
    border-radius: 28px;
    min-height: auto;
    padding: 16px 18px 16px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.78),
      0 14px 24px rgba(92, 55, 36, 0.08);
  }

  .party-table::after {
    inset: 6% 5% 7%;
  }

  .button--submit:not(.party-table__platter) {
    width: auto;
    min-height: 68px;
  }

  .success-slip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  main {
    padding: 12px;
  }

  .poster-stage {
    border-radius: 26px;
  }

  .poster-art {
    min-height: auto;
  }

  .poster-art__image {
    margin-top: -16px;
    margin-bottom: -20px;
    transform: none;
  }

  .poster-art::after {
    height: 58px;
    background: linear-gradient(
      180deg,
      rgba(248, 239, 226, 0),
      rgba(248, 239, 226, 0.18) 28%,
      rgba(248, 239, 226, 0.92)
    );
  }

  .poster-head {
    top: 12px;
    width: calc(100% - 26px);
    max-width: 100%;
  }

  .poster-head h1 {
    font-size: clamp(1.94rem, 6.3vw, 2.34rem);
    max-width: 7.25ch;
    line-height: 0.9;
    white-space: normal;
    text-wrap: balance;
  }

  .poster-lede {
    margin-top: 8px;
    max-width: 14.5rem;
    font-size: 0.75rem;
    line-height: 1.26;
  }

  .poster-meta {
    gap: 7px;
    width: calc(100% - 28px);
    bottom: 30px;
    padding: 0 8px;
  }

  .poster-meta__item {
    min-height: 0;
    padding-inline: 0;
    font-size: 1.08rem;
    line-height: 1.1;
    letter-spacing: 0.004em;
    text-shadow:
      0 1px 0 rgba(255, 250, 241, 0.58),
      0 10px 18px rgba(83, 27, 22, 0.34);
  }

  .poster-rsvp {
    padding: 12px 10px 12px;
    gap: 6px;
  }

  .rsvp-form {
    gap: 8px;
  }

  .reservation-strip {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "name"
      "attendance"
      "counts"
      "phone"
    gap: 8px;
    padding: 10px 10px 6px;
    border-radius: 22px 22px 16px 16px;
  }

  .reservation-strip__intro {
    gap: 4px;
  }

  .reservation-strip__intro h2 {
    font-size: 1.5rem;
    line-height: 0.98;
    max-width: 12ch;
  }

  .reservation-strip__note {
    max-width: 21ch;
    font-size: 0.9rem;
    line-height: 1.34;
  }

  .reservation-strip__counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .attendance-shell {
    gap: 6px;
  }

  .attendance-option span {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 0.88rem;
  }

  .field-shell {
    gap: 5px;
  }

  .field-shell label {
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: rgba(66, 42, 30, 0.92);
  }

  .field-shell input,
  .button {
    min-height: 46px;
  }

  .field-shell input {
    height: 46px;
    padding-inline: 14px;
  }

  .field-shell--count input {
    font-size: 1.22rem;
  }

  .party-table {
    --banquet-ripple-origin-y: 66%;
    padding: 12px 10px 14px;
    gap: 8px;
    margin-top: -10px;
    border-radius: 28px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.78),
      0 16px 26px rgba(92, 55, 36, 0.08);
  }

  .party-table__header {
    align-items: baseline;
    position: relative;
    z-index: 4;
    justify-content: flex-end;
    padding-inline: 12px;
    margin-bottom: 0;
  }

  .party-table__header strong {
    font-size: 1.22rem;
  }

  .party-table__scene {
    min-height: 262px;
    padding: 0 0 6px;
  }

  .party-table__scene::before {
    width: 272px;
    height: 214px;
    opacity: 0.72;
  }

  .party-table__scene::after {
    width: 324px;
    height: 252px;
  }

  .party-table__surface {
    width: 280px;
    height: 280px;
  }

  .party-table__surface::after {
    width: 214px;
    height: 40px;
  }

  .table-place {
    --seat-size: 126px;
    --chair-origin-y: 7px;
    --chair-offset-y: -68px;
    --plate-origin-y: 2px;
    --plate-offset-y: -4px;
  }

  .table-place__chair {
    width: 114px;
    height: 142px;
  }

  .table-place__plate {
    width: 48px;
    height: 48px;
  }

  .table-place__food {
    width: 22px;
    height: 22px;
  }

  .table-place__food .food-sprite--chip {
    width: 22px;
    height: 22px;
  }

  .food-sprite--popout {
    width: 96px;
    height: 96px;
  }

  .food-sprite--trail,
  .food-sprite--burst {
    width: 32px;
    height: 32px;
  }

  .food-sprite--celebration {
    width: 52px;
    height: 52px;
  }

  .party-table__platter {
    top: 55.6%;
    width: 132px;
    height: 88px;
    padding: 0 0 7px;
    filter:
      drop-shadow(0 12px 18px rgba(108, 62, 40, 0.18))
      drop-shadow(0 0 12px rgba(214, 179, 100, 0.1));
  }

  .party-table__platter-label {
    font-size: 0.9rem;
    line-height: 0.92;
    transform: translate(-50%, calc(-50% - 3px));
  }


  .button--submit:not(.party-table__platter) {
    min-width: 0;
    min-height: 82px;
  }

  .party-table__platter.button--submit {
    width: 132px;
    height: 88px;
    min-height: 0;
    padding: 0 0 7px;
  }

  .form-message {
    margin-top: -4px;
    font-size: 0.84rem;
    text-align: center;
  }

  .success-overlay {
    padding: 8px;
  }

  .success-card {
    width: min(406px, 100%);
    gap: 8px;
  }

  .success-card__paper {
    inset: 20.8% 12.6% 12.2%;
    gap: 8px;
  }

  .success-card__paper h2 {
    font-size: clamp(1.34rem, 4.9vw, 1.62rem);
    line-height: 0.96;
  }

  .success-card__message,
  .success-slip__value,
  .success-slip__value--feast {
    font-size: 0.83rem;
    line-height: 1.32;
  }

  .success-card__gift-link,
  .success-card__gift-link:visited {
    font-size: 0.9rem;
  }

  .success-card__gift-note {
    display: none;
  }

  .success-slip {
    width: fit-content;
    max-width: min(100%, 13.5rem);
    grid-template-columns: repeat(2, minmax(6rem, 6.45rem));
    justify-content: center;
    justify-self: center;
    transform: translateX(3px);
    gap: 10px 10px;
    padding: 4px 0 0;
  }

  .success-slip__row {
    gap: 2px;
    padding-inline: 0;
  }

  .success-slip__row--wide {
    padding-bottom: 10px;
    margin-bottom: 8px;
  }

  .success-slip__term {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .success-card__gift {
    gap: 2px;
    margin-top: 6px;
  }
}

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