/* The Steak Night Tab — the Lyceum's look (EB Garamond + Marcellus, navy and gold). */
:root {
  color-scheme: light;
  --bg: #f2f5fa; --card: #ffffff; --card2: #f7f9fc; --line: #d5dde9; --line2: #e4e9f1;
  --ink: #1c2740; --ink2: #4c5568; --mut: #7d8593;
  --gold: #96731a; --gold-deep: #6f5410; --line-gold: #d3bd85; --on-gold: #ffffff; --gold-wash: #f6efdc; --gold-on-ink: #e2c47a;
  --wine: #a32733; --wine-bg: #fbecee; --laurel: #47714f; --laurel-bg: #e9f2eb; --amber: #9a6a00; --amber-bg: #fdf3dc;
  --paper: #fbfaf5;
  --band: #1c2740; --band-text: #f2f5fa;
  --display: "Marcellus", Georgia, "Times New Roman", serif;
  --body: "EB Garamond", Georgia, "Times New Roman", serif;
}
/* Same rule as the site: light unless the visitor picked dark there (lyceum-theme, set in each page's head). */
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #101b31; --card: #162643; --card2: #1b2d4f; --line: #2a4066; --line2: #22375a;
    --ink: #f4f7fc; --ink2: #b4c2da; --mut: #8a99b5;
    --gold: #d7b45f; --gold-deep: #e6c97d; --line-gold: #4d4426; --on-gold: #10192b; --gold-wash: #2a2a22; --gold-on-ink: #d7b45f;
    --wine: #e0616c; --wine-bg: #3a1f2e; --laurel: #93b89a; --laurel-bg: #1d3530; --amber: #e7b857; --amber-bg: #3a3222;
    --paper: #efece3;
    --band: #0a1222; --band-text: #f2f5fa;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; font-variant-numeric: tabular-nums; -webkit-text-size-adjust: 100%; }
/* no line ever ends with one word alone: "pretty" inherits to every text block; headings and questions balance */
body { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; font-variant-caps: small-caps; letter-spacing: 0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
a { color: var(--gold); }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- guest shell ---------- */
.app { min-height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; background: var(--bg); }
.bar { position: sticky; top: 0; z-index: 5; padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 12px; background: var(--card); border-bottom: 1px solid var(--line-gold); display: flex; flex-direction: column; gap: 8px; }
.bar-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kicker { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.pill-btn { border: 1px solid var(--line); background: var(--card2); border-radius: 999px; padding: 4px 11px; font-size: 13px; cursor: pointer; color: var(--ink2); white-space: nowrap; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.progress span { height: 4px; border-radius: 2px; background: var(--line); }
.progress span.on { background: var(--gold); }
.step { flex: 1; padding: 18px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.q { font-family: var(--display); font-size: 26px; line-height: 1.2; text-wrap: balance; }
.q-sub { font-size: 15.5px; color: var(--ink2); margin-top: -8px; }
.foot { position: sticky; bottom: 0; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--card); border-top: 1px solid var(--line2); display: flex; flex-direction: column; gap: 8px; }
.cta { width: 100%; border: 0; border-radius: 12px; padding: 15px; background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: 17px; cursor: pointer; }
.cta:disabled { opacity: 0.45; cursor: not-allowed; }
.ghost { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--card); font-size: 15.5px; cursor: pointer; color: var(--ink2); }
.back { border: 0; background: none; color: var(--mut); font-size: 14.5px; cursor: pointer; padding: 0; align-self: flex-start; }
.running { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--ink2); }
.running b { color: var(--ink); }
.fine { font-size: 13.5px; color: var(--mut); }
.err { font-size: 14.5px; color: var(--wine); }
.ok-line { font-size: 15px; color: var(--laurel); text-align: center; }
.saving { font-size: 12.5px; color: var(--mut); text-align: right; min-height: 18px; }

/* welcome (name step) and splash: the seal, faint, behind the empty space */
.welcome, .sealed { position: relative; isolation: isolate; }
.welcome::after, .sealed::after {
  content: ""; position: absolute; left: 50%; width: min(440px, 92%); aspect-ratio: 1; transform: translateX(-50%);
  background: url(/tab/seal.webp?v=2) center / contain no-repeat; opacity: 0.13; z-index: -1; pointer-events: none;
}
.welcome::after { top: 190px; }
.sealed::after { top: 40px; opacity: 0.1; }
:root[data-theme="dark"] .welcome::after, :root[data-theme="dark"] .sealed::after { opacity: 0.16; }
.welcome-head { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 10px 0 6px; }
.welcome-head .q { font-size: 30px; }
.welcome-head .q-sub { margin-top: 0; }

/* name search */
.search { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--gold); border-radius: 12px; padding: 11px 12px; background: var(--card); }
.search svg { width: 18px; height: 18px; color: var(--mut); flex: none; }
.search input { border: 0; outline: 0; background: transparent; font-size: 18px; width: 100%; }
.names { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.name-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border: 0; border-top: 1px solid var(--line2); cursor: pointer; background: none; text-align: left; font-size: 17px; width: 100%; min-height: 50px; }
.name-row:first-child { border-top: 0; }
.name-row:hover { background: var(--gold-wash); }
.name-row.sel { background: var(--gold); color: var(--on-gold); font-weight: 600; }
.name-row.add { color: var(--gold); font-weight: 600; }
.name-hint { padding: 12px 14px; font-size: 15px; color: var(--ink2); }

/* items */
#specials { display: flex; flex-direction: column; gap: 10px; }
.special { border: 1.5px solid var(--gold); border-radius: 14px; background: var(--gold-wash); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.special-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.special-name { font-family: var(--display); font-size: 22px; }
.special-price { font-size: 17px; color: var(--gold-deep); font-weight: 600; }
.special-note { font-size: 14.5px; color: var(--ink2); }
/* other specials: between the regular special's card and a plain row */
.special.alt { border-width: 1px; padding: 12px 14px; gap: 8px; border-radius: 12px; }
.special.alt .special-name { font-size: 18px; }
.special.alt .special-price { font-size: 15.5px; }
.special.alt .special-note { font-size: 13.5px; }
.sec { display: flex; flex-direction: column; }
.sec-h { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 10px; background: var(--band); color: var(--band-text); margin-bottom: 2px; }
button.sec-h { width: 100%; border: 0; cursor: pointer; font: inherit; text-align: left; }
.sec-h > span { display: inline-flex; align-items: center; gap: 8px; }
.chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.15s; }
.sec.folded .chev { transform: rotate(-45deg); }
.sec-h h3 { font-size: 19px; color: var(--gold-on-ink); letter-spacing: 0.04em; }
.sec-h span { font-size: 12px; opacity: 0.75; letter-spacing: 0.08em; text-transform: uppercase; }
.sub-h { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 700; padding: 12px 2px 0; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--line2); }
.row-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.row-name { font-size: 16.5px; line-height: 1.25; text-wrap: balance; }
.row-meta { font-size: 13px; color: var(--mut); }
.ctrls { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.row.picking .ctrls { grid-column: 1 / -1; flex-wrap: wrap; }
.row.picking .split-label { flex-basis: 100%; margin: 0 0 2px; }
.row.picking .way { flex: 1; }
.row.picking .way.cancel { flex: 1.4; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.stepper button { width: 42px; height: 42px; border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--gold); border-radius: 999px; }
.stepper button:disabled { color: var(--line); cursor: not-allowed; }
.stepper b { min-width: 24px; text-align: center; font-size: 17px; }
/* picked: white with green, readable on a white row and on a gold special card alike */
.stepper.has { border-color: var(--laurel); background: var(--card); }
.stepper.has b, .stepper.has button:not(:disabled) { color: var(--laurel); }
.split-btn { border: 1px solid var(--line); background: var(--card); border-radius: 999px; height: 42px; padding: 0 12px; font-size: 14px; color: var(--ink2); cursor: pointer; }
.split-label { font-size: 14px; color: var(--ink2); margin-right: 2px; }
.way { border: 1px solid var(--line); background: var(--card); border-radius: 10px; min-width: 44px; height: 42px; cursor: pointer; font-size: 15.5px; font-weight: 600; }
.way:hover { border-color: var(--gold); }
.way.cancel { color: var(--mut); font-weight: 400; padding: 0 10px; }
.split-chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 6px 0 12px; border-radius: 999px; border: 1px solid var(--gold); background: var(--gold-wash); font-size: 14.5px; font-weight: 600; color: var(--gold-deep); }
.split-chip button { border: 0; background: none; width: 30px; height: 30px; border-radius: 999px; cursor: pointer; color: var(--mut); font-size: 17px; }
.more { border: 0; background: none; color: var(--gold); font-weight: 600; font-size: 14.5px; padding: 8px 2px; cursor: pointer; align-self: flex-start; }

/* totals + pay */
.bigtotal { text-align: center; padding: 6px 0 2px; }
.bigtotal .amt { font-family: var(--display); font-size: 52px; line-height: 1; }
.bill { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.bill-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line2); font-size: 15.5px; }
.bill-row:first-child { border-top: 0; }
.bill-row .muted { color: var(--mut); font-size: 13.5px; }
.bill-row.sub { background: var(--card2); color: var(--ink2); }
.bill-row.round { color: var(--laurel); font-size: 14px; padding-top: 5px; padding-bottom: 5px; }
.bill-row.tot { font-weight: 700; font-size: 17px; }
.payee { text-align: center; font-size: 15px; color: var(--ink2); }
.payee b { color: var(--ink); }
.rails { display: flex; flex-direction: column; gap: 8px; }
/* payment rails: one slim row each, the app's official mark, the handle, a button in the brand's color */
.rail { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 12px; min-height: 60px; padding: 8px 10px 8px 12px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); text-decoration: none; }
a.rail:hover { border-color: var(--line-gold); }
.rail-logo { display: flex; align-items: center; justify-content: center; }
.rail-logo svg { display: block; }
.logo-venmo { width: 72px; height: 14px; fill: #008cff; }
.logo-cash { width: 34px; height: 34px; fill: #00d632; }
.logo-zelle { width: 20px; height: 34px; fill: #6d1ed4; }
.rail-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.rail-text b { font-size: 16.5px; font-weight: 600; overflow-wrap: anywhere; }
.rail-text small { font-size: 13px; color: var(--mut); }
.rail-go { border: 0; border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; cursor: pointer; }
.go-venmo { background: #008cff; }
.go-cash { background: #00d632; color: #0b2e13; }
.go-zelle { background: #6d1ed4; }
/* after paying: the Discord and Instagram, as rails with the brand's own tile */
.stay { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.stay .kicker { text-align: center; }
.social { width: 38px; height: 38px; border-radius: 28%; display: grid; place-items: center; }
.social svg { width: 22px; height: 22px; fill: #fff; }
.social.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.go-discord { background: #5865f2; }
.go-ig { background: #d6249f; }
.sent { display: flex; flex-direction: column; gap: 6px; }
.ipaid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.btn { border: 1px solid var(--line-gold); color: var(--gold); background: var(--card); border-radius: 9px; padding: 9px 14px; font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--card2); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.btn.on { background: var(--laurel); border-color: var(--laurel); color: #fff; }
/* back from the payment app: the one button left to tap */
.btn.nudge { background: var(--gold); border-color: var(--gold); color: var(--on-gold); box-shadow: 0 0 0 4px var(--gold-wash); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* receipt sheet */
.sheet { position: fixed; inset: 0; background: rgb(10 16 30 / 0.55); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.sheet-card { background: var(--card); width: 100%; max-width: 560px; height: 90dvh; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; }
.sheet-h { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 8px; }
.sheet-h h3 { font-size: 21px; }
.x { border: 0; background: var(--card2); border-radius: 999px; width: 36px; height: 36px; cursor: pointer; font-size: 19px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; margin: 0 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: var(--card); padding: 9px; cursor: pointer; font-size: 15px; color: var(--ink2); }
.seg button.on { background: var(--gold); color: var(--on-gold); font-weight: 600; }
.sheet-body { flex: 1; overflow-y: auto; padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
.sheet-body img { width: 100%; border-radius: 6px; margin-bottom: 12px; display: block; }
.clean-cat { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mut); font-weight: 600; padding: 12px 0 4px; }
.clean-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line2); font-size: 15.5px; }
.clean-row span:first-child { color: var(--mut); }
.clean-tot { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15.5px; }
.clean-tot.big { font-weight: 700; font-size: 17px; border-top: 1px solid var(--line-gold); margin-top: 4px; padding-top: 10px; }

/* splash */
.splash { max-width: 520px; margin: 0 auto; padding: 88px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.splash h1 { font-size: clamp(30px, 7vw, 40px); line-height: 1.15; }
.splash p { font-size: 17px; color: var(--ink2); text-wrap: pretty; }
.eyebrow { font-size: 12.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 600; }

[data-step="5"] { gap: 12px; padding-top: 12px; }
[data-step="5"] .bigtotal .amt { font-size: 46px; }

/* narrow phones: a smaller counter and Split button give item names the room to wrap without a lone word */
@media (max-width: 380px) {
  .row { gap: 8px; }
  .row-name { font-size: 16px; }
  .stepper button { width: 36px; height: 38px; font-size: 20px; }
  .stepper b { min-width: 18px; }
  .split-btn { height: 38px; padding: 0 9px; font-size: 13.5px; }
  .ctrls { gap: 4px; }
}
/* the smallest phones (320px): the counter sits under the name, so a name never wraps to a lone word */
@media (max-width: 340px) {
  .row { grid-template-columns: 1fr; }
  .ctrls { justify-content: flex-start; }
}
