/* The Endless Table (/table) */
.et { max-width: 900px; margin: 0 auto; padding: 24px 16px 60px; }
.et [hidden] { display: none !important; }
.et section { margin-top: 44px; scroll-margin-top: 16px; }
.et h1, .et h2 { font-family: var(--font-display); color: var(--text); line-height: 1.08; }
.et h1 { font-size: clamp(38px, 9vw, 72px); letter-spacing: -0.03em; margin: 0 0 14px; }
.et h1 span { background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.et h2 { font-size: clamp(22px, 4vw, 30px); margin: 0 0 10px; }
.et h3 { color: var(--text); font-size: 15px; margin: 0 0 10px; }
.et p, .et li { color: var(--muted); font-size: 15px; line-height: 1.6; }
.et a:not(.et-btn) { color: var(--brand-dark); }
.et .et-back { font-size: 13px; text-decoration: none; }
.et-hero { text-align: center; max-width: 680px; margin: 34px auto 0; }
.et .et-kicker { color: var(--gold); font-weight: 800; font-size: 14px; margin: 0 0 8px; }
.et .et-lead { font-size: 17px; }
.et .et-fine { font-size: 12.5px; }
.et .et-status:empty { display: none; }
.et .et-status.error { color: #ffb1a3; font-weight: 600; }
.et code { color: var(--gold); overflow-wrap: anywhere; }

.et-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border: 0; border-radius: 999px;
  background: var(--hot); color: #fff; font: 700 15px/1.2 "Plus Jakarta Sans", sans-serif; text-decoration: none; cursor: pointer; }
.et-btn:disabled { opacity: 0.6; cursor: wait; }
.et-btn.et-ghost { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.et-btn:focus-visible, .et textarea:focus-visible, .et summary:focus-visible, .et a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.et-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* the dish waiting under its cover */
.et-open { display: grid; grid-template-columns: 340px 1fr; gap: 36px; align-items: center; }
.et-plate { position: relative; aspect-ratio: 1; }
.et-plate img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 10px solid #f4ecf3; box-shadow: var(--shadow-lg); box-sizing: border-box; }
.et-glow { position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 77, 0.4), transparent 68%); }
.et-cloche { position: absolute; left: -4%; bottom: 4%; width: 108%; filter: drop-shadow(0 14px 24px rgba(20, 6, 24, 0.5)); opacity: 0; transform: translateY(-70%) rotate(-12deg); pointer-events: none; }
.et-open.et-lifting .et-cloche { animation: et-lift 1.5s 0.35s cubic-bezier(0.6, 0, 0.2, 1) backwards; }
@keyframes et-lift { from { opacity: 1; transform: none; } 70% { opacity: 1; } to { opacity: 0; transform: translateY(-70%) rotate(-12deg); } }

.et-steps { list-style: none; counter-reset: step; padding: 0; margin: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.et-steps > li { counter-increment: step; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 18px; min-width: 0; }
.et-steps > li > b { color: var(--text); font-size: 16px; }
.et-steps > li > b::before { content: counter(step) ". "; color: var(--gold); }
.et-steps p { margin: 6px 0 10px; }
.et textarea { display: block; width: 100%; box-sizing: border-box; margin: 0 0 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font: 16px/1.45 ui-monospace, Consolas, monospace; resize: vertical; }
.et #invite { font-size: 13px; }

/* the table itself: a lit runner with guests on both sides */
.et-guests { list-style: none; margin: 22px 0 0; padding: 4px 0; position: relative; }
.et-guests:not(:empty)::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 10px; margin-left: -5px; border-radius: 10px;
  background: linear-gradient(#ffc44d, #ff5e3a 40%, rgba(255, 61, 127, 0.15)); }
.et-guest { position: relative; width: calc(50% - 34px); box-sizing: border-box; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 14px; margin: 0 0 14px; }
.et-guest:nth-child(even) { margin-left: auto; }
.et-guest::after { content: ""; position: absolute; top: 24px; right: -41px; width: 14px; height: 14px; border-radius: 50%; background: #fff3d6; box-shadow: 0 0 16px 5px rgba(255, 196, 77, 0.6); }
.et-guest:nth-child(even)::after { right: auto; left: -41px; }
.et-guest h3 { margin: 0 0 8px; overflow-wrap: anywhere; }
.et-guest h3 a { color: inherit !important; text-decoration: none; }
.et-guest h3 a:hover { text-decoration: underline; }
.et .et-dish { display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; margin: 8px 0; font-size: 13px; line-height: 1.4; }
.et-dish img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.et-dish b { display: block; color: var(--text); font-size: 14px; }
.et .et-reaction { color: var(--gold); font-weight: 700; margin: 8px 0; }

.et-receipt { background: var(--card); border: 1px solid var(--border); border-radius: 26px; padding: 24px 18px; text-align: center; box-shadow: var(--shadow-lg); }
.et-receipt-body { display: grid; grid-template-columns: 1fr minmax(120px, 0.7fr) 1fr; gap: 14px; align-items: center; margin: 18px 0; }
.et-receipt figure { margin: 0; min-width: 0; }
.et-receipt img { width: 100%; max-width: 220px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.et-receipt figcaption { display: grid; gap: 2px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.et-receipt figcaption b { color: var(--text); font-size: 17px; }
.et-receipt .et-reaction { font-size: 18px; }

.et-versus { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.et-versus > div { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 16px; min-width: 0; }
.et-agents details { border-top: 1px solid var(--border); padding: 12px 0; }
.et-agents summary { color: var(--text); font-weight: 700; cursor: pointer; padding: 6px 0; }
.et-agents pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px; overflow: auto; font-size: 12.5px; line-height: 1.5; color: var(--text); }

@media (max-width: 720px) {
  .et-open, .et-steps, .et-versus { grid-template-columns: minmax(0, 1fr); }
  .et-open { text-align: center; gap: 22px; }
  .et-plate { width: min(260px, 72vw); margin: 0 auto; }
  .et-guests:not(:empty)::before { left: 7px; }
  .et-guest, .et-guest:nth-child(even) { width: auto; margin-left: 34px; }
  .et-guest::after, .et-guest:nth-child(even)::after { right: auto; left: -34px; }
  .et-receipt-body { grid-template-columns: 1fr 1fr; align-items: start; }
  .et-receipt-body .et-reaction { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) { .et-open.et-lifting .et-cloche { animation: none; } }
