/* Guest ordering pages: food scroll, checkout, thank-you. Colours from tokens.css only. */
.where { font: 600 22px var(--head); color: #fff; margin-left: auto; }
.muted { color: var(--muted); font-size: 14px; }
.link { background: none; border: 0; color: var(--teal); font-weight: 700; cursor: pointer; padding: 8px 0; }
.tabs { display: flex; background: var(--oxford); position: sticky; top: 0; z-index: 4; }
.tabs button { flex: 1; background: none; border: 0; color: #cfe; padding: 12px 0; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button[aria-selected=true] { color: #fff; border-color: var(--teal); font-weight: 700; }
.hero { position: relative; overflow: hidden; color: #fff; background: var(--oxford) center / cover; padding: 60px 16px 22px; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#041819b3, #04181933 45%, #041819e6); }
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 44px; }
.rule { width: 56px; height: 2px; background: var(--gold); margin: 10px 0; }
.seg { display: flex; background: var(--panel2); border-radius: 999px; padding: 3px; margin: 8px 0; max-width: 420px; }
.hero .seg { background: #ffffff26; }
.seg button { flex: 1; border: 0; background: none; color: var(--text); padding: 10px; border-radius: 999px; font-weight: 500; cursor: pointer; min-height: 44px; }
.seg button[aria-pressed=true] { background: var(--blue); color: #fff; font-weight: 700; }
.hero .seg button[aria-pressed=true] { background: var(--cream); color: var(--oxford); }
.seg button:disabled { opacity: .45; cursor: default; }
.seg button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.sticky { position: sticky; top: 0; z-index: 3; background: var(--oxford); border-bottom: 1px solid var(--blue); display: flex; gap: 4px; padding: 4px 8px; overflow-x: auto; scrollbar-width: none; }
.tabs:not([hidden]) ~ #foodView .sticky { top: 45px; }
.sticky a { color: #fff; text-decoration: none; font-size: 14px; padding: 12px 10px; white-space: nowrap; border-bottom: 2px solid transparent; }
.sticky a.on { border-color: var(--teal); font-weight: 700; }
.band { height: clamp(160px, 28vh, 240px); background: var(--oxford); overflow: hidden; position: relative; color: #fff; display: flex; align-items: flex-end; padding: 14px 16px; scroll-margin-top: 96px; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#0000, #041819dd); }
.band h2 { position: relative; z-index: 1; font-size: clamp(36px, 10vw, 64px); line-height: 1; }
.dish { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.dish img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.dish .nm { flex: 1; font-weight: 500; min-width: 0; }
.dish small { color: var(--muted); display: block; font-weight: 400; }
.dish .side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dish.off { opacity: .5; }
.price { font-weight: 700; white-space: nowrap; }
.mk { display: inline-block; width: 11px; height: 11px; border: 1.5px solid; margin-right: 6px; position: relative; top: 1px; }
.mk.v { color: var(--veg); } .mk.n { color: var(--non); }
.mk::after { content: ""; position: absolute; inset: 2px; background: currentColor; border-radius: 50%; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 9px; background: var(--powder); color: var(--oxford); margin-left: 6px; }
.ctl { display: inline-flex; align-items: center; gap: 6px; }
.ctl .q { min-width: 22px; text-align: center; }
.ctl.on .btn { background: var(--oxford); }
.btn.sm { padding: 8px 16px; font-size: 14px; min-height: 44px; }
#food { padding-bottom: 90px; transition: opacity .2s; }
#food.dim { opacity: 0; }

.obar { position: sticky; bottom: 0; z-index: 6; background: var(--oxford); color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 2px solid var(--teal); }
.obar small { display: block; color: var(--powder); }
.paystrip { background: var(--oxford); color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 2px solid var(--teal); }
.paystrip[hidden] { display: none; }

.co { padding: 16px; max-width: 560px; margin-inline: auto; }
.co h2 { font-size: 30px; margin: 4px 0 10px; }
.co h3 { font-size: 22px; font-family: var(--head); margin-top: 14px; }
.co label { display: block; font-weight: 500; font-size: 14px; }
.co .field { margin: 4px 0 10px; }
.note { font-size: 13px; color: var(--muted); background: var(--panel2); border-radius: 10px; padding: 10px; margin: 10px 0; }
.billbox .line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.billbox .tot { border-top: 1.5px solid var(--line); font-weight: 700; margin-top: 6px; padding-top: 8px; }
.problem { background: #ffdede; color: #8a1c1c; border-radius: 8px; padding: 10px 14px; font-weight: 600; margin: 10px 0; }
fieldset { border: 0; padding: 0; margin-top: 8px; }
legend { font-weight: 700; margin-bottom: 4px; }
.opt { display: flex !important; align-items: center; gap: 10px; background: var(--panel2); border-radius: 12px; padding: 12px; margin: 6px 0; min-height: 44px; }
#go { display: block; width: 100%; margin-top: 10px; }
.center { text-align: center; padding-top: 40px; }
.tick circle, .tick path { stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw .8s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.center .billbox { text-align: left; margin: 14px 0; }

.printbill { display: none; }
@media print {
  body > *:not(#printBill) { display: none !important; }
  #printBill { display: block !important; background: #fff; color: #000; padding: 16px; font-size: 14px; }
  #printBill .line { display: flex; justify-content: space-between; }
  #printBill .ph { background: none; color: #000; border: 1px dashed #000; }
}
@media (prefers-reduced-motion: reduce) {
  #food { transition: none; }
  .tick circle, .tick path { animation: none; stroke-dashoffset: 0; }
}

/* Food scroll look: a slow drifting gradient on the menu header, a big opener for each group whose picture follows the scroll (--d, -1 to 1, both ways), a small lift on a pressed dish picture. Dish rows, cart and checkout stay still. */
.hero::before { content: ""; position: absolute; inset: -30%; background: linear-gradient(135deg, transparent 20%, #0E6B6877 50%, transparent 80%); animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(8%, 6%, 0) rotate(6deg); } }
.band .pic { position: absolute; inset: -60% 0; z-index: 0; background: linear-gradient(135deg, var(--ink), var(--btn)) center / cover; translate: 0 calc(var(--d, 0) * 120px); scale: 1.06; }
.band h2 { translate: 0 calc(var(--d, 0) * -30px); }
.dish img { transition: transform .15s ease; }
.dish:active img { transform: translateY(-2px) scale(1.04); }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } .dish img { transition: none; } .band .pic, .band h2 { translate: none; } }
