/* Pizzrella online ordering - dark "Chat with Pizzrella" with the "Crave Stories" menu page.
   No inline styles anywhere (the security policy blocks them). */
:root { --brand: #FF6A1A; --brand2: #FF8A45; --glow: #FFB23F; --bg: #140C0A; --card: #22150F; --card2: #2A1B14; --ink: #FFF4EA; --muted: #C4AE9E; --line: #3A271E; --soft: #2C1B13;
  --ok: #34C77B; --bad: #FF8A80; --head: 'Bricolage Grotesque', 'Baloo 2', system-ui, sans-serif; --chat: 'Baloo 2', system-ui, sans-serif; --body: 'Plus Jakarta Sans', system-ui, sans-serif; --ur: 'Noto Nastaliq Urdu', serif; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: radial-gradient(120% 55% at 50% 0%, #3B1A0E 0%, var(--bg) 62%) fixed var(--bg); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; }
button { font: inherit; cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; }
a { color: var(--brand2); }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; } .grow { flex: 1; min-width: 0; }
.nophoto { display: grid; place-items: center; background: var(--soft); font-size: 54px; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px; background: var(--brand); color: #fff; }
.tag.off { background: linear-gradient(135deg, #FFB23F, #FF6A1A); color: #1A0E08; font-weight: 800; }
s.was { color: var(--muted); font-weight: 500; font-size: .88em; text-decoration-thickness: 1.5px; }
.summary .l.off, .ocard .l.off { color: #8FE3B0; font-weight: 600; }
.loading { margin: auto; padding: 40px 20px; text-align: center; color: var(--muted); }

/* ---------- chat ---------- */
.shell { flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 640px; margin: 0 auto; min-height: 0; }
header.top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(20,12,10,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
header.top img { width: 42px; height: 42px; border-radius: 50%; background: #fff; padding: 4px; }
header.top .who { flex: 1; min-width: 0; } header.top b { font-family: var(--chat); font-size: 19px; display: block; line-height: 1.1; }
header.top small { color: var(--muted); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
header.top small::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--brand); margin-inline-end: 6px; }
header.top small.off::before { background: #8a7768; box-shadow: none; }
.hbtn, .lang { border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.07); color: var(--ink); font: inherit; font-weight: 700; font-size: 13px; padding: 9px 11px; }
.hbtn.menu { background: var(--brand); border-color: var(--brand); color: #fff; }
.lang { appearance: none; text-align: center; } .lang option { color: #241914; background: #fff; }
.feed { flex: 1; overflow-y: auto; padding: 16px 12px 10px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.feed > * { flex-shrink: 0; }
.msg { max-width: 84%; padding: 10px 13px; border-radius: 18px; line-height: 1.45; animation: inmsg .25s ease-out; overflow-wrap: anywhere; }
@keyframes inmsg { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.msg.bot { background: var(--card2); border: 1px solid #36241A; border-end-start-radius: 6px; align-self: flex-start; }
.msg.me { background: var(--brand); color: #fff; border-end-end-radius: 6px; align-self: flex-end; box-shadow: 0 4px 14px rgba(255,106,26,.25); }
.msg.warn { background: #3A2A12; border-color: #6B4E1E; }
.msg.err { background: #3A1614; border-color: #6B2A26; color: #FFD2CC; }
.msg b { font-weight: 700; }
.typing { align-self: flex-start; background: var(--card2); border: 1px solid #36241A; border-radius: 18px; padding: 12px 14px; display: flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #6B5446; animation: dot 1s infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { transform: translateY(-4px); background: var(--brand); } }
.stamp { align-self: center; font-size: 11.5px; color: var(--muted); background: rgba(255,255,255,.06); padding: 3px 10px; border-radius: 999px; margin: 4px 0; }
.msg .uline { margin-top: 4px; font-weight: 600; } .msg .uline small { font-weight: 400; color: var(--muted); }
/* item cards in the chat: small, three per row on phones (four in the wider desktop chat panel), so customers scroll down
   instead of swiping. The description is left out here: the item sheet shows it when the card is tapped. */
.carousel { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 7px; padding: 2px 2px 8px; align-self: stretch; animation: inmsg .3s; }
.mcard { min-width: 0; background: var(--card); border: 1px solid #36241A; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.3); display: flex; flex-direction: column; cursor: pointer; position: relative; padding: 0; text-align: start; color: var(--ink); }
.mcard:active { transform: scale(.98); }
.mcard img, .mcard .nophoto { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--soft); } /* square: deal posters show whole */
.mcard .tag { position: absolute; top: 6px; inset-inline-start: 6px; font-size: 10.5px; padding: 2px 6px; }
.mcard .in { padding: 7px 7px 8px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.mcard b { font-family: var(--chat); font-size: 13px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard small { display: none; }
.mcard .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 6px; margin-top: auto; padding-top: 4px; }
.mcard .p { font-weight: 700; color: var(--glow); font-size: 12px; line-height: 1.25; }
.mcard .p .was { display: block; font-size: 11px; }
.mcard .go { flex: 1 1 100%; text-align: center; border-radius: 999px; background: rgba(255,106,26,.16); color: #FFB27A; font-weight: 700; padding: 5px 6px; font-size: 11.5px; white-space: nowrap; }
.summary, .ocard { align-self: stretch; background: var(--card); border: 1px solid #36241A; border-radius: 20px; padding: 14px; animation: inmsg .3s; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.summary .l, .ocard .l { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 14.5px; }
.summary .l > span:last-child, .ocard .l > span:last-child { white-space: nowrap; }
.summary .l small, .ocard .l small { display: block; color: var(--muted); font-size: 12.5px; }
.summary .l.t, .ocard .l.t { font-weight: 800; font-size: 17px; border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; }
.summary .muted { font-size: 12.5px; margin-top: 4px; }
.done { align-self: center; text-align: center; padding: 10px; animation: inmsg .3s; } .done .big { font-size: 56px; animation: wob 1s ease-in-out infinite; } .done b { display: block; font-size: 17px; }
@keyframes wob { 50% { transform: rotate(-10deg) scale(1.08); } }
.replies { padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(20,12,10,0), var(--bg) 35%); display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.qr { border: 1.5px solid rgba(255,106,26,.7); background: rgba(255,255,255,.04); color: #FFC49A; border-radius: 999px; padding: 10px 14px; font-weight: 700; font-size: 14px; animation: inmsg .25s backwards; }
.qr:nth-child(2) { animation-delay: .05s; } .qr:nth-child(3) { animation-delay: .1s; } .qr:nth-child(4) { animation-delay: .15s; } .qr:nth-child(5) { animation-delay: .2s; } .qr:nth-child(6) { animation-delay: .25s; }
.qr.main { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 6px 18px rgba(255,106,26,.35); } .qr:active { transform: scale(.95); }
.input { display: flex; gap: 8px; width: 100%; }
.input input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 16px; font: inherit; background: var(--card); color: var(--ink); }
.input input::placeholder, .mp-search input::placeholder { color: #8a7768; }
.input input.bad { border-color: var(--bad); animation: shake .3s; } @keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.input button { border: 0; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 18px; }
.basket { position: fixed; inset-inline-end: 14px; top: 72px; z-index: 6; border: 1px solid var(--line); border-radius: 999px; background: var(--card2); color: var(--ink); box-shadow: 0 8px 22px rgba(0,0,0,.5); padding: 8px 12px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.basket[hidden] { display: none; }
.basket .count { background: var(--brand); color: #fff; border-radius: 999px; min-width: 24px; height: 24px; display: grid; place-items: center; font-size: 13px; }
.basket.bump { animation: bump .4s; } @keyframes bump { 40% { transform: scale(1.15); } }

/* ---------- sheets (item choice, basket) ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; z-index: 50; animation: fade .15s; }
.sheet { position: relative; background: #1E130E; color: var(--ink); width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 20px 18px 22px; animation: up .2s ease-out; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .sheet-bg { align-items: center; } .sheet { border-radius: 22px; } }
.sheet h3 { font-family: var(--head); font-size: 28px; margin: 6px 0 4px; font-weight: 800; }
.sheet-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; z-index: 2; }
.sheet-img { width: 100%; aspect-ratio: 1; max-height: 44vh; object-fit: contain; border-radius: 14px; background: var(--soft); } /* the whole photo */
.label { font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; margin: 16px 0 8px; color: var(--muted); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 14px; padding: 12px; text-align: start; display: flex; flex-direction: column; gap: 2px; }
.opt span { font-size: 13px; color: var(--muted); } .opt.on { border-color: var(--brand); background: #3A1E10; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 8px 13px; font-size: 14px; }
.chip.on { border-color: var(--brand); background: var(--brand); color: #fff; }
/* extras (add-ons): dashed golden chips, under the size or under each pizza of a deal */
.chips.xtra { margin-top: 8px; }
.chips.xtra .chip { border-style: dashed; border-color: rgba(255,178,63,.6); color: #FFD08A; font-size: 13.5px; padding: 7px 12px; }
.chips.xtra .chip.on { border-style: solid; border-color: var(--glow); background: rgba(255,178,63,.18); color: #FFE2B0; }
.cta { width: 100%; margin-top: 18px; border: 0; border-radius: 14px; background: var(--brand); color: #fff; padding: 15px; font-weight: 700; font-size: 16px; display: block; text-align: center; text-decoration: none; box-shadow: 0 10px 30px rgba(255,106,26,.35); }
.cta.ghost { background: var(--card2); color: var(--ink); border: 1px solid var(--line); margin-top: 10px; box-shadow: none; }
.cta:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.cline { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.qty { display: flex; align-items: center; gap: 8px; } .qty button { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }
.amt { min-width: 72px; text-align: end; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 120px; transform: translate(-50%, 20px); background: #FFF4EA; color: #140C0A; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; transition: .2s; z-index: 80; pointer-events: none; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes up { from { transform: translateY(30px); opacity: 0; } } @keyframes fade { from { opacity: 0; } }

/* ---------- menu page ("Crave Stories") ---------- */
.mp { position: fixed; inset: 0; z-index: 30; background: radial-gradient(90% 50% at 50% 0%, #3B1A0E 0%, var(--bg) 70%) var(--bg); overflow-y: auto; animation: mpup .3s cubic-bezier(.2,.9,.3,1); padding-bottom: 110px; }
.mp[hidden] { display: none; }
@keyframes mpup { from { transform: translateY(6%); opacity: 0; } }
.mp-in { max-width: 640px; margin: 0 auto; }
.mp-top { position: sticky; top: 0; z-index: 4; display: flex; gap: 8px; align-items: center; padding: 10px 12px; background: rgba(20,12,10,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.mp-logo, .mp-lang, .mp-mode { display: none; } /* desktop only (the menu is their home page there) */
.mp-mode { border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--ink); border-radius: 999px; padding: 9px 14px; font-weight: 700; font-size: 14px; white-space: nowrap; flex: 0 0 auto; }
.mp-mode:hover { border-color: var(--brand); }
.sheet h3 { padding-inline-end: 40px; } /* clear of the ✕ */
.opts.dm { margin-top: 14px; } .opts.dm .opt { padding: 16px; } .opts.dm .opt b { font-size: 17px; }
.dm-back { margin-top: 14px; border: 0; background: none; color: var(--muted); font-weight: 600; padding: 6px 0; }
.mp-usual { margin: 14px 14px 0; border-radius: 22px; padding: 14px 16px; background: linear-gradient(135deg, #3A1C0E, #2A160D); border: 1px solid #6B3A1E; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.mp-usual .u-t { flex: 1 1 220px; min-width: 0; } .mp-usual .u-t b { font-family: var(--head); font-size: 18px; }
.mp-usual .btn { flex: 0 0 auto; }
.mp-closed { margin: 14px 14px 0; padding: 12px 14px; border-radius: 16px; background: #3A2A12; border: 1px solid #6B4E1E; color: #FFE2B8; }
.mp-back { border: 0; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; padding: 9px 13px; font-size: 14px; flex: 0 0 auto; }
.mp-search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; }
.mp-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; padding: 10px 0; outline: none; }
/* story viewer */
/* the story is about as tall as the (square) poster plus room for the caption, so the whole poster shows */
.story { position: relative; height: min(68vh, calc(100vw + 150px), 600px); overflow: hidden; border-radius: 0 0 28px 28px; background: #000; touch-action: pan-y; user-select: none; }
.story img, .story .nophoto { position: absolute; inset: 0; width: 100%; height: 100%; }
.story .sbg { object-fit: cover; filter: blur(26px) brightness(.5) saturate(1.2); transform: scale(1.25); }
.story .sfg { object-fit: contain; object-position: center top; height: calc(100% - 120px); animation: kb 6s ease-out forwards; transform-origin: center top; }
@keyframes kb { from { transform: scale(1.04); } to { transform: scale(1); } }
.story.paused .sfg { animation-play-state: paused; }
.story::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 40%, rgba(20,12,10,.97) 100%); }
.bars { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 3; direction: ltr; }
.bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.bars span i { display: block; height: 100%; width: 0; background: #fff; }
.bars span.done i { width: 100%; } .bars span.now i { animation: prog 5.5s linear forwards; }
.story.paused .bars span.now i { animation-play-state: paused; }
.story.still .bars span.now i { animation: none; width: 100%; }
@keyframes prog { to { width: 100%; } }
.tapzone { position: absolute; top: 40px; bottom: 140px; width: 32%; z-index: 2; background: transparent; border: 0; }
.tapzone.l { left: 0; } .tapzone.r { right: 0; }
.scap { position: absolute; left: 18px; right: 18px; bottom: 20px; z-index: 3; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.scap .kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--glow); margin-bottom: 6px; }
.scap h2 { font-family: var(--head); font-size: 40px; line-height: .98; margin: 0 0 6px; letter-spacing: -.01em; }
.scap p { margin: 0 0 14px; color: #f0dccd; max-width: 34em; }
.scap .go { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn { border: 0; border-radius: 999px; padding: 13px 18px; font-weight: 700; background: var(--brand); color: #fff; box-shadow: 0 10px 30px rgba(255,106,26,.45); }
.btn.ghost { background: rgba(255,255,255,.14); backdrop-filter: blur(10px); box-shadow: none; }
/* category bubbles */
.circles { display: flex; gap: 14px; overflow-x: auto; padding: 16px 14px 4px; scrollbar-width: none; }
.circles::-webkit-scrollbar { display: none; }
.circle { flex: 0 0 auto; border: 0; background: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; width: 78px; }
.circle .ring { width: 72px; height: 72px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--glow), var(--brand), #E2264D, var(--glow)); }
.circle .ring img, .circle .ring .nophoto { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); font-size: 28px; }
.circle span:last-child { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* shelves */
.shelf h3 { font-family: var(--head); font-size: 23px; margin: 24px 14px 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; scroll-margin-top: 70px; }
.shelf h3 small { font-family: var(--body); font-size: 13px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 14px 6px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.tile { flex: 0 0 44%; max-width: 230px; scroll-snap-align: start; border: 0; padding: 0; text-align: start; background: var(--card); color: var(--ink); border-radius: 22px; overflow: hidden; position: relative; }
.tile:active { transform: scale(.97); }
.tile img, .tile .nophoto { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--soft); }
.tile .in { padding: 10px 12px 12px; display: block; }
.tile b { display: block; font-weight: 700; font-size: 15px; line-height: 1.2; font-family: var(--body); }
.tile .p { display: block; color: var(--glow); font-weight: 700; font-size: 14px; margin-top: 4px; }
.tile .add { position: absolute; inset-inline-end: 10px; top: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); color: #fff; display: grid; place-items: center; font-size: 22px; }
.tile .tag { position: absolute; inset-inline-start: 10px; top: 10px; }
.tile.wide { flex-basis: 64%; max-width: 340px; } /* deals: bigger tiles, square like the posters */
/* category shelves on phones and tablets: every item in two columns (three on wider screens), so customers just scroll down.
   Only the "favourites" strip stays a sideways row. Desktops have their own grid further down. */
@media (max-width: 1023px) {
  .rail.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; }
  .rail.cols .tile, .rail.cols .tile.wide { max-width: none; }
  .rail.cols .tile .add { width: 30px; height: 30px; font-size: 19px; top: 8px; inset-inline-end: 8px; }
}
@media (min-width: 640px) and (max-width: 1023px) { .rail.cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 0 14px; }
.grid .tile { max-width: none; }
.none { padding: 30px 14px; text-align: center; color: var(--muted); }
/* surprise me */
.surprise { margin: 26px 14px 0; border-radius: 24px; padding: 16px; background: linear-gradient(135deg, #2A160D, #3A1C0E); border: 1px solid var(--line); display: flex; align-items: center; gap: 14px; }
.surprise .slot { width: 78px; height: 78px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: var(--soft); border: 3px solid var(--glow); }
.surprise .slot img, .surprise .slot .nophoto { width: 100%; height: 100%; object-fit: cover; }
.surprise .slot.spin img { animation: blur .12s linear infinite; }
@keyframes blur { 50% { filter: blur(2px) brightness(1.2); transform: scale(1.08); } }
.surprise b { font-family: var(--head); font-size: 19px; display: block; } .surprise small { color: var(--muted); }
.surprise .btn { margin-inline-start: auto; padding: 11px 14px; flex: 0 0 auto; }
/* bottom bar: back to the chat to check out */
.mp-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); width: calc(100% - 28px); max-width: 600px; z-index: 31; border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 12px 14px; display: flex; align-items: center; gap: 10px;
  background: rgba(40,24,16,.78); backdrop-filter: blur(16px) saturate(1.4); color: #fff; font-weight: 700; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.mp-bar[hidden] { display: none; }
.mp-bar .count { background: var(--brand); border-radius: 12px; min-width: 30px; height: 30px; display: grid; place-items: center; }
.mp-bar .t { flex: 1; text-align: start; }
.mp-bar.wiggle { animation: wig .5s; } @keyframes wig { 25% { transform: translateX(-50%) rotate(-2deg) scale(1.03); } 75% { transform: translateX(-50%) rotate(2deg) scale(1.03); } }
@media (min-width: 900px) { .story { border-radius: 28px; margin-top: 14px; height: 480px; } .tile { flex-basis: 23%; } .tile.wide { flex-basis: 40%; } }

/* ---------- page frame: phones = the chat alone; desktops = showcase on the left, chat panel on the right ---------- */
.desk { flex: 1; display: flex; flex-direction: column; min-height: 0; width: 100%; }
.side { display: none; }
@media (min-width: 1024px) {
  body { height: 100vh; height: 100dvh; overflow: hidden; }
  .desk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, 520px); gap: 36px; max-width: 1320px; margin: 0 auto; padding: 22px 28px; height: 100%; }
  .side { display: block; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #4A3226 transparent; }
  .side-in { padding: 34px 10px 30px 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
  .side-kicker { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--glow); }
  .side h1 { font-family: var(--head); font-weight: 800; font-size: clamp(44px, 4.6vw, 68px); line-height: .98; letter-spacing: -.02em; margin: 0; max-width: 11em; }
  .side-sub { margin: 0; font-size: 18px; color: var(--muted); max-width: 30em; line-height: 1.5; }
  .side-off { font-weight: 800; font-size: 16px; padding: 10px 16px; border-radius: 999px; background: linear-gradient(135deg, #FFB23F, #FF6A1A); color: #1A0E08; box-shadow: 0 10px 30px rgba(255,106,26,.3); }
  .side-how { list-style: none; padding: 0; margin: 2px 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .side-how li { border: 1px solid var(--line); background: rgba(255,255,255,.05); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; }
  .side .btn { font-size: 15px; }
  .side h2 { font-family: var(--head); font-size: 24px; margin: 18px 0 0; }
  .side-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; width: 100%; }
  .side-picks .tile { max-width: none; }
  .side .legal { align-self: flex-start; margin-top: 10px; }
  /* the chat becomes a framed panel; everything inside scrolls as before */
  .shell { max-width: none; height: 100%; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: rgba(20,12,10,.72); box-shadow: 0 24px 70px rgba(0,0,0,.45); }
  .shell .basket { position: absolute; top: 74px; }
  .replies { background: linear-gradient(180deg, rgba(20,12,10,0), rgba(20,12,10,.95) 35%); }
  /* menu page: wider, shelves become grids instead of swipe rails */
  .mp-in { max-width: 1180px; }
  .story { height: 400px; } /* shorter on computers: the menu is the first thing they came for */
  /* top bar: logo · search · language · chat */
  .mp-top { padding: 12px 18px; gap: 12px; }
  .mp-logo { display: block; order: -1; width: 40px; height: 40px; border-radius: 50%; }
  .mp-lang, .mp-mode { display: block; }
  .mp-top .mp-back { order: 9; }
  .circles { justify-content: center; }
  .rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); overflow: visible; padding-bottom: 6px; }
  .rail:has(.wide) { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .rail .tile, .rail .tile.wide { max-width: none; }
  .surprise { max-width: 640px; margin-inline: auto; }
  /* mouse: a little lift instead of the tap squeeze */
  .tile, .mcard { transition: transform .15s, box-shadow .15s; }
  .tile:hover, .mcard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.45); }
  .qr:hover { background: rgba(255,106,26,.14); } .qr.main:hover { filter: brightness(1.08); }
}

/* ---------- Urdu: right to left, Nastaliq script (needs more line height); menu names stay in the Latin fonts ---------- */
html[lang=ur] body, html[lang=ur] .sheet, html[lang=ur] .mp { font-family: var(--ur), var(--body); }
html[lang=ur] .msg, html[lang=ur] .qr, html[lang=ur] .summary, html[lang=ur] .ocard, html[lang=ur] .label, html[lang=ur] .opt, html[lang=ur] .cta, html[lang=ur] .toast, html[lang=ur] header.top small,
  html[lang=ur] .mcard .go, html[lang=ur] .scap p, html[lang=ur] .surprise small, html[lang=ur] .mp-bar, html[lang=ur] .btn, html[lang=ur] .mp-back { line-height: 2.1; }
html[lang=ur] .msg { padding-top: 6px; padding-bottom: 6px; }
html[lang=ur] .label, html[lang=ur] .scap .kicker { letter-spacing: 0; text-transform: none; font-size: 14px; }
html[lang=ur] .replies { justify-content: flex-start; }
html[lang=ur] input { text-align: right; } html[lang=ur] input[dir=ltr] { text-align: left; }
html[lang=ur] .mcard b, html[lang=ur] .chip, html[lang=ur] .opt b, html[lang=ur] .cline b, html[lang=ur] .sheet h3, html[lang=ur] .tile b, html[lang=ur] .scap h2, html[lang=ur] .circle span:last-child { font-family: var(--head); }
html[lang=ur] .shelf h3 { font-family: var(--ur); font-size: 21px; line-height: 2; }
html[lang=ur] .side h1 { font-family: var(--ur); font-size: clamp(34px, 3.4vw, 50px); line-height: 1.7; letter-spacing: 0; }
html[lang=ur] .side h2 { font-family: var(--ur); line-height: 2; } html[lang=ur] .side-kicker { letter-spacing: 0; text-transform: none; }
html[lang=ur] .side-sub, html[lang=ur] .side-off, html[lang=ur] .side-how li { line-height: 2; }
html[lang=ur] .scap::before { content: ''; position: absolute; inset: -30px -18px -20px; z-index: -1; background: linear-gradient(180deg, transparent, rgba(0,0,0,.55) 30%); } /* extra shade behind Urdu text on photos */
.ur { font-family: var(--ur); line-height: 2; }
/* menu names and descriptions come from the POS in English: keep them in their own direction inside the Urdu layout */
.scap h2, .scap p, .tile b, .mcard b, .mcard small, .circle span:last-child, .sheet h3, .sheet > p, .chip, .opt b, .cline b, .cline .muted, .summary .l > span:first-child, .ocard .l > span:first-child, .shelf h3 { unicode-bidi: plaintext; }

/* policies page (/policies) */
body.policy-page { display: block; overflow-y: auto; }
.policy { max-width: 760px; margin: 0 auto; padding: 22px 18px 60px; line-height: 1.6; }
.policy-back { display: inline-block; margin-bottom: 18px; font-weight: 700; text-decoration: none; }
.policy-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.policy-head img { width: 56px; height: 56px; border-radius: 50%; background: #fff; padding: 5px; }
.policy h1 { font-family: var(--head); font-size: 34px; margin: 0; }
.policy h2 { font-family: var(--head); font-size: 24px; margin: 30px 0 10px; scroll-margin-top: 16px; }
.policy ul { padding-inline-start: 20px; } .policy li { margin: 8px 0; } .policy li b { color: #FFD08A; }
.policy-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.policy-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; text-decoration: none; font-weight: 600; font-size: 14px; }
.legal { align-self: center; font-size: 12px; color: var(--muted); text-align: center; margin: 4px 0; } .legal a { color: var(--muted); }

/* practice payment page (built by the server; no real money) */
.simpay { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.simbox { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; max-width: 420px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.simbox h1 { font-family: var(--head); font-weight: 800; font-size: 36px; margin: 6px 0; }
.simtag { display: inline-block; background: #FFF4C2; color: #6B5300; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px; margin: 0; }
