/* LUUQ Coffee QR menu — photo-led, glass and depth. Colours from the house:
   copper of the logo, terracotta of the plates, cream paper, espresso.
   Home = the whole carte as a bento on the first screen; a tile grows into its
   chapter, a card grows into its drink (app.js growFrom / shrinkTo). */
:root {
  --bg: #f7f1ea;
  --card: #fffdfa;
  --soft: #efe5d9;
  --ink: #2a1d17;
  --muted: #8b776a;
  --line: #e8dccd;
  --pop: #a65e3c;
  --pop-ink: #ffffff;
  --terra: #c0442e;
  --leaf: #3f7a2a;
  --font: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --r: 22px;
  /* Solid buttons and bars: espresso on paper by day, cream on espresso by night. */
  --solid: var(--ink);
  --on-solid: var(--bg);
  --paper-glass: rgba(255, 252, 248, .72);
  --paper-edge: rgba(255, 255, 255, .8);
  --dash: #d8c8b6;
  --sd: #5b4c41;
  --chip-fav: #ffe1d6; --chip-fav-ink: #b23a20;
  --chip-new: #e5f2dc; --chip-new-ink: #2f5a1f;
  --warn: #fff0e4; --warn-ink: #8a4a1e;
  --alg: #fbeadf;
  --flake: #cdb6a0;
  --sh-1: 0 1px 2px rgba(42, 29, 23, .06), 0 10px 22px -12px rgba(42, 29, 23, .22);
  --sh-2: 0 2px 4px rgba(42, 29, 23, .06), 0 24px 44px -20px rgba(42, 29, 23, .42);
  --sh-up: 0 -18px 40px -24px rgba(42, 29, 23, .35);
  color-scheme: light;
}
/* Night mode: warm espresso, never pure black; follows the phone unless the guest
   picked a mode with the moon button (html[data-theme]). */
:root[data-theme="dark"] {
  --bg: #14100d; --card: #201814; --soft: #2b211b; --ink: #f5ece2; --muted: #a8968a; --line: #372b24;
  --pop: #cf8a62; --pop-ink: #1b1410; --terra: #e0745c; --leaf: #8cc66a;
  --solid: #f3e6d6; --on-solid: #1b1410;
  --paper-glass: rgba(34, 26, 21, .66); --paper-edge: rgba(255, 255, 255, .08);
  --dash: #4a3c33; --sd: #cbbcaf;
  --chip-fav: #4a2418; --chip-fav-ink: #ffb197;
  --chip-new: #23361a; --chip-new-ink: #a9dc8a;
  --warn: #3a2516; --warn-ink: #f2b98c;
  --alg: #3a2a1d;
  --flake: #6f5d50;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 24px -14px rgba(0, 0, 0, .6);
  --sh-2: 0 2px 4px rgba(0, 0, 0, .3), 0 26px 46px -20px rgba(0, 0, 0, .75);
  --sh-up: 0 -18px 40px -24px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14100d; --card: #201814; --soft: #2b211b; --ink: #f5ece2; --muted: #a8968a; --line: #372b24;
    --pop: #cf8a62; --pop-ink: #1b1410; --terra: #e0745c; --leaf: #8cc66a;
    --solid: #f3e6d6; --on-solid: #1b1410;
    --paper-glass: rgba(34, 26, 21, .66); --paper-edge: rgba(255, 255, 255, .08);
    --dash: #4a3c33; --sd: #cbbcaf;
    --chip-fav: #4a2418; --chip-fav-ink: #ffb197;
    --chip-new: #23361a; --chip-new-ink: #a9dc8a;
    --warn: #3a2516; --warn-ink: #f2b98c;
    --alg: #3a2a1d;
    --flake: #6f5d50;
    --sh-1: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 24px -14px rgba(0, 0, 0, .6);
    --sh-2: 0 2px 4px rgba(0, 0, 0, .3), 0 26px 46px -20px rgba(0, 0, 0, .75);
    --sh-up: 0 -18px 40px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.4 var(--font); -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; transition: background-color .3s; }
body.lock { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-user-select: none; user-select: none; }
img { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: 28px; }
.app.has-bar { padding-bottom: 104px; }

/* Glass: frosted, with a light top edge and a soft drop for depth. */
.glass { background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .28); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 6px 18px -8px rgba(0, 0, 0, .35); color: #fff; }
.glass-dark { background: rgba(30, 21, 17, .78); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 18px 40px -12px rgba(20, 12, 8, .55); color: #fbf3ea; }

/* Press ripple (app.js press()). */
.rp { position: relative; overflow: hidden; isolation: isolate; }
.rp::after { content: ''; position: absolute; left: var(--rx, 50%); top: var(--ry, 50%); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: currentColor; opacity: 0; transform: scale(0); pointer-events: none; z-index: 5; }
.rp.rippling::after { animation: rip .6s cubic-bezier(.2, .8, .3, 1); }
@keyframes rip { 0% { opacity: .22; transform: scale(0); } 100% { opacity: 0; transform: scale(30); } }

/* ── Top: the café itself, under glass controls ─────────────── */
.top { position: relative; height: clamp(196px, 29svh, 252px); overflow: hidden; color: #fff; border-radius: 0 0 30px 30px; }
.top-ph { position: absolute; inset: 0; }
.top-ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.14) translate3d(-2%, 1%, 0); } }
.top-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25, 15, 10, .55) 0%, rgba(25, 15, 10, .1) 38%, rgba(25, 15, 10, .72) 100%); }
.top-bar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: max(14px, env(safe-area-inset-top)) 16px 0; }
.logo { display: block; width: 74px; height: auto; color: #fbf3ea; filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35)); }
.logo .lg-l, .logo .lg-m { fill: none; stroke: currentColor; stroke-linejoin: miter; }
.logo .lg-l { stroke-width: 8; }
.top .logo .lg-l { stroke-width: 11; }
.logo .lg-m { stroke-width: 3.2; }
.logo .lg-t { fill: currentColor; font: 600 25px/1 var(--font); letter-spacing: 2.2px; }
.top-a { display: flex; align-items: center; gap: 6px; }
.tbl { font-size: 12px; font-weight: 700; padding: 8px 11px; border-radius: 99px; white-space: nowrap; }
.theme { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.theme .ico { width: 18px; height: 18px; }
.langs { position: relative; display: flex; padding: 3px; border-radius: 99px; }
.langs i { position: absolute; top: 3px; bottom: 3px; left: 3px; width: 34px; border-radius: 99px; background: rgba(255, 255, 255, .92);
  transform: translateX(calc(var(--k) * 34px)); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.langs button { position: relative; border: 0; background: none; font-size: 11.5px; font-weight: 800; color: rgba(255, 255, 255, .85); width: 34px; min-height: 30px; padding: 0; transition: color .25s; }
.langs button[aria-pressed="true"] { color: #2a1d17; }
.welcome { position: absolute; z-index: 3; left: 18px; right: 18px; bottom: 34px; }
.welcome h1 { margin: 6px 0 2px; font-size: 27px; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.hours { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .88); }
.hours i { width: 8px; height: 8px; border-radius: 50%; background: #e3a07e; }
.hours.on i { background: #7ed35a; box-shadow: 0 0 0 4px rgba(126, 211, 90, .22); }
.xmas { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 11px 5px 8px; border-radius: 99px; }
.xmas svg { width: 14px; height: 14px; }

/* Christmas mode (23 Nov – 6 Jan, or ?noel=1): sparse, slow snowfall. */
.snow { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.snow i { position: absolute; top: -14px; color: rgba(255, 255, 255, .9); opacity: 0; animation: fall var(--d) linear var(--w) infinite; will-change: transform; }
.snow i > * { display: block; width: 100%; height: 100%; animation: sway 3.4s ease-in-out infinite alternate; }
.snow b { border-radius: 50%; background: currentColor; }
.snow svg, .xmas svg, .hero small svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes fall { 0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; } 12%, 80% { opacity: var(--o); } 100% { transform: translate3d(0, var(--h), 0) rotate(140deg); opacity: 0; } }
@keyframes sway { from { transform: translateX(-7px); } to { transform: translateX(7px); } }

/* ── Home: the carte as a bento, all on the first screen ────── */
.home { position: relative; z-index: 4; margin-top: -22px; padding: 0 12px; }
.home-h { display: flex; align-items: center; justify-content: flex-end; padding: 0 4px 10px; }
.home-h h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.find { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--paper-edge); background: var(--paper-glass); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  color: var(--ink); font-size: 14px; font-weight: 700; padding: 9px 14px 9px 11px; border-radius: 99px; box-shadow: var(--sh-1); min-height: 40px; }
.find .ico { width: 18px; height: 18px; }
.bento { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "a b" "a c" "d e" "f e" "g g";
  grid-template-rows: repeat(4, clamp(82px, calc((100svh - 342px) / 4.6), 124px)) 58px; gap: 9px; }
.tile { position: relative; border: 0; padding: 0; border-radius: 24px; overflow: hidden; background: var(--soft); color: #fff; text-align: left; box-shadow: var(--sh-2);
  transform: translateZ(0); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s; }
.tile:active { transform: scale(.965); box-shadow: var(--sh-1); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.tile:active img { transform: scale(1.06); }
.t-a { grid-area: a; } .t-b { grid-area: b; } .t-c { grid-area: c; } .t-d { grid-area: d; } .t-e { grid-area: e; } .t-f { grid-area: f; } .t-g { grid-area: g; }
.t-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 8, 0) 35%, rgba(20, 12, 8, .62) 100%); }
.t-lbl { position: absolute; left: 8px; right: 46px; bottom: 8px; display: flex; flex-direction: column; padding: 8px 11px; border-radius: 16px;
  background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .26); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.t-lbl b { font-size: 15.5px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.t-lbl small { font-size: 11.5px; opacity: .88; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-go { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .9); color: #2a1d17; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); transition: transform .3s; }
.t-go .ico { width: 16px; height: 16px; stroke-width: 2.4; }
.tile:active .t-go { transform: translateX(3px); }
.t-a .t-lbl b, .t-e .t-lbl b { font-size: 19px; }
.tile.no-ph { background: linear-gradient(120deg, #a65e3c, #c0442e 60%, #8a3a25); }
.tile.no-ph .t-shade { background: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .22), transparent 55%); }
.t-g .t-lbl { flex-direction: row; align-items: baseline; gap: 10px; right: 46px; top: 8px; justify-content: flex-start; background: none; border: 0; box-shadow: none; padding: 9px 10px; -webkit-backdrop-filter: none; backdrop-filter: none; }
/* Tiles rise in, one after the other, once the splash has gone. */
.tile { opacity: 0; animation: rise .7s cubic-bezier(.2, .9, .25, 1) forwards; animation-delay: calc(var(--i) * 55ms + 80ms); animation-play-state: paused; }
.ready .tile { animation-play-state: running; }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }

/* ── Drink of the moment ─────────────────────────────────────── */
.hero { margin: 22px 12px 0; }
.hero-in { position: relative; display: block; width: 100%; height: 300px; border: 0; padding: 0; border-radius: 30px; overflow: hidden; text-align: left; color: #fff;
  background: radial-gradient(130% 90% at 100% 0%, #e7a06f 0%, transparent 55%), linear-gradient(155deg, #b8693f, #8f3f26); box-shadow: var(--sh-2); }
.hero-ph { position: absolute; right: -18px; bottom: -6px; width: 58%; height: 92%; }
.hero-ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px 0 0 0; }
.hero .snow { z-index: 0; }
.hero-t { position: absolute; z-index: 1; left: 18px; top: 18px; right: 45%; display: flex; flex-direction: column; }
.hero small { align-self: flex-start; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 99px; white-space: nowrap; }
.hero small svg { width: 11px; height: 11px; margin: -2px 6px 0 0; vertical-align: middle; }
.hero-n { margin: 14px 0 8px; font-size: 31px; line-height: .98; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.hero-d { font-size: 13px; opacity: .92; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-go { position: absolute; z-index: 1; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 10px; }
.hero-go b { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hero-btn { display: inline-flex; align-items: center; gap: 4px; background: #fff; color: #2a1d17; font-weight: 700; font-size: 14px; padding: 11px 12px 11px 16px; border-radius: 99px; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.hero-btn .ico { width: 16px; height: 16px; }

/* Signatures carousel */
.h2 { margin: 26px 18px 12px; font-size: 21px; font-weight: 800; letter-spacing: -.015em; display: flex; justify-content: space-between; align-items: baseline; }
.h2 span { font-size: 12px; font-weight: 500; color: var(--muted); }
.car { display: flex; gap: 12px; overflow-x: auto; padding: 0 18px 14px; scroll-snap-type: x mandatory; scroll-padding-left: 18px; scrollbar-width: none; }
.car::-webkit-scrollbar { display: none; }
.sig { flex: none; width: 142px; scroll-snap-align: start; border: 0; background: none; padding: 0; text-align: left; border-radius: 24px; overflow: visible; }
.sig .ph { display: block; height: 168px; border-radius: 24px; overflow: hidden; background: var(--soft); box-shadow: var(--sh-1); transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.sig .ph img, .sig .ph svg { width: 100%; height: 100%; object-fit: cover; }
.sig b { display: block; margin-top: 9px; font-size: 14.5px; font-weight: 700; line-height: 1.15; }
.sig > span:last-child { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sig:active .ph { transform: scale(.95); }

/* ── Panels: full screen, grown from the tapped card ─────────── */
.panel { position: fixed; inset: 0; z-index: 40; overflow-y: auto; overflow-x: hidden; background: var(--bg); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.panel.item { z-index: 45; }
.panel.search { z-index: 42; }
.back { position: fixed; z-index: 6; top: max(14px, env(safe-area-inset-top)); left: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.panel.item .back { left: auto; right: 14px; }
.back.flat { position: static; background: var(--soft); border: 0; color: var(--ink); flex: none; }
.pn-hero { position: relative; height: clamp(150px, 22svh, 190px); overflow: hidden; color: #fff; background: linear-gradient(120deg, #a65e3c, #c0442e 60%, #8a3a25); }
.pn-ph { position: absolute; inset: 0; will-change: transform; }
.pn-ph img { width: 100%; height: 100%; object-fit: cover; }
.pn-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 8, .35) 0%, rgba(20, 12, 8, 0) 35%, rgba(20, 12, 8, .7) 100%); }
.pn-t { position: absolute; left: 20px; right: 20px; bottom: 38px; }
.pn-t h2 { margin: 0; font-size: 31px; line-height: 1; font-weight: 800; letter-spacing: -.03em; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.pn-t p { margin: 6px 0 0; font-size: 14px; opacity: .9; }
.pn-bar { position: sticky; top: 0; z-index: 5; margin-top: -24px; padding: 12px 0 10px; border-radius: 24px 24px 0 0; display: grid; gap: 10px;
  background: var(--paper-glass); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); box-shadow: var(--sh-up); border-top: 1px solid var(--paper-edge); }
.pn-chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px 0 66px; scrollbar-width: none; }
.pn-chips::-webkit-scrollbar { display: none; }
.pn-chips button { flex: none; border: 0; background: var(--soft); padding: 9px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 700; min-height: 38px; color: var(--muted); transition: background .25s, color .25s; }
.pn-chips button.on { background: var(--solid); color: var(--on-solid); }
.pn-bar .size { margin: 0 16px; }
.pn-body { padding: 4px 12px 30px; animation: fadeUp .45s cubic-bezier(.2, .9, .25, 1); }
.grp h3 { margin: 22px 6px 10px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Size switch with a sliding thumb */
.size { position: relative; display: flex; background: var(--soft); border-radius: 16px; padding: 4px; }
.size i { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 12px; background: var(--card); box-shadow: 0 2px 10px rgba(42, 29, 23, .12);
  transform: translateX(calc(var(--k) * 100%)); transition: transform .4s cubic-bezier(.3, 1.3, .5, 1); }
.size button { position: relative; flex: 1; border: 0; background: none; padding: 8px; border-radius: 12px; font-size: 14px; font-weight: 800; color: var(--muted); min-height: 38px; transition: color .25s; }
.size button.on { color: var(--ink); }

/* Grid cards */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.card { position: relative; border-radius: 24px; background: var(--card); box-shadow: var(--sh-1); opacity: 0; animation: rise .55s cubic-bezier(.2, .9, .25, 1) forwards; animation-delay: calc(var(--i) * 40ms + 120ms); }
.c-main { display: flex; flex-direction: column; width: 100%; border: 0; background: none; padding: 5px 5px 10px; text-align: left; border-radius: 24px; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.c-main:active { transform: scale(.965); }
.c-ph { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--soft); }
.c-ph img, .c-ph svg { width: 100%; height: 100%; object-fit: cover; }
.c-ph .tags { position: absolute; left: 7px; top: 7px; }
.c-nm { margin: 8px 6px 0; font-weight: 700; font-size: 14.5px; line-height: 1.15; letter-spacing: -.005em; }
.c-ds { margin: 2px 44px 0 6px; font-size: 12px; line-height: 1.3; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.c-pr { margin: 6px 46px 0 6px; display: flex; align-items: baseline; gap: 6px; }
.c-pr b { font-size: 15.5px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-pr small { font-size: 11px; color: var(--muted); }
.c-add { position: absolute; right: 7px; bottom: 7px; width: 40px; height: 40px; border-radius: 14px; border: 0; padding: 0; display: grid; place-items: center;
  background: var(--solid); color: var(--on-solid); box-shadow: 0 6px 14px -4px rgba(42, 29, 23, .45); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1), background .25s; }
.c-add:active { transform: scale(.86); }
.c-add.ok { background: var(--leaf); color: #fff; animation: pop .45s cubic-bezier(.3, 1.6, .5, 1); }
.card.is-out { opacity: .55; }
.card.is-out .c-pr b { text-decoration: line-through; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tag { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 4px 7px; border-radius: 8px; background: var(--soft); }
.tag.fav { background: var(--chip-fav); color: var(--chip-fav-ink); }
.tag.nw { background: var(--chip-new); color: var(--chip-new-ink); }
.tag.out { background: var(--soft); color: var(--muted); }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

/* Desserts: what's in the display case, as a little mosaic */
.vt-p { margin: -2px 6px 12px; color: var(--muted); font-size: 14px; }
.vt { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; gap: 9px; }
.vt-ph { border-radius: 20px; overflow: hidden; box-shadow: var(--sh-1); opacity: 0; animation: rise .6s cubic-bezier(.2, .9, .25, 1) forwards; animation-delay: calc(var(--i) * 60ms + 150ms); }
.vt-ph img { width: 100%; height: 100%; object-fit: cover; }
.vt .v0 { grid-row: span 2; } .vt .v3 { grid-row: span 2; }

/* Drink panel */
.ip-ph { position: relative; height: min(42svh, 360px); overflow: hidden; background: var(--soft); will-change: transform; }
.ip-ph img, .ip-ph svg { width: 100%; height: 100%; object-fit: cover; }
.ip-body { position: relative; z-index: 2; margin-top: -26px; padding: 18px 18px 112px; border-radius: 26px 26px 0 0; background: var(--bg); box-shadow: var(--sh-up); min-height: 58svh; }
/* No photo yet: a bottom sheet over the carte, with a small drawing, not a giant cup. */
.panel.item.no-ph { display: flex; flex-direction: column; background: rgba(20, 12, 8, .5); }
.panel.item.no-ph .ip-ph { flex: none; margin-top: auto; height: 150px; border-radius: 28px 28px 0 0; display: grid; place-items: center; padding-bottom: 22px; }
.panel.item.no-ph .ip-ph svg { width: 105px; height: 126px; }
.panel.item.no-ph .ip-body { min-height: 0; margin-top: -22px; padding-bottom: 104px; }
.ip-body h2 { margin: 6px 0 6px; font-size: 27px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.sd { margin: 0 0 14px; font-size: 15px; color: var(--sd); }
.sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.sizes button { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 14px; border-radius: 18px; border: 2px solid transparent; background: var(--soft); text-align: left; min-height: 54px; transition: border-color .2s, background .2s, transform .3s; }
.sizes button:active { transform: scale(.97); }
.sizes button span { color: var(--muted); font-size: 14px; font-weight: 600; }
.sizes button b { font-size: 17px; font-variant-numeric: tabular-nums; }
.sizes button.on { border-color: var(--pop); background: var(--card); box-shadow: var(--sh-1); }
.plant { margin: 12px 0 0; font-size: 14px; color: var(--leaf); font-weight: 600; }
.plant::before { content: '🌱 '; }
.alg-box { margin-top: 14px; padding: 14px; border-radius: 20px; background: var(--card); box-shadow: var(--sh-1); }
.alg-box h4 { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.alg { display: flex; flex-wrap: wrap; gap: 6px; }
.alg span { font-size: 13px; padding: 6px 11px; border-radius: 99px; background: var(--alg); color: var(--warn-ink); font-weight: 700; }
.alg-box p { margin: 0; font-size: 14px; color: var(--muted); }
.alg-box .ask { margin-top: 10px; font-size: 13px; }
.ip-cta { position: fixed; z-index: 6; left: 0; right: 0; bottom: 0; padding: 14px 16px max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, var(--bg) 40%); }
.sh-add { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 528px; margin: 0 auto; border: 0; padding: 0 22px; border-radius: 20px; min-height: 58px;
  background: var(--solid); color: var(--on-solid); font-weight: 800; font-size: 16px; box-shadow: 0 14px 30px -12px rgba(42, 29, 23, .6); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.sh-add:active { transform: scale(.97); }
.sh-add b { font-variant-numeric: tabular-nums; }
.outmsg { margin: 0; text-align: center; font-weight: 800; color: var(--muted); padding: 16px; }

/* Search panel */
.panel.search { padding: max(14px, env(safe-area-inset-top)) 12px 40px; }
.sr-top { display: flex; gap: 8px; align-items: center; }
.sr-in { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--card); border-radius: 18px; padding: 0 14px; box-shadow: var(--sh-1); min-height: 48px; color: var(--muted); }
.sr-in input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); padding: 12px 0; outline: none; }
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 12px -12px 6px; padding: 0 12px; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; border: 1px dashed var(--dash); background: none; border-radius: 99px; padding: 7px 12px; font-size: 13px; color: var(--muted); min-height: 36px; }
.filters button[aria-pressed="true"] { border: 1px solid var(--leaf); background: var(--chip-new); color: var(--chip-new-ink); font-weight: 700; }
.filters .clear { border: 0; text-decoration: underline; }
.sr-res { margin-top: 10px; }
.empty { text-align: center; color: var(--muted); padding: 48px 20px; }
.offline { margin: 12px 4px 0; padding: 10px 14px; border-radius: 14px; background: var(--warn); color: var(--warn-ink); font-size: 13px; }

/* Footer */
footer { padding: 30px 14px 0; display: grid; gap: 14px; }
.student { justify-self: start; font-size: 14px; padding: 9px 14px; border-radius: 14px; background: var(--pop); color: var(--pop-ink); font-weight: 600; box-shadow: var(--sh-1); }
.student b { font-weight: 800; font-size: 17px; }
.review { padding: 24px 20px; border-radius: 28px; background: var(--solid); color: var(--on-solid); box-shadow: var(--sh-2); }
.review h3 { margin: 0 0 6px; font-size: 23px; font-weight: 800; letter-spacing: -.015em; }
.review p { margin: 0 0 16px; font-size: 14px; opacity: .75; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 99px; background: var(--on-solid); color: var(--solid); font-weight: 800; text-decoration: none; }
.foot { margin: 4px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.mark { display: grid; place-items: center; padding: 10px 0 6px; color: var(--pop); opacity: .8; }
.mark .logo { width: 120px; filter: none; color: var(--pop); }

/* "Ma sélection" bar */
.bar { position: fixed; z-index: 60; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(532px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 24px; animation: barIn .5s cubic-bezier(.3, 1.4, .5, 1); font-size: 14px; }
.bar-n { display: flex; align-items: center; gap: 9px; font-weight: 700; white-space: nowrap; }
.bar-n b { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 99px; background: var(--pop); color: #fff; font-size: 13px; padding: 0 7px; }
.bar button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: #fbf3ea; color: #2a1d17; font-weight: 800; font-size: 14px; padding: 12px 12px 12px 16px; border-radius: 17px; min-height: 46px; white-space: nowrap; }
.bar button .ico { width: 16px; height: 16px; }
@keyframes barIn { from { transform: translateX(-50%) translateY(30px) scale(.92); opacity: 0; } }

/* Counter sheet */
.sheet-bg { position: fixed; inset: 0; z-index: 70; background: rgba(20, 13, 10, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: fade .25s ease; }
.sheet { position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--bg); border-radius: 30px 30px 0 0; outline: none;
  padding-bottom: env(safe-area-inset-bottom); animation: up .4s cubic-bezier(.2, .9, .25, 1); overscroll-behavior: contain; box-shadow: var(--sh-up); }
.grab { display: block; width: 40px; height: 5px; border-radius: 9px; background: var(--dash); margin: 10px auto 0; }
.x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; background: var(--soft); color: var(--ink); }
.counter { padding: 18px 22px 24px; }
.counter > small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.counter h2 { margin: 6px 0 12px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.ln { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px dashed var(--dash); }
.ln-n { flex: 1; min-width: 0; font-size: 21px; font-weight: 700; line-height: 1.15; }
.ln-n em { display: block; font-style: normal; font-size: 14px; font-weight: 500; color: var(--muted); }
.ln-p { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rm { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 18px; line-height: 1; }
.tot { display: flex; justify-content: space-between; padding-top: 14px; font-size: 17px; }
.tot b { font-weight: 800; font-variant-numeric: tabular-nums; }
.note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.clear-sel { margin-top: 14px; border: 0; background: none; color: var(--muted); text-decoration: underline; font-size: 14px; padding: 8px 0; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

/* Night mode details */
:root[data-theme="dark"] .ill-bg { opacity: .2; }
:root[data-theme="dark"] .bar button { background: #f3e6d6; }

/* ── Splash: espresso screen, the logo drawn in, steam over a cup ── */
.splash { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 110%, #7a3f24 0%, rgba(122, 63, 36, 0) 60%), #2e201a; color: #f1dcc6;
  transition: opacity .5s ease, transform .5s cubic-bezier(.4, 0, .2, 1); }
.splash.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.sp-mid { display: flex; flex-direction: column; align-items: center; }
.sp-logo { width: 220px; height: auto; color: #e6b48f; }
.sp-logo .lg-l, .sp-logo .lg-m { fill: none; stroke: currentColor; }
.sp-logo .lg-l { stroke-width: 8; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.1s .1s cubic-bezier(.6, 0, .2, 1) forwards; }
.sp-logo .lg-m { stroke-width: 3.2; opacity: 0; animation: spIn .6s .9s ease forwards; }
.sp-logo .lg-t { fill: currentColor; font: 600 25px/1 var(--font); letter-spacing: 2.2px; opacity: 0; animation: spIn .6s .7s ease forwards; }
.sp-foot { position: absolute; bottom: max(34px, env(safe-area-inset-bottom)); margin: 0; display: flex; gap: 10px; align-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #a58d78; opacity: 0; animation: spIn .6s .7s ease forwards; }
.sp-tbl { padding: 5px 10px; border-radius: 99px; background: rgba(246, 234, 217, .1); color: #f6ead9; letter-spacing: .1em; }
.sp-tbl[hidden] { display: none; }
.sp-load { position: absolute; left: 50%; bottom: 0; height: 3px; width: 100%; transform: translateX(-50%) scaleX(0); transform-origin: left; background: #c0442e; animation: spLoad 1.6s .1s cubic-bezier(.4, 0, .2, 1) forwards; }
.splash .snow i { color: rgba(246, 234, 217, .55); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spIn { to { opacity: 1; } }
@keyframes spLoad { to { transform: translateX(-50%) scaleX(1); } }

@media (min-width: 420px) { .hero-in { height: 320px; } .hero-n { font-size: 34px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .snow { display: none; }
  .tile, .card, .vt-ph { opacity: 1; }
  .sp-logo .lg-l { stroke-dashoffset: 0; }
  .sp-logo .lg-m, .sp-logo .lg-t, .sp-foot { opacity: 1; }
  .sp-load { display: none; }
}

/* Dashboard phone preview with a mouse: drag to scroll, like a finger (app.js). */
html.pv { cursor: grab; -webkit-user-select: none; user-select: none; }
html.pv:active { cursor: grabbing; }
html.pv input { -webkit-user-select: text; user-select: text; }
html.pv img, html.pv svg { -webkit-user-drag: none; }
