/* Phones at the Table: Dinner. Art Deco menu card on dark paper, slow smoke behind,
   glass panels, wood table and seats, three-button glass dock at the bottom. Single dark theme by design. */
:root {
  --night: #28271f;
  --ink: #efe6d2;
  --cream: #f6dfb6;
  --sepia: #c9b48a;
  --gold: #dcb663;
  --pearl: #efe9df;
  --mist: #b9b3ad;
  --teal: #84e3d2;
  --orchid: #e58ce0;
  --leaf: #6ff09a;
  --display: "Federo", "Optima", "Candara", sans-serif;
  --deco: "Poiret One", "Federo", "Optima", sans-serif;
  --body: "Cormorant Garamond", "Garamond", Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { min-height: 100%; margin: 0; }
body {
  background: var(--night); color: var(--ink);
  font-family: var(--body); font-weight: 500; font-size: 18px; line-height: 1.45;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(170px + env(safe-area-inset-bottom, 0px));
  -webkit-tap-highlight-color: transparent;
}
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: var(--night) url("img/background_dark.jpg") center / 100% 100% no-repeat; }
.smoke { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .5; mix-blend-mode: screen; pointer-events: none;
  filter: hue-rotate(var(--hue, 0deg)) saturate(var(--sat, 1)); transition: filter 1.4s ease; }
/* each section tints the candle: foyer amber, hors d'oeuvre rosé, menu violet, sides teal, kids green, dessert gold */
body[data-section="foyer"] { --hue: 115deg; --sat: 1.05; }
body[data-section="hors"] { --hue: 55deg; }
body[data-section="menu"] { --hue: 0deg; }
body[data-section="sides"] { --hue: -95deg; }
body[data-section="kids"] { --hue: -150deg; }
body[data-section="dessert"] { --hue: 135deg; --sat: 1.15; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: 430px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.stagefx { display: flex; flex-direction: column; gap: 14px; transition: opacity .3s ease; }
.stagefx.out { opacity: 0; }
/* screens: glass panels drift down and away, then the next screen's pieces rise in one after another */
.stagefx .panel, .stagefx .pagettl, .stagefx .ring, .stagefx .rank li { transition: transform .3s ease, opacity .3s ease; }
.stagefx.out .panel, .stagefx.out .pagettl, .stagefx.out .rank li { transform: translateY(18px) scale(.985); opacity: 0; }
.stagefx.out .ring { transform: scale(.93); opacity: 0; }
.stagefx.enter .panel, .stagefx.enter .pagettl, .stagefx.enter #screen > .service, .stagefx.enter .rank li { animation: rise-in .65s cubic-bezier(.2, .85, .25, 1) both; animation-delay: calc(var(--i, 0) * 80ms + 40ms); }
.stagefx.enter .ring:not([hidden]) { animation: table-in .8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(26px) scale(.98); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes table-in { from { opacity: 0; transform: scale(.9); filter: blur(3px) brightness(.6); } to { opacity: 1; transform: none; filter: none; } }
/* glass you can tap answers the touch with light */
button.panel { transition: transform .2s ease; }
button.panel:active { transform: scale(.985); }
.answers button { transition: background .2s, border-color .2s, box-shadow .25s, transform .15s; }
@media (hover: hover) { .answers button:hover { border-color: var(--teal); box-shadow: 0 0 12px rgba(132, 227, 210, .35); } }
.answers button:active { transform: scale(.98); box-shadow: 0 0 16px rgba(111, 240, 154, .5); }
.answers button.sel { box-shadow: 0 0 14px rgba(111, 240, 154, .35); }
.result.readonly button { cursor: default; }
.row-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* header plaque */
.plaque { position: relative; width: 100%; aspect-ratio: 1271 / 409; }
.plaque img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.plaque .bg { width: 100%; }
.plaque .tx { width: 87.9%; left: 49.9%; top: 63.7%; filter: drop-shadow(0 0 10px rgba(246, 223, 182, .2)); }

/* the table */
.ring { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1 / 1; margin: 0 auto; }
.ring .table { position: absolute; left: 50%; top: 50%; width: 54%; transform: translate(-50%, -50%); filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .6)); }
.ring svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.seat { position: absolute; width: 15%; transform: translate(-50%, -50%); transition: width .3s; }
.seat img { display: block; width: 100%; height: auto; }
.seat b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 400; font-size: 1.05rem; color: var(--cream); text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 2px #000; }
.seat.on, .seat.ask { width: 18%; }
.seat.on { animation: breathe 3s ease-in-out infinite; }
.seat i { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); font-style: normal; font-family: var(--deco); font-weight: 600; font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--cream); white-space: nowrap; }
.seat.off { opacity: .45; }
@keyframes breathe { 0%,100% { filter: drop-shadow(0 0 2px rgba(111, 240, 154, .3)); } 50% { filter: drop-shadow(0 0 12px rgba(111, 240, 154, .85)); } }
.center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 46%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.center .big { font-family: var(--display); color: var(--cream); font-size: 1.15rem; line-height: 1.1; overflow-wrap: anywhere; text-shadow: 0 2px 4px rgba(0, 0, 0, .9); }
.center .small { font-family: var(--deco); font-weight: 600; color: var(--cream); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; text-shadow: 0 1px 3px #000; }
.center .tf { width: 82%; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .9)); }
.center .n { height: 44px; width: auto; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .8)); }
.center .nt { font-family: var(--display); font-size: 2.3rem; line-height: 1.1; color: var(--cream); text-shadow: 2px 3px 0 #1e1b16, 0 0 6px rgba(0, 0, 0, .7); }

/* glass panel, 9-sliced */
.panel { position: relative; isolation: isolate; color: var(--pearl); padding: 62px 30px 30px 24px; text-align: center; display: flex; flex-direction: column; gap: 14px; }
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-style: solid; border-width: 60px 66px 45px 132px;
  border-image: url("img/rectangle.webp") 200 220 150 440 fill / 60px 66px 45px 132px stretch;
  transition: filter .3s;
}
.panel .tab { position: absolute; top: 17px; left: 134px; right: 42px; text-align: left; font-family: var(--deco); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); white-space: nowrap; }
.panel .notch { position: absolute; top: 2px; left: 10px; width: 112px; text-align: center; font-family: var(--display); font-size: 1.6rem; color: var(--cream); line-height: 1; text-shadow: 2px 2px 0 #1e1b16; }
button.panel { font: inherit; border: 0; background: none; cursor: pointer; width: 100%; color: var(--pearl); }
@media (hover: hover) { button.panel:hover::before { filter: drop-shadow(0 0 6px rgba(132, 227, 210, .9)) drop-shadow(0 0 14px rgba(229, 140, 224, .6)); } }
button.panel:active::before, .panel.sel::before { filter: drop-shadow(0 0 6px rgba(132, 227, 210, .9)) drop-shadow(0 0 14px rgba(229, 140, 224, .6)); }
.list { display: flex; flex-direction: column; gap: 10px; }
.ttl { display: block; height: 32px; width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.ttl.lg { height: 40px; }
.pagettl { display: block; width: 78%; margin: 4px auto 14px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .7)); }

h2 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; margin: 0; text-wrap: balance; color: var(--cream); }
.dish { font-family: var(--display); font-size: 1.55rem; line-height: 1.22; margin: 0; text-wrap: balance; color: var(--cream); }
.pairing { font-family: var(--body); font-style: italic; font-weight: 600; font-size: 1.6rem; line-height: 1.25; margin: 0; text-wrap: balance; color: var(--pearl); }
.who { font-family: var(--deco); font-weight: 600; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--leaf); }
.service { font-size: 1.07rem; font-weight: 500; color: var(--mist); margin: 0; text-wrap: balance; }
.service b { color: var(--pearl); font-weight: 600; }
.desc { font-style: italic; font-size: 1.02rem; color: var(--mist); margin: 0; text-wrap: balance; }
.title { font-family: var(--display); font-size: 1.3rem; line-height: 1.2; color: var(--pearl); text-wrap: balance; }
.note { font-family: var(--deco); font-weight: 600; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--orchid); }
.clock { font-family: var(--display); font-size: 4rem; line-height: 1; color: var(--cream); font-variant-numeric: lining-nums tabular-nums; text-shadow: 2px 3px 0 #1e1b16; }
.feeling { font-family: var(--display); font-size: 2.4rem; line-height: 1.1; color: var(--orchid); margin: 0; }
.emoji { display: block; width: 150px; height: 150px; margin: 4px auto; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5)); animation: fade .45s ease both; }
.veil { border: 1px dashed rgba(132, 227, 210, .5); border-radius: 14px; padding: 20px 12px; color: var(--mist); font-family: var(--deco); font-weight: 600; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; }
.rule { height: 1px; width: 100%; border: 0; margin: 2px 0; background: linear-gradient(90deg, transparent, rgba(132, 227, 210, .6), rgba(229, 140, 224, .6), transparent); }
.link { font-family: var(--deco); font-weight: 600; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; background: none; border: 0; color: var(--teal); cursor: pointer; padding: 6px; align-self: center; }
.link:hover { color: var(--pearl); }
:focus-visible { outline: 2px solid var(--orchid); outline-offset: 3px; }
.tabs { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.tabs button { font-family: var(--deco); font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; background: none; border: 0; border-bottom: 1px solid transparent; color: var(--mist); padding: 4px 0; cursor: pointer; }
.tabs button[aria-pressed="true"] { color: var(--teal); border-bottom-color: var(--teal); }
.tabs button:disabled { cursor: default; }
.dots { display: flex; justify-content: center; gap: 5px; min-height: 10px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 6px rgba(111, 240, 154, .7); }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.field label { font-family: var(--deco); font-weight: 600; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); }
.field input, .code input { font: inherit; font-size: 1.25rem; font-weight: 600; color: var(--pearl); background: transparent; border: 0; border-bottom: 1px solid rgba(132, 227, 210, .45); padding: 6px 2px; border-radius: 0; min-width: 0; width: 100%; }
.field input:focus, .code input:focus { outline: none; border-bottom-color: var(--teal); }
.code { display: flex; gap: 10px; justify-content: center; }
.code input { width: 46px; text-align: center; font-family: var(--display); font-size: 1.8rem; text-transform: uppercase; }
.err { color: var(--orchid); font-size: .98rem; min-height: 1.2em; margin: 0; }
.bigcode { font-family: var(--display); font-size: 2.6rem; letter-spacing: .3em; color: var(--cream); text-shadow: 2px 3px 0 #1e1b16; padding-left: .3em; }
.qr { background: #f6efe0; border-radius: 10px; padding: 10px; width: 170px; max-width: 100%; margin: 0 auto; }
.qr svg { display: block; width: 100%; height: auto; }

/* guest list in the foyer */
.guests { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.guests li { display: flex; align-items: center; gap: 8px; min-height: 40px; border-bottom: 1px solid rgba(132, 227, 210, .15); }
.guests .num { width: 26px; flex: none; font-family: var(--display); color: var(--teal); font-size: .95rem; text-align: right; }
.guests .nm { flex: 1; min-width: 0; font-size: 1.15rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guests .st { font-family: var(--deco); font-weight: 600; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); white-space: nowrap; }
.guests .st.ok { color: var(--leaf); }
.mini { font: inherit; background: none; border: 0; color: var(--mist); cursor: pointer; width: 30px; height: 38px; font-size: 1.05rem; flex: none; }
.mini:hover { color: var(--teal); }

/* maître d' poll */
.answers { display: flex; flex-direction: column; gap: 8px; }
.answers button { font: inherit; font-weight: 600; font-size: 1.15rem; color: var(--pearl); background: rgba(132, 227, 210, .07); border: 1px solid rgba(132, 227, 210, .4); border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.answers button.sel { background: rgba(111, 240, 154, .18); border-color: var(--leaf); }
.banter { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.banter li { font-style: italic; font-size: 1.08rem; color: var(--pearl); text-wrap: balance; }

/* Secret Signal: envelope, wax seal, letter */
.envelope { position: relative; width: 100%; max-width: 280px; aspect-ratio: 260 / 170; margin: 0 auto; }
.envelope svg.env { display: block; width: 100%; height: 100%; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .45)); }
.seal { position: absolute; left: 50%; top: 56.5%; width: 32%; aspect-ratio: 1 / 1; transform: translate(-50%, -50%); border: 0; background: none; padding: 0; cursor: pointer;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.seal svg { display: block; width: 100%; height: 100%; overflow: visible; }
.seal .wax { transition: transform .2s; transform-origin: 50px 50px; }
.seal.holding .wax { transform: scale(.93); }
.seal .prog { stroke-dasharray: 289.03; stroke-dashoffset: 289.03; }
.letter { background: #efe3c6; color: #3b2a20; border-radius: 6px; padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; text-align: center;
  box-shadow: inset 0 0 0 1px #b8924a, inset 0 0 0 5px #efe3c6, inset 0 0 0 6px rgba(184, 146, 74, .5), 0 8px 16px rgba(0, 0, 0, .45); animation: unfold .5s ease both; }
.letter .fam { font-family: var(--deco); font-weight: 600; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: #8e1f2a; }
.letter .mission { font-family: var(--body); font-weight: 600; font-size: 1.38rem; line-height: 1.28; margin: 0; color: #2c1e16; text-wrap: balance; }
.letter .proof { font-style: italic; font-size: .95rem; color: #6b5236; margin: 0; text-wrap: balance; }
@keyframes unfold { from { opacity: 0; transform: translateY(10px) scaleY(.85); } to { opacity: 1; transform: none; } }
.stars { color: var(--gold); letter-spacing: .1em; }
.recap { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.recap li { display: flex; flex-direction: column; gap: 1px; }
.recap .k { font-family: var(--deco); font-weight: 600; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); }
.recap .t { font-size: 1.08rem; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photos img, .thumb { width: 100%; max-width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--teal); display: block; }
.thumb { max-width: 160px; margin: 0 auto; }
.pairs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pairs li { font-size: 1.08rem; }
.pairs li span { display: block; font-family: var(--deco); font-weight: 600; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }

/* overlay for "my mission" */
.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(15, 13, 10, .82); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: max(24px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); }
.overlay .inner { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; text-align: center; }

/* bottom: fade + dock. Buttons are Nate's art; they rise up from below, sink away, lift into the light on hover,
   and a press sends a sweep of light across the glass. */
.cover { position: fixed; left: 0; right: 0; bottom: 0; height: calc(150px + env(safe-area-inset-bottom, 0px)); z-index: 25; pointer-events: none;
  background: url("img/cover_bottom.webp") center bottom / 100% 100% no-repeat; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; height: 140px; pointer-events: none; z-index: 30;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
body.nodock .dock { transform: translateY(110%); }
.dk { position: absolute; bottom: calc(6px + env(safe-area-inset-bottom, 0px) * .6); padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent;
  transform: translateY(0); opacity: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
  transition: transform .55s cubic-bezier(.18, .9, .3, 1.18), opacity .35s ease, filter .25s ease; }
.dk.park { transform: translateY(125%); opacity: 0; pointer-events: none; transition: transform .3s cubic-bezier(.55, 0, .8, .2), opacity .25s ease, filter .2s; }
.dk .art { display: block; width: 100%; height: auto; pointer-events: none; -webkit-user-select: none; user-select: none; }
.dk .lab { position: absolute; inset: 22% 14% 34%; display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--display); font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cream); line-height: 1.1; text-shadow: 2px 2px 0 #1e1b16, 0 0 4px rgba(0, 0, 0, .6); }
#dkL { left: 4px; width: 36%; }
#dkR { right: 4px; width: 36%; }
#dkM { left: 50%; margin-left: -17%; width: 34%; bottom: calc(36px + env(safe-area-inset-bottom, 0px) * .6); z-index: 2; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .55)) drop-shadow(0 0 12px rgba(111, 240, 154, .22)); }
/* light: hover lifts the button and brightens its rim; a press dips it and flares */
@media (hover: hover) {
  .dk:not(.park):not(.idle):hover { transform: translateY(-5px); filter: brightness(1.12) drop-shadow(0 0 8px rgba(132, 227, 210, .55)) drop-shadow(0 0 18px rgba(229, 140, 224, .35)); }
  #dkM:not(.park):not(.idle):hover { filter: brightness(1.12) drop-shadow(0 0 10px rgba(111, 240, 154, .75)) drop-shadow(0 0 22px rgba(220, 182, 99, .45)); }
}
.dk.press:not(.idle) { transform: translateY(2px) scale(.96); transition-duration: .12s; filter: brightness(1.28) drop-shadow(0 0 12px rgba(246, 223, 182, .75)) drop-shadow(0 0 24px rgba(132, 227, 210, .5)); }
.dk::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 248, 225, .85) 50%, transparent 62%) no-repeat; background-size: 260% 100%; background-position: 140% 0;
  -webkit-mask: var(--art) center / 100% 100% no-repeat; mask: var(--art) center / 100% 100% no-repeat; }
.dk.flash::after { animation: sweep .65s ease-out; }
@keyframes sweep { 0% { opacity: 1; background-position: 140% 0; } 100% { opacity: 0; background-position: -40% 0; } }
/* something waiting for you (an unopened mission) breathes with light */
.dk.lit:not(.park) { animation: beckon 2.4s ease-in-out infinite; }
@keyframes beckon { 0%, 100% { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); } 50% { filter: brightness(1.15) drop-shadow(0 0 10px rgba(229, 140, 224, .8)) drop-shadow(0 0 22px rgba(132, 227, 210, .5)); } }
.dk.idle { cursor: default; }
.dk.idle .art { filter: grayscale(1) brightness(.6); }
.dk.idle .lab { opacity: .5; }

.toast { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translate(-50%, -140%); z-index: 50; background: rgba(30, 27, 22, .95); color: var(--cream);
  border: 1px solid rgba(220, 182, 99, .6); border-radius: 999px; padding: 9px 18px; font-family: var(--body); font-weight: 600; font-size: 1rem; transition: transform .3s; max-width: calc(100% - 40px); text-align: center; }
.toast.on { transform: translate(-50%, 0); }
.netpill { position: fixed; right: max(12px, env(safe-area-inset-right, 0px)); top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 45; font-family: var(--deco); font-weight: 600; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orchid); background: rgba(30, 27, 22, .9); padding: 5px 10px; border-radius: 999px; }
.fade { animation: fade .45s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade, .seat.on, .letter { animation: none; } .smoke { display: none; } .dk, .dock, .stagefx { transition: none; } .dk.lit { animation: none; } }

/* the Server's voice, as a caption: table-wide lines on every phone, personal lines on one */
.caption { position: fixed; left: 50%; top: calc(18px + env(safe-area-inset-top, 0px)); z-index: 48; width: min(390px, calc(100% - 32px)); transform: translate(-50%, -12px); opacity: 0;
  transition: opacity .4s ease, transform .4s ease; text-align: center; padding: 16px 22px 18px; border-radius: 18px; cursor: pointer;
  background: linear-gradient(180deg, rgba(36, 32, 24, .96), rgba(24, 22, 17, .96)); border: 1px solid rgba(220, 182, 99, .55);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .55), inset 0 0 0 4px rgba(24, 22, 17, .96), inset 0 0 0 5px rgba(220, 182, 99, .25); }
.caption.on { opacity: 1; transform: translate(-50%, 0); }
.caption .by { display: block; font-family: var(--deco); font-weight: 600; font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.caption p { margin: 0; font-family: var(--body); font-style: italic; font-weight: 500; font-size: 1.32rem; line-height: 1.32; color: var(--cream); text-wrap: balance; }

/* the welcome: Nate's candlelit loop behind, his logo settling in, the Server's words a sentence at a time */
body.welcoming .plaque { display: none; }
.wvid { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; pointer-events: none; animation: fade 1.6s ease both; }
.wshade { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(20, 16, 24, .15) 0%, rgba(20, 16, 24, .25) 35%, rgba(20, 16, 24, .62) 62%, rgba(20, 16, 24, .3) 100%); }
.welcome { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 4px 6px 0; }
.wlogo { width: 104%; max-width: 470px; margin-bottom: 4px; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .7)); animation: logo-in 1.8s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes logo-in { from { opacity: 0; transform: scale(1.08) translateY(-6px); } to { opacity: 1; transform: none; } }
.welcome .by { font-family: var(--deco); font-weight: 600; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); text-shadow: 0 1px 6px #000; animation: fade 1s ease 1.2s both; }
.welcome p { margin: 0; font-family: var(--body); font-style: italic; font-weight: 500; font-size: 1.62rem; line-height: 1.34; color: var(--cream); text-wrap: balance;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .8); animation: rise 1.4s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }

/* ordering: choices with a line of description */
.answers.choices button { display: flex; flex-direction: column; gap: 2px; border-radius: 18px; padding: 10px 16px; text-align: center; line-height: 1.25; }
.answers.choices button small { font-style: italic; font-weight: 500; font-size: .92rem; color: var(--mist); }
.answers.choices button:disabled { opacity: .45; cursor: default; }

/* the order book and the receipt */
.guests.book li { align-items: flex-start; padding: 8px 0; }
.guests.book .num { padding-top: 3px; }
.guests .bk { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.guests .bk .nm { white-space: normal; }
.guests .bk .nm small { font-family: var(--deco); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.guests .ord { font-size: .98rem; font-style: italic; color: var(--pearl); line-height: 1.3; }
.guests .ord.sub { color: var(--mist); font-size: .92rem; }
.guests.book .st { padding-top: 6px; }
.recap .s { font-family: var(--deco); font-weight: 600; font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); }
.recap .s.ok { color: var(--leaf); }
.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; text-align: left; }
.items li { display: flex; align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid rgba(132, 227, 210, .15); }
.items li.done { opacity: .6; }
.items .nm { flex: 1; min-width: 0; font-size: 1.12rem; font-weight: 600; display: flex; flex-direction: column; }
.items .nm small { font-family: var(--deco); font-weight: 600; font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.items .st { font-family: var(--deco); font-weight: 600; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.items .st.ok { color: var(--leaf); }
.req { font-family: var(--deco); font-weight: 600; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--night); background: var(--leaf);
  border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; box-shadow: 0 0 10px rgba(111, 240, 154, .35); }
.req:disabled { background: rgba(185, 179, 173, .25); color: var(--mist); box-shadow: none; cursor: default; }

/* main course ranking: a stack of blocks you drag into your own order */
.rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rank li { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 10px; border-radius: 16px; text-align: left; cursor: grab;
  background: linear-gradient(180deg, rgba(46, 52, 44, .92), rgba(30, 33, 28, .92)); border: 1px solid rgba(132, 227, 210, .4);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35); touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.rank .pos { width: 30px; flex: none; font-family: var(--display); font-size: 1.25rem; color: var(--cream); text-align: center; text-shadow: 2px 2px 0 #1e1b16; }
.rank .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rank .by { font-family: var(--deco); font-weight: 600; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--leaf); }
.rank .q { font-size: 1.12rem; font-weight: 600; line-height: 1.28; color: var(--pearl); text-wrap: balance; }
.rank .grip { flex: none; color: var(--teal); letter-spacing: -2px; font-size: 1.1rem; opacity: .7; }
.rank li.chosen { border-color: var(--leaf); box-shadow: 0 0 14px rgba(111, 240, 154, .5), 0 10px 22px rgba(0, 0, 0, .5); }
.rank li.ghost { opacity: .35; }
.result { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.result button { font: inherit; width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; color: var(--pearl); cursor: pointer;
  background: rgba(132, 227, 210, .06); border: 1px solid rgba(132, 227, 210, .3); border-radius: 14px; padding: 8px 12px; }
.result button.sel { background: rgba(111, 240, 154, .16); border-color: var(--leaf); }
.result .pos { width: 26px; flex: none; font-family: var(--display); color: var(--teal); }
.result .q { flex: 1; min-width: 0; font-size: 1.02rem; font-weight: 600; line-height: 1.25; }
.result .pts { font-family: var(--display); color: var(--cream); font-size: .95rem; }
@media (prefers-reduced-motion: reduce) { .welcome p, .welcome .by, .wlogo, .wvid { animation: none; } .caption { transition: none; } .stagefx.enter * { animation: none !important; } }

/* your mission: a wax seal in the top corner. It breathes with light while the envelope is still sealed. */
.seal-badge { position: fixed; z-index: 35; top: calc(8px + env(safe-area-inset-top, 0px)); right: max(8px, env(safe-area-inset-right, 0px)); width: 58px; height: 58px;
  padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); transition: transform .25s cubic-bezier(.2, .9, .3, 1.2), filter .25s; animation: seal-in .6s cubic-bezier(.2, .9, .3, 1.2) both; }
.seal-badge img { display: block; width: 100%; height: 100%; }
@media (hover: hover) { .seal-badge:hover { transform: scale(1.08) rotate(-4deg); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)) drop-shadow(0 0 10px rgba(220, 80, 90, .55)); } }
.seal-badge:active { transform: scale(.92); }
.seal-badge.beckon { animation: seal-in .6s both, seal-glow 2.2s ease-in-out .6s infinite; }
@keyframes seal-in { from { opacity: 0; transform: scale(.6) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes seal-glow { 0%, 100% { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); } 50% { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)) drop-shadow(0 0 14px rgba(240, 110, 110, .85)); } }
.overlay .note { display: block; margin-bottom: -4px; }
.recap li.dropped { opacity: .55; }

/* Guess My Emoji: a strip of faces to swipe through. The last one in view is cut off, so you can tell there are more. */
.estrip { display: grid; grid-auto-flow: column; grid-auto-columns: 26%; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 6px 2px 10px; margin: 0 -10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.estrip::-webkit-scrollbar { display: none; }
.estrip button { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 16px; cursor: pointer;
  background: rgba(132, 227, 210, .06); border: 1px solid rgba(132, 227, 210, .3); color: var(--pearl); font: inherit; transition: transform .15s, border-color .2s, box-shadow .2s, background .2s; }
.estrip button img { width: 78%; height: auto; aspect-ratio: 1 / 1; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.estrip button span { font-size: .82rem; font-weight: 600; line-height: 1.1; text-align: center; min-height: 2.2em; display: flex; align-items: center; }
.estrip button:active { transform: scale(.95); }
.estrip button.sel { background: rgba(111, 240, 154, .16); border-color: var(--leaf); box-shadow: 0 0 14px rgba(111, 240, 154, .45); }

/* the invitation to become a tester, on tables hosted from a browser */
.tester { align-self: center; font-family: var(--display); font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--night);
  background: var(--leaf); border-radius: 999px; padding: 13px 26px; box-shadow: 0 0 18px rgba(111, 240, 154, .45), 0 6px 16px rgba(0, 0, 0, .4); transition: transform .15s, box-shadow .2s; }
.tester:active { transform: scale(.97); }
@media (hover: hover) { .tester:hover { box-shadow: 0 0 26px rgba(111, 240, 154, .7), 0 8px 18px rgba(0, 0, 0, .45); } }

/* the first-time cards */
.panel.intro { gap: 16px; }
.course-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.course-list li { font-size: 1.04rem; color: var(--mist); line-height: 1.38; padding-left: 14px; border-left: 1px solid rgba(220, 182, 99, .45); }
.course-list b { font-family: var(--display); font-weight: 400; color: var(--cream); letter-spacing: .02em; }
.dots { display: flex; justify-content: center; gap: 9px; margin-top: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(239, 233, 223, .25); transition: background .3s, transform .3s; }
.dots i.on { background: var(--gold); transform: scale(1.25); }
.link.howto { align-self: center; margin-top: 4px; }

/* the host's choices for the evening, side by side */
.answers.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.answers.duo button small { font-size: .86rem; }
