:root{
  --purple:#512772;
  --orange:#F05422;
  --bg: var(--purple);
  --text:#f6f4fb;
  --shadow: 0 14px 34px rgba(0,0,0,.40);
  --r:18px;
  --font: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  --fontBrand: "Google Sans", var(--font);
}

*{box-sizing:border-box}
html,body{height:100%;width:100%;margin:0;overflow:hidden}

body{
  background: var(--bg);
  color:var(--text);
  font-family: var(--font);
  overscroll-behavior:none;
}

body, .shell, .pane, .top{max-width:100%; overflow-x:hidden}

.shell{
  max-width:980px;
  margin:0 auto;
  height:100svh;
  height:100dvh;
  max-height:100dvh;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
  overflow:hidden;
}

.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px;
  background: rgba(12,7,17,.70);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.brandRow{display:flex; align-items:center; gap:9px; min-width:0}
.hdrLogo{width:44px; height:auto; display:block; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35))}
.brandTxt{min-width:0}
.title{font-family: var(--fontBrand); font-weight:900; letter-spacing:-.4px; line-height:1}
.subtitle{
  color:rgba(255,255,255,.78);
  font-size:13px;
  margin-top:3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.actions{display:flex; gap:8px; align-items:center}

.btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(12,7,17,.55);
  color:var(--text);
  padding:9px 11px;
  border-radius: 14px;
  cursor:pointer;
  font-weight:900;
  letter-spacing:-.1px;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  user-select:none;
  backdrop-filter: blur(8px);
}
.btn:hover{filter:brightness(1.06)}
.btn:active{transform:translateY(1px)}
.btn.ghost{background: rgba(12,7,17,.25)}
.btn.primary{background: var(--orange); border-color: transparent; color:#1a0d06}
.btn.primary:disabled{opacity:.5; cursor:not-allowed; transform:none; filter:none}
.btn.wide{width:100%}

.pane{
  background: rgba(12,7,17,.65);
  border:1px solid rgba(255,255,255,.10);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding:11px;
  display:flex;
  flex-direction:column;
  gap:9px;
  flex:1;
  min-height:0;
  overflow:hidden;
  backdrop-filter: blur(8px);
}

.rule{
  color:rgba(255,255,255,.78);
  font-size:13px;
  padding:6px 2px 0 2px;
  overflow-wrap:anywhere;
}


/* DELIVERY SELECTOR */
.ruleLine{margin-bottom:4px} /* era 6px */

/* faixa mais “fina” e sem distorcer layout */
.delDays{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:6px;                  /* era 8px */
  margin-top:0;
  padding:1px 0 0 0;        /* novo: reduz altura visual */
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width:none;
}
.delDays::-webkit-scrollbar{height:0; display:none}

/* chip de delivery menor e com altura estável */
.chip.del{
  flex:0 0 auto;
  padding:5px 8px;          /* era 7px 10px */
  font-size:12.5px;         /* novo: ligeiramente menor */
  line-height:1;            /* novo: evita “inflar” */
  font-weight:800;          /* novo: não muda no selecionado (evita parecer maior) */
  border-width:1px;         /* garante largura fixa */
  border-style:solid;
  border-color: rgba(255,255,255,.14);
}

/* selecionado: muda só cor (sem sumir borda e sem alterar box/padding) */
.chip.del.sel{
   padding:5px 8px;  
  background:var(--orange);
  color:#1a0d06;
  border-color: var(--orange); /* era transparent */
}

/* CHAT */
.msgs{
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:0 1 auto;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-behavior:smooth;
  padding:2px 2px 6px 2px;
  min-height:96px;
  max-height:26vh;
}
.msgs::-webkit-scrollbar{width:0;height:0;display:none}

.m{display:flex}
.m.bot{justify-content:flex-start}
.m.user{justify-content:flex-end}

.bub{
  max-width: 760px;
  padding:12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  line-height:1.35;
  background: rgba(12,7,17,.62);
  backdrop-filter: blur(8px);
  overflow-wrap:anywhere;
  word-break:break-word;
}
.user .bub{background: rgba(240,84,34,.10); border-color: rgba(240,84,34,.30)}

.df-fading{opacity:0; transform:translateY(-10px) scale(.985); transition:opacity .38s ease, transform .38s ease}
.df-collapse{height:0 !important; margin:0 !important; padding:0 !important; overflow:hidden !important; transition:height .38s ease}

.tw:after{
  content:"";
  display:inline-block;
  width:8px;
  height:1.1em;
  margin-left:2px;
  background:rgba(255,255,255,.55);
  transform:translateY(2px);
  animation: twBlink 1s steps(1) infinite;
}
@keyframes twBlink{0%,49%{opacity:1} 50%,100%{opacity:0}}
@media (prefers-reduced-motion: reduce){ .tw:after{animation:none; opacity:0} }

/* STAGE */
.stage{
  border:1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  background: rgba(12,7,17,.55);
  padding:10px;
  position:relative;
  backdrop-filter: blur(8px);
}

.stage.stage-menu{
  flex:1 0 auto;
  min-height:230px;
  overflow:hidden;
}

.stage.stage-cart,
.stage.stage-form{
  flex:1 1 0;
  min-height:0;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-width:none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom:14px;
}
.stage.stage-cart::-webkit-scrollbar,
.stage.stage-form::-webkit-scrollbar{width:0;height:0;display:none}

/* ✅ carrinho sem scroll quando não precisa */
.stage.stage-cart.noScroll{ overflow-y:hidden !important; }

.stage.stage-out{opacity:.22; transform:translateY(6px); transition:opacity .22s ease, transform .22s ease}
.stage.stage-in{animation: stageIn .28s ease}
@keyframes stageIn{from{opacity:0; transform:translateY(10px)} to{opacity:1; transform:translateY(0)}}

.stageHead{display:flex; align-items:center; justify-content:space-between; margin-bottom:8px}
.stageTitle{font-family: var(--fontBrand); font-weight:900; letter-spacing:-.6px}
.stageHint{color:rgba(255,255,255,.78); font-size:12px}

/* menu horizontal */
.cards{
  display:flex;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom:6px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width:none;
  overscroll-behavior-x: contain;
}

.cards::-webkit-scrollbar{width:0;height:0;display:none}
.cards.dragging{cursor:grabbing; user-select:none}
.cards.dragging *{pointer-events:none}

.card{
  scroll-snap-align:start;
  min-width:240px;
  max-width:240px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background: rgba(12,7,17,.70);
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
  backdrop-filter: blur(8px);
}

.card.surprise{
  border-color: rgba(240,84,34,.28);
  background:
    radial-gradient(220px 160px at 15% 15%, rgba(240,84,34,.18), transparent 60%),
    radial-gradient(220px 160px at 85% 85%, rgba(255,255,255,.12), transparent 60%),
    rgba(12,7,17,.70);
}
.surpriseImg{
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:46px;
  line-height:1;
  user-select:none;
}
.card.picked{animation: dfPick .65s ease;}
@keyframes dfPick{0%{transform:translateY(0)} 35%{transform:translateY(-3px)} 100%{transform:translateY(0)}}

.cardimg{
  width:100%;
  height:120px;
  border-radius:14px;
  object-fit:cover;
  background: rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.10);  user-select: none;
}

.cardimg.ph{
  background:
    radial-gradient(120px 80px at 20% 30%, rgba(240,84,34,.20), transparent 60%),
    radial-gradient(120px 80px at 70% 70%, rgba(255,255,255,.12), transparent 60%),
    rgba(0,0,0,.10);
}
.cname{font-family: var(--fontBrand); font-weight:900; letter-spacing:-.4px; line-height:1.05; overflow-wrap:anywhere}
.cdesc{color:rgba(255,255,255,.78); font-size:12.5px; line-height:1.25; min-height:30px; overflow-wrap:anywhere}
.cfoot{display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:auto}
.price{font-weight:900; letter-spacing:-.3px}
.add{
  border:1px solid rgba(240,84,34,.35);
  background: rgba(240,84,34,.12);
  color: var(--text);
  font-weight:900;
  border-radius:14px;
  padding:7px 9px;
  cursor:pointer;
}
.add:hover{background: rgba(240,84,34,.18)}

/* QUICK */
.quick{display:flex; flex-wrap:wrap; gap:8px; flex:0 0 auto}
.chip{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(12,7,17,.25);
  color:var(--text);
  font-weight:900;
  border-radius:999px;
  padding:8px 10px;
  cursor:pointer;
}
.chip:hover{filter:brightness(1.08)}
.chip.disabled{opacity:.55; cursor:not-allowed}

/* BAR */
.bar{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:space-between;
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,.10);
  flex:0 0 auto;
}
.btn.miniBtn{
  padding:8px 10px;
  border-radius:999px;
  line-height:1;
}
.btn.miniBtn:disabled{opacity:.55; cursor:not-allowed; transform:none; filter:none}

.mini{color:rgba(255,255,255,.78); font-weight:900; letter-spacing:-.2px}

/* FOOTER (removido para ganhar espaço) */
.foot{display:none !important}
.muted{color:rgba(255,255,255,.78)}

.err{
  white-space:pre-wrap;
  margin:0;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(240,84,34,.35);
  background: rgba(240,84,34,.10);
  color:var(--text);
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* carrinho */
.cartBox{display:flex; flex-direction:column; gap:12px}
.list{list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px}
.list li{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(12,7,17,.45);
}
.list li span{color:rgba(255,255,255,.90); font-weight:900}
.list .empty{justify-content:center; color:rgba(255,255,255,.70)}
.sum{
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background: rgba(12,7,17,.40);
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.sum > div{display:flex; justify-content:space-between; gap:10px; color:rgba(255,255,255,.80); font-weight:800}
.sum b{color:#fff}
.sum .tot{padding-top:8px; border-top:1px solid rgba(255,255,255,.10)}
.cartHint{color:rgba(255,255,255,.78); font-size:12.5px}

/* form */
.formWrap{display:flex; flex-direction:column; gap:10px}
.form{display:flex; flex-direction:column; gap:12px}
.form label{display:flex; flex-direction:column; gap:6px; font-weight:900; font-size:13px; color:rgba(255,255,255,.85)}
.form input,.form select{
  width:100%;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
  font-weight:800;
  letter-spacing:-.1px;
}
.form input::placeholder{color:rgba(255,255,255,.55)}
.form input:focus,.form select:focus{
  border-color: rgba(240,84,34,.55);
  box-shadow: 0 0 0 4px rgba(240,84,34,.15);
}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.kpi{
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background: rgba(12,7,17,.40);
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.kpi > div{display:flex; justify-content:space-between; gap:10px; color:rgba(255,255,255,.80); font-weight:900}
.kpi .tot{padding-top:8px; border-top:1px solid rgba(255,255,255,.10)}

/* tela final (pix) */
.pay{
  display:flex;
  flex-direction:column;
  gap:10px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background: rgba(12,7,17,.45);
  padding:12px;
}
.pay > div{display:flex; justify-content:space-between; gap:10px; color:rgba(255,255,255,.80); font-weight:900}
.pay b{color:#fff}
.pay .tot{padding-top:8px; border-top:1px solid rgba(255,255,255,.10)}

/* confirmação (pós pedido) */
.confirmWrap{
  min-height:100%;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.brandNote{
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background: rgba(240,84,34,.10);
  padding:12px;
}
.bnTop{font-weight:1000; letter-spacing:.2px}
.bnSub{color:rgba(255,255,255,.85); margin-top:4px; line-height:1.25}
.confirmActions{
  margin-top:auto;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding-bottom: max(4px, env(safe-area-inset-bottom));
}
.bnFoot{color:rgba(255,255,255,.72); font-weight:800; font-size:13px}

/* checkout: esconde chat e chips */
body.df-checkout .msgs,
body.df-checkout .quick{display:none}
body.df-checkout .rule{display:none}

/* INTRO */
.df-introWrap{
  position:fixed; inset:0;
  z-index:12000;
  background:#ffffff;
  display:grid;
  place-items:center;
  opacity:1;
}
body.df-ready .df-introWrap{
  opacity:0;
  pointer-events:none;
  transition:opacity .55s ease;
}
.df-biteCanvas{position:absolute; inset:0; width:100%; height:100%; z-index:1}
.df-introCenter{
  position:relative;
  z-index:2;
  padding:22px;
  opacity:0;
  transform:translateY(10px) scale(.985);
  transition:opacity .45s ease, transform .45s ease;
}
.df-introWrap.showMark .df-introCenter{opacity:1; transform:translateY(0) scale(1)}
.df-introWrap.paintOver .df-biteCanvas{z-index:3}
.df-logoImg{
  width:min(520px, 86vw);
  height:auto;
  display:block;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.18));
}
.df-tagline{
  margin-top:14px;
  color: rgba(10,10,12,.88);
  font-family: var(--fontBrand);
  font-weight:900;
  font-size: clamp(14px, 2.3vw, 18px);
  max-width: 520px;
  text-align:center;
}
body.df-intro .shell{opacity:0; transform:translateY(8px); pointer-events:none}
body.df-ready .shell{opacity:1; transform:none; pointer-events:auto; transition:opacity .35s ease, transform .35s ease}

@media (max-width:520px){
  .card{min-width:78vw; max-width:78vw}
  .hdrLogo{width:40px}
  .grid2{grid-template-columns:1fr}
}

.pixKey{
  cursor:pointer;
  color: var(--orange);
  background: rgba(240,84,34,.14);
  border:1px solid rgba(240,84,34,.35);
  padding:3px 10px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  max-width:62%;
  white-space:normal;
  word-break:break-all;
  line-height:1.12;
  user-select:text;
}
.pixKey::after{
  content:"⧉";
  flex:0 0 auto;
  font-size:0.95em;
  opacity:.88;
}
.pixKey:hover{ filter:brightness(1.06); }
.pixKey:active{ transform:translateY(1px); }
.pixKey:focus{ outline:2px solid rgba(240,84,34,.60); outline-offset:2px; }
.pixKey.copied{
  color:#fff;
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.25);
}


/* ---------------------------------
   Confirmação (modal pós-compra)
---------------------------------- */
.df-confirm{
  position:fixed;
  inset:0;
  z-index:12500;
  display:none;
  align-items:center;
  justify-content:center;
  padding:14px;
}
.df-confirm.open{display:flex;}
.df-confirmBackdrop{
  position:absolute;
  inset:0;
  z-index:1;
  background: rgba(0,0,0,.74);
  backdrop-filter: blur(16px) saturate(.95);
}
.df-confirmWipe{
  position:absolute;
  z-index:2;
  inset:-18vh -18vw;
  pointer-events:none;
  opacity:0;
  transform-origin:left center;
  background:
    radial-gradient(900px 520px at 15% 20%, rgba(81,39,114,.88), transparent 62%),
    radial-gradient(760px 520px at 85% 70%, rgba(240,84,34,.26), transparent 60%),
    linear-gradient(90deg, rgba(81,39,114,0) 0%, rgba(81,39,114,.82) 35%, rgba(81,39,114,0) 80%);
  filter: blur(14px) saturate(1.25); mix-blend-mode: screen;
}
.df-confirm.open .df-confirmWipe{
  animation: dfWipe .62s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes dfWipe{
  0%{opacity:0; transform:translateX(-22%) scaleX(.20)}
  35%{opacity:1}
  100%{opacity:0; transform:translateX(20%) scaleX(1.25)}
}

.df-confirmCard{
  position:relative;
  z-index:3;
  isolation:isolate;
  width:min(620px, 94vw);
  height:calc(100dvh - 28px);
  max-height:calc(100dvh - 28px);
  background: rgba(12,7,17,.94);
  border:1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,.62);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transform: translateY(16px) scale(.985);
  opacity:0;
}
.df-confirm.open .df-confirmCard{
  animation: dfCardIn .35s ease both;
}
@keyframes dfCardIn{
  from{opacity:0; transform: translateY(16px) scale(.985)}
  to{opacity:1; transform: translateY(0) scale(1)}
}

/* extra: pop do logo + brilho roxo/laranja (efeito diferentona) */
.df-confirm.open .df-confirmLogo{animation: dfLogoPop .55s cubic-bezier(.2,1,.2,1) .08s both;}
@keyframes dfLogoPop{0%{transform:translateY(6px) scale(.92); opacity:.65} 100%{transform:translateY(0) scale(1); opacity:1}}

.df-confirmCard::after{
  content:"";
  position:absolute;
  left:-30%;
  top:-45%;
  width:160%;
  height:75%;
  background:
    radial-gradient(900px 520px at 20% 60%, rgba(81,39,114,.55), transparent 62%),
    radial-gradient(760px 520px at 78% 30%, rgba(240,84,34,.22), transparent 64%),
    linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.10) 35%, rgba(255,255,255,0) 80%);
  filter: blur(18px) saturate(1.08);
  opacity:0;
  pointer-events:none;
  transform:translateX(-18%) translateY(-10%);
  z-index:0;
}
.df-confirm.open .df-confirmCard::after{animation: dfCardSheen 1.05s ease both;}
@keyframes dfCardSheen{0%{opacity:0; transform:translateX(-22%) translateY(-12%)} 30%{opacity:1} 100%{opacity:0; transform:translateX(22%) translateY(-4%)}}

.df-confirmTop, .df-confirmBody{position:relative; z-index:1;}

@media (prefers-reduced-motion: reduce){
  .df-confirm.open .df-confirmWipe,
  .df-confirm.open .df-confirmCard,
  .df-confirm.open .df-confirmLogo,
  .df-confirm.open .df-confirmCard::after{animation:none !important;}
  .df-confirmCard{opacity:1 !important; transform:none !important;}
}

.df-confirmTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 12px 10px 12px;
  border-bottom:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(540px 240px at 20% 0%, rgba(81,39,114,.55), transparent 60%),
    radial-gradient(420px 240px at 90% 100%, rgba(240,84,34,.14), transparent 60%),
    rgba(12,7,17,.80);
  backdrop-filter: blur(8px);
}
.df-confirmBrand{display:flex; align-items:center; gap:10px; min-width:0}
.df-confirmLogo{width:42px; height:auto; filter: drop-shadow(0 12px 18px rgba(0,0,0,.35))}
.df-confirmBrandTxt{min-width:0}
.df-confirmTitle{
  font-family: var(--fontBrand);
  font-weight:1000;
  letter-spacing:-.4px;
  line-height:1.05;
}
.df-confirmSub{
  color:rgba(255,255,255,.78);
  font-weight:800;
  font-size:13px;
  margin-top:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.df-confirmClose{
  width:40px;
  height:40px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(12,7,17,.60);
  color:#fff;
  cursor:pointer;
  font-size:22px;
  line-height:0;
  display:grid;
  place-items:center;
}
.df-confirmClose:hover{filter:brightness(1.08)}
.df-confirmClose:active{transform:translateY(1px)}

.df-confirmBody{
  flex:1;
  min-height:0;
  padding:12px;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width:none;
}
.df-confirmBody::-webkit-scrollbar{width:0;height:0;display:none}

/* itens (linha longa) no resumo */
.dfItems{
  max-width: 62%;
  text-align:right;
  font-weight:900;
  color:#fff;
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* bloqueia interação por trás */
body.df-confirmOpen .shell{pointer-events:none;}
body.df-confirmOpen .df-confirm{pointer-events:auto;}

@media (max-width:420px){
  .df-confirmCard{width:96vw; height:calc(100dvh - 22px); max-height:calc(100dvh - 22px);}
  .df-confirmSub{white-space:normal;}
}


/* ---------------------------------
   Lightbox (zoom na foto do cardápio)
---------------------------------- */
img.cardimg{cursor: zoom-in; touch-action: manipulation; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; user-select:none;}
.df-lightbox{
  position:fixed;
  inset:0;
  z-index:13000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.df-lightbox.open{display:flex;}
.df-lightbox:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(800px 420px at 20% 10%, rgba(240,84,34,.20), transparent 60%),
    radial-gradient(700px 420px at 80% 90%, rgba(81,39,114,.28), transparent 60%),
    rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
}
.df-lbBackdrop{position:absolute; inset:0;}
.df-lbImg{
  position:relative;
  max-width:min(92vw, 880px);
  max-height:82vh;
  border-radius:18px;
  box-shadow: 0 20px 55px rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  transform: translateY(10px) scale(.985);
  opacity:0;
  transition: transform .28s ease, opacity .28s ease;
}
.df-lightbox.open .df-lbImg{transform: translateY(0) scale(1); opacity:1;}
.df-lbClose{
  position:absolute;
  top:14px;
  right:14px;
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(12,7,17,.55);
  color:var(--text);
  font-size:26px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  backdrop-filter: blur(8px);
}
.df-lbClose:hover{filter:brightness(1.06)}
.df-lbClose:active{transform:translateY(1px)}
body.df-lbOpen{overscroll-behavior:none;}

/* ---------------------------------
   Telas muito baixas: não esconder a barra
---------------------------------- */
@media (max-height: 680px){
  .pane{
    overflow-y:auto;
    scrollbar-width:thin;
    padding:10px;
    gap:8px;
  }
  .pane::-webkit-scrollbar{width:6px}
  .pane::-webkit-scrollbar-thumb{background: rgba(255,255,255,.16); border-radius:999px}
  .pane::-webkit-scrollbar-track{background: transparent}

  .stage.stage-menu{min-height:180px}
  .msgs{max-height:22vh; gap:8px}
  .bub{padding:11px}

  .bar{
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: rgba(12,7,17,.65);
    backdrop-filter: blur(8px);
    padding-top:8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    margin-top:8px;
    gap:8px;
  }
}

@media (max-height: 560px){
  .pane{padding:9px; gap:7px}
  .stage.stage-menu{min-height:140px}
  .msgs{max-height:18vh; min-height:72px; gap:7px}
  .bub{padding:10px}
  .btn{padding:9px 10px}
  .bar{padding-top:7px; padding-bottom: calc(7px + env(safe-area-inset-bottom)); margin-top:7px}
  .subtitle{font-size:12.5px}
}

