:root {
  --night: #0B1020; --night-2: #131A31; --night-3: #1B2442;
  --line: rgba(244, 235, 221, .12); --line-2: rgba(244, 235, 221, .22);
  --cream: #F4EBDD; --muted: #B7AFA2; --dim: #8C8578;
  --saffron: #E8A33D; --saffron-2: #F6C977; --pom: #C23B4E;
  --ar: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --kufi: 'Reem Kufi', 'IBM Plex Sans Arabic', sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --top-h: 104px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--night); color: var(--cream); font-family: var(--ar); -webkit-font-smoothing: antialiased; }
body { overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
html[lang="en"] body { font-family: var(--serif), var(--ar); }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
img, video { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px; transition: transform .25s var(--spring), background .2s, box-shadow .2s; }
.btn:active { transform: scale(.96); }
.btn-gold { background: linear-gradient(180deg, var(--saffron-2), var(--saffron)); color: #1A1206; box-shadow: 0 10px 30px -10px rgba(232, 163, 61, .7); }
.btn-line { border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px); }
.btn-line .spark { color: var(--saffron-2); animation: twinkle 2.4s ease-in-out infinite; }
.lang-btn { min-width: 44px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font: 600 13px/1 var(--ar); letter-spacing: .04em; background: rgba(11, 16, 32, .5); backdrop-filter: blur(10px); }
html[lang="en"] .lang-btn { font-family: var(--ar); }

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: radial-gradient(120% 80% at 50% 0%, #1B2547 0%, var(--night) 55%, #070A15 100%); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.intro.leaving { opacity: 0; transform: scale(1.06); pointer-events: none; }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro-lang { position: absolute; top: max(16px, env(safe-area-inset-top)); inset-inline-end: 16px; }
.intro-core { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px; text-align: center; width: min(420px, 100%); }
.moon { width: 46px; height: 46px; fill: var(--saffron-2); filter: drop-shadow(0 0 24px rgba(246, 201, 119, .6)); opacity: 0; transform: translateY(10px) rotate(-20deg); animation: rise 1.2s .2s var(--ease) forwards; }
.logo { margin: 0; width: min(300px, 78vw); line-height: 0; }
.logo svg { width: 100%; overflow: visible; }
.logo text { font: 700 150px var(--kufi); fill: transparent; stroke: var(--saffron-2); stroke-width: 1.6; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.2s .4s var(--ease) forwards, fill-in .9s 2s ease forwards; }
.intro-tag { margin: -6px 0 0; color: var(--muted); letter-spacing: .3em; font-size: 13px; text-transform: uppercase; opacity: 0; animation: rise .9s 1.6s var(--ease) forwards; }
.intro-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 18px; opacity: 0; animation: rise .9s 2.1s var(--ease) forwards; }
.intro-hint { margin: 4px 0 0; color: var(--dim); font-size: 13px; opacity: 0; animation: rise .9s 2.4s var(--ease) forwards; }
.today { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .04); text-align: start; opacity: 0; animation: rise .9s 1.9s var(--ease) forwards; }
.today img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }
.today small { display: block; color: var(--saffron-2); font-size: 12px; font-weight: 600; }
.today b { font-size: 15px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill-in { to { fill: var(--cream); stroke-width: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes twinkle { 50% { opacity: .35; transform: scale(.8) rotate(20deg); } }

/* ---------- Feed ---------- */
.app { position: fixed; inset: 0; z-index: 2; display: flex; justify-content: center; }
.backdrop { position: fixed; inset: -40px; z-index: 0; background-size: cover; background-position: center; filter: blur(40px) saturate(1.2) brightness(.45); transition: background-image .6s; }
.feed { position: relative; height: 100%; width: 100%; max-width: 480px; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; background: var(--night); }
.feed::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .feed { box-shadow: 0 0 0 1px var(--line), 0 30px 120px -20px rgba(0, 0, 0, .9); } }

.top { position: absolute; top: 0; z-index: 5; width: 100%; max-width: 480px; padding: max(10px, env(safe-area-inset-top)) 14px 10px; background: linear-gradient(180deg, rgba(7, 10, 21, .85), rgba(7, 10, 21, 0)); pointer-events: none; }
.top > * { pointer-events: auto; }
.top-row { display: flex; align-items: center; justify-content: space-between; }
.brand-mini { font: 700 26px/1 var(--kufi); color: var(--cream); text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(11, 16, 32, .5); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.icon-btn svg { width: 18px; height: 18px; fill: var(--cream); }
#quizBtn svg { fill: var(--saffron-2); }
.chips { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); padding: 0 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); background: rgba(11, 16, 32, .45); border: 1px solid var(--line); backdrop-filter: blur(10px); transition: color .25s, background .25s, border-color .25s; }
.chip.on { color: #1A1206; background: var(--saffron-2); border-color: transparent; font-weight: 600; }

.slide { position: relative; height: 100%; min-height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: var(--night-2); }
.media { position: absolute; inset: 0; }
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media img { transform: scale(1.12); transition: transform 7s cubic-bezier(.2, .6, .3, 1), opacity .6s; opacity: 0; }
.media img.ready { opacity: 1; }
.slide.active .media img { transform: scale(1.0) translateY(-1.5%); }
.media video { opacity: 0; transition: opacity .6s; }
.media video.playing { opacity: 1; }
.shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 10, 21, .55) 0%, rgba(7, 10, 21, 0) 22%, rgba(7, 10, 21, 0) 42%, rgba(7, 10, 21, .78) 66%, rgba(7, 10, 21, .97) 100%); }

.info { position: absolute; inset-inline: 0; bottom: 0; padding: 0 20px max(26px, calc(env(safe-area-inset-bottom) + 18px)); padding-inline-end: 76px; }
.info > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.slide.active .info > * { opacity: 1; transform: none; }
.slide.active .info > :nth-child(2) { transition-delay: .06s; } .slide.active .info > :nth-child(3) { transition-delay: .12s; }
.slide.active .info > :nth-child(4) { transition-delay: .18s; } .slide.active .info > :nth-child(5) { transition-delay: .24s; }
.slide.active .info > :nth-child(6) { transition-delay: .3s; }
.badges { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.badge { height: 24px; padding: 0 10px; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.sig { background: rgba(246, 201, 119, .16); color: var(--saffron-2); border: 1px solid rgba(246, 201, 119, .35); }
.badge.today-b { background: var(--pom); color: #fff; }
.badge.sec { background: rgba(255, 255, 255, .08); color: var(--muted); }
.name { margin: 0; font: 700 clamp(30px, 8.6vw, 40px)/1.15 var(--ar); letter-spacing: -.01em; text-wrap: balance; }
.alt-name { margin: 4px 0 0; font: italic 400 17px/1.3 var(--serif); color: var(--saffron-2); }
html[lang="en"] .name { font: 600 clamp(30px, 8.6vw, 40px)/1.1 var(--serif); }
html[lang="en"] .alt-name { font: 500 15px/1.4 var(--ar); font-style: normal; }
.desc { margin: 10px 0 0; color: #D9D1C4; font-size: 15px; line-height: 1.65; max-width: 34ch; text-wrap: pretty; }
.meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.meta .al { height: 24px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 8px; background: rgba(255, 255, 255, .07); }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.price { display: inline-flex; align-items: baseline; gap: 6px; font: 700 34px/1 var(--ar); font-variant-numeric: tabular-nums; color: var(--cream); }
html[lang="en"] .price { font-family: var(--serif); font-weight: 600; }
.price .sar { width: .62em; height: .62em; fill: var(--saffron-2); align-self: center; }
.digits { display: inline-flex; }
.roll { position: relative; display: inline-block; overflow: hidden; height: 1em; line-height: 1; }
.roll .sz { visibility: hidden; font-weight: inherit; }
.roll .col { position: absolute; inset: 0 0 auto; display: flex; flex-direction: column; align-items: center; transition: transform 1.1s var(--ease); }
.roll .col i { font-style: normal; height: 1em; }
.lab-btn { height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #1A1206; background: var(--saffron-2); display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 8px 24px -8px rgba(246, 201, 119, .7); }
.lab-btn:active { transform: scale(.96); }

.rail { position: absolute; inset-inline-end: 12px; bottom: max(110px, calc(env(safe-area-inset-bottom) + 100px)); display: flex; flex-direction: column; gap: 18px; align-items: center; z-index: 2; }
.rail button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--cream); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.rail .r-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(11, 16, 32, .45); border: 1px solid var(--line); backdrop-filter: blur(10px); transition: transform .3s var(--spring), background .2s; }
.rail button:active .r-ico { transform: scale(.88); }
.rail svg { width: 22px; height: 22px; fill: none; stroke: var(--cream); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail .liked .r-ico { background: var(--pom); border-color: transparent; }
.rail .liked svg { fill: #fff; stroke: #fff; }
.rail .liked .r-ico { animation: pop .45s var(--spring); }
@keyframes pop { 40% { transform: scale(1.25); } }

.burst { position: absolute; z-index: 4; pointer-events: none; width: 110px; height: 110px; margin: -55px 0 0 -55px; }
.burst svg { width: 100%; height: 100%; fill: var(--pom); filter: drop-shadow(0 6px 20px rgba(194, 59, 78, .6)); animation: burst .9s var(--ease) forwards; }
@keyframes burst { 0% { transform: scale(.2) rotate(-12deg); opacity: 0; } 25% { transform: scale(1.15) rotate(6deg); opacity: 1; } 55% { transform: scale(1) rotate(0); opacity: 1; } 100% { transform: scale(1.3) translateY(-40px); opacity: 0; } }

.off .media { filter: grayscale(1) brightness(.55); }
.stamp { position: absolute; top: 34%; inset-inline: 0; margin: auto; width: max-content; padding: 10px 22px; border: 2px solid var(--cream); border-radius: 12px; font: 700 22px var(--ar); letter-spacing: .04em; transform: rotate(-8deg); background: rgba(11, 16, 32, .5); z-index: 2; }

/* Section opener slide */
.opener { display: grid; place-items: center; text-align: center; background: var(--night); }
.opener .media img { filter: blur(18px) brightness(.4) saturate(1.2); transform: scale(1.3); }
.opener .o-core { position: relative; z-index: 1; padding: 24px; }
.o-num { font: italic 500 16px var(--serif); color: var(--saffron-2); letter-spacing: .2em; }
.o-title { margin: 8px 0 0; font: 700 clamp(48px, 15vw, 72px)/1.05 var(--kufi); }
html[lang="en"] .o-title { font: italic 500 clamp(46px, 14vw, 68px)/1 var(--serif); }
.o-sub { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.o-title .w { display: inline-block; opacity: 0; transform: translateY(40%) rotate(4deg); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.opener.active .o-title .w { opacity: 1; transform: none; }
.o-swipe { position: absolute; bottom: max(40px, env(safe-area-inset-bottom)); inset-inline: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--dim); font-size: 12px; }
.o-swipe i { width: 2px; height: 34px; border-radius: 2px; background: linear-gradient(var(--saffron-2), transparent); animation: swipe 1.8s ease-in-out infinite; }
@keyframes swipe { 0% { transform: translateY(10px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }

.mylist-btn { position: fixed; z-index: 6; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); height: 46px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; background: rgba(244, 235, 221, .95); color: var(--night); font-weight: 700; font-size: 14px; box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .8); animation: drop-in .6s var(--spring); }
.mylist-btn .ml-heart { color: var(--pom); font-size: 16px; }
.mylist-btn #mylistCount { min-width: 22px; height: 22px; border-radius: 11px; background: var(--night); color: var(--cream); display: grid; place-items: center; font-size: 12px; }
.mylist-btn.bump { animation: bump .5s var(--spring); }
@keyframes drop-in { from { transform: translate(-50%, 30px); opacity: 0; } }
@keyframes bump { 40% { transform: translateX(-50%) scale(1.12); } }
/* The list button sits over the bottom of the info panel, so lift the panel when it shows. */
.has-list .info { padding-bottom: max(84px, calc(env(safe-area-inset-bottom) + 76px)); }
.has-list .rail { bottom: max(160px, calc(env(safe-area-inset-bottom) + 150px)); }

/* ---------- Dialogs ---------- */
dialog { color: var(--cream); padding: 0; border: 0; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(4, 6, 14, .6); backdrop-filter: blur(6px); }
.sheet { width: min(480px, 100%); margin: auto auto 0; max-height: 86dvh; border-radius: 26px 26px 0 0; background: var(--night-2); border-top: 1px solid var(--line-2); overflow: auto; overscroll-behavior: contain; }
.sheet[open] { animation: sheet-up .5s var(--ease); }
@keyframes sheet-up { from { transform: translateY(100%); } }
.sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 12px; background: linear-gradient(var(--night-2) 70%, transparent); }
.sheet-head h2 { margin: 0; font: 700 20px var(--ar); }
html[lang="en"] .sheet-head h2 { font-family: var(--serif); font-weight: 600; }
.grab { position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--line-2); }
.x { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .06); font-size: 18px; }
.full { width: 100%; height: 100%; margin: 0; background: var(--night); overflow: hidden; }
.full[open] { animation: fade .4s ease; }
.full .x { position: absolute; top: max(14px, env(safe-area-inset-top)); inset-inline-end: 14px; z-index: 5; background: rgba(255, 255, 255, .08); }
@keyframes fade { from { opacity: 0; } }

.g-sec { padding: 4px 18px 16px; }
.g-sec h3 { margin: 6px 0 10px; font: 600 13px var(--ar); color: var(--saffron-2); letter-spacing: .06em; }
.g-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.g-item { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--night-3); text-align: start; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-item span { position: absolute; inset: auto 0 0; padding: 22px 8px 7px; font-size: 12px; font-weight: 600; line-height: 1.3; background: linear-gradient(transparent, rgba(7, 10, 21, .92)); }
.g-item.off img { filter: grayscale(1) brightness(.5); }

.l-items { padding: 0 18px; }
.l-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.l-item img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; }
.l-item .l-txt { flex: 1; min-width: 0; }
.l-item b { display: block; font-size: 15px; }
.l-item small { color: var(--muted); }
.l-item .rm { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--muted); }
.l-foot { position: sticky; bottom: 0; padding: 14px 18px max(18px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--night-2) 30%); display: flex; flex-direction: column; gap: 10px; }
.l-total { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }
.l-total b { color: var(--cream); font-size: 20px; }
.l-empty { padding: 30px 18px 40px; text-align: center; color: var(--muted); line-height: 1.8; }

/* Show to waiter */
.waiter { background: var(--cream); color: var(--night); }
.w-wrap { height: 100%; overflow: auto; padding: max(60px, env(safe-area-inset-top)) 24px 40px; }
.w-wrap h2 { margin: 0 0 4px; font: 700 30px var(--kufi); }
.w-wrap p { margin: 0 0 20px; color: #6B6458; }
.w-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px dashed #CFC5B4; font-size: 22px; font-weight: 700; }
.w-row span { color: #6B6458; font-weight: 500; font-size: 16px; }
.waiter .x { background: rgba(11, 16, 32, .08); color: var(--night); }

/* ---------- Taste quiz ---------- */
.quiz { background: radial-gradient(100% 70% at 50% 0%, #1C2650, var(--night) 60%); }
.q-stage { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 70px 22px 40px; max-width: 480px; margin: 0 auto; }
.q-step { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 70px 22px 40px; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.q-step.out { opacity: 0; transform: translateX(-40px); pointer-events: none; }
html[dir="rtl"] .q-step.out { transform: translateX(40px); }
.q-step.wait { opacity: 0; transform: translateX(40px); pointer-events: none; }
html[dir="rtl"] .q-step.wait { transform: translateX(-40px); }
.q-count { color: var(--saffron-2); font: italic 500 15px var(--serif); letter-spacing: .2em; }
.q-title { margin: 8px 0 24px; font: 700 30px/1.25 var(--ar); text-wrap: balance; }
html[lang="en"] .q-title { font: 600 32px/1.15 var(--serif); }
.q-opts { display: grid; gap: 10px; }
.q-opt { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 16px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); text-align: start; font-size: 17px; font-weight: 600; transition: transform .3s var(--spring), background .2s, border-color .2s; opacity: 0; transform: translateY(14px); }
.q-step.in .q-opt { animation: rise .5s var(--ease) forwards; }
.q-step.in .q-opt:nth-child(2) { animation-delay: .06s; } .q-step.in .q-opt:nth-child(3) { animation-delay: .12s; } .q-step.in .q-opt:nth-child(4) { animation-delay: .18s; }
.q-opt:active { transform: scale(.97); }
.q-opt.pick { background: var(--saffron-2); color: #1A1206; border-color: transparent; }
.q-opt .e { font-size: 26px; width: 34px; text-align: center; }
.q-opt small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.q-opt.pick small { color: #4A3A1A; }
.q-dots { position: absolute; top: max(24px, env(safe-area-inset-top)); inset-inline-start: 22px; display: flex; gap: 6px; }
.q-dots i { width: 22px; height: 4px; border-radius: 2px; background: var(--line-2); transition: background .3s; }
.q-dots i.on { background: var(--saffron-2); }

.deal { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 70px 16px 30px; }
.deal-title { margin: 0 0 4px; font: 700 26px var(--ar); text-align: center; opacity: 0; transition: opacity .6s; }
html[lang="en"] .deal-title { font: 600 28px var(--serif); }
.deal-sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; text-align: center; opacity: 0; transition: opacity .6s .1s; }
.deal.done .deal-title, .deal.done .deal-sub { opacity: 1; }
.table { position: relative; width: 100%; max-width: 440px; height: min(62dvh, 520px); perspective: 1200px; }
.card { position: absolute; left: 50%; top: 50%; width: 132px; height: 196px; margin: -98px 0 0 -66px; transform-style: preserve-3d; transition: transform .9s var(--ease); cursor: pointer; }
.card .face { position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden; overflow: hidden; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .8); }
.card .back { background: repeating-linear-gradient(45deg, rgba(246, 201, 119, .14) 0 2px, transparent 2px 12px), linear-gradient(160deg, #23305F, #121A35); border: 1px solid rgba(246, 201, 119, .4); display: grid; place-items: center; }
.card .back b { font: 700 34px var(--kufi); color: var(--saffron-2); }
.card .front { transform: rotateY(180deg); background: var(--night-3); border: 1px solid rgba(246, 201, 119, .5); }
.card .front img { width: 100%; height: 100%; object-fit: cover; }
.card .front .cap { position: absolute; inset: auto 0 0; padding: 30px 10px 10px; background: linear-gradient(transparent, rgba(7, 10, 21, .96) 45%); }
.card .front .cap small { color: var(--saffron-2); font-size: 11px; font-weight: 600; }
.card .front .cap b { display: block; font-size: 15px; line-height: 1.3; }
.card .front .cap span { font-size: 13px; color: var(--muted); }
.card.flip .inner { transform: rotateY(180deg); }
.card .inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.deal-actions { display: flex; gap: 8px; margin-top: 18px; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease); }
.deal.done .deal-actions { opacity: 1; transform: none; }
.deal-actions .btn { min-height: 46px; padding: 0 20px; font-size: 15px; }

/* ---------- Mocktail lab ---------- */
.lab { background: radial-gradient(90% 60% at 50% 30%, #1E2A55, var(--night) 65%); }
.lab-stage { height: 100%; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px 30px; gap: 10px; }
.lab-kicker { color: var(--saffron-2); font: italic 500 14px var(--serif); letter-spacing: .25em; }
.lab-name { margin: 0; font: 700 30px var(--ar); text-align: center; }
html[lang="en"] .lab-name { font: 600 32px var(--serif); }
.glass-wrap { position: relative; width: min(300px, 76vw); aspect-ratio: 3 / 4.2; margin: 6px 0; }
.glass-wrap svg { width: 100%; height: 100%; overflow: visible; }
.glass-wrap svg .layer { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .9s cubic-bezier(.45, 0, .2, 1); }
.glass-wrap svg .layer.pour { transform: scaleY(1); }
.glass-wrap svg .ice { transform-box: fill-box; transform-origin: center; opacity: 0; }
.glass-wrap svg .ice.drop { animation: ice-drop .9s var(--spring) forwards; }
@keyframes ice-drop { from { opacity: 0; transform: translateY(-240px) rotate(-30deg); } to { opacity: 1; transform: none; } }
.glass-wrap svg .garnish { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0); transition: transform .7s var(--spring); }
.glass-wrap svg .garnish.pop { transform: scale(1); }
.glass-wrap svg .bubble { opacity: 0; }
.glass-wrap svg.fizz .bubble { animation: bubble 2.6s ease-in infinite; }
@keyframes bubble { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .8; } 100% { opacity: 0; transform: translateY(-230px); } }
.glass-wrap svg .wave { animation: wave 3s linear infinite; }
@keyframes wave { to { transform: translateX(-60px); } }
.ings { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 36px; }
.ing { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: 14px; font-weight: 600; opacity: 0; transform: translateY(10px) scale(.9); transition: opacity .4s, transform .5s var(--spring); }
.ing.show { opacity: 1; transform: none; }
.ing i { width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }
.lab-foot { display: flex; align-items: center; gap: 14px; opacity: 0; transition: opacity .6s; }
.lab-foot.show { opacity: 1; }
.lab-foot .price { font-size: 28px; }

.toast { position: fixed; z-index: 50; left: 50%; top: max(118px, calc(env(safe-area-inset-top) + 108px)); transform: translate(-50%, -14px); padding: 10px 18px; border-radius: 999px; background: var(--cream); color: var(--night); font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--spring); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .slide.active .media img { transform: none; }
}
