:root {
  --bg: #f8f6e9; --surface: #ffffff; --surface-2: #f4eadb; --ink: #2a1a14; --muted: #7b665a;
  --brand: #2f6b3f; --brand-ink: #fffbea; --accent: #e2a227; --ok: #2f7d4f; --danger: #b3261e;
  --line: #e8dccb; --shadow: 0 6px 24px rgba(60, 25, 10, .12); --radius: 16px;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #1a1210; --surface: #251a17; --surface-2: #31231e; --ink: #f6ebe0; --muted: #b9a596; --brand: #7cc47f; --brand-ink: #fff; --line: #3e2e27; --shadow: 0 6px 24px rgba(0,0,0,.4); color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); min-height: 100dvh; padding-bottom: 140px; -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--surface); padding: 8px; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
[hidden] { display: none !important; }

.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--brand); color: var(--brand-ink); }
.brand { display: flex; gap: 10px; align-items: center; } .brand small { display: block; opacity: .85; font-size: .8rem; }
.logo { font-size: 1.8rem; }
.icon-btn { min-width: 44px; min-height: 44px; border-radius: 999px; border: 0; background: rgba(255,255,255,.14); font-size: 1.15rem; }
.sheet .icon-btn { background: var(--surface-2); }

.tabs { position: sticky; top: calc(64px + env(safe-area-inset-top)); z-index: 19; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 14px 4px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.lock { font-size: .8em; }
main { max-width: 760px; margin: 0 auto; padding: 12px 16px; }

.search-row input { width: 100%; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; font-size: .9rem; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

.offers { display: flex; gap: 10px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; }
.offer { flex: 0 0 min(78%, 300px); padding: 14px; border-radius: var(--radius); background: linear-gradient(135deg, var(--accent), #d0671f); color: #2a1306; }
.offer h3 { margin: 0 0 4px; font-size: 1rem; } .offer p { margin: 0 0 10px; font-size: .88rem; }
.offer button { border: 0; background: #2a1306; color: #fff; padding: 8px 12px; border-radius: 999px; font-weight: 600; }

.cat-title { margin: 22px 0 8px; font-size: 1.15rem; }
.menu-list { display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.item.unavailable { opacity: .55; }
.item .art { width: 76px; height: 76px; border-radius: 14px; display: grid; place-items: center; font-size: 2.4rem; background: radial-gradient(circle at 30% 30%, #fff3dd, #f0d2a6); }
.item h3 { margin: 0; font-size: 1rem; } .item p { margin: 4px 0 8px; color: var(--muted); font-size: .88rem; line-height: 1.35; }
.item .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 700; } .price s { color: var(--muted); font-weight: 400; margin-right: 6px; }
.tag { font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); margin-right: 4px; }
.tag.veg { color: var(--ok); }
.qty { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 999px; }
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 1.2rem; font-weight: 700; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.add { border: 0; background: var(--brand); color: var(--brand-ink); padding: 9px 18px; border-radius: 999px; font-weight: 700; min-height: 40px; }
.add:active, .primary:active { transform: scale(.97); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.skeleton { height: 100px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.cart-bar { position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 30; max-width: 728px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 18px; border: 0; border-radius: 999px; background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow); font-weight: 600; }
.primary { border: 0; background: var(--brand); color: var(--brand-ink); padding: 12px 22px; border-radius: 999px; font-weight: 700; min-height: 46px; }
.primary:disabled { opacity: .6; }
.ghost { border: 1px solid var(--line); background: var(--surface); padding: 10px 16px; border-radius: 999px; font-weight: 600; min-height: 44px; }

dialog { border: 0; padding: 0; width: min(560px, 100%); max-height: 90dvh; border-radius: 22px 22px 0 0; margin: auto auto 0; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
@media (min-width: 640px) { dialog { border-radius: 22px; margin: auto; } }
dialog::backdrop { background: rgba(20, 8, 4, .45); }
.sheet { padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; max-height: 90dvh; }
.sheet-head, .sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet h2 { margin: 0; font-size: 1.2rem; }
.line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.notes { display: grid; gap: 6px; font-size: .9rem; } .notes textarea { padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; }
.error { color: var(--danger); margin: 0; min-height: 1em; }

.chat-log { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; min-height: 200px; max-height: 55dvh; }
.msg { padding: 10px 14px; border-radius: 16px; max-width: 88%; white-space: pre-wrap; line-height: 1.4; }
.msg.bot { background: var(--surface-2); align-self: flex-start; } .msg.me { background: var(--brand); color: var(--brand-ink); align-self: flex-end; }
.chat-form { display: flex; gap: 8px; } .chat-form input { flex: 1; padding: 12px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; }

/* order tracking */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0; }
.step { text-align: center; font-size: .78rem; color: var(--muted); }
.step .dot { width: 34px; height: 34px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 1rem; }
.step.done { color: var(--ink); } .step.done .dot { background: var(--ok); color: #fff; }
.step.current .dot { background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { transform: scale(1.12); } }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); font-weight: 700; text-transform: capitalize; }

/* games */
.order-mini { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--surface-2); font-size: .9rem; margin-bottom: 12px; }
.order-mini button { border: 0; background: none; color: var(--brand); font-weight: 700; }
.game-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.game-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.game-card .thumb { height: 110px; display: grid; place-items: center; font-size: 3.6rem; background: radial-gradient(circle at 30% 20%, #ffe3a8, #e2a227 60%, #b8561f); }
.game-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.game-card .body { padding: 12px 14px 14px; display: grid; gap: 8px; flex: 1; }
.game-card h3 { margin: 0; } .game-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.game-stage { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px; }
.game-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.hud { display: flex; gap: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
canvas.momo { height: 52dvh; aspect-ratio: 3 / 4; max-height: 52dvh; width: auto; max-width: 100%; display: block; margin: 0 auto; border-radius: 16px; background: linear-gradient(#ffe9c7, #f7c98b); touch-action: none; }
.quiz-img { font-size: 4rem; text-align: center; padding: 10px; background: var(--surface-2); border-radius: 16px; }
.quiz-img img { max-width: 100%; max-height: 200px; border-radius: 12px; }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 8px 0 14px; }
.progress > div { height: 100%; background: var(--accent); transition: width .3s; }
.answers { display: grid; gap: 8px; margin-top: 12px; }
.answers button { text-align: left; padding: 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); min-height: 50px; }
.answers button.right { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, var(--bg)); }
.answers button.wrong { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--bg)); }
.explain { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.thali-wrap { display: grid; gap: 14px; }
.plate { position: relative; width: min(320px, 82vw); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle, #f1f1f1 0 55%, #c9c9c9 56% 60%, #e9e9e9 61%); box-shadow: inset 0 0 0 6px #b8b8b8, var(--shadow); }
.plate .slot { position: absolute; width: 22%; aspect-ratio: 1; display: grid; place-items: center; font-size: clamp(1.6rem, 7vw, 2.4rem); border: 0; background: rgba(255,255,255,.75); border-radius: 50%; transform: translate(-50%, -50%); animation: drop .35s ease-out; }
@keyframes drop { from { transform: translate(-50%, -90%) scale(.6); opacity: 0; } }
.plate.celebrate { animation: spin 1.2s ease-in-out; }
@keyframes spin { 50% { transform: rotate(8deg) scale(1.04); } }
.foods { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.foods button { padding: 10px 6px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); font-size: .8rem; display: grid; gap: 2px; justify-items: center; min-height: 72px; }
.foods button span { font-size: 1.7rem; }
.foods button[aria-pressed="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--bg)); }
.challenge { padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 25%, var(--surface)); }
.result-list { margin: 8px 0 0; padding-left: 18px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* music player */
.music { position: fixed; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 25; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 4px; padding: 4px; max-width: calc(100vw - 24px); }
body.no-cart .music { bottom: calc(14px + env(safe-area-inset-bottom)); }
.music button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font-size: 1rem; display: grid; place-items: center; }
.music .play { background: var(--brand); color: var(--brand-ink); }
.music .panel { display: none; align-items: center; gap: 2px; }
.music.open { border-radius: 20px; flex-wrap: wrap; padding: 8px; width: min(340px, calc(100vw - 24px)); }
.music.open .panel { display: flex; flex-wrap: wrap; width: 100%; gap: 6px; }
.music .title { flex: 1; min-width: 0; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music .title small { display: block; color: var(--muted); }
.music input[type=range] { flex: 1; accent-color: var(--brand); min-width: 90px; }
.music select { flex: 1; padding: 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; }
.music .attr { width: 100%; font-size: .72rem; color: var(--muted); }
.music .off { width: auto; padding: 0 10px; border-radius: 999px; font-size: .78rem; border: 1px solid var(--line); }
.viz { display: inline-flex; gap: 2px; align-items: flex-end; height: 16px; width: 20px; }
.viz i { width: 3px; height: 4px; background: var(--brand); border-radius: 2px; }
.music.playing .viz i { animation: bar 0.9s ease-in-out infinite; }
.music.playing .viz i:nth-child(2) { animation-delay: .2s; } .music.playing .viz i:nth-child(3) { animation-delay: .4s; } .music.playing .viz i:nth-child(4) { animation-delay: .1s; }
@keyframes bar { 50% { height: 16px; } }
.music .status { width: 100%; font-size: .75rem; color: var(--danger); }

.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 60; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.offline { position: fixed; top: 0; left: 0; right: 0; z-index: 70; background: var(--danger); color: #fff; text-align: center; padding: 8px; font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media (hover: hover) { .add:hover, .primary:hover { filter: brightness(1.08); } .chip:hover { border-color: var(--brand); } }
@media (max-width: 520px) { .music:not(.open) .title { display: none; } }

/* welcome / table entry */
body.welcome-mode .tabs, body.welcome-mode #assistantBtn, body.welcome-mode .cart-bar { display: none !important; }
.welcome { max-width: 420px; margin: 0 auto; padding: 24px 0 40px; text-align: center; display: grid; gap: 16px; }
.welcome h1 { font-size: 1.5rem; margin: 0; }
.welcome-hero { font-size: 4.5rem; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
.welcome-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.welcome-card label { font-weight: 700; font-size: 1.1rem; }
.welcome-card input { font-size: 2rem; text-align: center; padding: 12px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); letter-spacing: .1em; }
.welcome-card input:focus { border-color: var(--brand); outline: none; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.takeaway { font-size: 1.05rem; padding: 16px; border-width: 2px; }
.topbar .change { color: inherit; opacity: .85; font-size: .8rem; }
.welcome { grid-template-columns: minmax(0, 1fr); }
.welcome h1 { text-wrap: balance; overflow-wrap: anywhere; }
.welcome-card input { width: 100%; min-width: 0; }
.scan-btn { font-size: 1.05rem; padding: 16px; border-width: 2px; border-color: var(--brand); color: var(--brand); }
dialog.scanner .scan-view { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 1; }
dialog.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
dialog.scanner .scan-frame { position: absolute; inset: 18%; border: 3px solid #fff; border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.welcome-q { margin: 0; font-size: 1.25rem; }
.welcome-card label { font-size: 1rem; }

.guests { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; }
.table-map-wrap { display: grid; gap: 8px; }
.legend { display: flex; gap: 6px; align-items: center; justify-content: center; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.dot.free, .tbl-chip.free { --c: #2f7d4f; } .dot.booked, .tbl-chip.booked { --c: #c98a12; } .dot.occupied, .tbl-chip.occupied { --c: #b3261e; }
.dot { background: var(--c); }
.table-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tbl-chip { display: grid; gap: 2px; justify-items: center; padding: 10px 4px; border-radius: 14px; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 12%, var(--surface)); color: var(--ink); min-height: 64px; }
.tbl-chip strong { font-size: 1.3rem; } .tbl-chip small { font-size: .72rem; color: var(--c); font-weight: 700; }

/* ===== Visual refresh: photos, motion, depth ===== */
.topbar { background: linear-gradient(120deg, var(--brand-dark), var(--brand) 40%, var(--brand-2) 70%, var(--accent-2)); box-shadow: 0 4px 20px color-mix(in srgb, var(--brand-dark) 25%, transparent); }
.topbar strong { letter-spacing: .02em; }

/* chips */
.chips { gap: 10px; padding: 12px 2px 6px; scroll-snap-type: x proximity; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; transition: transform .18s ease, box-shadow .18s ease, background .2s, color .2s; box-shadow: 0 2px 8px rgba(60,25,10,.06); scroll-snap-align: start; }
.chip:active { transform: scale(.96); }
.cat-chip { padding: 5px 14px 5px 5px; }
.chip-pic { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--surface-2); font-size: 1.1rem; flex: none; }
.chip-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.chip[aria-pressed="true"] { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); transform: translateY(-1px); }
.chip[aria-pressed="true"] .chip-pic { box-shadow: 0 0 0 2px #fff; }
.filters .chip { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.filters .chip[aria-pressed="true"] { background: linear-gradient(135deg, #e2a227, #d0671f); color: #2a1306; box-shadow: 0 6px 16px rgba(226,162,39,.4); }
@media (hover: hover) { .chip:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(60,25,10,.14); } .chip:hover .chip-pic img { transform: scale(1.15); } }

/* offers */
.offers { gap: 14px; padding: 10px 2px 18px; scroll-snap-type: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.offer { position: relative; overflow: hidden; flex: 0 0 min(84%, 330px); min-height: 190px; padding: 0; border-radius: 22px; background: #3a1410; color: #fff; scroll-snap-align: start; box-shadow: 0 10px 28px rgba(60,20,10,.28); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; isolation: isolate; }
.offer-bg { position: absolute; inset: 0; display: grid; z-index: -2; }
.offer-bg.n2 { grid-template-columns: 1fr 1fr; }
.offer-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.offer-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,6,3,.05) 0%, rgba(20,6,3,.55) 45%, rgba(20,6,3,.92) 100%); }
.offer-shine { position: absolute; inset: 0; z-index: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
.offer:hover .offer-shine, .offer:focus-within .offer-shine { animation: shine 1s ease; }
@keyframes shine { to { transform: translateX(120%); } }
.offer-body { position: relative; z-index: 1; height: 100%; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 16px; }
.offer-badge { align-self: flex-start; margin-bottom: auto; background: #e2a227; color: #2a1306; font-weight: 800; font-size: .78rem; letter-spacing: .06em; padding: 5px 10px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.25); animation: wiggle 3s ease-in-out infinite; }
@keyframes wiggle { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-6deg) scale(1.06); } 96% { transform: rotate(5deg) scale(1.06); } }
.offer h3 { margin: 0; font-size: 1.2rem; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.offer p { margin: 0; font-size: .88rem; opacity: .92; }
.offer-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.offer-price { font-size: 1.3rem; font-weight: 800; } .offer-price s { font-size: .85rem; opacity: .7; font-weight: 400; margin-left: 4px; }
.offer .offer-add { border: 0; background: #fff; color: var(--brand); font-weight: 800; padding: 10px 14px; border-radius: 999px; transition: transform .15s; }
.offer .offer-add:active { transform: scale(.94); }
@media (hover: hover) { .offer:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: 0 18px 40px rgba(60,20,10,.4); } .offer:hover .offer-bg img { transform: scale(1.12); } }

/* drinks & sweets rails */
.rail-wrap { margin: 14px 0 6px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; }
.rail-head h2 { margin: 0; font-size: 1.15rem; }
.linkish { border: 0; background: none; color: var(--brand); font-weight: 700; padding: 6px; }
.rail { overflow-x: auto; scrollbar-width: none; padding: 8px 2px 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rail::-webkit-scrollbar { display: none; }
.rail-track { display: flex; gap: 12px; width: max-content; }
.rail-card { position: relative; width: 140px; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(60,25,10,.1); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.rail-img { width: 100%; height: 104px; object-fit: cover; display: grid; place-items: center; font-size: 2.8rem; background: radial-gradient(circle at 30% 30%, #fff3dd, #f0d2a6); transition: transform .5s; }
.rail-info { padding: 8px 10px 10px; display: grid; gap: 2px; font-size: .82rem; }
.rail-info strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-info span { color: var(--brand); font-weight: 800; }
.rail-add { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; color: var(--brand); font-size: 1.3rem; font-weight: 800; box-shadow: 0 4px 10px rgba(0,0,0,.25); transition: transform .15s; }
.rail-add:active { transform: scale(.88); }
@media (hover: hover) { .rail-card:hover { transform: translateY(-6px) scale(1.03); box-shadow: 0 14px 28px rgba(60,25,10,.22); } .rail-card:hover .rail-img { transform: scale(1.1); } }

/* menu items */
.cat-title { display: flex; align-items: center; gap: 8px; margin: 26px 0 10px; font-size: 1.25rem; }
.cat-title small { margin-left: auto; font-size: .78rem; color: var(--muted); background: var(--surface-2); padding: 2px 10px; border-radius: 999px; }
.item { grid-template-columns: 104px 1fr; gap: 14px; padding: 10px; border-radius: 20px; box-shadow: 0 3px 12px rgba(60,25,10,.06); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s; animation: rise .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.item.in-cart { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 15%, transparent); }
.item .art { position: relative; width: 104px; height: 104px; border-radius: 16px; overflow: hidden; background: radial-gradient(circle at 30% 30%, #fff3dd, #f0d2a6); font-size: 2.6rem; }
.item .art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.emoji-art { display: grid; place-items: center; width: 100%; height: 100%; }
.art-badge { position: absolute; left: 6px; top: 6px; background: #e2a227; color: #2a1306; font-weight: 800; font-size: .72rem; padding: 3px 7px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.item-body h3 { font-size: 1.02rem; }
.add { background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 30%, transparent); transition: transform .15s, box-shadow .2s; }
@media (hover: hover) { .item:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(60,25,10,.14); } .item:hover .art img { transform: scale(1.1) rotate(1deg); } .add:hover { box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 40%, transparent); } }

.site-foot { text-align: center; padding: 10px 0 0; }
.credits-list { overflow-y: auto; max-height: 60dvh; } .credits-list p { margin: 0 0 8px; }

@media (prefers-color-scheme: dark) { .chip-pic, .rail-img, .item .art { background: #3a2a22; } }
.rail-img.emoji-art { height: 104px; }
.offer .offer-add { white-space: nowrap; }

.rail-card .art-badge { left: 8px; top: 8px; }
.rail-qty { position: absolute; left: 8px; bottom: 58px; background: var(--brand); color: #fff; font-weight: 800; font-size: .78rem; padding: 3px 8px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.rail-info s { color: var(--muted); font-weight: 400; font-size: .75rem; }
.rail-wrap { animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }

/* order timeline */
.timeline { list-style: none; margin: 16px 0 10px; padding: 0; position: relative; }
.tl-step { position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 0; color: var(--muted); }
.tl-step::before { content: ""; position: absolute; left: 21px; top: -12px; height: 24px; width: 3px; background: var(--line); border-radius: 2px; }
.tl-step:first-child::before { display: none; }
.tl-step.done::before, .tl-step.current::before { background: #2f8a55; }
.tl-dot { flex: none; width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 1.3rem; position: relative; z-index: 1; transition: background .4s, transform .4s; }
.tl-label { font-weight: 600; }
.tl-eta { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--brand); background: color-mix(in srgb, var(--accent) 22%, var(--surface)); padding: 3px 10px; border-radius: 999px; }
.tl-step.done { color: var(--ink); }
.tl-step.done .tl-dot { background: #2f8a55; color: #fff; font-weight: 900; font-size: 1.2rem; box-shadow: 0 4px 12px rgba(47,138,85,.35); animation: pop .4s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pop { from { transform: scale(.4); } }
.tl-step.current { color: var(--ink); }
.tl-step.current .tl-label { font-size: 1.05rem; }
.tl-step.current .tl-dot { background: linear-gradient(135deg, #f3c24c, #e2a227); box-shadow: 0 0 0 0 rgba(226,162,39,.6); animation: halo 1.8s ease-out infinite; }
@keyframes halo { 70% { box-shadow: 0 0 0 14px rgba(226,162,39,0); } 100% { box-shadow: 0 0 0 0 rgba(226,162,39,0); } }
.tl-step.current .tl-icon { display: inline-block; }
.tl-step.current[data-step="received"] .tl-icon { animation: write 1.2s ease-in-out infinite; }
.tl-step.current[data-step="preparing"] .tl-icon { animation: toss 1s ease-in-out infinite; }
.tl-step.current[data-step="few_more"] .tl-icon { animation: flip 2s ease-in-out infinite; }
.tl-step.current[data-step="almost_ready"] .tl-icon { animation: flicker .6s ease-in-out infinite alternate; }
.tl-step.current[data-step="ready"] .tl-icon { animation: ring 1s ease-in-out infinite; transform-origin: 50% 10%; }
.tl-step.current.delayed .tl-dot { background: linear-gradient(135deg, #f08a7e, #d9534f); animation: none; }
.tl-step.current.delayed .tl-icon { animation: sway 2.4s ease-in-out infinite; }
@keyframes write { 50% { transform: translate(3px, -2px) rotate(-8deg); } }
@keyframes toss { 30% { transform: translateY(-7px) rotate(-12deg); } 60% { transform: translateY(0) rotate(6deg); } }
@keyframes flip { 0%, 40% { transform: rotate(0); } 50%, 90% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
@keyframes flicker { from { transform: scale(.9) translateY(1px); filter: brightness(.95); } to { transform: scale(1.15) translateY(-2px); filter: brightness(1.2); } }
@keyframes ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(18deg); } 30% { transform: rotate(-16deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } }
@keyframes sway { 50% { transform: rotate(-10deg) scale(1.08); } }
.status-pill.ok { background: #2f8a55; color: #fff; } .status-pill.late { background: #d9534f; color: #fff; }
.delay-banner { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, #d9534f 12%, var(--surface)); border: 1px solid color-mix(in srgb, #d9534f 35%, var(--line)); margin-top: 10px; }
.delay-banner p { margin: 0; } .delay-icon { font-size: 2rem; animation: sway 2.4s ease-in-out infinite; }
.ready-banner { margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: #2f8a55; color: #fff; font-weight: 700; animation: pop .5s cubic-bezier(.2,1.6,.4,1) both; }

/* highlight items already in the cart */
.rail-card.in-cart { border: 2px solid #2f8a55; box-shadow: 0 0 0 3px color-mix(in srgb, #2f8a55 25%, transparent), 0 10px 22px rgba(47,138,85,.25); transform: translateY(-3px); }
.rail-card.in-cart .rail-info { background: color-mix(in srgb, #2f8a55 10%, var(--surface)); }
.rail-card.in-cart .rail-add { background: #2f8a55; color: #fff; }
.rail-qty { background: #2f8a55; animation: pop .35s cubic-bezier(.2,1.6,.4,1); }
.item.in-cart { border: 2px solid #2f8a55; background: color-mix(in srgb, #2f8a55 7%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, #2f8a55 18%, transparent), 0 8px 20px rgba(47,138,85,.18); }
.item.in-cart .art::after { content: "✓"; position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%; background: #2f8a55; color: #fff; font-weight: 900; display: grid; place-items: center; font-size: .9rem; box-shadow: 0 2px 6px rgba(0,0,0,.25); animation: pop .35s cubic-bezier(.2,1.6,.4,1); }
.item.in-cart .qty { background: color-mix(in srgb, #2f8a55 18%, var(--surface)); }
.chip-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #2f8a55; color: #fff; font-size: .75rem; font-weight: 800; display: inline-grid; place-items: center; animation: pop .35s cubic-bezier(.2,1.6,.4,1); }
.chip[aria-pressed="true"] .chip-count { background: #fff; color: #2f8a55; }

.rail, .offers { touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-behavior: auto; }

.countdown { display: flex; align-items: center; gap: 16px; margin-top: 12px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), var(--surface)); border: 1px solid var(--line); }
.countdown strong { font-size: 1.05rem; } .countdown p { margin: 2px 0 0; }
.cd-ring { position: relative; width: 104px; height: 104px; flex: none; display: grid; place-items: center; }
.cd-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.cd-track { fill: none; stroke: var(--surface-2); stroke-width: 10; }
.cd-bar { fill: none; stroke: #2f8a55; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke .4s; }
.cd-time { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown.late .cd-bar { stroke: #e2a227; } .countdown.late .cd-time { animation: sway 2.4s ease-in-out infinite; }
.countdown.done .cd-ring { background: color-mix(in srgb, #2f8a55 15%, var(--surface)); border-radius: 50%; font-size: 2.4rem; }

/* build your own thali */
.thali-promo { width: 100%; display: flex; align-items: center; gap: 14px; margin: 14px 0 4px; padding: 14px; border: 0; border-radius: 22px; text-align: left; color: #fff; background: linear-gradient(120deg, var(--brand), var(--brand-2) 45%, #e2a227); box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 35%, transparent); position: relative; overflow: hidden; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.thali-promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.25) 50%, transparent 65%); transform: translateX(-120%); animation: shine 3.5s ease-in-out infinite; }
.tp-plate { position: relative; flex: none; width: 76px; height: 76px; border-radius: 50%; background: radial-gradient(circle, #f6f6f6 0 52%, #cfcfcf 53% 58%, #ececec 59%); box-shadow: inset 0 0 0 4px #bdbdbd, 0 6px 14px rgba(0,0,0,.25); animation: spinslow 14s linear infinite; }
.tp-plate span { position: absolute; font-size: 1.2rem; transform: translate(-50%, -50%); }
.tp-plate span:nth-child(1) { left: 50%; top: 50%; font-size: 1.5rem; } .tp-plate span:nth-child(2) { left: 50%; top: 16%; } .tp-plate span:nth-child(3) { left: 84%; top: 50%; } .tp-plate span:nth-child(4) { left: 50%; top: 84%; } .tp-plate span:nth-child(5) { left: 16%; top: 50%; }
@keyframes spinslow { to { transform: rotate(360deg); } }
.tp-text { display: grid; gap: 2px; flex: 1; } .tp-text strong { font-size: 1.15rem; } .tp-text small { opacity: .92; }
.tp-go { background: #fff; color: var(--brand); font-weight: 800; padding: 8px 12px; border-radius: 999px; flex: none; }
@media (hover: hover) { .thali-promo:hover { transform: translateY(-3px); box-shadow: 0 16px 34px color-mix(in srgb, var(--brand) 45%, transparent); } }
#thaliDialog { width: min(640px, 100%); }
.thali-builder { gap: 10px; }
.tb-presets { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tb-stage { display: grid; gap: 8px; justify-items: center; }
.tb-plate { width: min(240px, 62vw) !important; }
.tb-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 22%; color: #888; font-size: .82rem; }
.tb-sum { display: flex; gap: 12px; align-items: baseline; } .tb-sum strong { font-size: 1.4rem; color: var(--brand); }
.tb-foods { overflow-y: auto; min-height: 120px; }
.tb-foods h3 { margin: 10px 0 6px; font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tb-foods .foods button small { color: var(--brand); font-weight: 800; font-size: .74rem; }
.tb-foods .foods button[aria-pressed="true"] { border-color: #2f8a55; background: color-mix(in srgb, #2f8a55 12%, var(--bg)); }
.tb-foot { display: flex; gap: 10px; } .tb-foot .primary { flex: 1; }
.tb-presets { padding: 6px 2px; flex: none; } .tb-presets .chip { flex: none; }

/* green & yellow theme accents */
.tabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: #e2a227; }
.cart-bar { background: linear-gradient(120deg, var(--brand), var(--brand-2) 60%, var(--accent-2)); }
.offer { background: #1f3a22; }
.offer .offer-add, .rail-add { color: var(--brand); }

/* animated plate logo (with momo) */
.logo-plate { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle, #fafafa 0 50%, #d6d6d6 51% 57%, #efefef 58%); box-shadow: inset 0 0 0 3px #c4c4c4, 0 4px 10px rgba(0,0,0,.25); animation: spinslow 12s linear infinite; }
.logo-plate span { position: absolute; font-size: .72rem; line-height: 1; transform: translate(-50%, -50%); }
.logo-plate span:nth-child(1) { left: 50%; top: 50%; font-size: 1rem; animation: momobob 1.6s ease-in-out infinite; }
.logo-plate span:nth-child(2) { left: 50%; top: 17%; } .logo-plate span:nth-child(3) { left: 81%; top: 36%; } .logo-plate span:nth-child(4) { left: 72%; top: 76%; }
.logo-plate span:nth-child(5) { left: 28%; top: 76%; } .logo-plate span:nth-child(6) { left: 19%; top: 36%; }
@keyframes momobob { 50% { transform: translate(-50%, -62%) scale(1.12); } }

/* platter builder */
.platter-promo { background: linear-gradient(120deg, var(--accent-2), #8fb83f 55%, var(--brand)); }
.tp-board { position: relative; flex: none; width: 84px; height: 62px; border-radius: 14px; background: repeating-linear-gradient(90deg, #a8743f 0 9px, #b9844c 9px 18px); box-shadow: inset 0 0 0 3px #8a5a2b, 0 6px 14px rgba(0,0,0,.25); display: grid; grid-template-columns: repeat(3, 1fr); place-items: center; font-size: 1.15rem; animation: boardtilt 4s ease-in-out infinite; }
@keyframes boardtilt { 50% { transform: rotate(-4deg) translateY(-2px); } }
#platterDialog { width: min(640px, 100%); }
.pb-board { min-height: 92px; padding: 10px; border-radius: 18px; background: repeating-linear-gradient(90deg, #b07a43 0 14px, #bf8a52 14px 28px); box-shadow: inset 0 0 0 4px #8a5a2b; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; position: relative; flex: none; }
.pb-board .tb-empty { color: #fff6e0; position: static; padding: 18px; width: 100%; }
.pb-chip { display: inline-flex; align-items: center; gap: 4px; background: #fffaf0; color: #2a1a14; border-radius: 999px; padding: 3px 4px 3px 3px; font-size: .78rem; box-shadow: 0 2px 6px rgba(0,0,0,.2); animation: pop .3s cubic-bezier(.2,1.6,.4,1); max-width: 100%; }
.pb-chip img, .pb-chip .emoji-art { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; font-size: .95rem; }
.pb-chip-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.pb-chip button { border: 0; background: #e9e2cf; width: 22px; height: 22px; border-radius: 50%; font-weight: 800; }
.pb-list { display: grid; gap: 8px; }
.pb-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.pb-item img, .pb-item .emoji-art { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; font-size: 1.8rem; background: var(--surface-2); }
.pb-info { display: grid; } .pb-info small { color: var(--brand); font-weight: 800; }
.pb-item.in-cart { border: 2px solid #2f8a55; background: color-mix(in srgb, #2f8a55 8%, var(--surface)); }
.pb-item .qty button:disabled { opacity: .35; }

/* steam rising from hot food */
.rail-pic { position: relative; overflow: hidden; }
.steam { position: absolute; left: 0; right: 0; bottom: 30%; height: 80%; pointer-events: none; z-index: 1; }
.steam i { position: absolute; bottom: 0; width: 22%; height: 70%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255,255,255,.85) 0%, rgba(255,255,255,.35) 40%, rgba(255,255,255,0) 70%); filter: blur(6px); opacity: 0; animation: steam 3.2s ease-out infinite; }
.steam i:nth-child(1) { left: 22%; animation-delay: 0s; }
.steam i:nth-child(2) { left: 42%; animation-delay: 1.1s; width: 26%; }
.steam i:nth-child(3) { left: 60%; animation-delay: 2.1s; }
@keyframes steam {
  0% { transform: translateY(20%) scaleX(.6) scaleY(.5); opacity: 0; }
  20% { opacity: .9; }
  60% { transform: translateY(-40%) translateX(8%) scaleX(1) scaleY(1); opacity: .55; }
  100% { transform: translateY(-95%) translateX(-6%) scaleX(1.3) scaleY(1.2); opacity: 0; }
}
.item .art .steam { bottom: 20%; }
.item .art img, .rail-img { animation: sizzle 4s ease-in-out infinite; }
@keyframes sizzle { 50% { filter: saturate(1.15) brightness(1.04); } }
@media (prefers-reduced-motion: reduce) { .steam { display: none; } }
/* stronger, more visible steam */
.steam { bottom: 18%; height: 95%; }
.steam i { width: 30%; height: 75%; background: radial-gradient(ellipse at center, rgba(255,255,255,.98) 0%, rgba(255,255,255,.7) 35%, rgba(255,255,255,0) 70%); filter: blur(5px) drop-shadow(0 0 4px rgba(120,120,120,.35)); mix-blend-mode: screen; animation-duration: 2.6s; }
.steam i:nth-child(1) { left: 14%; } .steam i:nth-child(2) { left: 36%; width: 34%; animation-delay: .85s; } .steam i:nth-child(3) { left: 58%; animation-delay: 1.7s; }
@keyframes steam {
  0% { transform: translateY(25%) scaleX(.5) scaleY(.4); opacity: 0; }
  18% { opacity: 1; }
  55% { transform: translateY(-35%) translateX(10%) scaleX(.9) scaleY(1.05); opacity: .8; }
  100% { transform: translateY(-100%) translateX(-8%) scaleX(1.35) scaleY(1.3); opacity: 0; }
}
.platter-promo .tp-plate span:nth-child(1) { animation: momobob 1.6s ease-in-out infinite; }

/* pay via QR */
.pay-card { margin-top: 14px; padding: 16px; border-radius: 20px; border: 2px solid var(--brand); background: linear-gradient(160deg, color-mix(in srgb, #e2a227 14%, var(--surface)), var(--surface)); display: grid; gap: 10px; justify-items: center; text-align: center; animation: pop .45s cubic-bezier(.2,1.6,.4,1) both; }
.pay-head { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.pay-head h3 { margin: 0; } .pay-amount { font-size: 1.5rem; color: var(--brand); }
.pay-qr { background: #fff; padding: 10px; border-radius: 16px; box-shadow: 0 6px 18px rgba(0,0,0,.12); width: min(230px, 70vw); }
.pay-qr svg, .pay-qr img { width: 100%; height: auto; display: block; }
.pay-link { text-decoration: none; display: inline-flex; align-items: center; }
.pay-done { width: 100%; } .pay-wait { margin: 0; font-weight: 700; color: #8a5a00; }
.pay-card.paid { grid-template-columns: auto 1fr; justify-items: start; text-align: left; border-color: #2f8a55; background: color-mix(in srgb, #2f8a55 10%, var(--surface)); }
.pay-tick { width: 46px; height: 46px; border-radius: 50%; background: #2f8a55; color: #fff; font-size: 1.5rem; font-weight: 900; display: grid; place-items: center; }
.pay-card.paid p { margin: 2px 0 0; }
.cust-cancel { width: 100%; margin: 10px 0; border-color: #e7b3ad; color: #b3261e; font-weight: 700; }

.pay-steps { text-align: left; margin: 0; padding-left: 22px; display: grid; gap: 4px; font-size: .92rem; }
.pay-save { width: 100%; }

.tbl-chip .tc-name { font-size: .64rem; font-weight: 700; color: var(--ink); opacity: .75; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl-chip strong { font-size: 1.5rem; line-height: 1; }

/* ===== arcade / party ===== */
.gtags { display: flex; gap: 4px; flex-wrap: wrap; } .gtags span { font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); }
.party-setup { display: grid; gap: 10px; } .party-setup h3 { margin: 6px 0 0; font-size: 1rem; }
.pnames { display: grid; gap: 8px; } .pnames label { display: flex; align-items: center; gap: 8px; }
.pnames input { flex: 1; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; }
.pdot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none; vertical-align: middle; }
.pdot.big { width: 46px; height: 46px; } .p0 { background: #d9534f; } .p1 { background: #2f8a55; } .p2 { background: #e2a227; } .p3 { background: #3a7bd5; }
.lp-toggle { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px; border-radius: 14px; background: #fff4d6; color: #5a3b00; }
.lp-toggle input { width: 22px; height: 22px; accent-color: var(--brand); }
.big-start { width: 100%; font-size: 1.1rem; min-height: 54px; }
.turn-card { text-align: center; display: grid; justify-items: center; gap: 6px; padding: 22px 10px; animation: pop .4s cubic-bezier(.2,1.6,.4,1) both; }
.turn-card h3 { margin: 0; font-size: 1.4rem; }
.turn-banner { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 8px; }
.results { display: grid; gap: 12px; text-align: center; position: relative; }
.ranking { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ranking li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); text-align: left; animation: rise .4s both; }
.ranking li:nth-child(2) { animation-delay: .1s; } .ranking li:nth-child(3) { animation-delay: .2s; } .ranking li:nth-child(4) { animation-delay: .3s; }
.ranking li.winner { background: linear-gradient(120deg, #fff1c9, #ffe08a); box-shadow: 0 6px 16px rgba(226,162,39,.35); }
.ranking li.payer { background: #fde2df; } .ranking .medal { font-size: 1.5rem; } .ranking .sc { margin-left: auto; font-size: 1.2rem; }
.payer-box { display: grid; gap: 4px; justify-items: center; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, #d9534f, #a3302a); color: #fff; animation: pop .5s cubic-bezier(.2,1.6,.4,1) .3s both; }
.payer-box.tie { background: linear-gradient(135deg, #e2a227, #c98a12); }
.payer-box strong { font-size: 1.35rem; } .payer-box .money { font-size: 3rem; animation: sway 1.2s ease-in-out infinite; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -10%; font-style: normal; font-size: 1.6rem; animation: fall 2s linear forwards; }
@keyframes fall { to { transform: translateY(520px) rotate(540deg); opacity: 0; } }
.game-box { position: relative; }
.arcade-hud { justify-content: space-between; margin-bottom: 6px; }
.arcade-canvas { display: block; width: 100%; max-width: 420px; max-height: 58dvh; object-fit: contain; margin: 0 auto; border-radius: 16px; touch-action: manipulation; background: #222; }
.pad { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
.padbtn { min-width: 76px; min-height: 58px; border-radius: 16px; border: 0; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 1.4rem; font-weight: 800; box-shadow: 0 4px 10px color-mix(in srgb, var(--brand) 30%, transparent); touch-action: manipulation; }
.padbtn:active { transform: scale(.94); } .padbtn.wide { min-width: 180px; }
.dpad { display: grid; grid-template-columns: repeat(3, 62px); grid-template-rows: repeat(2, 54px); gap: 6px; }
.dpad [data-d="0,-1"] { grid-column: 2; grid-row: 1; } .dpad [data-d="-1,0"] { grid-column: 1; grid-row: 2; } .dpad [data-d="0,1"] { grid-column: 2; grid-row: 2; } .dpad [data-d="1,0"] { grid-column: 3; grid-row: 2; }
.dpad .padbtn { min-width: 0; min-height: 0; }
.over { position: absolute; inset: 40px 0 auto; display: grid; justify-items: center; gap: 4px; padding: 20px; margin: 0 auto; width: min(260px, 80%); border-radius: 18px; background: rgba(20,20,20,.85); color: #fff; animation: pop .35s cubic-bezier(.2,1.6,.4,1); }
.over strong { font-size: 1.5rem; }
.mm-score { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 10px; }
.mm-score span { padding: 6px 10px; border-radius: 999px; background: var(--surface-2); font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; }
.mm-score span.on { outline: 3px solid #e2a227; background: #fff4d6; color: #2a1a14; }
.mm-grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 8px; max-width: 420px; margin: 0 auto; }
.mm-card { aspect-ratio: 1; border: 0; border-radius: 14px; position: relative; perspective: 600px; background: none; padding: 0; }
.mm-card span { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 14px; font-size: clamp(1.4rem, 7vw, 2.2rem); backface-visibility: hidden; transition: transform .35s; }
.mm-card .back { background: linear-gradient(135deg, var(--brand), var(--brand-2)); } .mm-card .front { background: #fffaf0; transform: rotateY(180deg); box-shadow: inset 0 0 0 2px #e2a227; }
.mm-card.up .back { transform: rotateY(180deg); } .mm-card.up .front { transform: rotateY(0); }
.mm-card.done .front { box-shadow: inset 0 0 0 3px #2f8a55; opacity: .75; }
.ttt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(320px, 86vw); margin: 0 auto; }
.ttt button { aspect-ratio: 1; border-radius: 16px; border: 2px solid var(--line); background: var(--surface); font-size: clamp(2rem, 12vw, 3.4rem); }
.ttt button:not(:disabled):active { transform: scale(.95); }
.ttt-msg { text-align: center; font-weight: 800; min-height: 1.4em; }
.ludo { display: grid; grid-template: repeat(15, 1fr) / repeat(15, 1fr); width: min(100%, 420px); aspect-ratio: 1; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #fffaf0; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.lc { border: .5px solid rgba(0,0,0,.06); }
.lc.path { background: #fff; border-color: #d8d0bd; } .lc.safe { background: #f2ecd9; } .lc.safe::after { content: "★"; display: grid; place-items: center; height: 100%; font-size: .55rem; color: #b8a77a; }
.lc.yard.s0, .lc.home.s0, .lc.start.s0 { background: #f6c9c5; } .lc.yard.s1, .lc.home.s1, .lc.start.s1 { background: #c3e3cf; }
.lc.yard.s2, .lc.home.s2, .lc.start.s2 { background: #f8e2a8; } .lc.yard.s3, .lc.home.s3, .lc.start.s3 { background: #c6d8f3; }
.lc.center { background: conic-gradient(#2f8a55 0 90deg, #e2a227 90deg 180deg, #3a7bd5 180deg 270deg, #d9534f 270deg); }
.ltok { z-index: 2; margin: 12%; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 2px 4px rgba(0,0,0,.35); padding: 0; color: #fff; font-size: .6rem; transition: transform .2s; }
.ltok.can { animation: halo 1s ease-out infinite; outline: 2px solid #111; cursor: pointer; }
.ludo-ctl { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.cdot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.turnlbl { font-weight: 800; display: inline-flex; gap: 6px; align-items: center; }
.dice { width: 70px; height: 70px; border-radius: 18px; border: 0; font-size: 3rem; line-height: 1; background: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.2); }
.dice:not(:disabled) { animation: halo 1.4s ease-out infinite; } .dice.roll { animation: diceroll .5s linear infinite; }
@keyframes diceroll { 25% { transform: rotate(90deg) scale(1.1); } 50% { transform: rotate(180deg); } 75% { transform: rotate(270deg) scale(1.1); } 100% { transform: rotate(360deg); } }
.ludo-msg { font-weight: 700; min-width: 140px; }
.wheel-wrap { display: grid; justify-items: center; gap: 12px; position: relative; }
.wheel-pointer { font-size: 2rem; color: #2a1a14; margin-bottom: -22px; z-index: 2; }
.wheel { width: min(300px, 80vw); aspect-ratio: 1; border-radius: 50%; position: relative; border: 6px solid #fff; box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.wheel span { position: absolute; left: 50%; top: 50%; width: 0; height: 0; } .wheel span b { position: absolute; transform-origin: center; white-space: nowrap; translate: -50% -50%; color: #fff; font-size: .85rem; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.wheel-msg { font-size: 1.3rem; min-height: 1.6em; }

/* music player extras */
.music .mrow { display: flex; align-items: center; gap: 4px; width: 100%; }
.music .mrow button.on { background: color-mix(in srgb, var(--brand) 18%, transparent); }
.music .mrow .fav { margin-left: auto; font-size: 1.15rem; } .music .mrow .fav.on { background: #fde2df; animation: pop .35s cubic-bezier(.2,1.6,.4,1); }
.music .vol input { flex: 1; } .volpct { min-width: 46px; text-align: right; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.music .mloop { width: 100%; color: var(--muted); font-size: .72rem; }

/* ===== games list: 2 columns with animated icons ===== */
.game-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .game-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.game-card { border-radius: 18px; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand-dark) 12%, transparent); animation: rise .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d); transition: transform .2s, box-shadow .2s; }
.game-card:active { transform: scale(.97); }
@media (hover: hover) { .game-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px color-mix(in srgb, var(--brand-dark) 22%, transparent); } }
.game-card .thumb { height: 92px; font-size: 3rem; position: relative; overflow: hidden; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 55%), var(--g, linear-gradient(135deg, #e2a227, #b8561f)); }
.game-card .thumb::after { content: ""; position: absolute; inset: auto 0 0; height: 18px; background: linear-gradient(transparent, rgba(0,0,0,.12)); }
.gicon { display: inline-block; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.game-card .body { padding: 10px 10px 12px; gap: 6px; }
.game-card h3 { font-size: .98rem; line-height: 1.15; }
.game-card p { font-size: .76rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-card .gtags span { font-size: .6rem; padding: 1px 6px; }
.game-card .primary { min-height: 38px; padding: 8px 10px; font-size: .9rem; margin-top: auto; }

.g-momo-catcher { --g: linear-gradient(135deg, #ffd27a, #e2a227); } .g-momo-catcher .gicon { animation: gBounce 1.1s ease-in-out infinite; }
.g-food-quiz { --g: linear-gradient(135deg, #f6b0c6, #b04f8e); } .g-food-quiz .gicon { animation: gPulse 1.6s ease-in-out infinite; }
.g-build-thali { --g: linear-gradient(135deg, #a8e0a0, var(--brand)); } .g-build-thali .gicon { animation: spinslow 6s linear infinite; }
.g-car-racer { --g: repeating-linear-gradient(90deg, #4a4f55 0 18px, #3b3f44 18px 36px); } .g-car-racer .gicon { animation: gDrive 2.4s ease-in-out infinite; }
.g-bike-rush { --g: linear-gradient(180deg, #ffd27a 0 65%, #8a5a2b 65%); } .g-bike-rush .gicon { animation: gWheelie 1.4s ease-in-out infinite; transform-origin: 70% 90%; }
.g-momo-snake { --g: linear-gradient(135deg, #b8e08a, var(--brand-2)); } .g-momo-snake .gicon { animation: gWiggle 1s ease-in-out infinite; }
.g-ludo { --g: conic-gradient(#d9534f 0 90deg, #2f8a55 90deg 180deg, #e2a227 180deg 270deg, #3a7bd5 270deg); } .g-ludo .gicon { animation: diceroll 2.2s ease-in-out infinite; }
.g-memory { --g: linear-gradient(135deg, #a7c7f2, #3a7bd5); } .g-memory .gicon { animation: gFlip 2.4s ease-in-out infinite; }
.g-tic-tac-toe { --g: linear-gradient(135deg, #fff1c9, #e2a227); } .g-tic-tac-toe .gicon { animation: gPop 1.8s ease-in-out infinite; }
.g-who-pays { --g: linear-gradient(135deg, #f08a7e, #a3302a); } .g-who-pays .gicon { animation: spinslow 2.5s linear infinite; }

@keyframes gBounce { 0%, 100% { transform: translateY(4px) scale(1, .92); } 50% { transform: translateY(-14px) scale(.95, 1.05); } }
@keyframes gPulse { 50% { transform: scale(1.18); filter: drop-shadow(0 0 12px rgba(255,255,255,.8)); } }
@keyframes gDrive { 0% { transform: translateX(-90px); } 45%, 55% { transform: translateX(0) rotate(-3deg); } 100% { transform: translateX(110px); } }
@keyframes gWheelie { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-22deg) translateY(-6px); } }
@keyframes gWiggle { 0%, 100% { transform: rotate(-10deg) translateX(-6px); } 50% { transform: rotate(10deg) translateX(6px); } }
@keyframes gFlip { 0%, 40% { transform: rotateY(0); } 50%, 90% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
@keyframes gPop { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.25) rotate(-12deg); } 60% { transform: scale(.95) rotate(8deg); } }

/* draggable mini music bubble */
.music.mini { padding: 0; width: 54px; height: 54px; border-radius: 50%; border: 0; background: none; box-shadow: none; touch-action: none; }
.mini-btn { width: 54px !important; height: 54px !important; border-radius: 50% !important; background: linear-gradient(135deg, var(--brand), var(--brand-2) 60%, var(--accent-2)) !important; color: #fff; font-size: 1.5rem !important; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand-dark) 40%, transparent); touch-action: none; cursor: grab; position: relative; }
.mini-ic { display: inline-block; }
.music.mini.playing .mini-ic { animation: momobob 1.2s ease-in-out infinite; }
.music.mini.playing .mini-btn::before, .music.mini.playing .mini-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(79,154,63,.55); animation: bubbleRing 2s ease-out infinite; pointer-events: none; }
.music.mini.playing .mini-btn::after { animation-delay: 1s; }
@keyframes bubbleRing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.music.dragging, .music.dragging .mini-btn { cursor: grabbing; transition: none; opacity: .9; }
.music.open .grip { position: absolute; top: 4px; left: 50%; translate: -50% 0; font-size: .9rem; color: var(--muted); cursor: grab; touch-action: none; padding: 0 14px; line-height: 1; }
.music.open { padding-top: 16px !important; }

/* floating order bubble */
.order-bubble { position: fixed; left: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 26; touch-action: none; }
body.no-cart .order-bubble { bottom: calc(14px + env(safe-area-inset-bottom)); }
.ob-btn { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center; align-content: center; gap: 0; padding: 0;
  background: linear-gradient(135deg, #e2a227, #f3c24c); color: #2a1a14; box-shadow: 0 6px 18px rgba(0,0,0,.25); touch-action: none; cursor: grab; animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
.ob-ic { font-size: 1.45rem; line-height: 1; } .ob-sub { font-size: .58rem; font-weight: 900; line-height: 1.1; max-width: 56px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-no { position: absolute; top: -8px; right: -8px; background: var(--brand); color: #fff; font-size: .62rem; font-weight: 900; padding: 2px 6px; border-radius: 999px; border: 2px solid #fff; }
.order-bubble.st-preparing .ob-ic { animation: toss 1s ease-in-out infinite; } .order-bubble.st-few_more .ob-ic { animation: flip 2s ease-in-out infinite; }
.order-bubble.st-almost_ready .ob-ic { animation: flicker .6s ease-in-out infinite alternate; }
.order-bubble.st-ready .ob-btn, .order-bubble.st-served .ob-btn { background: linear-gradient(135deg, #2f8a55, var(--brand-2)); color: #fff; }
.order-bubble.st-ready .ob-ic { animation: ring 1s ease-in-out infinite; transform-origin: 50% 10%; }
.order-bubble.st-ready .ob-btn::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid rgba(47,138,85,.6); animation: bubbleRing 1.6s ease-out infinite; }
.order-bubble.st-delayed .ob-btn { background: linear-gradient(135deg, #f08a7e, #d9534f); color: #fff; }
.order-bubble.dragging .ob-btn { cursor: grabbing; opacity: .9; }

/* table number on confirmed orders */
.table-badge { display: flex; align-items: center; gap: 12px; margin: 10px 0 4px; padding: 10px 14px; border-radius: 16px; background: linear-gradient(120deg, color-mix(in srgb, var(--brand) 14%, var(--surface)), color-mix(in srgb, #e2a227 16%, var(--surface))); border: 1px solid var(--line); animation: pop .45s cubic-bezier(.2,1.6,.4,1) both; }
.table-badge .tb-no { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.7rem; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 4px 10px color-mix(in srgb, var(--brand) 30%, transparent); flex: none; }
.table-badge .tb-ic { font-size: 2rem; } .table-badge span { display: grid; } .table-badge small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; } .table-badge strong { font-size: 1.1rem; }
.table-badge.ta small { text-transform: none; letter-spacing: 0; font-size: .8rem; }
.ob-table { position: absolute; bottom: -8px; left: 50%; translate: -50% 0; background: #fff; color: var(--brand); font-size: .62rem; font-weight: 900; padding: 1px 6px; border-radius: 999px; border: 2px solid var(--brand); white-space: nowrap; }
.my-orders { margin-bottom: 10px; } .my-orders .chips { padding-top: 4px; }

.claim-code { display: grid; gap: 2px; margin: 4px 0; padding: 8px 12px; border-radius: 12px; background: #fff4d6; color: #5a3b00; }
.claim-code strong { font-size: 1.3rem; letter-spacing: .25em; font-variant-numeric: tabular-nums; } .claim-code small { font-size: .74rem; }
.find-order { margin-top: 14px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px dashed var(--line); text-align: left; }
.find-order summary { font-weight: 700; cursor: pointer; }
.find-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 10px; }
.find-form input { padding: 11px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; min-width: 0; }
.find-form .error { grid-column: 1 / -1; }

/* ===== 7 app themes (Admin → Restaurant) ===== */
:root { --brand-2: #4f9a3f; --brand-dark: #1f4d2b; --accent-2: #d9a127; }
:root[data-theme="green"]   { --brand: #2f6b3f; --brand-2: #4f9a3f; --brand-dark: #1f4d2b; --accent: #e2a227; --accent-2: #d9a127; }
:root[data-theme="maroon"]  { --brand: #8c2323; --brand-2: #c8552b; --brand-dark: #5e1212; --accent: #e2a227; --accent-2: #d9a127; }
:root[data-theme="saffron"] { --brand: #c25a0a; --brand-2: #e8891c; --brand-dark: #7d3804; --accent: #f2c14e; --accent-2: #e9b23a; }
:root[data-theme="ocean"]   { --brand: #1f5f8b; --brand-2: #2f8ac4; --brand-dark: #123b58; --accent: #f2b84b; --accent-2: #e8a93a; }
:root[data-theme="purple"]  { --brand: #5b2a86; --brand-2: #8a4fbf; --brand-dark: #3a1858; --accent: #f0b429; --accent-2: #e0a21f; }
:root[data-theme="rose"]    { --brand: #b0306a; --brand-2: #e05a8f; --brand-dark: #741a44; --accent: #f5c26b; --accent-2: #ecb253; }
:root[data-theme="midnight"]{ --brand: #3b5bdb; --brand-2: #5c7cfa; --brand-dark: #10162a; --accent: #f2b84b; --accent-2: #e8a93a;
  --bg: #0f131c; --surface: #181e2b; --surface-2: #222a3b; --ink: #edf0f7; --muted: #9aa4b8; --line: #2c3548; color-scheme: dark; }
:root[data-theme="midnight"] .topbar { background: linear-gradient(120deg, #10162a, #1c2747 50%, #3b5bdb); }

/* 4 tabs */
.tabs { grid-template-columns: repeat(4, 1fr); } .tabs button { font-size: .9rem; padding: 14px 2px; }
.site-logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
/* footer */
.site-footer { max-width: 760px; margin: 30px auto 0; padding: 22px 16px calc(150px + env(safe-area-inset-bottom)); text-align: center; display: grid; gap: 10px; justify-items: center; border-top: 1px solid var(--line); }
.sf-name { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; } .sf-name img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.sf-tag { margin: 0; color: var(--muted); font-size: .88rem; }
.sf-social { display: flex; gap: 10px; }
.soc { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,.2); transition: transform .15s; }
.soc svg { width: 20px; height: 20px; } .soc:active { transform: scale(.95); }
.soc.fb { background: #1877f2; } .soc.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.sf-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem; } .sf-contact a { color: var(--ink); text-decoration: none; }
.sf-copy { margin: 0; color: var(--muted); font-size: .75rem; }
/* reviews */
.rv-summary { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.rv-avg { display: grid; justify-items: center; gap: 2px; } .rv-avg strong { font-size: 2.6rem; line-height: 1; color: var(--brand); }
.stars { display: inline-flex; gap: 1px; color: #d8d0bd; font-size: .95rem; } .stars i { font-style: normal; } .stars i.on { color: #f5b301; }
.stars.big { font-size: 1.3rem; }
.rv-bars { display: grid; gap: 4px; } .rv-bars div { display: grid; grid-template-columns: 28px 1fr 22px; gap: 6px; align-items: center; font-size: .78rem; }
.rv-bars i { height: 8px; border-radius: 999px; background: var(--surface-2); position: relative; overflow: hidden; }
.rv-bars i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: #f5b301; border-radius: inherit; animation: grow .8s ease both; }
@keyframes grow { from { width: 0; } }
.rv-form { display: grid; gap: 8px; } .rv-form h3 { margin: 0; }
.rv-form input, .rv-form textarea { padding: 11px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; }
.star-pick { display: flex; gap: 6px; } .star-pick button { border: 0; background: none; font-size: 2.3rem; color: #d8d0bd; padding: 0 2px; line-height: 1; transition: transform .15s, color .15s; }
.star-pick button.on { color: #f5b301; transform: scale(1.12); text-shadow: 0 2px 8px rgba(245,179,1,.4); }
.rv-hint { margin: 0; min-height: 1.2em; font-weight: 700; }
.rv-list { display: grid; gap: 10px; }
.rv-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; animation: rise .4s both; animation-delay: calc(var(--i) * 50ms); }
.rv-item p { margin: 8px 0 0; } .rv-head { display: flex; align-items: center; gap: 10px; } .rv-head small { margin-left: auto; color: var(--muted); }
.rv-head div { display: grid; } .rv-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
/* compact footer */
.site-footer { margin-top: 18px; padding: 14px 16px calc(120px + env(safe-area-inset-bottom)); gap: 6px; font-size: .8rem; }
.sf-name { font-size: 1rem; } .sf-tag { font-size: .76rem; }
.soc { padding: 0; width: 36px; height: 36px; justify-content: center; border-radius: 50%; } .soc span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .soc svg { width: 18px; height: 18px; }
.sf-contact { gap: 2px; font-size: .78rem; } .sf-contact li { line-height: 1.5; }

/* rate after served */
.rate-card { margin-top: 12px; padding: 14px; border-radius: 18px; display: grid; gap: 8px; background: linear-gradient(150deg, color-mix(in srgb, #f5b301 18%, var(--surface)), var(--surface)); border: 2px solid #f5b301; animation: pop .5s cubic-bezier(.2,1.6,.4,1) both; }
.rc-head { display: flex; gap: 10px; align-items: center; } .rc-head p { margin: 2px 0 0; } .rc-emoji { font-size: 2.2rem; animation: momobob 1.6s ease-in-out infinite; }
.rc-dishes { display: grid; gap: 4px; }
.rc-dish { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .9rem; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.rc-dish.overall { border: 0; }
.star-pick.sm button { font-size: 1.6rem; }
.rate-card input, .rate-card textarea { padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; }
.rate-card.done { grid-template-columns: auto 1fr; align-items: center; border-color: #2f8a55; background: color-mix(in srgb, #2f8a55 10%, var(--surface)); } .rate-card.done > span { font-size: 2rem; } .rate-card.done p { margin: 2px 0 0; }
.tag.rate { background: #fff4d6; color: #8a5a00; font-weight: 700; } .tag.rate small { font-weight: 500; }
.rail-rate { font-style: normal; color: #b8860b; font-size: .72rem; font-weight: 800; }

/* footer: small strip in the header colours */
.site-footer { all: unset; display: block; max-width: 760px; margin: 18px auto 0; padding: 0 16px calc(110px + env(safe-area-inset-bottom)); }
.sf-bar { border-radius: 16px; padding: 10px 14px; color: #fff; display: grid; gap: 6px; font-size: .74rem;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand) 40%, var(--brand-2) 70%, var(--accent-2)); box-shadow: 0 4px 14px color-mix(in srgb, var(--brand-dark) 30%, transparent); }
.sf-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sf-name { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; } .sf-name img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: #fff; }
.sf-social { display: flex; gap: 6px; }
.sf-bar .soc { width: 28px; height: 28px; padding: 0; border-radius: 50%; display: grid; place-items: center; box-shadow: none; background: rgba(255,255,255,.18); color: #fff; }
.sf-bar .soc svg { width: 15px; height: 15px; }
.sf-links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.sf-links a, .sf-links span { color: #fff; text-decoration: none; opacity: .92; white-space: nowrap; }
.sf-bar .sf-copy { margin: 0; opacity: .7; font-size: .66rem; color: #fff; }
.sf-note { margin: 0; font-size: .7rem; opacity: .9; color: #fff; } .welcome-tag { margin: -6px 0 0; color: var(--muted); }
.sf-bar .soc.web { background: rgba(255,255,255,.18); }

/* ===== 8 vivid themes ===== */
:root[data-theme="instagram"] { --brand: #c13584; --brand-2: #e1306c; --brand-dark: #5b51d8; --accent: #fcaf45; --accent-2: #f77737; }
:root[data-theme="instagram"] .topbar, :root[data-theme="instagram"] .cart-bar, :root[data-theme="instagram"] .sf-bar { background: linear-gradient(110deg, #405de6, #833ab4 30%, #c13584 55%, #e1306c 72%, #fd1d1d 85%, #fcaf45); }
:root[data-theme="sunset"]    { --brand: #e63946; --brand-2: #ff7b54; --brand-dark: #9b2226; --accent: #ffd166; --accent-2: #ffb703; }
:root[data-theme="tropical"]  { --brand: #00a6a6; --brand-2: #3ddc97; --brand-dark: #006d77; --accent: #ffd60a; --accent-2: #ffc300; }
:root[data-theme="candy"]     { --brand: #ff4d9d; --brand-2: #7b61ff; --brand-dark: #5a3fd6; --accent: #00d1ff; --accent-2: #4cc9f0; }
:root[data-theme="mango"]     { --brand: #f77f00; --brand-2: #fcbf49; --brand-dark: #d62828; --accent: #ffe066; --accent-2: #ffd43b; }
:root[data-theme="emerald"]   { --brand: #059669; --brand-2: #10b981; --brand-dark: #064e3b; --accent: #fbbf24; --accent-2: #f59e0b; }
:root[data-theme="berry"]     { --brand: #9d174d; --brand-2: #db2777; --brand-dark: #4a044e; --accent: #f9a8d4; --accent-2: #f472b6; }
:root[data-theme="neon"]      { --brand: #9b5de5; --brand-2: #f15bb5; --brand-dark: #1a1033; --accent: #00f5d4; --accent-2: #00bbf9;
  --bg: #0d0a1a; --surface: #161127; --surface-2: #221a3a; --ink: #f3eefe; --muted: #a99cc8; --line: #2e2450; color-scheme: dark; }
:root[data-theme="neon"] .topbar { background: linear-gradient(110deg, #1a1033, #9b5de5 45%, #f15bb5 75%, #00f5d4); }

/* ===== appearance: light / dark / auto (set in Admin) ===== */
:root[data-mode="light"]:not([data-theme="midnight"]):not([data-theme="neon"]) { --bg: #f8f6e9; --surface: #ffffff; --surface-2: #f4eadb; --ink: #2a1a14; --muted: #7b665a; --line: #e8dccb; color-scheme: light; }
:root[data-mode="dark"] { --bg: #121212; --surface: #1d1d1f; --surface-2: #2a2a2d; --ink: #f2f2f2; --muted: #a8a8ad; --line: #34343a; --shadow: 0 6px 24px rgba(0,0,0,.45); color-scheme: dark; }
:root[data-mode="dark"] .item .art, :root[data-mode="dark"] .rail-img, :root[data-mode="dark"] .chip-pic { background: #2a2a2d; }
:root[data-mode="dark"] .claim-code, :root[data-mode="dark"] .booking-note, :root[data-mode="dark"] .lp-toggle { background: #3a3020; color: #ffe4a8; }
:root[data-mode="dark"] .plate { filter: brightness(.92); }

/* Brand hero videos on the welcome screen */
.brand-videos{position:relative;width:100%;aspect-ratio:16/9;border-radius:var(--radius);overflow:hidden;margin:0 0 18px;box-shadow:var(--shadow);background:#000}
.brand-videos video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.2s ease;transform:scale(1.06);animation:bvzoom 12s ease-in-out infinite alternate}
.brand-videos video.on{opacity:1}
@keyframes bvzoom{to{transform:scale(1.14)}}
@media (prefers-reduced-motion:reduce){.brand-videos video{animation:none}}

.welcome-logo{display:block;width:132px;height:132px;object-fit:contain;margin:0 auto 10px;animation:wlpop .9s cubic-bezier(.34,1.56,.64,1) both}
.welcome-wordmark{font:700 clamp(34px,10vw,52px)/1.05 Georgia,serif;color:var(--brand);margin:6px auto 12px;letter-spacing:.02em;animation:wlpop .9s cubic-bezier(.34,1.56,.64,1) both}
.site-monogram{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--accent);color:#111;font:700 20px Georgia,serif}
@keyframes wlpop{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:none}}

/* Brand apps: solid brand-colour header instead of the preset gradient */
:root[style*='--brand'] .topbar{background:var(--brand)!important}

/* Brand plate game: dish photos + prices */
.foods .food-pic{width:44px;height:44px;border-radius:10px;object-fit:cover;flex:none}
.foods button{display:flex;align-items:center;gap:8px;text-align:left}
.foods .food-name{display:flex;flex-direction:column;line-height:1.2}
.foods .food-price{color:var(--brand);font-weight:700}
