/* =========================================================
   BITE CUPS: LA CAFETERÍA — style.css
   Paleta y tipografía de bitecupsags.netlify.app
   Desktop primero, adaptado a tablet y móvil.
   ========================================================= */

:root {
  /* Paleta del sitio */
  --bg: #3c1704;
  --bg-2: #4a1f07;
  --surface: #522509;
  --choco-600: #5a2a0e;
  --choco-800: #2e1103;
  --choco-900: #220c02;
  --cream: #f7f0da;
  --cream-2: #efe4c6;
  --beige: #e7d3b3;
  --caramel: #e8a33d;
  --mustard: #f2b134;
  --lime: #aecb4f;
  --lime-deep: #8fae35;
  --terra: #c2400f;
  --terra-soft: #d95f2a;
  --cocoa: #8c6849;
  --text: #f7f0da;
  --text-dim: #ece0c6;
  --text-mute: #d4bd9c;
  --ink: #2e1103;
  --plastic: #8fbfd4;

  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  --radius: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 18px 50px -20px rgba(0, 0, 0, .6);
  --shadow-lift: 0 30px 70px -25px rgba(0, 0, 0, .7);
  --ease: cubic-bezier(.22, 1, .36, 1);

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

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

html, body {
  margin: 0;
  height: 100%;
  background: var(--choco-900);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

button, a.btn { font-family: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

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

/* ---------------------------------------------------------
   APP
   --------------------------------------------------------- */
.app {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(232, 163, 61, .16), transparent 45%),
    radial-gradient(ellipse at 90% 100%, rgba(174, 203, 79, .12), transparent 50%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
  touch-action: manipulation;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.screen.is-active { display: flex; animation: screen-in .35s var(--ease); }
@keyframes screen-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.app.is-paused *, .app.is-paused *::before, .app.is-paused *::after { animation-play-state: paused !important; }
.app.is-paused .overlay, .app.is-paused .overlay * { animation-play-state: running !important; }

/* ---------------------------------------------------------
   BOTONES
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--ink);
  background: var(--cream);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .28);
  transition: transform .1s var(--ease), box-shadow .1s, filter .15s;
  user-select: none;
}
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .28); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--caramel { background: var(--caramel); color: var(--ink); }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--ghost {
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 2px rgba(247, 240, 218, .45);
}
.btn--ghost:active:not(:disabled) { box-shadow: inset 0 0 0 2px rgba(247, 240, 218, .45); }
.btn--lg { min-height: 56px; font-size: 1.15rem; padding: 14px 30px; }
.btn--xl { min-height: 64px; font-size: 1.35rem; padding: 16px 34px; }
.btn--pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }

.icon-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(247, 240, 218, .1);
  color: var(--cream);
  font-size: 1.2rem;
  box-shadow: inset 0 0 0 2px rgba(247, 240, 218, .2);
}
.icon-btn:active { transform: scale(.94); }

.kicker {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--caramel);
}
.tagline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--lime);
}

/* ---------------------------------------------------------
   MENÚ
   --------------------------------------------------------- */
.screen--menu {
  padding: calc(16px + var(--safe-top)) clamp(16px, 4vw, 56px) calc(20px + var(--safe-bottom));
  gap: 20px;
}
.topbar { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.logo img { width: 34px; height: 34px; object-fit: contain; }
.logo sup { font-size: .6rem; opacity: .7; }

.menu__hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.menu__copy { display: flex; flex-direction: column; gap: 16px; }
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  color: var(--cream);
}
.hero-title span { display: block; }
.hero-title__accent { color: var(--lime); }
.hero-sub { margin: 0; max-width: 520px; font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 700; color: var(--text-dim); line-height: 1.45; }
.menu__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.menu__cups {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2%;
  height: clamp(180px, 34vw, 380px);
}
.menu__cups img {
  height: 78%;
  width: auto;
  max-width: 32%;
  object-fit: contain;
  filter: drop-shadow(0 22px 22px rgba(0, 0, 0, .5));
  animation: float-cup 3s ease-in-out infinite;
}
.menu__cups img:nth-child(2) { height: 100%; animation-delay: -1s; }
.menu__cups img:nth-child(3) { animation-delay: -2s; }
@keyframes float-cup {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}

.record-strip {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(247, 240, 218, .06);
  box-shadow: inset 0 0 0 1px rgba(247, 240, 218, .1);
}
.record-strip__title { margin: 0 0 10px; font-family: var(--font-display); font-weight: 600; letter-spacing: .1em; font-size: .8rem; color: var(--text-mute); }
.record-strip__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.rec { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.rec__icon { font-size: 1.2rem; }
.rec strong { font-family: var(--font-display); font-size: 1.45rem; color: var(--cream); line-height: 1; }
.rec span:last-child { font-size: .78rem; font-weight: 800; color: var(--text-mute); }

/* ---------------------------------------------------------
   JUEGO — HUD
   --------------------------------------------------------- */
.screen--game { overflow: hidden; }

.hud {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 22px);
  padding: calc(8px + var(--safe-top)) clamp(10px, 2vw, 24px) 8px;
  background: var(--choco-800);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .25);
  position: relative;
  z-index: 5;
}
.hud__label {
  display: block;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .12em;
  color: var(--text-mute);
  white-space: nowrap;
}
.hud__label b { color: var(--cream); }
.hud strong {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.1;
  white-space: nowrap;
}
.hud__level { min-width: 0; }
.hud__level strong { font-size: 1.1rem; color: var(--caramel); }
.hud__goal { min-width: 120px; }
.meter { height: 7px; margin-top: 3px; border-radius: 99px; background: rgba(247, 240, 218, .14); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--lime); border-radius: inherit; transition: width .4s var(--ease); }
.hud__stat { min-width: 64px; }
.hud__combo .mult {
  font-size: .8rem;
  padding: 2px 7px;
  border-radius: 99px;
  vertical-align: middle;
  background: rgba(247, 240, 218, .12);
}
.hud__combo.is-hot .mult { background: var(--caramel); color: var(--ink); }
.hud__combo.is-fire .mult { background: var(--terra-soft); color: var(--cream); animation: pulse .6s ease-in-out infinite; }
.hud__eco strong { color: var(--lime); }
.hud .sound-toggle { margin-left: auto; }
.bump { animation: bump .35s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ---------------------------------------------------------
   JUEGO — PISO (clientes + residuos)
   --------------------------------------------------------- */
.floor {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 14px;
  padding: 14px clamp(10px, 2vw, 24px);
}

.customers {
  --cols: 3;
  --rows: 1;
  --gap: 12px;
  position: relative;
  min-height: 0;
  width: 100%;
  max-width: calc(var(--cols) * 240px + (var(--cols) - 1) * var(--gap));
  margin: 0 auto;
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows), min(230px, calc((100% - (var(--rows) - 1) * var(--gap)) / var(--rows))));
  align-content: center;
}

.slot {
  position: relative;
  min-height: 0;
  border-radius: var(--radius-md);
  background: rgba(247, 240, 218, .035);
  box-shadow: inset 0 0 0 2px rgba(247, 240, 218, .07);
  container-type: size;
}
.slot::before {
  content: "🪑";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  opacity: .12;
}

/* Tarjeta de cliente */
.cust {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  padding: min(10px, 5cqh) min(10px, 5cqw) min(8px, 4cqh);
  border: 0;
  border-radius: var(--radius-md);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  box-shadow: 0 6px 0 rgba(0, 0, 0, .3), inset 0 0 0 3px transparent;
  transition: box-shadow .2s, transform .15s var(--ease);
  text-align: center;
}
.cust:active:not(:disabled) { transform: scale(.97); }
.cust.is-entering { animation: cust-in .45s var(--ease); }
@keyframes cust-in {
  from { transform: translateY(-30px) scale(.7); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.cust__head { position: relative; line-height: 1; }
.cust__avatar {
  display: grid;
  place-items: center;
  width: min(54px, 30cqw, 25cqh);
  height: min(54px, 30cqw, 25cqh);
  font-size: min(34px, 19cqw, 16cqh);
  border-radius: 50%;
  background: var(--beige);
  animation: idle 2.2s ease-in-out infinite;
}
@keyframes idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.cust__mood {
  position: absolute;
  right: -8px;
  bottom: -4px;
  font-size: min(20px, 11cqw, 10cqh);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3));
}
.cust__name {
  font-weight: 900;
  font-size: min(13px, 8.5cqw, 7cqh);
  color: var(--choco-600);
  line-height: 1.05;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket {
  display: flex;
  gap: 4px;
  width: 100%;
  justify-content: center;
}
.ticket__item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: min(5px, 3cqh) 4px;
  border-radius: 8px;
  background: #fff;
  border: 2px dashed var(--cocoa);
}
.ticket__drink, .ticket__cup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-weight: 900;
  font-size: min(12px, 7.6cqw, 7cqh);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticket__drink span { font-size: 1.2em; }
.ticket__cup { color: var(--terra); }
.ticket__cup img { width: min(18px, 11cqw, 10cqh); height: auto; flex: 0 0 auto; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
.cust.is-double .ticket__drink, .cust.is-double .ticket__cup { font-size: min(10px, 5.4cqw, 6cqh); }
.ticket__check {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-size: 1.6em;
  font-weight: 900;
  color: var(--ink);
  background: rgba(174, 203, 79, .88);
  border-radius: 6px;
}
.ticket__item.is-done { border-style: solid; border-color: var(--lime-deep); }
.ticket__item.is-done .ticket__check { display: grid; }

.patience {
  width: 100%;
  height: min(9px, 5cqh);
  border-radius: 99px;
  background: rgba(46, 17, 3, .15);
  overflow: hidden;
}
.patience i {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--lime-deep);
  transform-origin: left center;
}
.cust__status {
  font-size: min(11px, 6.5cqw, 6.5cqh);
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--lime-deep);
}

.cust.is-warn { box-shadow: 0 6px 0 rgba(0, 0, 0, .3), inset 0 0 0 3px var(--mustard); }
.cust.is-warn .patience i { background: var(--mustard); }
.cust.is-warn .cust__status { color: #9a5a00; }
.cust.is-warn .cust__avatar { animation: fidget .5s ease-in-out infinite; }
.cust.is-critical { box-shadow: 0 6px 0 rgba(0, 0, 0, .3), inset 0 0 0 3px var(--terra); animation: critical .5s ease-in-out infinite; }
.cust.is-critical .patience i {
  background: repeating-linear-gradient(-45deg, var(--terra) 0 6px, var(--terra-soft) 6px 12px);
}
.cust.is-critical .cust__status { color: var(--terra); }
.cust.is-critical .cust__avatar { animation: fidget .25s ease-in-out infinite; }
@keyframes fidget { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes critical { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }

.cust.is-match {
  box-shadow: 0 6px 0 rgba(0, 0, 0, .3), inset 0 0 0 4px var(--lime-deep), 0 0 0 4px rgba(174, 203, 79, .45);
}
.cust.is-match::after {
  content: "👉 ENTRÉGALO";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--lime);
  color: var(--ink);
  font-size: .64rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .25);
}

.cust.is-wrong { animation: shake .4s ease; box-shadow: 0 6px 0 rgba(0, 0, 0, .3), inset 0 0 0 4px var(--terra); }
.cust.is-partial { animation: happy-hop .4s var(--ease); }
.cust.is-served {
  pointer-events: none;
  background: #eef4d6;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .3), inset 0 0 0 4px var(--lime-deep);
  animation: served .65s var(--ease) forwards;
}
.cust.is-served .cust__status { color: var(--lime-deep); }
.cust.is-served .patience { visibility: hidden; }
.cust.is-lost {
  pointer-events: none;
  background: #d9cfc0;
  filter: grayscale(.6);
  animation: lost .65s ease-in forwards;
}
.cust.is-lost .cust__status { color: var(--terra); }
.cust.is-dismissed { pointer-events: none; animation: dismissed .6s ease forwards; }

@keyframes happy-hop { 0%, 100% { transform: none; } 40% { transform: translateY(-8px); } }
@keyframes served {
  0% { transform: none; opacity: 1; }
  30% { transform: translateY(-10px) scale(1.04); opacity: 1; }
  70% { transform: translateY(-4px); opacity: 1; }
  100% { transform: translateY(-26px) scale(.9); opacity: 0; }
}
@keyframes lost {
  0% { transform: none; opacity: 1; }
  25% { transform: rotate(-3deg); }
  100% { transform: translateY(30px) rotate(4deg) scale(.9); opacity: 0; }
}
@keyframes dismissed { to { transform: translateY(-14px); opacity: 0; } }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
.shake { animation: shake .4s ease; }

/* Burbuja de diálogo */
.cust__bubble {
  position: absolute;
  top: 6px;
  left: 50%;
  z-index: 3;
  width: calc(100% - 12px);
  padding: 6px 10px;
  border-radius: 12px;
  background: var(--choco-800);
  color: var(--cream);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 6px) scale(.8);
}
.cust__bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  border: 6px solid transparent;
  border-top-color: var(--choco-800);
  transform: translateX(-50%);
}
.cust__bubble.is-visible { animation: bubble 1.5s var(--ease) forwards; }
@keyframes bubble {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(.8); }
  12%, 85% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -4px) scale(1); }
}

/* Lateral: bote de plástico */
.side { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.waste {
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(46, 17, 3, .6);
  box-shadow: inset 0 0 0 2px rgba(143, 191, 212, .25);
}
.waste__head { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; font-weight: 900; letter-spacing: .1em; color: var(--text-mute); }
.waste__head b { font-family: var(--font-display); font-size: 1.1rem; color: var(--cream); letter-spacing: 0; }
.waste__bin {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 10px 0 8px;
  padding: 8px;
  border-radius: 10px 10px 16px 16px;
  background: linear-gradient(180deg, rgba(143, 191, 212, .08), rgba(143, 191, 212, .18));
  border: 2px solid rgba(143, 191, 212, .35);
  border-top-width: 5px;
}
.waste__slot {
  aspect-ratio: 40 / 64;
  border-radius: 6px;
  border: 2px dashed rgba(143, 191, 212, .3);
  display: grid;
  place-items: center;
}
.waste__slot.is-full { border-style: solid; border-color: transparent; }
.waste__slot.drop .plastic-svg { animation: drop-in .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes drop-in { from { transform: translateY(-20px) rotate(-20deg) scale(1.3); } to { transform: none; } }
.plastic-svg { width: 100%; height: 100%; overflow: visible; }
.waste__hint { margin: 0; font-size: .75rem; font-weight: 800; color: var(--text-mute); }
.waste.is-danger { box-shadow: inset 0 0 0 2px var(--terra-soft); animation: danger-glow 1s ease-in-out infinite; }
.waste.is-danger .waste__hint { color: var(--terra-soft); }
@keyframes danger-glow { 50% { box-shadow: inset 0 0 0 2px var(--terra-soft), 0 0 18px rgba(217, 95, 42, .5); } }

/* Tarjetas "Dato Bite Cups" */
.fact-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(174, 203, 79, .12);
  box-shadow: inset 0 0 0 2px rgba(174, 203, 79, .35);
  text-align: left;
}
.fact-card__icon { font-size: 1.8rem; line-height: 1; }
.fact-card__body { display: flex; flex-direction: column; gap: 2px; font-size: .9rem; font-weight: 700; color: var(--text-dim); }
.fact-card__kicker { font-size: .66rem; font-weight: 900; letter-spacing: .14em; color: var(--lime); }
.fact-card__body strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--cream); }
.fact-card--mini .fact-card__body { font-size: .8rem; }

/* Intro de nivel */
.level-intro {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 26px;
  border-radius: var(--radius);
  background: var(--choco-800);
  box-shadow: var(--shadow-lift), inset 0 0 0 2px var(--caramel);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -20px) scale(.9);
  max-width: calc(100% - 32px);
}
.level-intro.is-visible { animation: intro 2.3s var(--ease) forwards; }
@keyframes intro {
  0% { opacity: 0; transform: translate(-50%, -20px) scale(.8); }
  12%, 80% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -12px) scale(.95); }
}
.level-intro__num { font-size: .75rem; font-weight: 900; letter-spacing: .2em; color: var(--text-mute); }
.level-intro strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--caramel); }
.level-intro__sub { font-weight: 900; color: var(--lime); letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; }
.level-intro em { font-size: .85rem; color: var(--text-dim); }

/* Coach (tutorial contextual) */
.coach {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 10px 20px;
  border-radius: 20px;
  background: var(--caramel);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 8px 0 rgba(0, 0, 0, .3);
  transform: translateX(-50%);
  pointer-events: none;
}
.coach.is-in { animation: coach-in .35s var(--ease); }
@keyframes coach-in { from { transform: translate(-50%, 16px) scale(.9); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
.coach strong { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.1; }
.coach span { font-size: .85rem; font-weight: 800; }
.coach span:empty { display: none; }

.is-focus { z-index: 4; animation: focus-ring 1s ease-in-out infinite !important; }
@keyframes focus-ring {
  0%, 100% { box-shadow: 0 0 0 3px var(--caramel), 0 0 0 7px rgba(232, 163, 61, .25); }
  50% { box-shadow: 0 0 0 5px var(--caramel), 0 0 0 14px rgba(232, 163, 61, .1); }
}

/* ---------------------------------------------------------
   JUEGO — BARRA DE PREPARACIÓN
   --------------------------------------------------------- */
.station {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(12px, 2vw, 28px);
  padding: 12px clamp(10px, 2vw, 24px) calc(12px + var(--safe-bottom));
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 2px, transparent 2px 70px),
    linear-gradient(180deg, var(--choco-600), var(--choco-800));
  box-shadow: 0 -6px 0 rgba(0, 0, 0, .22);
}
.station__group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.station__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .1em;
  color: var(--text-mute);
}
.station__row { display: flex; gap: 10px; }
.station__drinks .station__row { flex-wrap: nowrap; }

.kbd {
  position: absolute;
  top: 5px;
  left: 7px;
  font-size: .62rem;
  font-weight: 900;
  opacity: .45;
}
@media (hover: none) { .kbd { display: none; } }

.cup-btn, .drink-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .35);
  transition: transform .1s var(--ease), box-shadow .1s, background .15s;
}
.cup-btn:active, .drink-btn:active { transform: translateY(4px) scale(.97); box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.cup-btn { width: clamp(84px, 8vw, 112px); padding: 8px 6px; }
.cup-btn__img { display: block; width: clamp(52px, 5vw, 70px); aspect-ratio: 577 / 679; }
.cup-btn__img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .35)); pointer-events: none; }
.cup-btn__name { font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.cup-btn.is-selected, .drink-btn.is-selected {
  background: var(--lime);
  box-shadow: 0 5px 0 var(--lime-deep), inset 0 0 0 3px var(--ink);
}
.cup-btn.is-selected::after, .drink-btn.is-selected::after {
  content: "✓";
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-weight: 900;
  font-size: .85rem;
}

.drink-btn {
  flex: 1 1 0;
  min-width: 0;
  max-width: 120px;
  padding: 10px 6px 8px;
  background: linear-gradient(180deg, var(--cream) 60%, color-mix(in srgb, var(--drink) 22%, var(--cream)));
}
.drink-btn__emoji { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1; }
.drink-btn__name { font-family: var(--font-display); font-weight: 700; font-size: .9rem; }
.drink-btn__temp { font-size: .6rem; font-weight: 900; letter-spacing: .1em; color: var(--choco-600); }
.drink-btn[data-drink="frappe"] .drink-btn__temp { color: #2f6f8c; }

.nudge { animation: nudge .35s var(--ease); }
@keyframes nudge { 0% { transform: scale(1); } 40% { transform: scale(1.08) rotate(-2deg); } 100% { transform: scale(1); } }

/* Charola */
.station__tray { align-items: stretch; }
.tray {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: rgba(247, 240, 218, .08);
  box-shadow: inset 0 0 0 2px rgba(247, 240, 218, .18);
}
.tray[data-state="ready"] { box-shadow: inset 0 0 0 3px var(--lime); background: rgba(174, 203, 79, .12); }
.tray__cup {
  position: relative;
  width: 56px;
  aspect-ratio: 577 / 679;
  flex: 0 0 auto;
}
.tray__cup img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(0, 0, 0, .4)); position: relative; z-index: 1; }
.tray__cup.pop { animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.4) translateY(-20px); } to { transform: none; } }
.tray__placeholder {
  position: absolute;
  inset: 8% 4%;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 2px dashed rgba(247, 240, 218, .35);
  font-size: 1.4rem;
  opacity: .8;
}
.tray:not([data-state="empty"]) .tray__placeholder { display: none; }
.tray__liquid {
  position: absolute;
  z-index: 2;
  left: 14%;
  width: 72%;
  top: 6%;
  height: 21%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 35%, color-mix(in srgb, var(--drink) 70%, #fff), var(--drink) 70%);
  transform: scale(0);
  pointer-events: none;
}
.tray[data-state="ready"] .tray__liquid { transform: scale(1); }
.tray__cup.is-pouring .tray__liquid { animation: fill var(--pour-ms, 380ms) ease-out forwards; }
@keyframes fill { from { transform: scale(.1); } to { transform: scale(1); } }
.tray__stream {
  position: absolute;
  z-index: 3;
  left: 46%;
  width: 8%;
  top: -34%;
  height: 46%;
  border-radius: 4px;
  background: var(--drink);
  transform-origin: top center;
  transform: scaleY(0);
}
.tray__cup.is-pouring .tray__stream { animation: stream var(--pour-ms, 380ms) linear forwards; }
@keyframes stream { 0% { transform: scaleY(0); } 20%, 80% { transform: scaleY(1); } 100% { transform: scaleY(0); opacity: 0; } }
.tray__cup.is-hot::after {
  content: "〰";
  position: absolute;
  z-index: 3;
  top: -30%;
  left: 50%;
  transform: translateX(-50%) rotate(90deg);
  font-size: 1rem;
  color: var(--cream);
  opacity: .7;
  animation: steam 1.4s ease-in-out infinite;
}
@keyframes steam { 0% { opacity: 0; top: -10%; } 50% { opacity: .8; } 100% { opacity: 0; top: -45%; } }
.tray__cup.is-cold::after { content: "🧊"; position: absolute; z-index: 3; top: -6%; right: -14%; font-size: .9rem; }
.tray__label { display: flex; flex-direction: column; min-width: 0; }
.tray__label strong { font-family: var(--font-display); font-weight: 700; font-size: .95rem; line-height: 1.15; color: var(--cream); }
.tray__label span { font-size: .78rem; font-weight: 800; color: var(--text-mute); }
.tray[data-state="ready"] .tray__label span { color: var(--lime); }

.btn--eat {
  min-height: 40px;
  padding: 8px 14px;
  font-size: .9rem;
  background: var(--mustard);
}

/* ---------------------------------------------------------
   FX
   --------------------------------------------------------- */
.fx { position: absolute; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.float {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--cream);
  text-shadow: 0 2px 0 var(--choco-900), 0 0 12px rgba(0, 0, 0, .6);
  white-space: nowrap;
  animation: float-up 1.1s ease-out forwards;
}
.float--points { color: var(--mustard); font-size: 1.6rem; }
.float--money { color: var(--lime); font-size: 1.2rem; animation-delay: .08s; opacity: 0; }
.float--success { font-size: 1.15rem; color: var(--cream); }
.float--bad { color: #ff9a7a; }
.float--lost { color: #ff9a7a; font-size: 1.1rem; }
.float--plastic { color: #bfe3f2; font-size: 1rem; }
.float--eat { color: var(--mustard); font-size: 1.1rem; }
@keyframes float-up {
  0% { transform: translate(-50%, -20%) scale(.6); opacity: 0; }
  15% { transform: translate(-50%, -60%) scale(1.12); opacity: 1; }
  100% { transform: translate(-50%, -230%) scale(1); opacity: 0; }
}
.float--big {
  font-size: clamp(2rem, 6vw, 3.6rem);
  animation: float-big 1.4s var(--ease) forwards;
}
.float--combo { color: var(--caramel); }
.float--record { color: var(--mustard); }
.float--lost.float--big { color: #ff8a65; font-size: clamp(1.8rem, 5vw, 3rem); }
@keyframes float-big {
  0% { transform: translate(-50%, -50%) scale(.3) rotate(-8deg); opacity: 0; }
  22% { transform: translate(-50%, -50%) scale(1.15) rotate(3deg); opacity: 1; }
  70% { transform: translate(-50%, -50%) scale(1) rotate(-1deg); opacity: 1; }
  100% { transform: translate(-50%, -85%) scale(.95); opacity: 0; }
}

.particle { position: absolute; border-radius: 3px; will-change: transform, opacity; }
.particle--emoji { background: none !important; font-size: 1.3rem; }
.flyer { position: absolute; will-change: transform; }
.fly-cup { width: 44px; }
.fly-cup img { width: 100%; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .4)); }
.fly-coin { font-size: 1.4rem; }
.fly-plastic { width: 30px; height: 48px; }
.eat-cup {
  position: absolute;
  width: 56px;
  transform: translate(-50%, -50%);
  animation: eat-it .7s ease-in forwards;
}
.eat-cup img { width: 100%; }
@keyframes eat-it {
  0% { transform: translate(-50%, -50%) scale(1); clip-path: inset(0 0 0 0); }
  30% { transform: translate(-50%, -60%) scale(1.1); clip-path: inset(0 0 0 0 round 0); }
  55% { clip-path: polygon(0 0, 60% 0, 45% 20%, 70% 30%, 50% 45%, 100% 50%, 100% 100%, 0 100%); }
  100% { transform: translate(-50%, -40%) scale(.3); opacity: 0; clip-path: polygon(0 60%, 50% 70%, 100% 60%, 100% 100%, 0 100%); }
}

.flash { position: absolute; inset: 0; z-index: 39; pointer-events: none; opacity: 0; }
.flash.is-red { background: radial-gradient(circle, transparent 40%, rgba(194, 64, 15, .45)); animation: flash .45s ease; }
.flash.is-gold { background: radial-gradient(circle, transparent 40%, rgba(232, 163, 61, .4)); animation: flash .5s ease; }
@keyframes flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }

/* ---------------------------------------------------------
   OVERLAYS (pausa, nivel completado, game over)
   --------------------------------------------------------- */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(34, 12, 2, .78);
  backdrop-filter: blur(3px);
  animation: fade .25s ease;
  overflow-y: auto;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.panel {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  text-align: center;
  box-shadow: var(--shadow-lift), 0 8px 0 var(--caramel);
  animation: panel-in .45s cubic-bezier(.2, 1.4, .4, 1);
}
.panel--wide { max-width: 560px; }
@keyframes panel-in { from { transform: scale(.7) translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.panel__emoji { margin: 0; font-size: 2.4rem; }
.panel__kicker { margin: 0; font-size: .75rem; font-weight: 900; letter-spacing: .16em; color: var(--terra); }
.panel__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.05; color: var(--bg); }
.panel__sub { margin: 0; font-weight: 800; color: var(--choco-600); }
.panel__note { margin: 0; font-size: .9rem; font-weight: 700; color: var(--cocoa); }
.panel__ask { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--terra); }
.panel__actions { display: flex; flex-direction: column; gap: 10px; }
.panel .btn--ghost { color: var(--ink); box-shadow: inset 0 0 0 2px rgba(46, 17, 3, .35); }
.panel .fact-card { background: #eef4d6; box-shadow: inset 0 0 0 2px var(--lime-deep); }
.panel .fact-card__body { color: var(--choco-600); }
.panel .fact-card__body strong { color: var(--ink); }
.panel .fact-card__kicker { color: #5b7420; }

.lc-stats { display: flex; flex-direction: column; gap: 6px; }
.stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: #fff;
  font-weight: 800;
  text-align: left;
}
.stat-row__label { flex: 1; font-size: .85rem; letter-spacing: .04em; color: var(--choco-600); }
.stat-row strong { font-family: var(--font-display); font-size: 1.25rem; }

.overlay--danger .panel { box-shadow: var(--shadow-lift), 0 8px 0 var(--terra); }
.go-cups { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }
.go-cups .plastic-svg { width: 28px; height: 44px; animation: drop-in .5s cubic-bezier(.3, 1.6, .5, 1) backwards; }
.go-cups .plastic-svg:nth-child(2n) { animation-delay: .08s; }
.go-cups .plastic-svg:nth-child(3n) { animation-delay: .16s; }

/* ---------------------------------------------------------
   RESULTADOS
   --------------------------------------------------------- */
.screen--results { align-items: center; padding: calc(24px + var(--safe-top)) 16px calc(24px + var(--safe-bottom)); }
.results { width: 100%; max-width: 820px; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.results__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1; }
.results__phrase { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 2.4vw, 1.4rem); color: var(--lime); }
.record-badge {
  align-self: center;
  margin: 0;
  padding: 8px 18px;
  border-radius: 99px;
  background: var(--mustard);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  animation: pulse 1s ease-in-out infinite;
}
.results__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.res-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 8px;
  border-radius: var(--radius-md);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 5px 0 rgba(0, 0, 0, .3);
}
.res-cell__icon { font-size: 1.4rem; }
.res-cell strong { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; }
.res-cell span:last-child { font-size: .7rem; font-weight: 900; letter-spacing: .08em; color: var(--choco-600); }
.res-cell--score { background: var(--caramel); }
.res-cell--money { background: var(--mustard); }
.res-cell--good { background: var(--lime); }
.res-cell--bad { background: #dbe9ef; }
.results__records {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(247, 240, 218, .06);
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-dim);
}
.results__records b { color: var(--cream); }
.results__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.results__actions .btn--xl { grid-column: 1 / -1; }

/* ---------------------------------------------------------
   MODAL: CONOCE BITE CUPS
   --------------------------------------------------------- */
.modal {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(34, 12, 2, .8);
  backdrop-filter: blur(3px);
  animation: fade .2s ease;
}
.modal__card {
  position: relative;
  width: 100%;
  max-width: 980px;
  max-height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px clamp(18px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-lift), inset 0 0 0 2px rgba(247, 240, 218, .12);
  animation: panel-in .35s var(--ease);
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
}
.modal__title { margin: 0; padding-right: 50px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.05; }
.know__body { margin: 0; max-width: 720px; font-size: 1.05rem; font-weight: 700; color: var(--text-dim); line-height: 1.5; }
.know__h3 { margin: 10px 0 0; font-family: var(--font-display); font-weight: 600; letter-spacing: .1em; color: var(--caramel); font-size: .95rem; }

.know__products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 16px;
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.product-card__img { height: 140px; width: auto; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .35)); }
.product-card__info { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.product-card h4 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--bg); text-align: center; }
.product-card__flavor { margin: 0; text-align: center; font-weight: 900; color: var(--terra); }
.product-card ul { margin: 0; padding: 0; list-style: none; font-size: .88rem; font-weight: 700; color: var(--choco-600); }
.product-card li { padding: 3px 0; border-bottom: 1px dashed rgba(90, 42, 14, .2); }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.price-row span { display: flex; flex-direction: column; align-items: center; padding: 8px; border-radius: 12px; background: #fff; }
.price-row span:last-child { background: var(--mustard); }
.price-row small { font-size: .66rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--choco-600); }
.price-row b { font-family: var(--font-display); font-size: 1.3rem; }
.price-row--one { grid-template-columns: 1fr; }


.know__facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.fact-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(247, 240, 218, .07);
  box-shadow: inset 0 0 0 1px rgba(247, 240, 218, .12);
}
.fact-chip > span { font-size: 1.5rem; }
.fact-chip strong { font-family: var(--font-display); font-size: 1.1rem; }
.fact-chip small { font-size: .82rem; font-weight: 700; color: var(--text-mute); }

.know__steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.know__steps li { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--radius-md); background: rgba(247, 240, 218, .06); }
.step__n { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--caramel); }
.know__steps strong { display: block; font-family: var(--font-display); }
.know__steps small { font-size: .8rem; font-weight: 700; color: var(--text-mute); }
.know__end { margin: 0; font-weight: 800; color: var(--lime); }
.modal__card > .btn { align-self: center; }

/* Toast */
.toast {
  position: absolute;
  left: 50%;
  top: calc(80px + var(--safe-top));
  z-index: 70;
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border-radius: 99px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
  transform: translate(-50%, -30px);
  opacity: 0;
  transition: transform .25s var(--ease), opacity .25s;
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

.legales { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 14px 0 calc(6px + var(--safe-bottom)); }
.legales a { color: var(--text-mute); font-size: .8rem; font-weight: 700; }

/* ---------------------------------------------------------
   CUENTA, PREMIO Y TABLA DE RÉCORDS (la tienda)
   --------------------------------------------------------- */
.cuenta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(174, 203, 79, .12);
  box-shadow: inset 0 0 0 2px rgba(174, 203, 79, .35);
  max-width: 520px;
}
.cuenta__apodo { font-family: var(--font-display); font-weight: 600; color: var(--lime); }
.cuenta__texto { margin: 0; font-weight: 700; color: var(--text-dim); line-height: 1.4; }
.cuenta .btn { min-height: 44px; font-size: .95rem; padding: 10px 18px; }

.online {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(174, 203, 79, .1);
  box-shadow: inset 0 0 0 2px rgba(174, 203, 79, .3);
  text-align: center;
}
.online__texto { margin: 0; font-weight: 800; color: var(--text-dim); line-height: 1.4; }
.online__texto--error { color: #f4b6a0; }
.online__premio {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--mustard);
  color: var(--ink);
}
.online__premio strong { font-family: var(--font-display); font-size: 1.3rem; }
.online__premio span { font-weight: 800; font-size: .9rem; }
.online__opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 440px;
  text-align: left;
  cursor: pointer;
}
.online__opt input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--lime); flex: none; }
.online__opt span { display: flex; flex-direction: column; gap: 2px; }
.online__opt small { color: var(--text-mute); font-weight: 700; }

.modal__card--records { max-width: 620px; }
.tabs { display: flex; gap: 8px; }
.tab {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 99px;
  background: rgba(247, 240, 218, .08);
  color: var(--text-dim);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .06em;
}
.tab.is-active { background: var(--caramel); color: var(--ink); }
.leaderboard { display: flex; flex-direction: column; gap: 6px; min-height: 120px; }
.lb-row {
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(247, 240, 218, .06);
  font-weight: 800;
}
.lb-row.is-you { background: rgba(174, 203, 79, .2); box-shadow: inset 0 0 0 2px var(--lime); }
.lb-row__pos { font-family: var(--font-display); font-size: 1.2rem; text-align: center; }
.lb-row__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row__tu { margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: var(--lime); color: var(--ink); font-style: normal; font-size: .7rem; }
.lb-row__lvl { font-size: .8rem; color: var(--text-mute); }
.lb-row__pts { font-family: var(--font-display); color: var(--caramel); }
.records__vacio { margin: 20px 0; text-align: center; font-weight: 800; color: var(--text-mute); }
.records__note { margin: 0; font-weight: 700; color: var(--text-dim); text-align: center; }
@media (max-width: 480px) {
  .lb-row { grid-template-columns: 36px 1fr auto; }
  .lb-row__lvl { display: none; }
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 1100px) {
  .floor { grid-template-columns: 1fr 210px; }
  .hud__eco .hud__label { font-size: .6rem; }
}

@media (max-width: 900px) {
  .know__products { grid-template-columns: 1fr; }
  .product-card { flex-direction: row; align-items: center; }
  .product-card__img { height: 120px; }
  .know__steps { grid-template-columns: 1fr 1fr; }
}

/* Tablet y móvil: barra en dos filas */
@media (max-width: 860px) {
  .station {
    grid-template-columns: 1fr auto;
    grid-template-areas: "cups tray" "drinks drinks";
    gap: 10px;
  }
  .station__cups { grid-area: cups; }
  .station__drinks { grid-area: drinks; }
  .station__tray { grid-area: tray; }
  .drink-btn { max-width: none; }
}

@media (max-width: 760px) {
  .menu__hero { grid-template-columns: 1fr; text-align: left; }
  .menu__cups { order: -1; height: 170px; }
  .record-strip__row { grid-template-columns: repeat(3, 1fr); }

  .hud {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas:
      "pause level goal sound"
      "score money combo eco";
    gap: 4px 10px;
    padding: calc(6px + var(--safe-top)) 10px 6px;
  }
  .icon-btn--pause { grid-area: pause; width: 38px; height: 38px; }
  .hud__level { grid-area: level; }
  .hud__goal { grid-area: goal; min-width: 84px; }
  .hud .sound-toggle { grid-area: sound; width: 38px; height: 38px; }
  .hud__stat { min-width: 0; }
  .hud__stat:nth-child(4) { grid-area: score; }
  .hud__stat:nth-child(5) { grid-area: money; }
  .hud__combo { grid-area: combo; }
  .hud__eco { grid-area: eco; text-align: right; }
  .hud strong { font-size: 1.05rem; }
  .hud__level { overflow: hidden; }
  .hud__level strong { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; }
  .hud__goal { text-align: right; }
  .hud__label { font-size: .58rem; letter-spacing: .08em; }
  .hud__eco .hud__label { font-size: .58rem; }

  .floor {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    gap: 8px;
    padding: 10px 8px 8px;
  }
  .customers { --gap: 8px; }
  .side { flex-direction: row; }
  .fact-card--mini { display: none; }
  .waste {
    flex: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "head bin";
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
  }
  .waste__head { grid-area: head; flex-direction: column; align-items: flex-start; font-size: .58rem; gap: 0; }
  .waste__bin { grid-area: bin; grid-template-columns: repeat(8, minmax(0, 22px)); margin: 0; padding: 4px 6px; gap: 4px; justify-content: start; }
  .waste__hint { display: none; }

  .station { padding: 8px 8px calc(8px + var(--safe-bottom)); }
  .station__title { font-size: .64rem; }
  .station__row { gap: 6px; }
  .cup-btn { flex: 1 1 0; width: auto; min-width: 0; padding: 6px 4px; border-radius: 14px; }
  .cup-btn__img { width: 40px; }
  .cup-btn__name { font-size: .68rem; }
  .drink-btn { padding: 6px 2px; border-radius: 14px; }
  .drink-btn__emoji { font-size: 1.35rem; }
  .drink-btn__name { font-size: .7rem; }
  .drink-btn__temp { display: none; }
  .tray { min-width: 0; width: 118px; flex-direction: column; gap: 2px; padding: 4px 6px; }
  .tray__cup { width: 38px; }
  .tray__label { text-align: center; }
  .tray__label strong { font-size: .64rem; }
  .tray__label span { display: none; }
  .station__tray .station__title { display: none; }
  .btn--eat { min-height: 34px; padding: 4px 8px; font-size: .72rem; }

  .cust__bubble { font-size: .62rem; padding: 4px 6px; }
  .cust.is-match::after { font-size: .55rem; top: -8px; }

  .coach { padding: 8px 14px; bottom: 6px; }
  .coach strong { font-size: 1rem; }
  .coach span { font-size: .72rem; }

  .level-intro strong { font-size: 1.3rem; }

  .results__grid { grid-template-columns: repeat(2, 1fr); }
  .results__actions { grid-template-columns: 1fr; }
  .res-cell strong { font-size: 1.4rem; }

  .modal { padding: 0; align-items: end; }
  .modal__card { max-height: 92%; border-radius: var(--radius) var(--radius) 0 0; padding: 22px 16px 28px; }
  .product-card { flex-direction: column; }
  .know__steps { grid-template-columns: 1fr; }
}

@media (max-height: 700px) and (min-width: 761px) {
  .cup-btn__img { width: 46px; }
  .drink-btn__emoji { font-size: 1.4rem; }
  .station { padding-top: 8px; padding-bottom: 8px; }
  .station__title { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
