:root {
  --bg: #14201f;
  --bg2: #1b2a29;
  --card: #213130;
  --card2: #283b39;
  --line: rgba(245, 238, 220, .09);
  --text: #f5eedc;
  --muted: #a7b3ab;
  --orange: #f39c27;
  --green: #9aa63a;
  --teal: #2f5f5b;
  --navy: #262e3c;
  --brown: #9b7b6b;
  --blue: #5a80b4;
  --wine: #8c1342;
  --red: #e2482f;
  --display: 'Bowlby One', 'Arial Black', sans-serif;
  --body: 'Montserrat', system-ui, sans-serif;
  --tabbar: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.45;
  padding-bottom: calc(var(--tabbar) + var(--safe-b));
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; margin: 0; line-height: 1; }
#view { max-width: 640px; margin: 0 auto; }

/* ---------- burger stack ---------- */
.stack { display: flex; flex-direction: column; width: 100%; --gap: 7; }
.layer {
  position: relative;
  margin-bottom: calc(var(--ov) * -1% + var(--x, 0) * var(--gap) * 1%);
  transition: margin-bottom .7s cubic-bezier(.2, .9, .25, 1);
}
.layer svg { display: block; width: 100%; height: auto; overflow: visible; }
.layer:last-child { margin-bottom: 0; }
.lbl {
  position: absolute; left: calc(100% + 10px); top: 50%;
  transform: translate(calc((1 - var(--x, 0)) * -12px), -50%);
  opacity: var(--x, 0);
  transition: opacity .5s, transform .6s;
  width: max-content; max-width: 62%; line-height: 1.15; font-size: 15px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px; pointer-events: none;
}
.lbl::before { content: ''; flex: none; width: 18px; height: 1.5px; background: rgba(245, 238, 220, .45); }
.lbl:empty { display: none; }
.stack.drop .layer { animation: drop .62s cubic-bezier(.3, 1.35, .5, 1) both; animation-delay: calc((var(--n) - var(--i)) * 55ms); }
@keyframes drop {
  from { transform: translateY(-260px); opacity: 0; }
  60% { opacity: 1; }
  to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .stack.drop .layer { animation: none; }
  .layer, .lbl { transition: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(22px + env(safe-area-inset-top, 0px)) 18px 44px;
  background:
    radial-gradient(120% 70% at 85% 10%, rgba(243, 156, 39, .18), transparent 60%),
    radial-gradient(90% 60% at 0% 100%, rgba(154, 166, 58, .18), transparent 60%),
    var(--teal);
}
.hero::after {
  content: ''; position: absolute; inset: auto 0 0; height: 22px;
  background: linear-gradient(transparent, var(--bg));
}
.brand { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.brand-name { font-family: var(--display); font-size: 22px; line-height: .9; }
.brand-name small { display: block; font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgba(245, 238, 220, .7); margin-top: 6px; }
.lang { font-size: 12px; font-weight: 700; border: 1px solid rgba(245, 238, 220, .3); border-radius: 99px; padding: 6px 12px; background: none; }
.leaf-deco { position: absolute; z-index: 0; opacity: .22; pointer-events: none; }
.hero-stage { position: relative; z-index: 1; margin-top: 22px; }
.hero-copy h1 { font-size: clamp(32px, 10vw, 46px); }
.hero-copy h1 em { font-style: normal; color: var(--orange); }
.hero-copy p { color: rgba(245, 238, 220, .78); font-size: 14px; margin: 10px 0 0; }
.hero-burger { display: block; width: 100%; cursor: pointer; background: none; border: 0; padding: 0; text-align: center; }
#hero-burger { min-height: min(68vw, 330px); display: flex; align-items: flex-end; justify-content: center; margin-top: 18px; }
.hero-burger .stack { width: min(62vw, 300px); margin: 0 auto; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .35)); }
.hero-burger-name { display: block; margin-top: 10px; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.hero-burger-name span { color: var(--orange); }
.hero-ctas { position: relative; z-index: 2; display: flex; gap: 10px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 13px 16px; font-weight: 800; font-size: 14px;
  text-decoration: none; background: var(--card2); transition: transform .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--orange); color: #241406; }
.btn-ghost { background: rgba(0, 0, 0, .22); border: 1px solid rgba(245, 238, 220, .18); }
.btn-block { width: 100%; }
.hero-ctas .btn { flex: 1; }

/* ---------- category nav ---------- */
.catnav {
  position: sticky; top: 0; z-index: 20;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 12px 16px; background: rgba(20, 32, 31, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.catnav::-webkit-scrollbar { display: none; }
.catnav a {
  flex: none; text-decoration: none; font-size: 13px; font-weight: 700;
  padding: 7px 13px; border-radius: 99px; background: var(--card); color: var(--muted);
  transition: background .2s, color .2s;
}
.catnav a.on { background: var(--text); color: var(--bg); }

/* ---------- sections ---------- */
.section { padding: 26px 16px 6px; scroll-margin-top: 58px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 30px; color: var(--accent, var(--text)); }
.section-note { font-size: 12px; color: var(--muted); margin: -6px 0 14px; }
.group-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 17px; margin: 22px 0 10px; color: var(--accent, var(--text));
}
.group-title::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.perk {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 4px;
}
.perk span { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 10px; background: var(--card); color: var(--muted); }
.perk b { color: var(--text); }

/* burger cards */
.bcard {
  display: grid; grid-template-columns: 86px 1fr; gap: 14px; align-items: center;
  width: 100%; text-align: left; border: 0; padding: 12px; margin-bottom: 10px;
  background: var(--card); border-radius: 18px; position: relative;
  transition: transform .15s, background .2s;
}
.bcard:active { transform: scale(.985); background: var(--card2); }
.bcard .thumb { display: flex; align-items: center; justify-content: center; height: 86px; border-radius: 14px; background: rgba(0, 0, 0, .18); padding: 8px; }
.bcard .thumb .stack { width: 70px; }
.bcard h3 { font-family: var(--body); font-weight: 800; font-size: 16px; letter-spacing: .01em; display: flex; align-items: center; gap: 6px; }
.bcard .price { position: absolute; top: 12px; right: 14px; font-weight: 800; font-size: 15px; }
.bcard .ing { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; padding-right: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard .base { font-size: 11px; font-weight: 700; color: var(--accent, var(--orange)); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.tagicon { font-size: 13px; }

/* righe semplici */
.row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.row h4 { margin: 0; font-size: 15px; font-weight: 700; }
.row h4 small { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 4px; }
.row p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); grid-column: 1; }
.row .right { display: flex; align-items: center; gap: 10px; grid-row: 1 / span 2; grid-column: 2; }
.row .p { font-weight: 800; white-space: nowrap; }
.add {
  width: 34px; height: 34px; border-radius: 11px; border: 0; flex: none;
  background: var(--card2); display: grid; place-items: center; font-size: 20px; font-weight: 600; line-height: 1;
}
.add:active { background: var(--orange); color: #241406; }
.chips-buy { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; grid-column: 1 / -1; }
.chip-buy {
  border: 1px solid var(--line); background: rgba(0, 0, 0, .15); border-radius: 10px;
  padding: 6px 10px; font-size: 12.5px; font-weight: 700;
}
.chip-buy span { color: var(--muted); font-weight: 600; margin-right: 6px; }
.chip-buy:active { background: var(--orange); color: #241406; }
.chip-buy:active span { color: inherit; }

/* birre */
.beer {
  display: grid; grid-template-columns: 54px 1fr; gap: 14px; padding: 14px;
  background: var(--card); border-radius: 18px; margin-bottom: 10px;
}
.beer h4 { margin: 0; font-size: 15.5px; font-weight: 800; }
.beer .type { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.beer p { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.beer .meters { display: flex; gap: 14px; margin-top: 10px; font-size: 11px; color: var(--muted); font-weight: 600; }
.meter { flex: 1; }
.meter i { display: block; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); margin-top: 4px; overflow: hidden; }
.meter i b { display: block; height: 100%; background: var(--orange); border-radius: 3px; }
.glass { width: 54px; }

/* ---------- finder ---------- */
.page-head { padding: calc(24px + env(safe-area-inset-top, 0px)) 16px 6px; }
.page-head h1 { font-size: 34px; }
.page-head p { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.search {
  display: flex; align-items: center; gap: 10px; margin: 16px 16px 0;
  background: var(--card); border-radius: 14px; padding: 0 14px;
}
.search svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; flex: none; }
.search input {
  flex: 1; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; padding: 13px 0; outline: none;
}
.filters { padding: 14px 16px 4px; }
.filters h3 { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 10px 0 8px; display: flex; justify-content: space-between; }
.filters h3 small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--line); background: var(--card); border-radius: 99px;
  padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--text);
  transition: background .15s, border-color .15s;
}
.chip[data-state="want"] { background: var(--green); border-color: var(--green); color: #18200a; }
.chip[data-state="want"]::before { content: '✓ '; }
.chip[data-state="no"] { background: transparent; border-color: var(--red); color: #ff8b78; text-decoration: line-through; }
.chip[data-state="on"] { background: var(--text); color: var(--bg); }
.results-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 16px 10px; font-weight: 700; }
.results-head button { background: none; border: 0; color: var(--orange); font-weight: 700; font-size: 13px; }
.results { padding: 0 16px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty b { display: block; font-family: var(--display); font-weight: 400; font-size: 22px; color: var(--text); margin-bottom: 6px; }

/* ---------- quiz ---------- */
.quiz { padding: calc(24px + env(safe-area-inset-top, 0px)) 16px 20px; min-height: calc(100vh - var(--tabbar)); display: flex; flex-direction: column; }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 26px; }
.quiz-progress i { flex: 1; height: 4px; border-radius: 2px; background: var(--card2); }
.quiz-progress i.on { background: var(--orange); }
.quiz h1 { font-size: 34px; margin-bottom: 8px; }
.quiz .sub { color: var(--muted); margin: 0 0 24px; }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.answer {
  border: 0; background: var(--card); border-radius: 18px; padding: 18px 14px; text-align: left;
  display: flex; flex-direction: column; gap: 8px; min-height: 104px; transition: transform .15s, background .15s;
  animation: pop .4s both; animation-delay: calc(var(--i) * 50ms);
}
.answer:active { transform: scale(.96); background: var(--orange); color: #241406; }
.answer .em { font-size: 30px; line-height: 1; }
.answer b { font-size: 15px; }
.answer small { font-size: 12px; color: var(--muted); }
@keyframes pop { from { transform: translateY(12px); opacity: 0; } }
.podium { display: grid; gap: 12px; margin-top: 8px; }
.podium .pick {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center;
  background: var(--card); border-radius: 20px; padding: 16px; border: 0; text-align: left; width: 100%;
}
.podium .pick:first-child { background: linear-gradient(135deg, #3a2a12, var(--card)); outline: 2px solid var(--orange); }
.podium .pick .stack { width: 110px; }
.podium .rank { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.podium h3 { font-size: 22px; margin: 4px 0; }
.podium p { margin: 0; font-size: 12.5px; color: var(--muted); }
.match { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; background: rgba(154, 166, 58, .2); color: #d4dc8a; padding: 3px 9px; border-radius: 99px; }

/* ---------- detail sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(5, 10, 10, .6); animation: fade .25s both; }
.sheet-panel {
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); animation: up .38s cubic-bezier(.2, .9, .25, 1) both;
  max-width: 640px; margin: 0 auto;
}
.sheet.closing .sheet-panel { animation: down .25s ease-in both; }
.sheet.closing .sheet-backdrop { animation: fade .25s reverse both; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes down { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.stage {
  position: relative; height: min(58vh, 500px); min-height: 340px;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 34px;
  background: radial-gradient(70% 55% at 50% 72%, var(--glow, rgba(243, 156, 39, .28)), transparent 70%), var(--bg2);
  overflow: hidden; touch-action: pan-y;
}
.stage .plate { position: absolute; bottom: 22px; left: 50%; width: min(78vw, 360px); height: 26px; transform: translateX(-50%); border-radius: 50%; background: rgba(0, 0, 0, .35); filter: blur(6px); }
.stage-stack {
  position: relative; width: min(68vw, 320px);
  transform: translateX(calc(var(--x) * -28%)) scale(calc(1 - var(--x) * (1 - var(--fit, .78))));
  transform-origin: 50% 100%;
  transition: transform .7s cubic-bezier(.2, .9, .25, 1);
  cursor: pointer;
}
.stage .close, .stage .explode {
  position: absolute; z-index: 3; border: 0; border-radius: 99px;
  background: rgba(0, 0, 0, .35); backdrop-filter: blur(8px); color: var(--text);
}
.stage .close { top: calc(14px + env(safe-area-inset-top, 0px)); left: 14px; width: 40px; height: 40px; font-size: 22px; line-height: 1; }
.stage .explode { top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; padding: 10px 14px; font-weight: 700; font-size: 13px; }
.stage .hint { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.detail { padding: 22px 18px 120px; }
.detail .kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent, var(--orange)); }
.detail h1 { font-size: 40px; margin: 6px 0 4px; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.title-row h1 { flex: 1; min-width: 0; overflow-wrap: break-word; }
.price-pill {
  flex: none; font-weight: 800; font-size: 20px; line-height: 1;
  padding: 9px 16px; border-radius: 99px; background: var(--orange); color: #241406;
}
.price-pill.bump { animation: bump .4s; }
.detail .base-line { color: var(--muted); font-weight: 600; margin: 0 0 14px; }
.ing-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 0; list-style: none; }
.ing-list li { font-size: 13px; padding: 6px 11px; background: var(--card); border-radius: 99px; display: flex; align-items: center; gap: 7px; }
.ing-list li i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.block { background: var(--card); border-radius: 18px; padding: 16px; margin-bottom: 12px; }
.block h3 { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.opt + .opt { border-top: 1px solid var(--line); }
.opt b { font-size: 14.5px; }
.opt > span:last-child { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 700; }
.opt small { display: block; color: var(--muted); font-size: 12px; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--card2); transition: background .2s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--text); transition: transform .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.pair { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.pair b { display: block; font-size: 15px; }
.pair p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.pair-meta { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent, var(--orange)); margin-top: 2px; }
.block .ask { font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: .01em; text-transform: none; color: var(--orange); }
.frittino { background: linear-gradient(135deg, rgba(243, 156, 39, .14), var(--card) 60%); }
.pair-pills { display: flex; gap: 6px; margin-top: 9px; }
.pill {
  font-size: 13.5px; font-weight: 800; line-height: 1; padding: 7px 12px; border-radius: 99px;
  background: rgba(0, 0, 0, .22); border: 1px solid var(--line);
}
.pill-price { background: var(--text); color: var(--bg); border-color: var(--text); }
.pair-or { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-size: 12px; font-weight: 600; font-style: italic; color: var(--muted); }
.pair-or::before, .pair-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.allergens { display: flex; flex-wrap: wrap; gap: 6px; }
.allergens span { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: rgba(226, 72, 47, .14); color: #ffb1a3; }
.fine { font-size: 11.5px; color: var(--muted); margin: 10px 0 0; }
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; max-width: 640px; margin: 0 auto;
  padding: 12px 16px calc(12px + var(--safe-b));
  background: linear-gradient(transparent, var(--bg) 30%);
}
.buybar .btn { width: 100%; padding: 16px; font-size: 16px; justify-content: space-between; }

/* ---------- lista ---------- */
.list { padding: 8px 16px; }
.litem { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.litem b { font-size: 15px; }
.litem small { display: block; color: var(--muted); font-size: 12px; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button { width: 32px; height: 32px; border-radius: 10px; border: 0; background: var(--card2); font-size: 18px; }
.qty span { min-width: 18px; text-align: center; font-weight: 800; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 6px; font-weight: 800; font-size: 18px; }
.total small { font-size: 12px; color: var(--muted); font-weight: 500; }
.list-actions { padding: 10px 16px 20px; display: grid; gap: 10px; }
.note-box { margin: 0 16px; padding: 12px 14px; border-radius: 14px; background: rgba(243, 156, 39, .1); color: #f6c98a; font-size: 12.5px; }

/* modalità "mostra al cameriere" */
.waiter { position: fixed; inset: 0; z-index: 80; background: #fffaf0; color: #111; overflow-y: auto; padding: calc(24px + env(safe-area-inset-top, 0px)) 22px 40px; }
.waiter[hidden] { display: none; }
.waiter h2 { font-size: 26px; display: flex; justify-content: space-between; align-items: center; }
.waiter h2 button { font-family: var(--body); font-size: 14px; font-weight: 700; border: 2px solid #111; background: none; border-radius: 99px; padding: 8px 14px; color: #111; }
.waiter ul { list-style: none; padding: 0; margin: 22px 0; }
.waiter li { display: flex; gap: 14px; align-items: baseline; font-size: 24px; font-weight: 800; padding: 12px 0; border-bottom: 2px dashed #ddd; }
.waiter li .q { font-family: var(--display); font-weight: 400; color: #d87a00; min-width: 44px; }
.waiter li small { display: block; font-size: 15px; font-weight: 600; color: #555; }

/* ---------- tabbar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tabbar) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(16, 26, 25, .94); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-decoration: none; font-size: 10.5px; font-weight: 700; color: var(--muted);
}
.tabbar a.on { color: var(--orange); }
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge {
  position: absolute; top: 7px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--orange); color: #241406; font-size: 11px; font-weight: 800;
  display: grid; place-items: center;
}
.badge.bump { animation: bump .4s; }
@keyframes bump { 40% { transform: scale(1.45); } }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar) + var(--safe-b) + 14px); z-index: 90;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px;
  padding: 11px 18px; border-radius: 99px; transition: opacity .25s, transform .25s; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.sheet:not([hidden]) ~ .toast { bottom: 96px; }

.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 30px 20px 20px; }
.footer b { color: var(--text); }

/* ---------- interruttori FEATURES (vedi app.js) ---------- */
.chip-buy em { font-style: normal; }
.no-prezzi .pr, .no-prezzi .price, .no-prezzi .p { display: none; }
.no-prezzi .chip-buy span { margin-right: 0; color: var(--text); }
.no-lista .add, .no-lista .buybar, .no-lista .tabbar [data-tab="lista"] { display: none; }
.no-lista .chip-buy { pointer-events: none; }
.no-lista .tabbar { grid-template-columns: repeat(3, 1fr); }
.no-lista .detail { padding-bottom: 40px; }
.no-prezzi .bcard h3 { padding-right: 0; }

/* ---------- card teaser (FEATURES.card) ---------- */
.bcard.teaser { grid-template-columns: 96px 1fr; }
.bcard.teaser .thumb { height: 104px; overflow: visible; }
.bcard.teaser .thumb .stack { width: 78px; }
.bcard.teaser .thumb .layer { transition: margin-bottom .55s cubic-bezier(.3, 1.3, .5, 1); }
.bcard.teaser .ing { color: var(--text); opacity: .82; -webkit-line-clamp: 2; }
.bcard .more { font-weight: 800; color: var(--accent, var(--orange)); opacity: 1; }
.peek-cta {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 9px;
  font-size: 12px; font-weight: 800; color: var(--accent, var(--orange));
}
.peek-cta .mini { display: inline-flex; align-items: flex-end; gap: 3px; padding: 3px 7px; border-radius: 99px; background: rgba(0, 0, 0, .2); }
.peek-cta .mini svg { display: block; height: 19px; width: auto; }
.peek-cta .arrow { transition: transform .2s; }
.bcard:active .peek-cta .arrow { transform: translateX(4px); }
.bcard.chiusa { min-height: 128px; }
.bcard.chiusa h3 { font-size: 18px; }
.bcard.teaser .peek-cta {
  margin-top: 12px; padding: 7px 8px 7px 13px; border-radius: 99px;
  background: color-mix(in srgb, var(--accent, var(--orange)) 16%, transparent); font-size: 13px;
}

/* ---------- Burger Snake (FEATURES.snake) ---------- */
.bored {
  position: fixed; left: 50%; bottom: calc(var(--tabbar) + var(--safe-b) + 12px); z-index: 25;
  display: flex; align-items: center; gap: 4px; padding: 5px 5px 5px 6px; border-radius: 99px;
  background: var(--orange); color: #241406; box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  transition: transform .5s cubic-bezier(.3, 1.4, .5, 1), opacity .3s;
}
.bored.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; animation: wiggle 3s 1.2s ease-in-out infinite; }
@keyframes wiggle { 0%, 88%, 100% { rotate: 0deg; } 91% { rotate: -3deg; } 94% { rotate: 3deg; } 97% { rotate: -2deg; } }
.bored-go { display: flex; align-items: center; gap: 8px; border: 0; background: none; color: inherit; font-weight: 700; font-size: 14px; padding: 6px 4px 6px 6px; white-space: nowrap; }
.bored-go b { background: #241406; color: var(--orange); padding: 5px 11px; border-radius: 99px; }
.bored-em { font-size: 18px; }
.bored-x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(36, 20, 6, .14); color: inherit; font-size: 18px; line-height: 1; }
.bored-link {
  display: block; width: calc(100% - 32px); margin: 26px 16px 0; padding: 16px; border-radius: 18px;
  border: 1.5px dashed rgba(243, 156, 39, .45); background: rgba(243, 156, 39, .07);
  color: var(--muted); font-size: 14px; text-align: center;
}
.bored-link b { display: block; color: var(--orange); font-family: var(--display); font-weight: 400; font-size: 20px; margin-top: 4px; }

.game {
  position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column;
  background: radial-gradient(90% 50% at 50% 0%, rgba(243, 156, 39, .16), transparent 70%), var(--bg);
  padding: calc(12px + env(safe-area-inset-top, 0px)) 12px calc(12px + var(--safe-b));
}
.game[hidden] { display: none; }
.game-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.game-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card); font-size: 22px; line-height: 1; margin-right: auto; }
.game-score { background: var(--card); border-radius: 14px; padding: 6px 14px; text-align: center; min-width: 76px; }
.game-score span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.game-score b { font-family: var(--display); font-weight: 400; font-size: 20px; line-height: 1.1; }
.game-field { position: relative; flex: 1; display: flex; align-items: flex-start; justify-content: center; touch-action: none; overflow: hidden; }
.game-field canvas { border-radius: 14px; box-shadow: 0 0 0 2px rgba(245, 238, 220, .08); }
.game-screen {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; background: rgba(20, 32, 31, .82); backdrop-filter: blur(3px); border-radius: 14px;
}
.game-screen[hidden] { display: none; }
.game-screen h2 { font-size: 46px; color: var(--orange); margin-bottom: 14px; }
.game-screen p { color: var(--text); opacity: .85; margin: 0 0 10px; max-width: 300px; }
.game-screen .btn { min-width: 150px; margin-top: 10px; }
.game-tip { font-size: 13px; }
.game-kicker { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.game-burger { width: 150px; margin: 6px 0 14px; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .4)); }
.game-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.game-hint { text-align: center; color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.game-pad {
  display: grid; grid-template-columns: repeat(3, 64px); grid-template-rows: repeat(2, 52px); gap: 8px;
  justify-content: center; margin-top: 12px; touch-action: none; user-select: none; -webkit-user-select: none;
}
.game-pad button {
  display: grid; place-items: center; border: 0; border-radius: 16px;
  background: var(--card2); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .3);
  -webkit-tap-highlight-color: transparent; transition: transform .08s, background .08s;
}
.game-pad button.on { transform: translateY(2px); background: var(--orange); box-shadow: none; }
.game-pad button.on svg { stroke: #241406; }
.game-pad svg { width: 28px; height: 28px; fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.game-pad .up { grid-column: 2; grid-row: 1; }
.game-pad .left { grid-column: 1; grid-row: 2; }
.game-pad .down { grid-column: 2; grid-row: 2; }
.game-pad .right { grid-column: 3; grid-row: 2; }
.game-tiki { width: 84px; margin-bottom: 10px; animation: tiki-bob 2.4s ease-in-out infinite; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .4)); }
.game-tiki svg { display: block; width: 100%; height: auto; }
@keyframes tiki-bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
.game-qr { width: min(62vw, 230px); padding: 10px; background: #fff; border-radius: 16px; margin: 4px 0 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.game-qr svg { display: block; width: 100%; height: auto; }
.game-input {
  width: min(100%, 280px); margin: 4px 0 6px; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--card); color: var(--text); font: inherit; font-size: 18px; font-weight: 700; text-align: center; outline: none;
}
.game-input:focus { border-color: var(--orange); }
.game-rename { margin-top: 14px; border: 0; background: none; color: var(--muted); font-size: 12.5px; text-decoration: underline; }
.game-flash {
  position: absolute; top: 18px; left: 50%; z-index: 2; transform: translate(-50%, -10px); opacity: 0; pointer-events: none;
  background: var(--green); color: #18200a; font-weight: 800; font-size: 15px; padding: 9px 16px; border-radius: 99px; white-space: nowrap;
}
.game-flash.show { animation: flash 1.8s ease both; }
@keyframes flash { 12%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -6px); } }

/* ---------- modalità demo (DEMO.attiva) ---------- */
.demo-pill {
  display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 99px; vertical-align: 1px;
  background: var(--orange); color: #241406; font-size: 9.5px; letter-spacing: .14em;
}
.demo-note { margin: 14px 16px 0; padding: 11px 14px; border-radius: 14px; background: rgba(243, 156, 39, .1); color: #f6c98a; font-size: 12.5px; }

/* ---------- barra in basso spenta (FEATURES.tabbar) ---------- */
.no-tabbar { --tabbar: 0px; padding-bottom: calc(28px + var(--safe-b)); }
.no-tabbar .tabbar { display: none; }
.back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; padding: 8px 14px 8px 12px;
  border-radius: 99px; background: var(--card); text-decoration: none; font-size: 13px; font-weight: 700; color: var(--text);
}
.quiz .back { align-self: flex-start; }
.credits { display: block; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11.5px; letter-spacing: .02em; opacity: .75; }

/* ---------- elementi del brand Jungle in Town (FEATURES.brand) ---------- */
.brand-logo img { display: block; height: 52px; width: auto; filter: invert(1) sepia(.18) brightness(.97); }
.brand-logo small { display: block; margin-top: 8px; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: rgba(245, 238, 220, .7); }
.hero-tiki {
  position: absolute; z-index: 0; right: -70px; top: 96px; width: 270px; opacity: .14;
  --grout: var(--teal); transform: rotate(-8deg); pointer-events: none;
}
.section-head { position: relative; }
.section-ic { width: 54px; height: 54px; flex: none; color: var(--accent); opacity: .3; }
.group-block {
  position: relative; overflow: hidden; display: flex; align-items: center; height: 50px;
  margin: 22px 0 12px; padding: 0 16px; border-radius: 14px; background: var(--bg);
}
.group-block span { position: relative; z-index: 1; font-family: var(--display); font-size: 20px; letter-spacing: .03em; text-transform: uppercase; color: #fff; }
.group-ic { position: absolute; right: 12px; top: 50%; width: 66px; height: 66px; transform: translateY(-50%) rotate(-6deg); color: rgba(255, 255, 255, .24); --hole: var(--bg); }
.typebox {
  display: grid; grid-template-columns: 30px 1fr 30px; align-items: center; gap: 10px; margin-bottom: 6px;
  padding: 12px 10px; border: 2px dashed rgba(255, 255, 255, .75); border-radius: 4px;
  background: #8d9a33; color: #fff; text-align: center; font-family: 'Space Mono', ui-monospace, monospace;
  box-shadow: 0 0 0 4px #8d9a33;
}
.typebox b { display: block; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.typebox span { display: block; font-size: 11.5px; line-height: 1.35; margin-top: 2px; }
.typebox em { display: block; font-style: normal; font-size: 11px; margin-top: 6px; opacity: .92; }
.typebox em b { display: inline; font-size: inherit; letter-spacing: 0; }
.typebox-ic { width: 30px; height: 30px; color: #fff; }
.footer-tiki { display: block; width: 38px; margin: 0 auto 14px; --grout: var(--bg); --tiki: rgba(245, 238, 220, .45); }

/* ---------- birre: card compatta e scheda col bicchiere che si riempie ---------- */
.beer-teaser h3 { padding-right: 78px; }
.beer-teaser .thumb .pour-svg { width: 48px; height: auto; }
.pour-svg { display: block; width: 100%; height: auto; overflow: visible; }
.foam { transform-box: fill-box; transform-origin: 50% 100%; }
.bubble { opacity: 0; animation: rise var(--d) linear var(--dl) infinite; }
.thumb .bubble { animation: none; }
.beer-stage { padding-bottom: 30px; }
.pour { position: relative; width: min(56vw, 250px); }
.pouring .liquid { animation: fill 2.4s cubic-bezier(.35, .1, .3, 1) .2s both; }
.pouring .foam { animation: foam 1.1s ease-out 2s both; }
@keyframes fill { from { transform: translateY(230px); } to { transform: none; } }
@keyframes foam { from { transform: scaleY(.1); } 60% { transform: scaleY(1.2); } to { transform: scaleY(1); } }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-170px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pouring .liquid, .pouring .foam, .bubble { animation: none; } }
.beer-desc { color: var(--text); opacity: .86; margin: 4px 0 20px; font-size: 15px; line-height: 1.55; }
.formats { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.fmt { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 6px; border-radius: 14px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); }
.fmt span { font-size: 12px; font-weight: 700; color: var(--muted); }
.fmt b { font-size: 17px; font-weight: 800; }
.no-prezzi .fmt span { font-size: 15px; color: var(--text); }
.spec { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.spec:first-of-type { border-top: 0; padding-top: 0; }
.spec span { color: var(--muted); font-size: 13.5px; }
.spec b { font-size: 14.5px; }
.spec-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.spec-bar b { display: block; height: 100%; border-radius: 3px; background: var(--orange); }
.pair-burger {
  display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; width: 100%;
  padding: 10px 4px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left;
}
.pair-burger:first-of-type { border-top: 0; }
.pair-burger .mini .stack { width: 50px; }
.pair-burger b { display: block; font-size: 15px; }
.pair-burger small { color: var(--muted); font-size: 12px; }
.pair-burger .arrow { color: var(--orange); font-weight: 800; }
.beer-stage + .detail h1 { font-size: 34px; }
.beer-stage + .detail .title-row { align-items: flex-start; }
.beer-stage + .detail .price-pill { margin-top: 6px; }
.pour-thumb { width: 48px; }
.to-pour:not(.pouring) .liquid { transform: translateY(230px); }
.pour-thumb.pouring .liquid { animation-duration: 1.1s; animation-delay: 0s; }
.pour-thumb.pouring .foam { animation-duration: .7s; animation-delay: .9s; }
