/* ==========================================================================
   Food Play
   Conceito: tela de fliperama. Cabeçalho fixo como um HUD, categorias como
   seletor de fase, cards como cartuchos e modais que sobem como bottom sheets.
   Visual escuro com neon usado só em destaques (PLAY, botão principal, foco).
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Cores */
  --bg: #0a0612;
  --bg-2: #0f0919;
  --surface: #160e26;
  --surface-2: #21173b;
  --line: #2e2250;
  --fg: #f7f3ff;
  --fg-dim: #aaa0c8;
  --pink: #ff2e93;
  --cyan: #2de2ff;
  --yellow: #ffd23f;
  --wa: #25d366;
  --danger: #ff7a7a;

  /* Tipografia */
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-pixel: "Press Start 2P", ui-monospace, "Courier New", monospace;

  /* Medidas */
  --header-h: 64px;
  --chips-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);

  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Faixa que cobre a área do notch quando o cabeçalho está fixo */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--bg);
}

body.scroll-lock { overflow: hidden; }

/* links de âncora não ficam escondidos atrás do cabeçalho fixo */
:where(section[id], footer[id]) { scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); }

[hidden] { display: none !important; }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--yellow);
  color: #1a0f2e;
  font-weight: 700;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

.wrap {
  width: 100%;
  max-width: 1152px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--cyan);
}

.lead {
  max-width: 36ch;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.45;
  color: rgba(247, 243, 255, 0.88);
}

.noscript { padding: 24px 16px; text-align: center; }

.sprite {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

/* ==========================================================================
   Botões
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 56px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(255, 46, 147, 0.8);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(247, 243, 255, 0.7);
  color: var(--fg);
}
.btn-wa {
  background: var(--wa);
  color: #05230f;
}
.btn-block { width: 100%; }
.btn-xl { min-height: 62px; font-size: 1.4rem; }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 1.05rem; }
.btn-grow { flex: 1; min-width: 0; }

@media (hover: hover) {
  .btn-primary:hover { box-shadow: 0 0 26px rgba(255, 46, 147, 0.6), 0 10px 26px -10px rgba(255, 46, 147, 0.8); }
  .btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
  .btn-wa:hover { box-shadow: 0 0 24px rgba(37, 211, 102, 0.45); }
}

.icon { width: 24px; height: 24px; display: block; }

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) { .icon-btn:hover { border-color: var(--cyan); } }

.badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.link-btn {
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ==========================================================================
   Cabeçalho
   ========================================================================== */

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: rgba(10, 6, 18, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand { display: block; line-height: 0; }
.brand img { display: block; height: 40px; width: auto; }

.main-nav { display: none; gap: 28px; }
.main-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover { color: var(--pink); border-color: var(--pink); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.mobile-menu nav { display: grid; padding-block: 6px 10px; }
.mobile-menu a {
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}
.mobile-menu a:last-child { border-bottom: 0; }

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .menu-btn { display: none; }
  .mobile-menu { display: none !important; }
}

/* ==========================================================================
   Início
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 28px 36px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70% 55% at 10% 0%, rgba(255, 46, 147, 0.25), transparent 70%),
    radial-gradient(55% 50% at 100% 95%, rgba(45, 226, 255, 0.16), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
}

.hero-grid { display: grid; gap: 36px; align-items: center; }

.hero-logo {
  display: block;
  width: 59px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.2));
}

.hero h1 {
  margin-block: 14px 18px;
  font-size: clamp(3rem, 13.5vw, 5.2rem);
  font-weight: 800;
  line-height: 0.92;
}
.hero h1 .h1-line { display: block; }
.hero h1 .emojis { display: inline-block; font-size: 0.72em; white-space: nowrap; }

.play {
  color: var(--pink);
  text-shadow: 0 0 4px rgba(255, 46, 147, 0.95), 0 0 20px rgba(255, 46, 147, 0.6), 0 0 48px rgba(255, 46, 147, 0.35);
  animation: neon 7s infinite;
}
@keyframes neon {
  0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; }
  20%, 63% { opacity: 0.55; }
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-cta .btn { flex: 1 1 170px; }

/* Tela de fliperama */
.stage-screen {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  aspect-ratio: 4 / 3;
  padding: 14px 16px;
  overflow: hidden;
  border: 2px solid #3a2a63;
  border-radius: 22px;
  background: #07040d;
  box-shadow: 0 0 0 6px #120b21, 0 0 40px rgba(45, 226, 255, 0.18), inset 0 0 60px rgba(255, 46, 147, 0.13);
}
.stage-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px);
}
.stage-hud {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 9px;
  line-height: 1.6;
  color: var(--yellow);
}
.stage-hud b { font-weight: 400; color: var(--fg); font-variant-numeric: tabular-nums; }
.stage-play { display: flex; align-items: center; justify-content: center; gap: 5%; }
.stage-sprite { width: 27%; animation: bob 3.2s ease-in-out infinite; }
.stage-sprite:nth-child(2) { width: 36%; animation-delay: -1.1s; }
.stage-sprite:nth-child(3) { animation-delay: -2.2s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.stage-start {
  margin: 0;
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--cyan);
  animation: blink 1.4s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

@media (min-width: 900px) {
  .hero { padding-block: 56px 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; }
  .hero-logo { width: 74px; }
}

/* Faixa de categorias */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 45s linear infinite;
}
.ticker-set {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-around;
  gap: 44px;
  min-width: 100vw;
  margin: 0;
  padding: 12px 22px;
  list-style: none;
}
.ticker-set li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fg-dim);
}
.ticker-sprite { width: 28px; height: 28px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ==========================================================================
   Cardápio
   ========================================================================== */

.menu { padding-top: 56px; }

.section-head h2 {
  margin-top: 8px;
  font-size: clamp(2.6rem, 10vw, 4.4rem);
  font-weight: 800;
}
.section-head .sub {
  max-width: 52ch;
  margin: 10px 0 20px;
  color: var(--fg-dim);
}

.chips-bar {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + var(--header-h));
  z-index: 30;
  background: rgba(10, 6, 18, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-block: 1px solid var(--line);
}
.chips {
  position: relative;
  display: flex;
  gap: 8px;
  padding-block: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.chip:active { transform: scale(0.96); }
.chip.is-active {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #04121a;
  box-shadow: 0 0 18px rgba(45, 226, 255, 0.45);
}
@media (hover: hover) { .chip:not(.is-active):hover { border-color: var(--cyan); } }

.menu-body { padding-bottom: 16px; }
.menu-error { padding: 32px 0; color: var(--fg-dim); }

.cat {
  padding-top: 34px;
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + var(--chips-h) - 28px);
}
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 16px; }
.cat-head h3 { font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 800; }
.cat-note { flex-basis: 100%; margin: 0; color: var(--fg-dim); font-size: 0.95rem; }

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.group-title {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* Cores dos cartões por categoria */
.tone-pink { --tile: linear-gradient(150deg, #5c1344, #2a1048); }
.tone-amber { --tile: linear-gradient(150deg, #5c3610, #2f1a2f); }
.tone-violet { --tile: linear-gradient(150deg, #3b1b7a, #1c1040); }
.tone-cyan { --tile: linear-gradient(150deg, #0f4859, #142046); }
.tone-green { --tile: linear-gradient(150deg, #0f4b36, #142640); }

.card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  grid-template-areas: "body art" "add add";
  gap: 12px 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:active { transform: scale(0.985); }
@media (hover: hover) {
  .card:hover {
    border-color: rgba(45, 226, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(45, 226, 255, 0.2), 0 12px 30px -14px rgba(45, 226, 255, 0.45);
  }
}

.card-body { grid-area: body; min-width: 0; }
.card-name { font-size: 1.5rem; font-weight: 700; line-height: 1.02; }
.card-open {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}
/* o botão do título cobre o card inteiro, então tocar em qualquer lugar abre o modal */
.card-open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-open:focus-visible { outline: none; }
.card-open:focus-visible::after { outline: 2px solid var(--cyan); outline-offset: 2px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.tag {
  padding: 2px 9px;
  border: 1px solid rgba(45, 226, 255, 0.5);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-desc {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: var(--fg-dim);
  font-size: 0.92rem;
  line-height: 1.4;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.card-price { margin: 10px 0 0; }

.price {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}
.price-from { margin-right: 6px; color: var(--fg-dim); font-size: 0.8rem; }

.card-art {
  grid-area: art;
  display: grid;
  place-items: center;
  align-self: start;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--tile);
}
.card-art .sprite { width: 68px; height: 68px; }
.card-art img { width: 100%; height: 100%; object-fit: cover; }

.btn-add {
  position: relative;
  z-index: 1;
  grid-area: add;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn-add .plus { color: var(--pink); font-size: 1.4rem; line-height: 1; }
.btn-add:active { transform: scale(0.97); }
@media (hover: hover) { .btn-add:hover { border-color: var(--pink); background: #2b1a4a; } }

/* ==========================================================================
   Carrinho fixo, WhatsApp e aviso
   ========================================================================== */

.cart-bar {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  min-height: 62px;
  margin-inline: auto;
  padding: 0 18px;
  border: 0;
  border-radius: 18px;
  background: var(--pink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 32px -8px rgba(255, 46, 147, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  animation: rise 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition: transform 0.15s ease;
}
.cart-bar:active { transform: scale(0.98); }
.cart-bar-count {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  font-family: var(--font-pixel);
  font-size: 12px;
}
.cart-bar-label { flex: 1; min-width: 0; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.cart-bar-total { flex: none; font-variant-numeric: tabular-nums; }

.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 44;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #05230f;
  box-shadow: 0 10px 26px -6px rgba(37, 211, 102, 0.65);
  transition: transform 0.2s ease, bottom 0.25s ease;
}
.wa-float .icon { width: 28px; height: 28px; }
.wa-float:active { transform: scale(0.94); }
@media (max-width: 799px) {
  body.has-cart .wa-float { bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 78px); }
}

.bump { animation: bump 0.35s ease; }
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 88px);
  z-index: 80;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Sobre
   ========================================================================== */

.about { padding-block: 80px 24px; }
.about h2 {
  max-width: 17ch;
  margin-block: 10px 16px;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  font-weight: 800;
}

.about-local { max-width: 62ch; margin: 14px 0 0; color: var(--fg-dim); }

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.feature.is-wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 14px; }
.feature-emoji {
  display: grid;
  flex: none;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 1.8rem;
  line-height: 1;
}
.feature > div { min-width: 0; }
.feature-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.feature-text { margin: 4px 0 0; font-size: 0.92rem; color: var(--fg-dim); }
.feature-text a { color: var(--cyan); text-underline-offset: 3px; }

@media (min-width: 900px) {
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature { flex-direction: row; align-items: center; }
  .feature-label { font-size: 1.4rem; }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.shot {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--tile);
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot-sprite { width: 44%; max-width: 150px; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.25)); }
.shot figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 26px 14px 10px;
  background: linear-gradient(to top, rgba(5, 2, 12, 0.88), transparent);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   Eventos
   ========================================================================== */

.events { padding-block: 64px 24px; }
.events h2 {
  max-width: 20ch;
  margin-top: 10px;
  font-size: clamp(2.2rem, 7.5vw, 3.8rem);
  font-weight: 800;
}

.event-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .event-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.event {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.event.is-highlight {
  border-color: rgba(255, 46, 147, 0.7);
  box-shadow: 0 0 30px -10px rgba(255, 46, 147, 0.6);
}
.event-when {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 12px 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.event-day { font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1; text-transform: uppercase; }
.event-time { font-family: var(--font-pixel); font-size: 9px; color: var(--yellow); }
.event-info { min-width: 0; }
.event-info h3 { margin-top: 6px; font-size: 1.7rem; font-weight: 800; }
.event-info p { margin: 8px 0 0; color: var(--fg-dim); font-size: 0.95rem; }
.event-type {
  --c: var(--cyan);
  color: var(--c);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.type-pagode { --c: #ff8fc3; }
.type-sertanejo { --c: #ffd23f; }
.type-esporte { --c: #5dffb0; }
.type-musica { --c: #b894ff; }
.type-especial { --c: #2de2ff; }

/* ==========================================================================
   Rodapé
   ========================================================================== */

.site-footer {
  margin-top: 72px;
  padding-block: 48px 120px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img { width: 49px; height: auto; }
.footer-brand p { margin: 0; color: var(--fg-dim); }
.footer-title {
  margin-bottom: 12px;
  color: var(--fg-dim);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.footer-list, .hours { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.footer-list a, .footer-map { display: inline-block; padding: 4px 0; text-underline-offset: 3px; }
.footer-address { display: grid; margin-bottom: 8px; font-style: normal; }
.footer-map { color: var(--cyan); font-weight: 600; }
.hours li { display: flex; justify-content: space-between; gap: 16px; }
.hours li span:first-child { color: var(--fg-dim); }
.footer-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--fg-dim); font-size: 0.85rem; }
.footer-base p { margin: 0; }

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; }
}

/* ==========================================================================
   Diálogos (produto e carrinho)
   ========================================================================== */

dialog {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--fg);
}
dialog::backdrop {
  background: rgba(5, 2, 12, 0.74);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fade-in 0.2s ease;
}
dialog.is-closing::backdrop { animation: fade-out 0.19s ease forwards; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

.sheet-dialog[open], .drawer-dialog[open] {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet, .drawer {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background: var(--surface);
  animation: sheet-up 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet { max-width: 560px; max-height: min(92dvh, 880px); }
.drawer { max-width: 560px; height: min(94dvh, 100%); }

dialog.is-closing .sheet, dialog.is-closing .drawer { animation: sheet-down 0.19s ease-in forwards; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheet-down { to { transform: translateY(40px); opacity: 0; } }
@keyframes slide-left { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slide-right { to { transform: translateX(40px); opacity: 0; } }

@media (min-width: 720px) {
  .sheet-dialog[open] { align-items: center; }
  .sheet { border-bottom: 1px solid var(--line); border-radius: 26px; }
}
@media (min-width: 800px) {
  .drawer-dialog[open] { align-items: stretch; justify-content: flex-end; }
  .drawer {
    max-width: 480px;
    height: 100%;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    animation-name: slide-left;
  }
  dialog.is-closing .drawer { animation-name: slide-right; }
}

/* Modal do produto */
.sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 6, 18, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
}

.pd-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.pd-art {
  display: grid;
  place-items: center;
  height: 190px;
  overflow: hidden;
  background: var(--tile);
}
.pd-art:has(img) { height: min(82vw, 340px); background: var(--surface-2); }
.pd-art img { width: 100%; height: 100%; object-fit: cover; }
.pd-sprite { width: 132px; height: 132px; }
.pd-content { display: grid; gap: 14px; padding: 18px 20px 24px; }
.pd-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.pd-head h3 { font-size: 2.3rem; font-weight: 800; }
.pd-price { margin: 0; }
.pd-content .tags { margin: 0; }
.pd-desc { margin: 0; color: var(--fg-dim); }
.pd-groups { display: grid; gap: 22px; }
.pd-groups:empty { display: none; }

.pd-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.pd-footer .btn {
  justify-content: space-between;
  min-height: 56px;
  padding: 0 16px;
  font-size: 1.1rem;
  line-height: 1.05;
  text-align: left;
}
.btn-sep { display: none; }
#pd-total { flex: none; font-size: 1.3rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 440px) {
  .pd-footer { gap: 10px; padding-inline: 16px; }
  .pd-footer .btn { padding: 0 12px; font-size: 1rem; }
  #pd-total { font-size: 1.2rem; }
}

/* Escolhas do produto */
.group { display: grid; gap: 10px; }
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.group-label {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.req {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-dim);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.req.is-required { border-color: rgba(255, 46, 147, 0.65); color: #ff93c6; }
.opts { display: grid; gap: 8px; }

.opt, .method, .pay { position: relative; display: block; cursor: pointer; }
.opt input, .method input, .pay input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.opt-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.opt-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--fg-dim);
  border-radius: 50%;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.opt input[type="checkbox"] + .opt-box .opt-mark { border-radius: 6px; }
.opt-mark::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: inherit;
  background: #04121a;
  transform: scale(0);
  transition: transform 0.15s ease;
}
.opt input:checked + .opt-box {
  border-color: var(--cyan);
  background: rgba(45, 226, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(45, 226, 255, 0.3), 0 0 20px -8px rgba(45, 226, 255, 0.6);
}
.opt input:checked + .opt-box .opt-mark { border-color: var(--cyan); background: var(--cyan); }
.opt input:checked + .opt-box .opt-mark::after { transform: scale(1); }
.opt input:focus-visible + .opt-box,
.method input:focus-visible + .method-box,
.pay input:focus-visible + .pay-box { outline: 2px solid var(--cyan); outline-offset: 2px; }
.opt-label { flex: 1; min-width: 0; font-weight: 500; }
.opt-price { color: var(--yellow); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.group.has-error .opt-box { border-color: var(--danger); }
.group-error, .field-error { margin: 0; color: var(--danger); font-size: 0.9rem; font-weight: 500; }

/* Quantidade */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
}
.step-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.step-btn:active:not(:disabled) { transform: scale(0.92); }
@media (hover: hover) { .step-btn:hover:not(:disabled) { background: var(--surface-2); } }
.step-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.step-qty { min-width: 30px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.stepper-lg .step-btn { width: 48px; height: 48px; }

/* Gaveta do carrinho */
.drawer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px 20px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 { flex: 1; font-size: 1.9rem; font-weight: 800; }
.drawer-body { flex: 1; padding: 16px 20px 24px; overflow-y: auto; overscroll-behavior: contain; }
.drawer-foot {
  display: grid;
  gap: 10px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.totals {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.totals strong { color: var(--yellow); font-size: 2.1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.totals-small { color: var(--fg-dim); font-size: 1.05rem; }

.lines { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
}
.line-main { min-width: 0; }
.line-name { margin-bottom: 6px; font-size: 1.4rem; font-weight: 700; line-height: 1.05; }
.line-meta { margin: 2px 0 0; color: var(--fg-dim); font-size: 0.9rem; line-height: 1.35; overflow-wrap: anywhere; }
.line-meta span { color: var(--fg); }
.line-actions { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 6px; }
.note-editor { display: grid; gap: 8px; margin-top: 8px; }
.note-actions { display: flex; gap: 8px; }
.line-side { display: grid; justify-items: end; align-content: start; gap: 10px; }
.line-total { margin: 0; color: var(--yellow); font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.line-unit { margin: -4px 0 0; color: var(--fg-dim); font-size: 0.8rem; font-variant-numeric: tabular-nums; }

.empty, .done {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 36px 4px;
  text-align: center;
}
.empty-sprite, .done-sprite { width: 96px; height: auto; }
.empty-title, .done-title { margin: 8px 0 0; font-family: var(--font-display); font-size: 2rem; font-weight: 800; text-transform: uppercase; }
.empty-text, .done-text { max-width: 34ch; margin: 0; color: var(--fg-dim); }
.done > .btn { margin-top: 6px; }
.msg-preview { width: 100%; text-align: left; }
.msg-preview summary { padding: 10px 0; color: var(--cyan); font-weight: 600; cursor: pointer; }
.msg-preview pre {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  font: inherit;
  font-size: 0.9rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.demo-banner {
  width: 100%;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px dashed var(--yellow);
  border-radius: 12px;
  color: var(--yellow);
  font-size: 0.88rem;
  line-height: 1.4;
  text-align: left;
}
.demo-banner code { font-size: 0.85em; }

/* Checkout */
.summary { margin-bottom: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.summary summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.summary summary::-webkit-details-marker { display: none; }
.summary summary strong { color: var(--yellow); font-variant-numeric: tabular-nums; }
.summary ul { display: grid; gap: 8px; margin: 0; padding: 0 14px 14px; list-style: none; color: var(--fg-dim); font-size: 0.92rem; }
.summary li { display: flex; justify-content: space-between; gap: 12px; }

.co-group { display: grid; gap: 10px; margin-bottom: 20px; }
.co-title { font-size: 1.5rem; font-weight: 700; line-height: 1.05; }
.co-sub { margin: 8px 0 0; font-weight: 600; }
.co-note { margin: 0 0 16px; color: var(--fg-dim); font-size: 0.9rem; }

.method-grid, .pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.method-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 100px;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--bg-2);
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.choice-emoji { font-size: 2.1rem; line-height: 1; }
.choice-label { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.05; letter-spacing: 0.04em; text-transform: uppercase; }
.pay-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.pay-box .choice-label { font-size: 1.15rem; }
.method input:checked + .method-box,
.pay input:checked + .pay-box {
  border-color: var(--pink);
  background: rgba(255, 46, 147, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 46, 147, 0.4), 0 0 22px -6px rgba(255, 46, 147, 0.6);
}

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) 108px; gap: 12px; }
.field label { font-size: 0.95rem; font-weight: 600; }
.opt-tag { margin-left: 4px; color: var(--fg-dim); font-size: 0.8rem; font-weight: 400; }

.input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea.input { min-height: 88px; padding: 12px 14px; resize: vertical; }
.input::placeholder { color: #8a80ab; }
.input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(45, 226, 255, 0.22); }
.input[aria-invalid="true"] { border-color: var(--danger); }

/* ==========================================================================
   Preferências de movimento
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-track { animation: none; }
  .stage-start { animation: none; }
}
