:root {
  --cor: #6BBF2A;          /* cor do drink da vez (vem da foto) */
  --cor-escura: #1E3A0A;
  --cobalto: #1747C9;
  --display: "Cabinet Grotesk", system-ui, sans-serif;
  --texto: "Satoshi", system-ui, sans-serif;
  --seg-t: env(safe-area-inset-top, 0px);
  --seg-b: env(safe-area-inset-bottom, 0px);
  --mola: cubic-bezier(.3, 1.35, .45, 1);
  --suave: cubic-bezier(.2, .9, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #0E0E0E; color: #fff; font-family: var(--texto); overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { width: 20px; height: 20px; flex: none; }
img { display: block; -webkit-user-drag: none; user-select: none; }
[hidden] { display: none !important; }
.tela { position: fixed; inset: 0; display: flex; flex-direction: column; animation: entra .5s var(--suave); }
@keyframes entra { from { opacity: 0; } }

/* ---------- botões ---------- */
.bt-branco, .bt-cor { height: 58px; padding: 0 22px 0 26px; border-radius: 29px; background: #fff; color: #111; font-weight: 700; font-size: 17px; display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; transition: transform .2s; box-shadow: 0 16px 40px -14px rgba(0,0,0,.45); }
.bt-cor { background: var(--cor); color: var(--cor-texto, #fff); box-shadow: 0 16px 40px -14px var(--cor); }
.bt-branco:active, .bt-cor:active { transform: scale(.97); }
.bt-cheio { width: 100%; }
.bt-branco b { min-width: 38px; height: 38px; padding: 0 10px; margin-right: -12px; border-radius: 19px; background: #111; color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 18px; }
.bt-vidro { height: 44px; min-width: 44px; padding: 0 14px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255,255,255,.18); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); font-weight: 700; font-size: 14px; color: #fff; }
.bt-redondo { padding: 0; width: 44px; }
.rodape { padding: 12px 16px calc(var(--seg-b) + 16px); position: relative; z-index: 3; }

/* ---------- abertura ---------- */
#t-abertura { background: #000; }
.ab-fotos, .ab-fotos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ab-fotos img { opacity: 0; transition: opacity 1.4s ease; transform: scale(1.08); }
.ab-fotos img.on { opacity: 1; animation: kenburns 7s linear forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.0); } }
.ab-veu { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 48%, rgba(0,0,0,.82) 100%); }
.ab-conteudo { position: relative; margin-top: auto; padding: 0 20px calc(var(--seg-b) + 24px); display: flex; flex-direction: column; gap: 14px; }
.marca-grande { margin: 0; font-family: var(--display); font-weight: 800; font-size: 76px; letter-spacing: -.06em; line-height: .8; }
.ab-titulo { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.05; letter-spacing: -.02em; }
.ab-conteudo .bt-branco { width: 100%; }
.ab-sub { margin: -6px 0 10px; font-size: 16px; font-weight: 500; opacity: .88; line-height: 1.35; }

/* ---------- balcão: bancada de pedra no sol + gaveta clara ---------- */
#t-balcao { --creme: #F3ECE0; --tinta: #1A1511; background: var(--creme); color: var(--tinta); }
.bancada { position: relative; flex: none; height: min(50vh, 430px); overflow: hidden;
  /* sem a foto: parede creme e pedra clara */
  background: linear-gradient(180deg, #EFE4D2 0%, #E9DCC6 52%, #D9C9AE 52.4%, #E8DDCB 60%, #DCCDB4 100%); }
.bancada-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.bancada::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(243,236,224,.55) 0%, rgba(243,236,224,0) 34%); }
.topo { display: flex; justify-content: space-between; align-items: center; padding: calc(var(--seg-t) + 14px) 20px 0; position: relative; z-index: 3; }
.marca-peq { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.05em; }
.topo-pular { height: 44px; padding: 0 18px; border-radius: 22px; font-size: 14px; font-weight: 700; background: rgba(26,21,17,.08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bal-titulo { position: relative; z-index: 3; margin: 14px 20px 0; font-family: var(--display); font-weight: 800; font-size: 44px; line-height: .92; letter-spacing: -.045em; }
.bal-dica { position: relative; z-index: 3; margin: 8px 20px 0; font-size: 15px; font-weight: 500; opacity: .7; }
.bancada-itens { position: absolute; inset: 0; z-index: 2; }
.b-item { position: absolute; left: 0; top: 0; width: var(--t); height: var(--t); transform: translate(calc(var(--x) - 50%), calc(var(--y) - 100%)); transition: transform .6s var(--mola), width .5s var(--suave), height .5s var(--suave); z-index: var(--z); }
.b-item img, .b-item .sem-foto { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(10px 6px 7px rgba(90,55,20,.32)); }
.b-item::after { content: ""; position: absolute; left: 14%; right: 8%; bottom: -5%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(60,38,15,.42), rgba(60,38,15,0)); transform: translateX(14%); }
.b-item.cai { animation: cai .75s var(--mola) backwards; }
@keyframes cai { 0% { transform: translate(calc(var(--x) - 50%), calc(var(--y) - 100% - 160px)) rotate(-8deg); opacity: 0; } 35% { opacity: 1; } }
.b-item.sai { transition: transform .35s var(--suave), opacity .3s; transform: translate(calc(var(--x) - 50%), calc(var(--y) - 100% + 30px)) scale(.6); opacity: 0; }
.b-item:active img { transform: scale(.92); }
.b-copo { position: absolute; left: 0; top: 0; height: var(--t); width: auto; transform: translate(-50%, calc(var(--y) - 100%)) translateX(var(--x)); z-index: 79; filter: drop-shadow(12px 8px 9px rgba(90,55,20,.28)); transition: height .5s var(--suave); }
.b-copo.cai { animation: cai-copo .7s var(--mola) backwards; }
@keyframes cai-copo { from { opacity: 0; transform: translate(-50%, calc(var(--y) - 100% - 40px)) translateX(var(--x)) scale(.9); } }
.ing-copo img { object-fit: contain; }
.bancada-mais { position: absolute; z-index: 99; right: 14px; top: calc(var(--seg-t) + 128px); height: 32px; padding: 0 12px; border-radius: 16px; background: var(--tinta); color: var(--creme); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; }
.bancada-vazia { position: absolute; left: 0; right: 0; bottom: 18%; text-align: center; font-family: var(--display); font-weight: 700; font-size: 17px; opacity: .45; animation: entra .6s var(--suave); }

.gaveta { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: -26px; position: relative; z-index: 4; background: var(--creme); border-radius: 28px 28px 0 0; padding-top: 16px; box-shadow: 0 -18px 40px -24px rgba(60,38,15,.35); }
.bal-rolagem { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 12px; -webkit-mask: linear-gradient(180deg, transparent 0, #000 12px); mask: linear-gradient(180deg, transparent 0, #000 12px); }

.copos { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 calc(50% - 60px) 6px; scrollbar-width: none; }
.copos::-webkit-scrollbar, .grupos::-webkit-scrollbar { display: none; }
.copo { flex: none; width: 120px; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: .5; transform: scale(.84); transition: opacity .4s, transform .5s var(--mola); }
.copo img { width: 120px; height: 120px; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(60,38,15,.25)); }
.copo span { font-size: 13px; font-weight: 700; white-space: nowrap; }
.copo[aria-checked="true"] { opacity: 1; transform: scale(1); }

.grupos { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; flex: none; }
.grupos button { flex: none; height: 40px; padding: 0 16px; border-radius: 20px; font-size: 14px; font-weight: 700; background: rgba(26,21,17,.07); transition: background .3s, color .3s; }
.grupos button[aria-selected="true"] { background: var(--tinta); color: var(--creme); }

.ingredientes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 4px; padding: 6px 10px 0; }
.ing { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 10px; position: relative; border-radius: 22px; animation: brota .5s backwards var(--mola); transition: background .3s; min-height: 44px; }
@keyframes brota { from { opacity: 0; transform: translateY(12px) scale(.9); } }
.ing img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(60,38,15,.22)); transition: transform .45s var(--mola); }
.ing span { font-size: 13.5px; font-weight: 700; text-align: center; line-height: 1.15; padding: 0 4px; }
.ing .ok { position: absolute; top: 6px; right: calc(50% - 46px); width: 24px; height: 24px; border-radius: 12px; background: var(--tinta); color: var(--creme); display: grid; place-items: center; transform: scale(0); transition: transform .4s var(--mola); }
.ing .ok svg { width: 15px; height: 15px; }
.ing[aria-pressed="true"] { background: rgba(26,21,17,.06); }
.ing[aria-pressed="true"] .ok { transform: scale(1); }
.ing:active img { transform: scale(.88); }
.voando { position: fixed; z-index: 50; pointer-events: none; object-fit: contain; filter: drop-shadow(10px 14px 12px rgba(60,38,15,.3)); }

.rodape-balcao { background: var(--creme); }
.bt-tinta { height: 58px; padding: 0 22px 0 26px; border-radius: 29px; background: var(--tinta); color: var(--creme); font-weight: 700; font-size: 17px; display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; transition: transform .2s; box-shadow: 0 16px 34px -16px rgba(26,21,17,.6); }
.bt-tinta:active { transform: scale(.97); }
.bt-tinta b { min-width: 38px; height: 38px; padding: 0 10px; margin-right: -12px; border-radius: 19px; background: var(--creme); color: var(--tinta); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 18px; }
#t-balcao .sem-foto { display: grid; place-items: center; border-radius: 50%; background: rgba(26,21,17,.08); font-family: var(--display); font-weight: 800; font-size: 30px; }
.ing .sem-foto { width: 84px; height: 84px; }

/* ---------- feed ---------- */
#t-feed { background: #000; }
.feed { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.slide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: var(--s-cor, #333); }
.s-fundo, .s-copo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.s-copo { z-index: 2; pointer-events: none; will-change: transform; }
.s-titulo { position: absolute; z-index: 1; left: 0; right: 0; top: calc(var(--seg-t) + 110px); margin: 0; text-align: center; font-family: var(--display); font-weight: 800; letter-spacing: -.055em; line-height: .82; color: #fff; padding: 0 10px; will-change: transform; text-wrap: balance; }
.s-info { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 60px 16px calc(var(--seg-b) + 16px); background: linear-gradient(180deg, transparent, rgba(0,0,0,.55) 45%, rgba(0,0,0,.72)); display: flex; flex-direction: column; gap: 12px; }
.s-linha { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.s-tag { height: 30px; padding: 0 12px; border-radius: 15px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.s-tag.pode { background: #fff; color: #111; }
.s-tag svg { width: 15px; height: 15px; }
.s-frase { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.35; opacity: .92; max-width: 34ch; }
.s-mini { display: flex; gap: 2px; margin-left: auto; }
.s-mini img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); }
.feed-topo { position: absolute; z-index: 5; top: 0; left: 0; right: 0; padding: calc(var(--seg-t) + 12px) 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; }
.feed-topo > * { pointer-events: auto; }
.estacao { display: flex; padding: 4px; border-radius: 24px; background: rgba(0,0,0,.22); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.estacao button { height: 36px; padding: 0 12px; border-radius: 18px; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; opacity: .8; transition: background .3s, color .3s, opacity .3s; }
.estacao button svg { width: 16px; height: 16px; }
.estacao button[aria-selected="true"] { background: #fff; color: #111; opacity: 1; }
.categorias { position: absolute; z-index: 5; top: calc(var(--seg-t) + 64px); left: 0; right: 0; display: flex; gap: 6px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
.categorias::-webkit-scrollbar { display: none; }
.categorias button { flex: none; height: 32px; padding: 0 14px; border-radius: 16px; font-size: 13.5px; font-weight: 700; background: rgba(0,0,0,.2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: background .3s, color .3s; }
.categorias button[aria-selected="true"] { background: #fff; color: #111; }
.busca-caixa { position: absolute; z-index: 6; top: calc(var(--seg-t) + 104px); left: 16px; right: 16px; animation: entra .3s; }
.busca-caixa input { width: 100%; height: 50px; border-radius: 25px; border: 0; padding: 0 20px; font: inherit; font-size: 16px; background: #fff; color: #111; outline: none; }
.feed-pontos { position: absolute; z-index: 4; right: 6px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 5px; }
.feed-pontos i { width: 4px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.45); transition: height .3s, background .3s; }
.feed-pontos i.on { height: 16px; background: #fff; }

/* ---------- folha da receita ---------- */
.folha-fundo { position: fixed; inset: 0; z-index: 8; background: rgba(0,0,0,.35); animation: entra .3s; }
.folha { position: fixed; z-index: 9; left: 0; right: 0; bottom: 0; max-height: 86%; display: flex; flex-direction: column; background: #FBFAF7; color: #141414; border-radius: 30px 30px 0 0; animation: subir .5s var(--suave); max-width: 560px; margin: 0 auto; }
@keyframes subir { from { transform: translateY(100%); } }
.folha-alca { width: 40px; height: 5px; border-radius: 3px; background: #D9D6CF; margin: 10px auto 0; flex: none; }
.folha-corpo { overflow-y: auto; padding: 14px 20px 8px; overscroll-behavior: contain; }
.folha-acao { padding: 10px 16px calc(var(--seg-b) + 14px); }
.r-nome { margin: 0; font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -.045em; line-height: .9; }
.r-meta { margin: 8px 0 0; font-size: 14px; color: #6B6B6B; font-weight: 500; }
.r-doses { display: flex; align-items: center; gap: 10px; margin: 18px 0 6px; }
.r-doses span { font-size: 14px; font-weight: 700; color: #6B6B6B; }
.r-doses .seg { display: flex; background: #EFEDE7; border-radius: 20px; padding: 3px; }
.r-doses button { width: 44px; height: 34px; border-radius: 17px; font-family: var(--display); font-weight: 800; font-size: 16px; color: #8A8A8A; }
.r-doses button[aria-checked="true"] { background: #fff; color: #141414; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.r-h { margin: 22px 0 6px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.r-itens { list-style: none; margin: 0; padding: 0; }
.r-item { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.r-item img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.18)); flex: none; }
.r-item .r-txt { flex: 1; font-weight: 700; font-size: 16px; }
.r-item .r-txt small { display: block; font-weight: 500; font-size: 13px; color: #8A8A8A; margin-top: 2px; }
.r-item .r-qtd { font-family: var(--display); font-weight: 800; font-size: 17px; white-space: nowrap; }
.r-item.falta img { opacity: .4; filter: grayscale(1); }
.r-item.falta .r-txt small { color: #C2410C; }
.r-passos { margin: 0; padding: 0 0 0 22px; font-size: 16px; line-height: 1.5; }
.r-passos li { padding-left: 4px; }
.r-passos li::marker { font-family: var(--display); font-weight: 800; color: var(--cor-escura); }
.r-fonte { font-size: 12.5px; color: #8A8A8A; margin: 14px 0 4px; }

/* ---------- preparo ---------- */
#t-preparo { background: var(--cor); color: var(--cor-texto, #fff); }
#t-preparo .bt-vidro { color: inherit; }
#t-preparo::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 55% at 50% 30%, rgba(255,255,255,.28), transparent 70%); }
.prep-topo { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; padding: calc(var(--seg-t) + 12px) 16px 0; }
.prep-barra { flex: 1; display: flex; gap: 4px; }
.prep-barra i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.prep-barra i.feito { background: #fff; }
.prep-palco { position: relative; flex: 1; display: grid; place-items: center; }
.prep-palco img { position: absolute; width: min(58vw, 300px); height: min(58vw, 300px); object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0,0,0,.3)); animation: cai .8s var(--mola) backwards; }
@keyframes cai { from { opacity: 0; transform: translateY(-60vh) rotate(-25deg) scale(.8); } }
.prep-texto { position: relative; z-index: 2; padding: 0 20px 8px; }
.prep-num { font-family: var(--display); font-weight: 800; font-size: 15px; opacity: .8; }
.prep-frase { margin: 6px 0 0; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -.035em; text-wrap: balance; }

.aviso { position: fixed; z-index: 20; left: 50%; bottom: calc(var(--seg-b) + 96px); transform: translate(-50%, 20px); background: #fff; color: #111; padding: 12px 18px; border-radius: 22px; font-weight: 700; font-size: 14px; opacity: 0; transition: .35s var(--suave); pointer-events: none; white-space: nowrap; }
.aviso.on { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 700px) {
  .tela, .folha { max-width: 460px; margin: 0 auto; }
  body { background: #000; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.sem-foto { width: 56px; height: 56px; border-radius: 28px; display: grid; place-items: center; background: rgba(0,0,0,.08); font-family: var(--display); font-weight: 800; font-size: 22px; flex: none; }
.prep-final { width: min(86vw, 420px) !important; height: min(112vw, 560px) !important; }
