@font-face{font-family:'Instrument Serif';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/instrument-serif-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Vibes';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/vibes-arabic.woff2) format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
@font-face{font-family:'Vibes';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/vibes-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:300 700;font-display:swap;src:url(/fonts/readex-pro-arabic.woff2) format('woff2');unicode-range:U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1}
@font-face{font-family:'Readex Pro';font-style:normal;font-weight:300 700;font-display:swap;src:url(/fonts/readex-pro-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* بلور: الهوية من الشعار نفسه (كحلي #1A1164 على كريمي #EBEADF، وحرف O المتموّج).
   العالم البصري واحد (فاتح/كحلي) عن قصد؛ اللون المتغيّر الوحيد هو لون نكهة الأسبوع (--f1 / --f2). */
:root {
  --ink: #1a1164; --ink-deep: #110a45; --cream: #ebeadf; --paper: #f6f5ee; --ice: #dde7fa;
  --line: rgb(26 17 100 / .14); --mute: #5a5488;
  --f1: #1a1164; --f2: #dde7fa; --on: #f6f5ee;
  --ok: #17794f; --no: #a8362e;
  --disp: 'Rakkas', 'Readex Pro', serif; --body: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', sans-serif; --num: 'Instrument Serif', 'Rakkas', serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-io: cubic-bezier(.77, 0, .175, 1); --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 24' preserveAspectRatio='none'%3E%3Cpath d='M0 12q12-12 24 0t24 0 24 0 24 0V24H0Z'/%3E%3C/svg%3E");
  --wave-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 8'%3E%3Cpath d='M0 4q3-4.500 6 0t6 0 6 0 6 0' fill='none' stroke='%23000' stroke-width='1.700'/%3E%3C/svg%3E");
  --pad: clamp(18px, 5vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; scroll-padding-top: 12px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.7 var(--body); overflow-x: hidden; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, [role='button'] { touch-action: manipulation; }
button, .btn, .tabs a { -webkit-user-select: none; user-select: none; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 12px; z-index: 60; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

.ribbon { background: var(--ice); color: var(--ink); text-align: center; font-size: 13px; font-weight: 500; padding: 7px 14px; }

/* ---------- أزرار ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 160ms ease, opacity 160ms ease; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn-cream { background: var(--paper); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-on { background: var(--on); color: var(--f1); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- الترويسة ---------- */
.top { position: absolute; inset-inline: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top)) var(--pad) 0; color: var(--on); transition: color 600ms ease; }
.logo, .foot-logo { display: block; aspect-ratio: 640 / 472; background: currentColor; -webkit-mask: url(/img/logo.webp) center / contain no-repeat; mask: url(/img/logo.webp) center / contain no-repeat; }
.logo { width: 74px; }
.status { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; text-decoration: none; background: color-mix(in srgb, currentColor 13%, transparent); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; }
.status.open i { background: #3ddc97; opacity: 1; box-shadow: 0 0 0 4px rgb(61 220 151 / .25); }

/* ---------- الهيرو: كوب الأسبوع ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: grid; background: var(--ink-deep); color: var(--on); overflow: hidden; padding: calc(84px + env(safe-area-inset-top)) var(--pad) 74px; --on: #f6f5ee; }
.hero::after { content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 22px; background: var(--cream); -webkit-mask: var(--wave) repeat-x 0 0 / 96px 100%; mask: var(--wave) repeat-x 0 0 / 96px 100%; z-index: 2; }
.hero[data-next='pour']::after { background: var(--f1); }
.flood { position: absolute; inset: 0; z-index: -1; background: var(--f1); clip-path: circle(0% at 50% 42%); }
.hero[data-mode='live'] { --on: var(--on-f1); }
.hero[data-mode='live'] .flood { clip-path: circle(150% at 50% 42%); }
.hero.flooding .flood { transition: clip-path 1100ms var(--ease-io); }
.hero.flooding { transition: color 500ms ease 300ms; }
.hero-in { align-self: center; width: 100%; max-width: 1080px; margin-inline: auto; display: grid; justify-items: center; text-align: center; gap: 0; }
.eyebrow { font-size: 14px; font-weight: 500; opacity: .78; }
.eyebrow b { font-weight: 600; }
.h-title { font: 400 clamp(42px, 12.5vw, 84px)/1.12 var(--disp); text-wrap: balance; margin-top: 4px; }
.h-name { font: 400 clamp(52px, 15.5vw, 112px)/1.08 var(--disp); text-wrap: balance; margin-top: 10px; }
.h-sub { font-size: clamp(16px, 4.4vw, 20px); opacity: .86; margin-top: 6px; max-width: 30ch; }

.cup { height: auto; aspect-ratio: 300 / 480; }
.cupbox { position: relative; width: min(47vw, 214px); margin: 14px 0 4px; }
.cupbox::before { content: ''; position: absolute; inset: 6% -22% 2%; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, rgb(160 188 255 / .4), rgb(160 188 255 / 0)); }
.hero[data-mode='live'] .cupbox::before { background: var(--f2); inset: 10% -26% 4%; }
.cupbox .cup { width: 100%; height: auto; overflow: visible; }
.cupbox > .cup { animation: bob 5.5s ease-in-out infinite alternate; }
.cupbox.sealed > .cup { animation: none; }
.cup-wave { animation: wv 6s linear infinite; }
@keyframes wv { to { transform: translateX(-60px); } }
@keyframes bob { from { transform: translateY(-4px) rotate(-.6deg); } to { transform: translateY(5px) rotate(.6deg); } }
.frost { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; transition: opacity 600ms ease; }
.frost.gone { opacity: 0; pointer-events: none; }
.wipe-tip { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 500; }
.wipe-tip svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; animation: wipe 1.6s var(--ease-io) infinite alternate; }
@keyframes wipe { from { transform: translateX(8px); } to { transform: translateX(-8px); } }

/* العدّاد */
.count { direction: ltr; display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 3vw, 20px); margin-top: 10px; }
.count div { display: grid; justify-items: center; gap: 12px; }
.count b { display: flex; font: 400 clamp(50px, 14.5vw, 92px)/.8 var(--num); transform: scaleY(1.3); transform-origin: 50% 100%; }
.count b span { width: .5em; text-align: center; }
.count small { font: 500 12px/1 var(--body); opacity: .7; }
.count > i { font: 400 clamp(34px, 9vw, 60px)/1 var(--num); opacity: .35; font-style: normal; padding-bottom: 30px; }
.when { margin-top: 16px; font-size: 15px; opacity: .86; }
.when b { font-weight: 600; }

.hints { display: grid; gap: 8px; width: 100%; max-width: 380px; margin-top: 22px; text-align: start; }
.hints li { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 16px; background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); font-size: 15px; }
.hints li::before { content: ''; flex: none; width: 9px; height: 26px; background: var(--ice); -webkit-mask: url(/img/o.webp) center / contain no-repeat; mask: url(/img/o.webp) center / contain no-repeat; }
.hints-h { font-size: 13px; font-weight: 500; opacity: .7; margin-top: 30px; }
.hints-h + .hints { margin-top: 8px; }

.cta { display: grid; justify-items: center; gap: 10px; margin-top: 20px; width: 100%; }
.cta .btn { width: min(100%, 340px); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; width: 100%; }
.cta-row .btn { flex: 1 1 150px; max-width: 240px; }
.prize { font-size: 14px; opacity: .82; max-width: 34ch; }
.prize b { font-weight: 600; }
.mine { margin-top: 22px; width: min(100%, 380px); padding: 14px 18px; border-radius: 18px; background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); font-size: 15px; }
.mine b { font-weight: 600; }

/* نتيجة التخمين بعد الكشف */
.result { margin-top: 22px; width: min(100%, 400px); padding: 18px 20px; border-radius: 22px; background: var(--paper); color: var(--ink); text-align: center; }
.result h3 { font: 400 26px/1.2 var(--disp); }
.result p { font-size: 14px; color: var(--mute); margin-top: 4px; }
.code { display: inline-block; direction: ltr; margin-top: 12px; padding: 10px 18px; border-radius: 14px; border: 1.5px dashed var(--ink); font: 400 34px/1 var(--num); letter-spacing: .04em; -webkit-user-select: all; user-select: all; }
.result.lost { background: color-mix(in srgb, var(--on) 12%, transparent); color: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on) 22%, transparent); }
.result.lost p { color: inherit; opacity: .8; }

/* دخول المحتوى */
.rise { animation: rise 620ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- متوفرة الحين (لما يكون الهيرو عدّاد للنكهة الجاية) ---------- */
.pour { position: relative; background: var(--f1); color: var(--on-f1); padding: 26px var(--pad) 48px; }
.pour::after { content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 22px; background: var(--cream); -webkit-mask: var(--wave) repeat-x 0 0 / 96px 100%; mask: var(--wave) repeat-x 0 0 / 96px 100%; }
.pour-in { max-width: 720px; margin-inline: auto; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; }
.pour-cup { position: relative; width: 92px; isolation: isolate; }
.pour-cup::before { content: ''; position: absolute; inset: 14% -14% 4%; border-radius: 50%; background: var(--f2); z-index: -1; }
.pour h2 { font: 400 clamp(30px, 8.5vw, 46px)/1.15 var(--disp); }
.pour .eyebrow { font-size: 13px; }
.pour p.sub { font-size: 15px; opacity: .86; }

/* ---------- الأقسام ---------- */
.sec { padding: clamp(44px, 10vw, 84px) var(--pad); }
.sec-h { max-width: 1080px; margin: 0 auto 22px; }
.sec-h h2, .pass h2 { font: 400 clamp(34px, 9.5vw, 56px)/1.15 var(--disp); }
.sec-h p { color: var(--mute); max-width: 44ch; margin-top: 2px; }

/* وين التراك */
.where-card { max-width: 1080px; margin-inline: auto; background: var(--paper); border-radius: 28px; padding: clamp(20px, 5vw, 36px); display: grid; gap: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.pill { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: rgb(26 17 100 / .08); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.open { background: rgb(23 121 79 / .12); color: var(--ok); }
.pill.shut { background: rgb(168 54 46 / .1); color: var(--no); }
.place { font: 400 clamp(28px, 7.6vw, 42px)/1.2 var(--disp); text-wrap: balance; }
.place-note { color: var(--mute); }
.hours { display: grid; gap: 2px; font-size: 15px; padding-top: 16px; border-top: 1px solid var(--line); }
.hours b { font-weight: 600; }
.where-act { display: flex; flex-wrap: wrap; gap: 10px; }
.where-act .btn { flex: 1 1 200px; }

/* المنيو: قائمة مطبوعة */
.menu-grid { max-width: 1080px; margin-inline: auto; display: grid; gap: 34px 56px; }
.menu-cat h3 { font: 400 28px/1.2 var(--disp); padding-bottom: 12px; margin-bottom: 6px; background: linear-gradient(var(--ink), var(--ink)) bottom / 100% 0 no-repeat; position: relative; }
.menu-cat h3::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 8px; background: var(--ink); -webkit-mask: var(--wave-line) repeat-x 0 0 / 24px 8px; mask: var(--wave-line) repeat-x 0 0 / 24px 8px; }
.menu-cat li { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; column-gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.menu-cat li > i { width: 10px; height: 10px; border-radius: 50%; align-self: center; }
.menu-cat .nm { font-weight: 500; font-size: 17px; }
.menu-cat .ds { grid-column: 2 / 3; color: var(--mute); font-size: 14px; }
.menu-cat .pr { grid-row: 1; grid-column: 3; direction: rtl; font-size: 13px; color: var(--mute); white-space: nowrap; }
.menu-cat .pr b { font: 400 27px/1 var(--num); color: var(--ink); margin-inline-end: 4px; }

/* رجّعوها */
.back { position: relative; background: var(--ink); color: var(--paper); padding-inline: 0; padding-bottom: clamp(56px, 11vw, 96px); }
.back::before, .back::after { content: ''; position: absolute; inset-inline: 0; height: 22px; background: var(--cream); -webkit-mask: var(--wave) repeat-x 0 0 / 96px 100%; mask: var(--wave) repeat-x 0 0 / 96px 100%; }
.back::before { top: -1px; transform: scaleY(-1); }
.back::after { bottom: -1px; }
.back .sec-h { padding-inline: var(--pad); }
.back .sec-h p { color: rgb(246 245 238 / .74); }
.back-rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--pad) 14px; scroll-padding-inline: var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; }
.back-rail::-webkit-scrollbar { display: none; }
.fcard { flex: 0 0 min(64vw, 232px); scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr; border-radius: 24px; overflow: hidden; background: var(--paper); color: var(--ink); }
.fcard-top { position: relative; isolation: isolate; background: var(--c1); padding: 16px 0 6px; display: grid; justify-items: center; }
.fcard-top::before { content: ''; position: absolute; width: 62%; aspect-ratio: 1; top: 20%; border-radius: 50%; background: var(--c2); z-index: -1; }
.fcard-top .cup { width: 46%; }
.fcard-tag { position: absolute; top: 10px; inset-inline-start: 10px; padding: 3px 10px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 600; }
.fcard-b { padding: 14px 16px 16px; display: grid; gap: 10px; align-content: start; }
.fcard h3 { font: 400 23px/1.2 var(--disp); }
.fcard small { color: var(--mute); font-size: 13px; }
.bar { height: 6px; border-radius: 6px; background: rgb(26 17 100 / .1); overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: var(--ink); border-radius: 6px; transform-origin: right; transform: scaleX(var(--p, 0)); transition: transform 500ms var(--ease-out); }
.votes { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--mute); }
.votes b { font: 400 24px/1 var(--num); color: var(--ink); }
.fcard .btn { width: 100%; }
.fcard .btn.voted { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* جواز النكهات (الغلاف) */
.pass-card { max-width: 1080px; margin-inline: auto; background: var(--ink); color: var(--paper); border-radius: 30px; padding: clamp(24px, 6vw, 44px); display: grid; gap: 26px; position: relative; overflow: hidden; }
.pass-card::after { content: ''; position: absolute; width: 150px; height: 470px; inset-inline-end: -34px; top: -90px; background: var(--paper); opacity: .06; -webkit-mask: url(/img/o.webp) center / contain no-repeat; mask: url(/img/o.webp) center / contain no-repeat; transform: rotate(14deg); }
.pass-txt { display: grid; gap: 10px; justify-items: start; position: relative; z-index: 1; }
.pass-txt p { opacity: .82; max-width: 36ch; }
.pass-txt .btn { background: var(--paper); color: var(--ink); margin-top: 8px; }
.pass-dots { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.pass-dots li { width: 46px; height: 46px; border-radius: 50%; border: 1.5px dashed rgb(246 245 238 / .5); display: grid; place-items: center; font: 400 20px/1 var(--num); color: rgb(246 245 238 / .6); }
.pass-dots li.on { border: 0; background: linear-gradient(140deg, var(--c1), var(--c2)); }

/* التذييل */
.foot { background: var(--ink-deep); color: var(--paper); padding: 56px var(--pad) calc(118px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 12px; text-align: center; }
.foot-logo { width: 150px; }
.foot-tag { font: italic 400 28px/1.2 var(--num); opacity: .9; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.social a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px rgb(246 245 238 / .28); transition: background-color 160ms ease; }
.foot-city { font-size: 13px; opacity: .6; margin-top: 8px; }

/* شريط التنقل السفلي */
.tabs { position: fixed; z-index: 30; inset-inline: 0; bottom: 0; margin: 0 auto; width: min(100% - 20px, 460px); margin-bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 6px; border-radius: 24px; background: rgb(246 245 238 / .9); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgb(17 10 69 / .22); }
.tabs a { display: grid; justify-items: center; gap: 2px; padding: 7px 2px 6px; border-radius: 18px; text-decoration: none; font-size: 11px; font-weight: 500; color: var(--mute); transition: background-color 180ms ease, color 180ms ease, transform 140ms var(--ease-out); }
.tabs a:active { transform: scale(.95); }
.tabs svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.on { background: var(--ink); color: var(--paper); }

/* النافذة السفلية */
.sheet { border: 0; padding: 0; width: 100%; max-width: 520px; max-height: 92dvh; margin: auto auto 0; border-radius: 30px 30px 0 0; background: var(--paper); color: var(--ink); overflow: auto; overscroll-behavior: contain; transition: transform 420ms var(--ease-drawer), opacity 260ms ease, overlay 420ms allow-discrete, display 420ms allow-discrete; }
.sheet[open] { transform: none; }
@starting-style { .sheet[open] { transform: translateY(100%); } }
.sheet.closing { transform: translateY(100%); transition-duration: 260ms; }
.sheet::backdrop { background: rgb(17 10 69 / .6); transition: opacity 300ms ease; }
@starting-style { .sheet[open]::backdrop { opacity: 0; } }
.sheet-in { padding: 14px var(--pad) calc(26px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }
.sheet-in::before { content: ''; justify-self: center; width: 44px; height: 5px; border-radius: 5px; background: var(--line); }
.sheet h2 { font: 400 32px/1.2 var(--disp); }
.sheet .lead { color: var(--mute); margin-top: -8px; }
.x { position: absolute; top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(26 17 100 / .07); font-size: 22px; line-height: 1; cursor: pointer; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.field input[type='text'], .field input[type='tel'] { width: 100%; min-height: 54px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; font-size: 17px; font-weight: 400; transition: border-color 160ms ease; }
.field input:focus { outline: 0; border-color: var(--ink); }
.field.bad input { border-color: var(--no); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 14px; padding: 4px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.fine { font-size: 12.5px; color: var(--mute); line-height: 1.6; }
.err { color: var(--no); font-size: 14px; font-weight: 500; }
.sheet .btn { width: 100%; }
.done { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 10px 0 4px; }
.done .tick { width: 68px; height: 68px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.done .tick svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 500ms var(--ease-out) 150ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.toast { position: fixed; z-index: 70; inset-inline: 0; bottom: calc(96px + env(safe-area-inset-bottom)); margin-inline: auto; width: fit-content; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 16px; background: var(--ink-deep); color: var(--paper); font-size: 14px; font-weight: 500; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 220ms ease, transform 320ms var(--ease-out); }
.toast.on { opacity: 1; transform: none; }

/* ---------- صفحة الجواز ---------- */
.ppage { background: var(--ink-deep); color: var(--paper); min-height: 100dvh; }
.ptop { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top)) var(--pad) 0; }
.ptop a.backlink { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; text-decoration: none; background: rgb(246 245 238 / .1); }
.pwrap { max-width: 560px; margin-inline: auto; padding: 18px var(--pad) calc(60px + env(safe-area-inset-bottom)); display: grid; gap: 18px; }
.pwrap h1 { font: 400 clamp(40px, 11vw, 60px)/1.1 var(--disp); }
.pwrap .lead { opacity: .8; margin-top: -10px; }
.book { background: var(--paper); color: var(--ink); border-radius: 28px; padding: 22px 20px 24px; display: grid; gap: 18px; position: relative; }
.book-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.book-h b { font: 400 22px/1 var(--disp); }
.book-h span { font-size: 13px; color: var(--mute); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 12px; }
.slot { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgb(26 17 100 / .3); display: grid; place-items: center; font: 400 30px/1 var(--num); color: rgb(26 17 100 / .3); }
.stamp { aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; justify-items: center; text-align: center; gap: 1px; padding: 8px; background: linear-gradient(145deg, var(--c1), var(--c2)); color: var(--on); position: relative; transform: rotate(var(--r, -6deg)); box-shadow: inset 0 0 0 3px rgb(255 255 255 / .28), inset 0 0 0 5px transparent, inset 0 0 0 6px rgb(255 255 255 / .22); }
.stamp b { font: 400 15px/1.15 var(--disp); text-wrap: balance; }
.stamp small { font: 400 12px/1 var(--num); opacity: .85; direction: ltr; }
.stamp.new { animation: thunk 520ms var(--ease-out) both; }
@keyframes thunk { 0% { opacity: 0; transform: rotate(calc(var(--r) - 14deg)) scale(1.7); } 60% { opacity: 1; transform: rotate(var(--r)) scale(.94); } 100% { transform: rotate(var(--r)) scale(1); } }
.prog { font-size: 15px; }
.prog b { font-weight: 600; }
.reward { background: var(--ink); color: var(--paper); border-radius: 22px; padding: 18px 20px; text-align: center; display: grid; gap: 6px; justify-items: center; }
.reward h3 { font: 400 26px/1.2 var(--disp); }
.reward .code { border-color: var(--paper); margin-top: 6px; }
.reward.used { opacity: .5; }
.reward p { font-size: 14px; opacity: .82; }
.pbox { background: rgb(246 245 238 / .07); box-shadow: inset 0 0 0 1px rgb(246 245 238 / .14); border-radius: 22px; padding: 18px 20px; display: grid; gap: 10px; }
.pbox h2 { font: 400 24px/1.2 var(--disp); }
.pbox p, .pbox li { font-size: 14.5px; opacity: .86; }
.pbox ol { display: grid; gap: 6px; counter-reset: s; }
.pbox ol li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; counter-increment: s; }
.pbox ol li::before { content: counter(s); font: 400 22px/1.2 var(--num); opacity: .7; }
.inline { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.inline input { min-height: 52px; padding: 0 16px; border-radius: 16px; border: 1.5px solid rgb(246 245 238 / .3); background: transparent; color: inherit; font-size: 17px; min-width: 0; }
.inline input::placeholder { color: rgb(246 245 238 / .45); }
.inline input:focus { outline: 0; border-color: var(--paper); }
.pmsg { padding: 12px 16px; border-radius: 16px; font-size: 14.5px; font-weight: 500; background: rgb(61 220 151 / .14); color: #8ff0c5; }
.pmsg.bad { background: rgb(255 120 110 / .14); color: #ffb3ab; }

/* ---------- 404 ---------- */
.nf { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: var(--pad); background: var(--ink-deep); color: var(--paper); }
.nf h1 { font: 400 54px/1.1 var(--disp); }
.nf .cup { width: 150px; }

/* ---------- الشاشات الأكبر ---------- */
@media (min-width: 860px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); column-gap: 56px; justify-items: start; text-align: start; align-items: center; }
  .hero-in > * { grid-column: 2; }
  .hero-in > .cupbox { grid-column: 1; grid-row: 1 / span 8; justify-self: center; width: min(30vw, 360px); margin: 0; }
  .count { justify-content: flex-end; margin-top: clamp(30px, 3.4vw, 52px); }
  .h-title { font-size: clamp(56px, 6.4vw, 96px); }
  .h-name { font-size: clamp(64px, 8vw, 128px); }
  .cta { justify-items: start; }
  .cta-row { justify-content: flex-start; }
  .h-sub { max-width: 40ch; }
  .where-card { grid-template-columns: 1.2fr 1fr; align-items: center; column-gap: 40px; }
  .where-card .hours { border-top: 0; border-inline-start: 1px solid var(--line); padding: 0; padding-inline-start: 36px; grid-row: 1 / span 3; grid-column: 2; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .back .sec-h, .back-rail { max-width: 1080px; margin-inline: auto; padding-inline: 0; }
  .back-rail { scroll-padding-inline: 0; }
  .fcard { flex-basis: 232px; }
  .pass-card { grid-template-columns: 1fr auto; align-items: center; }
  .sheet { margin: auto; border-radius: 30px; }
  @starting-style { .sheet[open] { transform: translateY(24px); opacity: 0; } }
  .sheet.closing { transform: translateY(24px); opacity: 0; }
  .sheet-in::before { display: none; }
}
@media (hover: hover) and (pointer: fine) {
  .btn-cream:hover, .pass-txt .btn:hover { background: #fff; }
  .btn-ink:hover { background: var(--ink-deep); }
  .btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
  .social a:hover { background: rgb(246 245 238 / .1); }
  .tabs a:not(.on):hover { background: rgb(26 17 100 / .07); color: var(--ink); }
  .x:hover { background: rgb(26 17 100 / .13); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cup-wave, .cupbox > .cup, .wipe-tip svg { animation: none; }
  .rise { animation: fade 300ms ease both; }
  @keyframes fade { from { opacity: 0; } }
  .hero.flooding .flood { transition: opacity 400ms ease; }
  .flood { clip-path: none; opacity: 0; }
  .hero[data-mode='live'] .flood { clip-path: none; opacity: 1; }
  .stamp.new { animation: fade 300ms ease both; }
  .sheet, .sheet.closing { transition: opacity 200ms ease; transform: none; }
  @starting-style { .sheet[open] { transform: none; opacity: 0; } }
  .bar i, .btn, .tabs a, .toast { transition-duration: 1ms; }
}
