:root { --rule: #2A1410; }
html { scroll-behavior: smooth; }

/* =========================================================
   3AFRANJI — section titles, photo rows, combo
   ========================================================= */
.sec-title {
  font-weight: 800;
  font-size: clamp(2.1rem, 6.5vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0;
}
.sec-title .hl {
  display: inline-block;
  position: relative;
  color: #CE1B1E;
  padding: 0.04em 0.28em 0.02em;
  z-index: 0;
}
.sec-title .hl::before {
  content: '';
  position: absolute;
  inset: 0.2em -0.01em 0.14em;
  background: #F7B500;
  border-radius: 4px;
  transform: skewX(-5deg) rotate(-0.7deg);
  z-index: -1;
}

/* photo menu row */
.add-row.photo-row {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.7rem 0.6rem;
  margin: 0 -0.5rem;
}
.row-photo {
  flex: none;
  width: 78px; height: 78px;
  border-radius: 999px;
  overflow: hidden;
  background: #FBEFD2;
  border: 2px solid rgba(42,20,16,0.9);
  box-shadow: 0 3px 0 0 rgba(42,20,16,0.9), 0 8px 16px -10px rgba(42,20,16,0.6);
  transition: transform .2s ease;
}
@media (min-width: 640px) { .row-photo { width: 86px; height: 86px; } }
.row-photo img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; }
.add-row.photo-row:hover .row-photo { transform: scale(1.04) rotate(-2deg); }
.row-text { flex: 1 1 auto; min-width: 0; }
.row-top { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.row-side {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}
.row-side .add-plus { margin-left: 0; }
.lbp { font-size: 0.62em; color: #9E7E54; font-weight: 800; letter-spacing: 0.02em; }

/* combo flag under a row */
.combo-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  margin-top: 0.5rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9E1410;
  background: rgba(247,181,0,0.22);
  border: 1px solid rgba(158,20,16,0.28);
  padding: 0.22rem 0.55rem 0.2rem;
  border-radius: 999px;
}
.combo-flag svg { width: 0.74rem; height: 0.74rem; }

/* combo ribbon (hero) */
.combo-ribbon {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.2rem;
  text-align: left;
  background: #CE1B1E;
  color: #FFFBF0;
  border: 2px solid #8E1410;
  border-radius: 16px;
  box-shadow: 0 4px 0 0 #8E1410, 0 16px 28px -16px rgba(206,27,30,0.75);
}
.combo-ribbon-tag {
  flex: none;
  width: 2.8rem; height: 2.8rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px;
  color: #9E1410;
  background: #F7B500;
  box-shadow: 0 3px 0 0 rgba(110,15,12,0.5);
}
.combo-ribbon-tag svg { width: 1.45rem; height: 1.45rem; }
.combo-ribbon-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.combo-ribbon-head {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.18rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.combo-ribbon-price { color: #F7B500; }
.combo-ribbon-sub {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.8rem;
  line-height: 1.32;
  color: rgba(255,251,240,0.92);
}

/* brand divider dot */
.brand-dot {
  width: 12px; height: 12px;
  border-radius: 999px;
  background: #CE1B1E;
  box-shadow: 0 0 0 4px rgba(247,181,0,0.55);
}

body {
  background-color: #F4EDDD;
  /* warm, sun-washed tortilla paper */
  background-image:
    radial-gradient(circle at 16% 8%,  rgba(200,129,10,0.07) 0, transparent 40%),
    radial-gradient(circle at 86% 14%, rgba(247,181,0,0.08) 0, transparent 42%),
    radial-gradient(circle at 50% 96%, rgba(206,27,30,0.06) 0, transparent 48%),
    radial-gradient(circle at 50% 50%, rgba(255,253,247,0.55) 0, transparent 72%);
}

/* ---- classic dot-leader menu row ---- */
.menu-line { display: flex; align-items: baseline; width: 100%; gap: 0; }
.dots {
  flex: 1 1 auto;
  border-bottom: 2px dotted rgba(42,20,16,0.34);
  position: relative;
  top: -0.32em;
  margin: 0 0.55rem;
  min-width: 1.2rem;
}
.price { font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: 0.01em; }

/* ---- chunky festive frame ---- */
.frame {
  position: relative;
  border: 2px solid rgba(42,20,16,0.9);
  border-radius: 14px;
  box-shadow: 0 4px 0 0 rgba(42,20,16,0.9), 0 10px 22px -12px rgba(42,20,16,0.4);
}
.frame-soft {
  border: 1.5px solid rgba(42,20,16,0.5);
  border-radius: 999px;
  box-shadow: 0 2px 0 0 rgba(42,20,16,0.45);
}

/* eyebrow stamp */
.eyebrow {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
}

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: 0.24rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.5rem; line-height: 1;
  letter-spacing: 0.1em; text-indent: 0.1em;
  padding: 0.22rem 0.46rem 0.2rem;
  border: 1.5px solid currentColor; border-radius: 999px;
  vertical-align: middle; transform: translateY(-0.08em);
  white-space: nowrap;
}
.badge svg { width: 0.66rem; height: 0.66rem; }

/* macro chips — highlighted protein / carb content */
.macros {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-top: 0.5rem;
}
.macro {
  display: inline-flex; align-items: center; gap: 0.34rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700; font-size: 0.64rem; line-height: 1;
  letter-spacing: 0.02em;
  padding: 0.36rem 0.6rem 0.34rem 0.44rem;
  border-radius: 999px; border: 1.5px solid;
  white-space: nowrap;
}
.macro b {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800; font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}
.macro svg {
  width: 0.92rem; height: 0.92rem;
  flex: 0 0 auto; opacity: 0.92;
}
.macro-protein {
  color: #8E1410;
  background: rgba(206,27,30,0.13);
  border-color: rgba(206,27,30,0.42);
}
.macro-carb {
  color: #9A6307;
  background: rgba(247,181,0,0.18);
  border-color: rgba(247,181,0,0.5);
}

/* section hero photos — framed, whole, never cropped */
.sec-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 0.85rem;
}
/* two-photo heroes (e.g. TACOS): sit them on a shared baseline as one tidy cluster */
.sec-hero:has(.sec-photo + .sec-photo) {
  justify-content: flex-end;
}
.sec-photo {
  display: block;
  overflow: hidden;
  max-width: 100%;
  background: #FBEFD2;
  border: 2px solid rgba(42,20,16,0.9);
  border-radius: 16px;
  box-shadow: 0 4px 0 0 rgba(42,20,16,0.9), 0 16px 30px -16px rgba(42,20,16,0.55);
}
.sec-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}
/* on phones, center the hero photo under the header text for a balanced stack */
@media (max-width: 639px) {
  .sec-hero,
  .sec-hero:has(.sec-photo + .sec-photo) { justify-content: center; }
}

/* sticky nav pill */
.nav-link {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em; text-indent: 0.08em;
  text-transform: uppercase;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .12s ease;
}
.nav-link:hover { transform: translateY(-1px); }
.nav-link.is-active { color: #FFFBF0; background-color: #CE1B1E; border-color:#CE1B1E; }

/* social buttons — shared by navbar & footer (Instagram / TikTok) */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 999px;
  border: 1.5px solid rgba(42,20,16,0.25);
  color: #2A1410;
  background: #FFFBF0;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease,
              transform .18s ease, box-shadow .2s ease;
}
.social-btn:hover { transform: translateY(-1px); box-shadow: 0 7px 16px -8px rgba(42,20,16,0.5); }
.social-btn:active { transform: translateY(0); box-shadow: none; }
/* Instagram — warm brand-gradient nod (gold → red → maroon) */
.social-ig:hover {
  background: linear-gradient(135deg, #F7B500 0%, #CE1B1E 55%, #9E1410 100%);
  border-color: #9E1410;
  color: #FFFBF0;
}
/* TikTok — signature dark fill */
.social-tt:hover {
  background: #2A1410;
  border-color: #2A1410;
  color: #FFFBF0;
}

/* hide scrollbar */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

section[id] { scroll-margin-top: 132px; }

.menu-item { break-inside: avoid; }

/* papel-picado bunting strip (triangles generated in script.js) */
.papel {
  display: flex;
  gap: 5px;
  padding: 4px 7px 0;
  height: 17px;
  align-items: flex-start;
  overflow: hidden;
}
.papel span {
  flex: 1 1 auto;
  height: 13px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  opacity: 0.92;
}

/* content is always visible — no animation-dependent visibility (robust in frozen-animation sandboxes) */
.reveal { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid #9E1410; outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =========================================================
   MENU ROWS — tap to customize
   ========================================================= */
.add-row {
  cursor: pointer;
  position: relative;
  border-radius: 8px;
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  transition: background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.add-row:hover { background-color: rgba(200,129,10,0.08); }
.add-row:focus-visible { outline: 2px solid #9E1410; outline-offset: 2px; }
.add-row:hover .add-plus,
.add-row:focus-visible .add-plus { background: #C8810A; color: #FFFBF0; border-color: #C8810A; transform: rotate(90deg); }
.add-plus {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.6rem;
  border: 1.5px solid rgba(200,129,10,0.6);
  border-radius: 999px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
  text-align: center;
  color: #C8810A;
  opacity: 1;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .25s ease;
}
.add-plus svg { width: 0.8rem; height: 0.8rem; display: block; }
@keyframes rowFlash {
  0%   { background-color: rgba(206,27,30,0.16); }
  100% { background-color: transparent; }
}
.add-row.added { animation: rowFlash .6s ease; }
.add-row.added .add-plus { background: #CE1B1E; border-color: #CE1B1E; color: #FFFBF0; transform: scale(1.12); }
.add-row.added .price { color: #CE1B1E; }

/* floating "+n" cue on add */
.plus-one {
  position: absolute;
  right: -0.55rem;
  top: 50%;
  pointer-events: none;
  z-index: 2;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  color: #CE1B1E;
  animation: plusOne 0.95s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes plusOne {
  0%   { opacity: 0; transform: translate(0, calc(-50% + 5px)) scale(.7); }
  25%  { opacity: 1; transform: translate(0, -50%) scale(1.12); }
  100% { opacity: 0; transform: translate(0, calc(-50% - 22px)) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .plus-one { animation-duration: .4s; } }

/* =========================================================
   ITEM CUSTOMIZE SHEET
   ========================================================= */
#sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(26,14,11,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
  z-index: 80;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
#sheet-overlay.is-open { opacity: 1; pointer-events: auto; }

#item-sheet {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 0;
  width: min(100%, 480px);
  pointer-events: none;
  transform: translateX(-50%) translateY(110%);
  background: #F4EDDD;
  border: 2px solid rgba(42,20,16,0.9);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 50px -12px rgba(42,20,16,0.4);
  display: flex; flex-direction: column;
  max-height: 88vh;
  transition: transform .42s cubic-bezier(.22,1,.36,1);
}
#item-sheet.is-open { transform: translateX(-50%) translateY(0); pointer-events: auto; }
@media (min-width: 640px) {
  #item-sheet {
    bottom: auto; top: 50%;
    border-radius: 20px;
    border-bottom: 2px solid rgba(42,20,16,0.9);
    transform: translate(-50%, -44%) scale(.96);
    opacity: 0;
    transition: transform .34s cubic-bezier(.22,1,.36,1), opacity .26s ease;
    box-shadow: 0 30px 60px -18px rgba(42,20,16,0.5);
  }
  #item-sheet.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.sheet-grip {
  width: 42px; height: 5px; border-radius: 999px;
  background: rgba(42,20,16,0.22);
  margin: 10px auto 0;
}
@media (min-width: 640px) { .sheet-grip { display: none; } }

.sheet-scroll { overflow-y: auto; overflow-x: hidden; padding: 0.5rem 1.4rem 0; -ms-overflow-style: none; scrollbar-width: none; }
.sheet-scroll::-webkit-scrollbar { width: 0; height: 0; }

.chip {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.42rem 0.8rem;
  border: 1.5px solid rgba(42,20,16,0.28);
  border-radius: 999px;
  color: #2A1410;
  background: #FFFBF0;
  cursor: pointer;
  white-space: nowrap;
  transition: all .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: #C8810A; color: #9E1410; }
.chip.is-on {
  background: #CE1B1E; border-color: #CE1B1E; color: #FFFBF0;
}
.chip.is-on:hover { color: #FFFBF0; }

#note-input {
  width: 100%;
  resize: none;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.95rem;
  color: #2A1410;
  background: #FFFBF0;
  border: 1.5px solid rgba(42,20,16,0.28);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  line-height: 1.4;
  transition: border-color .18s ease, box-shadow .18s ease;
}
#note-input::placeholder { color: rgba(42,20,16,0.4); font-style: italic; }
#note-input:focus { outline: none; border-color: #C8810A; box-shadow: 0 0 0 3px rgba(200,129,10,0.14); }

.step-btn {
  width: 2.4rem; height: 2.4rem;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.35rem; font-weight: 700; line-height: 1;
  color: #2A1410;
  border-radius: 999px;
  transition: background-color .16s ease, color .16s ease;
}
.step-btn:hover { background: rgba(200,129,10,0.12); color: #9E1410; }

.sheet-add {
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  width: 100%;
  background: #CE1B1E;
  color: #FFFBF0;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  box-shadow: 0 4px 0 0 #8E1410;
  cursor: pointer;
  transition: background-color .18s ease, transform .12s ease, box-shadow .12s ease;
}
.sheet-add:hover { background: #C8810A; box-shadow: 0 4px 0 0 #9A6307; }
.sheet-add:active { transform: translateY(3px); box-shadow: 0 1px 0 0 #8E1410; }

/* =========================================================
   CART — floating pill & drawer
   ========================================================= */
#cart-pill {
  position: fixed;
  left: 50%;
  bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1.1rem 0.6rem 1rem;
  background: #CE1B1E;
  border: 2px solid #8E1410;
  border-radius: 999px;
  box-shadow: 0 10px 30px -6px rgba(142,20,16,0.55);
  color: #FFFBF0;
  cursor: pointer;
  transform: translateX(-50%) translateY(175%);
  opacity: 0;
  pointer-events: none;
  transition: transform .5s cubic-bezier(.22,1,.36,1), opacity .4s ease, background-color .2s ease;
}
#cart-pill.is-visible { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
#cart-pill:hover { background: #B0161B; }
#cart-pill .cart-bag { display: flex; color: #F7B500; }
#cart-pill .cart-bag svg { width: 1.35rem; height: 1.35rem; }
@media (min-width: 640px) { #cart-pill { bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px)); gap: 0.95rem; padding: 0.65rem 1.3rem 0.65rem 1.15rem; } }
@keyframes pillBump {
  0%   { transform: translateX(-50%) translateY(0); }
  35%  { transform: translateX(-50%) translateY(-7px) scale(1.035); }
  100% { transform: translateX(-50%) translateY(0); }
}
#cart-pill.bump { animation: pillBump .45s ease; }

#cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,14,11,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 60;
  will-change: opacity;
}
#cart-overlay.is-open { opacity: 1; pointer-events: auto; }
#cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(92vw, 430px);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
  z-index: 70;
  box-shadow: -14px 0 40px rgba(42,20,16,0.22);
  will-change: transform;
}
#cart-drawer.is-open { transform: translateX(0); }
.qbtn {
  width: 1.9rem;
  height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.15rem;
  line-height: 1;
  color: #2A1410;
  transition: color .2s ease;
}
.qbtn:hover { color: #9E1410; }

/* note shown / edited on a cart line */
.cart-note {
  font-style: italic;
  color: #7A3B22;
  background: rgba(200,129,10,0.08);
  border-left: 2px solid rgba(200,129,10,0.6);
  border-radius: 0 6px 6px 0;
  padding: 0.25rem 0.5rem;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  line-height: 1.35;
}
.cart-edit {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #C8810A;
  cursor: pointer;
}
.cart-edit:hover { color: #9E1410; text-decoration: underline; }

/* order-discovery hint */
#order-hint { transition: opacity .5s ease, transform .5s ease, max-height .6s ease, margin .5s ease; }
#order-hint.dismissed { opacity: 0; transform: translateY(-6px); pointer-events: none; max-height: 0; margin: 0; overflow: hidden; }
.add-hint-coin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1.5px solid #C8810A;
  border-radius: 999px;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
  color: #C8810A;
  animation: hintCoin 2.6s ease-in-out 0.4s 3;
}
.add-hint-coin svg { width: 0.95rem; height: 0.95rem; display: block; }
@keyframes hintCoin {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(200,129,10,0); }
  50%      { transform: scale(1.12) rotate(90deg); box-shadow: 0 0 0 5px rgba(200,129,10,0.1); }
}
@media (prefers-reduced-motion: reduce) { .add-hint-coin { animation: none; } }

/* hold-to-clear basket */
.clear-hold {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.9rem;
  padding: 0.55rem 0.6rem;
  border: 1.5px solid rgba(42,20,16,0.2);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .2s ease;
}
.clear-hold:hover { border-color: rgba(158,20,16,0.5); }
.clear-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0%;
  background: rgba(158,20,16,0.15);
}
.clear-hold.holding .clear-fill { width: 100%; transition: width .9s linear; }
.clear-ic {
  position: relative;
  width: 0.85rem; height: 0.85rem;
  color: rgba(42,20,16,0.5);
  transition: color .2s ease;
}
.clear-label {
  position: relative;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.01em;
  color: rgba(42,20,16,0.5);
  transition: color .2s ease;
}
.clear-hold:hover .clear-label, .clear-hold:hover .clear-ic,
.clear-hold.holding .clear-label, .clear-hold.holding .clear-ic { color: #9E1410; }
@media (prefers-reduced-motion: reduce) { .clear-hold.holding .clear-fill { transition: none; width: 100%; } }

/* back-to-top floating button */
#to-top {
  position: fixed;
  right: 1.15rem;
  bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  width: 2.8rem; height: 2.8rem;
  display: flex; align-items: center; justify-content: center;
  background: #FFFBF0;
  border: 1.5px solid rgba(42,20,16,0.28);
  border-radius: 999px;
  box-shadow: 0 8px 22px -8px rgba(42,20,16,0.4);
  color: #2A1410;
  cursor: pointer;
  opacity: 0;
  transform: translateY(150%) scale(.9);
  pointer-events: none;
  transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .35s ease, background-color .2s ease, color .2s ease;
}
#to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
#to-top:hover { background: #F7B500; color: #2A1410; border-color: #C8810A; }
#to-top svg { width: 1.15rem; height: 1.15rem; }
@media (min-width: 640px) {
  #to-top { right: 1.6rem; bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px)); width: 3rem; height: 3rem; }
}

/* =========================================================
   MIX & MATCH — coupon button
   ========================================================= */
.deal-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  width: 100%;
  margin: 0.25rem 0 1.5rem;
  padding: 0.95rem 1.15rem;
  text-align: left;
  cursor: pointer;
  color: #2A1410;
  background:
    repeating-linear-gradient(135deg, rgba(247,181,0,0.13) 0 12px, rgba(247,181,0,0.04) 12px 24px),
    #FFFBF0;
  border: 2px dashed rgba(158,20,16,0.55);
  border-radius: 14px;
  box-shadow: 0 4px 0 0 rgba(42,20,16,0.12);
  -webkit-tap-highlight-color: transparent;
  transition: transform .14s ease, box-shadow .14s ease, border-color .2s ease, background-color .2s ease;
}
.deal-btn:hover {
  border-color: #9E1410;
  box-shadow: 0 6px 0 0 rgba(42,20,16,0.16);
  transform: translateY(-1px);
}
.deal-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 0 rgba(42,20,16,0.12); }
.deal-notch {
  position: absolute;
  top: 50%;
  width: 16px; height: 16px;
  margin-top: -8px;
  background: #F4EDDD;
  border: 2px dashed rgba(158,20,16,0.55);
  border-radius: 999px;
}
.deal-notch-l { left: -9px; }
.deal-notch-r { right: -9px; }
.deal-tag {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  width: 2.7rem; height: 2.7rem;
  border-radius: 12px;
  color: #FFFBF0;
  background: #9E1410;
  box-shadow: 0 3px 0 0 #6E0F0C;
}
.deal-tag svg { width: 1.4rem; height: 1.4rem; }
.deal-text { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.deal-eyebrow {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.56rem;
  letter-spacing: 0.2em; text-indent: 0.2em;
  text-transform: uppercase;
  color: #C8810A;
}
.deal-head {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: #2A1410;
}
.deal-price { color: #CE1B1E; }
.deal-sub {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.78rem;
  color: #7A3B22;
  line-height: 1.3;
}
.deal-go {
  flex: none;
  margin-left: auto;
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem;
  border-radius: 999px;
  color: #CE1B1E;
  background: rgba(206,27,30,0.1);
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.deal-go svg { width: 1.1rem; height: 1.1rem; }
.deal-btn:hover .deal-go { background: #CE1B1E; color: #FFFBF0; transform: translateX(3px); }

/* =========================================================
   COMBO PICKER — reuses item-sheet chrome
   ========================================================= */
#combo-overlay {
  position: fixed; inset: 0;
  background: rgba(26,14,11,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
  z-index: 80;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
#combo-overlay.is-open { opacity: 1; pointer-events: auto; }
#combo-sheet {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 0;
  width: min(100%, 480px);
  pointer-events: none;
  transform: translateX(-50%) translateY(110%);
  background: #F4EDDD;
  border: 2px solid rgba(42,20,16,0.9);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 50px -12px rgba(42,20,16,0.4);
  display: flex; flex-direction: column;
  max-height: 88vh;
  transition: transform .42s cubic-bezier(.22,1,.36,1);
}
#combo-sheet.is-open { transform: translateX(-50%) translateY(0); pointer-events: auto; }
@media (min-width: 640px) {
  #combo-sheet {
    bottom: auto; top: 50%;
    border-radius: 20px;
    border-bottom: 2px solid rgba(42,20,16,0.9);
    transform: translate(-50%, -44%) scale(.96);
    opacity: 0;
    transition: transform .34s cubic-bezier(.22,1,.36,1), opacity .26s ease;
    box-shadow: 0 30px 60px -18px rgba(42,20,16,0.5);
  }
  #combo-sheet.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.combo-opt {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 0.85rem;
  background: #FFFBF0;
  border: 1.5px solid rgba(42,20,16,0.18);
  border-radius: 13px;
  transition: border-color .18s ease, background-color .18s ease;
}
.combo-opt.has-qty { border-color: #CE1B1E; background: rgba(206,27,30,0.06); }
.combo-opt-name {
  flex: 1 1 auto;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: #2A1410;
}
.combo-opt-name small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: #9E7E54;
  margin-top: 0.05rem;
}
.combo-step {
  flex: none;
  display: flex; align-items: center; gap: 0.2rem;
  border: 1.5px solid rgba(42,20,16,0.22);
  border-radius: 999px;
  padding: 0 0.2rem;
}
.combo-step button {
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  color: #2A1410;
  border-radius: 999px;
  transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}
.combo-step button svg { width: 0.85rem; height: 0.85rem; }
.combo-step button:hover { background: rgba(200,129,10,0.12); color: #9E1410; }
.combo-step button[disabled] { opacity: 0.32; pointer-events: none; }
.combo-step .combo-qty {
  width: 1.4rem; text-align: center;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800; font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
  color: #2A1410;
}
.combo-count {
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #7A3B22;
}
.combo-count b { color: #CE1B1E; }
.sheet-add[disabled] {
  background: rgba(42,20,16,0.18);
  box-shadow: 0 4px 0 0 rgba(42,20,16,0.12);
  cursor: not-allowed;
  pointer-events: none;
}

/* =========================================================
   EL MACHO — size upgrade toggle in item sheet
   ========================================================= */
.macho-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.85rem 0.9rem;
  text-align: left;
  background: linear-gradient(135deg, #FFFBF0 0%, #FFF2D4 100%);
  border: 1.5px solid rgba(200,129,10,0.4);
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 3px 0 0 rgba(200,129,10,0.28);
  transition: border-color .18s ease, background-color .18s ease,
              transform .16s cubic-bezier(.22,1,.36,1), box-shadow .16s ease;
}
/* shine sweep on hover */
.macho-toggle::before {
  content: '';
  position: absolute;
  top: 0; left: -65%;
  width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
.macho-toggle:hover {
  border-color: #C8810A;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 0 rgba(200,129,10,0.32), 0 14px 22px -14px rgba(200,129,10,0.65);
}
.macho-toggle:hover::before { animation: machoShine .7s ease; }
.macho-toggle:active { transform: translateY(0); box-shadow: 0 2px 0 0 rgba(200,129,10,0.28); }
@keyframes machoShine {
  0%   { left: -65%; opacity: 0; }
  25%  { opacity: 1; }
  100% { left: 135%; opacity: 0; }
}
.macho-toggle.is-on {
  border-color: #CE1B1E;
  background: linear-gradient(135deg, #FFF2D4 0%, rgba(206,27,30,0.09) 100%);
  box-shadow: 0 3px 0 0 rgba(206,27,30,0.3);
}
.macho-toggle.is-on:hover {
  box-shadow: 0 5px 0 0 rgba(206,27,30,0.32), 0 14px 22px -14px rgba(206,27,30,0.6);
}

/* "Best value" deal tag */
.macho-tag {
  position: absolute;
  top: 0; right: 0;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 0.54rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2A1410;
  background: #F7B500;
  padding: 0.2rem 0.5rem 0.16rem;
  border-radius: 0 13px 0 11px;
  box-shadow: 0 2px 7px -2px rgba(200,129,10,0.85);
}
.macho-toggle.is-on .macho-tag { background: #FFD23F; }

.macho-emoji {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 11px;
  color: #FFFBF0;
  background: linear-gradient(150deg, #F7B500 0%, #C8810A 100%);
  box-shadow: 0 2px 0 0 #9A6307, 0 5px 11px -3px rgba(200,129,10,0.7);
  transition: transform .25s cubic-bezier(.18,1.5,.4,1), background .2s ease, box-shadow .2s ease;
}
.macho-toggle:hover .macho-emoji { animation: machoWiggle .5s ease; }
@keyframes machoWiggle {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-9deg) scale(1.06); }
  60%      { transform: rotate(7deg) scale(1.06); }
}
.macho-toggle.is-on .macho-emoji {
  background: linear-gradient(150deg, #E8392B 0%, #CE1B1E 100%);
  box-shadow: 0 2px 0 0 #8E1410, 0 5px 13px -3px rgba(206,27,30,0.78);
  animation: machoPop .42s cubic-bezier(.18,1.6,.4,1);
}
@keyframes machoPop {
  0%   { transform: scale(.8); }
  55%  { transform: scale(1.18) rotate(-6deg); }
  100% { transform: scale(1); }
}
.macho-emoji svg { width: 1.2rem; height: 1.2rem; }
.macho-copy { flex: 1 1 auto; min-width: 0; }
.macho-title {
  display: block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.94rem;
  color: #2A1410;
}
.macho-title .macho-up {
  color: #CE1B1E;
  font-family: 'Baloo 2', sans-serif;
}
.macho-desc {
  display: block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.75rem;
  color: #9E7E54;
  margin-top: 0.12rem;
}
.macho-desc .macho-plus {
  color: #CE1B1E;
  font-weight: 800;
  padding: 0 0.05rem;
}
.macho-switch {
  flex: none;
  position: relative;
  width: 2.5rem; height: 1.45rem;
  border-radius: 999px;
  background: rgba(42,20,16,0.2);
  transition: background-color .2s ease;
}
.macho-switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: calc(1.45rem - 4px); height: calc(1.45rem - 4px);
  border-radius: 999px;
  background: #FFFBF0;
  box-shadow: 0 1px 3px rgba(42,20,16,0.3);
  transition: transform .2s cubic-bezier(.22,1,.36,1);
}
.macho-toggle.is-on .macho-switch { background: #CE1B1E; }
.macho-toggle.is-on .macho-switch::after { transform: translateX(calc(2.5rem - 1.45rem)); }

/* =========================================================
   BOOST YOUR MEAL — paid add-ons + free toppings (burritos)
   ========================================================= */
.boost-list { display: flex; flex-direction: column; gap: 0.5rem; }
.boost-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.62rem 0.8rem;
  text-align: left;
  background: #FFFBF0;
  border: 1.5px solid rgba(42,20,16,0.18);
  border-radius: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .16s ease, background-color .16s ease;
}
.boost-row:hover { border-color: #C8810A; }
.boost-row.is-on { border-color: #CE1B1E; background: rgba(206,27,30,0.07); }
.boost-check {
  flex: none;
  width: 1.35rem; height: 1.35rem;
  border-radius: 7px;
  border: 1.5px solid rgba(42,20,16,0.3);
  display: flex; align-items: center; justify-content: center;
  color: #FFFBF0;
  background: transparent;
  transition: background-color .16s ease, border-color .16s ease;
}
.boost-check svg { width: 0.82rem; height: 0.82rem; opacity: 0; transition: opacity .16s ease; }
.boost-row.is-on .boost-check { background: #CE1B1E; border-color: #CE1B1E; }
.boost-row.is-on .boost-check svg { opacity: 1; }
.boost-name {
  flex: 1 1 auto;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #2A1410;
}
.boost-price {
  flex: none;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: #CE1B1E;
  font-variant-numeric: tabular-nums;
}

.free-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.free-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.4rem 0.78rem 0.4rem 0.6rem;
  border: 1.5px solid rgba(42,20,16,0.22);
  border-radius: 999px;
  background: #FFFBF0;
  color: #2A1410;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.free-chip:hover { border-color: #C8810A; }
.free-ic {
  display: inline-flex;
  width: 0.82rem; height: 0.82rem;
  color: #C8810A;
  transition: color .18s ease, transform .22s ease;
}
.free-ic svg { width: 100%; height: 100%; display: block; }
.free-chip.is-on { background: #CE1B1E; border-color: #CE1B1E; color: #FFFBF0; }
.free-chip.is-on .free-ic { color: #FFFBF0; transform: rotate(135deg); }

/* extras shown on a cart line */
.cart-extras { margin-top: 0.4rem; display: flex; flex-direction: column; gap: 0.16rem; }
.cart-extra {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.76rem;
  color: #7A3B22;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  line-height: 1.3;
}
.cart-extra .ex-dot { color: #CE1B1E; font-weight: 800; }
.cart-extra .ex-up { color: #CE1B1E; margin-left: auto; font-variant-numeric: tabular-nums; }

/* =========================================================
   ORDER CELEBRATION — fiesta overlay before WhatsApp
   ========================================================= */
#order-fiesta {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,253,247,0.97) 0%, rgba(251,243,224,0.93) 55%, rgba(246,233,204,0.95) 100%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: opacity .32s ease;
}
#order-fiesta.is-open { opacity: 1; pointer-events: auto; }
#order-fiesta.is-leaving { opacity: 0; }

.fiesta-rays {
  position: absolute;
  left: 50%; top: 45%;
  width: 150vmax; height: 150vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg,
    rgba(247,181,0,0.16) 0deg 9deg,
    rgba(247,181,0,0) 9deg 18deg);
  opacity: 0;
  transition: opacity .55s ease .08s;
  z-index: 0;
}
#order-fiesta.is-open .fiesta-rays { opacity: 1; animation: fiestaRaySpin 18s linear infinite; }
@keyframes fiestaRaySpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.fiesta-confetti { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cf {
  position: absolute;
  left: 50%; top: 45%;
  opacity: 0;
  will-change: transform, opacity;
  animation-name: confettiFly;
  animation-timing-function: cubic-bezier(.2,.55,.3,1);
  animation-fill-mode: forwards;
}
.cf-t { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.cf-c { border-radius: 999px; }
.cf-r { border-radius: 2px; }
@keyframes confettiFly {
  0%   { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  34%  { transform: translate(calc(-50% + var(--bx)), calc(-50% + var(--by))) rotate(var(--r1)); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--fx)), calc(-50% + var(--fy))) rotate(var(--r2)); opacity: 0; }
}

.fiesta-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
}
.fiesta-badge {
  position: relative;
  width: clamp(118px, 30vw, 166px);
  height: clamp(118px, 30vw, 166px);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
}
#order-fiesta.is-open .fiesta-badge {
  animation: fiestaBadgePop .72s cubic-bezier(.18,1.5,.4,1) .1s forwards;
}
@keyframes fiestaBadgePop {
  0%   { transform: scale(0) rotate(-20deg); }
  62%  { transform: scale(1.12) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.fiesta-disc {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #FFFBF0;
  border: 2.5px solid rgba(42,20,16,0.92);
  box-shadow: 0 10px 0 0 rgba(42,20,16,0.92), 0 24px 44px -16px rgba(42,20,16,0.5);
}
.fiesta-logo {
  position: relative;
  width: 74%;
  height: auto;
  user-select: none;
}
#order-fiesta.is-open .fiesta-logo { animation: fiestaBob 2.4s ease-in-out 0.8s infinite; }
@keyframes fiestaBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-5px) rotate(-2deg); }
}
.fiesta-seal {
  position: absolute;
  right: -4px; bottom: -2px;
  width: 2.6rem; height: 2.6rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  color: #FFFBF0;
  background: #CE1B1E;
  border: 2.5px solid #FFFBF0;
  box-shadow: 0 4px 12px -4px rgba(142,20,16,0.7);
  transform: scale(0);
}
#order-fiesta.is-open .fiesta-seal {
  animation: fiestaSealPop .5s cubic-bezier(.18,1.6,.4,1) .58s forwards;
}
@keyframes fiestaSealPop {
  0%   { transform: scale(0) rotate(-30deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.fiesta-seal svg { width: 1.3rem; height: 1.3rem; }

.fiesta-kicker {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 9vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #9E1410;
  opacity: 0;
  transform: translateY(14px);
}
.fiesta-title {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 3.6vw, 1.4rem);
  letter-spacing: -0.01em;
  color: #2A1410;
  margin-top: 0.7rem;
  opacity: 0;
  transform: translateY(14px);
}
.fiesta-sub {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(0.85rem, 2.6vw, 0.96rem);
  color: #7A3B22;
  margin-top: 0.4rem;
  max-width: 22rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(14px);
}
#order-fiesta.is-open .fiesta-kicker { animation: fiestaRise .5s ease .34s forwards; }
#order-fiesta.is-open .fiesta-title  { animation: fiestaRise .5s ease .46s forwards; }
#order-fiesta.is-open .fiesta-sub    { animation: fiestaRise .5s ease .56s forwards; }
@keyframes fiestaRise { to { opacity: 1; transform: none; } }

.fiesta-dots {
  display: flex;
  gap: 0.42rem;
  margin-top: 1.15rem;
  opacity: 0;
}
#order-fiesta.is-open .fiesta-dots { animation: fiestaRise .5s ease .68s forwards; }
.fiesta-dots span {
  width: 0.5rem; height: 0.5rem;
  border-radius: 999px;
  background: #CE1B1E;
  animation: fiestaDot 1s ease-in-out infinite;
}
.fiesta-dots span:nth-child(2) { animation-delay: .15s; background: #C8810A; }
.fiesta-dots span:nth-child(3) { animation-delay: .3s;  background: #F7B500; }
@keyframes fiestaDot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  #order-fiesta.is-open .fiesta-rays { animation: none; }
  #order-fiesta.is-open .fiesta-logo { animation: none; }
  #order-fiesta.is-open .fiesta-badge,
  #order-fiesta.is-open .fiesta-seal,
  #order-fiesta.is-open .fiesta-kicker,
  #order-fiesta.is-open .fiesta-title,
  #order-fiesta.is-open .fiesta-sub,
  #order-fiesta.is-open .fiesta-dots {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .cf { display: none; }
  .macho-toggle:hover { transform: none; }
  .macho-toggle:hover::before,
  .macho-toggle:hover .macho-emoji,
  .macho-toggle.is-on .macho-emoji { animation: none; }
}

/* =========================================================
   TWEAKS — discreet in-page settings (gear + panel)
   ========================================================= */
#tweak-gear {
  position: fixed;
  left: 1.15rem;
  bottom: calc(1.15rem + env(safe-area-inset-bottom, 0px));
  z-index: 46;
  width: 2.8rem; height: 2.8rem;
  display: flex; align-items: center; justify-content: center;
  background: #FFFBF0;
  border: 1.5px solid rgba(42,20,16,0.28);
  border-radius: 999px;
  box-shadow: 0 8px 22px -8px rgba(42,20,16,0.4);
  color: #7A3B22;
  cursor: pointer;
  opacity: 0.82;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease, transform .35s ease;
}
#tweak-gear:hover { opacity: 1; background: #F7B500; color: #2A1410; border-color: #C8810A; }
#tweak-gear.is-active { opacity: 1; background: #CE1B1E; border-color: #8E1410; color: #FFFBF0; }
#tweak-gear.is-active svg { transform: rotate(60deg); }
#tweak-gear svg { width: 1.25rem; height: 1.25rem; transition: transform .4s cubic-bezier(.22,1,.36,1); }
@media (min-width: 640px) {
  #tweak-gear { left: 1.6rem; bottom: calc(1.6rem + env(safe-area-inset-bottom, 0px)); width: 3rem; height: 3rem; }
}

#tweak-panel {
  position: fixed;
  left: 1.15rem;
  bottom: calc(4.4rem + env(safe-area-inset-bottom, 0px));
  z-index: 47;
  width: min(20rem, calc(100vw - 2.3rem));
  background: #F4EDDD;
  border: 2px solid rgba(42,20,16,0.9);
  border-radius: 16px;
  box-shadow: 0 4px 0 0 rgba(42,20,16,0.9), 0 22px 44px -16px rgba(42,20,16,0.5);
  padding: 0.95rem 1rem 1.05rem;
  opacity: 0;
  transform: translateY(10px) scale(.97);
  transform-origin: bottom left;
  pointer-events: none;
  transition: opacity .24s ease, transform .28s cubic-bezier(.22,1,.36,1);
}
#tweak-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 640px) {
  #tweak-panel { left: 1.6rem; bottom: calc(5.1rem + env(safe-area-inset-bottom, 0px)); }
}
.tweak-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.7rem;
  margin-bottom: 0.7rem;
  border-bottom: 1.5px dotted rgba(42,20,16,0.3);
}
.tweak-h {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: #2A1410;
  line-height: 1;
}
.tweak-head [data-tweak-close] {
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.6rem; line-height: 1;
  color: rgba(42,20,16,0.5);
  width: 1.6rem; height: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  margin: -0.2rem -0.2rem 0 0;
  transition: color .18s ease;
}
.tweak-head [data-tweak-close]:hover { color: #9E1410; }
.tweak-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.65rem 0.7rem;
  text-align: left;
  background: #FFFBF0;
  border: 1.5px solid rgba(42,20,16,0.2);
  border-radius: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .18s ease, background-color .18s ease;
}
.tweak-row:hover { border-color: #C8810A; }
.tweak-row.is-on { border-color: #CE1B1E; background: rgba(206,27,30,0.07); }
.tweak-copy { flex: 1 1 auto; min-width: 0; }
.tweak-title {
  display: block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: #2A1410;
}
.tweak-desc {
  display: block;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.74rem;
  color: #9E7E54;
  line-height: 1.3;
  margin-top: 0.1rem;
}
.tweak-row .macho-switch { flex: none; }
.tweak-row.is-on .macho-switch { background: #CE1B1E; }
.tweak-row.is-on .macho-switch::after { transform: translateX(calc(2.5rem - 1.45rem)); }
