/* ==========================================================================
   ORDEN LISTA — Estilos de interfaz · Agente UI
   Unidad base: 1rem = 1% de la altura del área 16:9 visible (lo fija ui.js;
   el respaldo CSS es min(1vh, 0.5625vw)). Así todo escala igual que el canvas.
   ========================================================================== */

:root {
  --ink: #3b2a20;
  --ink-soft: #6b4a36;
  --cream: #fff6e2;
  --cream-2: #ffe9bf;
  --cream-3: #f7d79c;
  --paper: #fffbf2;
  --red: #e8452c; --red-l: #ff7a57; --red-d: #b42f1b;
  --mustard: #ffc531; --mustard-l: #ffe37f; --mustard-d: #d98d0b;
  --green: #5cc23f; --green-l: #9ce46e; --green-d: #2e8a22;
  --blue: #3aa6e8; --blue-l: #86d4ff; --blue-d: #1f68a6;
  --orange: #ff8a2a;
  --gray: #b6a898; --gray-l: #ded3c6; --gray-d: #857767;
  --font: 'Fredoka', 'Baloo 2', 'Nunito', 'Trebuchet MS', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --touch: 46px;
  --sat: env(safe-area-inset-top, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --o-sm: 0.3rem 0 0 var(--ink), -0.3rem 0 0 var(--ink), 0 0.3rem 0 var(--ink), 0 -0.3rem 0 var(--ink),
          0.22rem 0.22rem 0 var(--ink), -0.22rem 0.22rem 0 var(--ink), 0.22rem -0.22rem 0 var(--ink), -0.22rem -0.22rem 0 var(--ink);
  --o-md: 0.45rem 0 0 var(--ink), -0.45rem 0 0 var(--ink), 0 0.45rem 0 var(--ink), 0 -0.45rem 0 var(--ink),
          0.33rem 0.33rem 0 var(--ink), -0.33rem 0.33rem 0 var(--ink), 0.33rem -0.33rem 0 var(--ink), -0.33rem -0.33rem 0 var(--ink);
}

html {
  font-size: min(1vh, 0.5625vw);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  margin: 0; padding: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  position: fixed; inset: 0;
  font-family: var(--font);
  color: var(--ink);
  /* Respaldo cálido por si el canvas aún no pinta la escena */
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 236, 190, 0.9), rgba(255, 236, 190, 0) 60%),
    linear-gradient(180deg, #ffcf8a 0%, #f6a95e 58%, #9a5a35 58.2%, #8a4f2e 62%, #7a4426 100%);
  background-color: #f6a95e;
}

#game {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  display: block;
  touch-action: none;
  z-index: 1;
}

button { font-family: inherit; color: inherit; }
canvas.art { display: block; pointer-events: none; }

/* --------------------------------------------------------------------------
   Capa de interfaz y pantallas
   -------------------------------------------------------------------------- */
#ui {
  position: fixed; inset: 0;
  z-index: 5;
  pointer-events: none;
  font-family: var(--font);
  font-size: 4.2rem;
  line-height: 1.2;
}

.screen {
  position: absolute; inset: 0;
  pointer-events: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-sizing: border-box;
  padding: max(2.5rem, var(--sat)) max(3.5rem, var(--sar)) max(2.5rem, var(--sab)) max(3.5rem, var(--sal));
  animation: scrIn 0.14s ease-out both;
  overflow: hidden;
}
/* La pantalla saliente desaparece rápido para que nunca se vean dos encimadas */
.screen.leaving { animation: scrOut 0.11s ease-in both; pointer-events: none !important; }
.screen.leaving .pop { animation: popOut 0.11s ease-in both; }
/* Los modales oscurecen desde el primer frame; solo su contenido entra con escala elástica */
.screen.modal { animation: none; }
.screen.modal.leaving { animation: scrOut 0.11s ease-in both; }
.screen.bg-menu {
  background:
    radial-gradient(ellipse at 50% 45%, rgba(70, 35, 15, 0.08) 0%, rgba(50, 25, 10, 0.5) 100%);
}
.screen.modal { background: rgba(35, 18, 8, 0.58); padding-top: max(7.5rem, var(--sat)); padding-bottom: max(3rem, var(--sab)); }
.screen.scr-game { pointer-events: none; background: none; }

.pop { animation: popIn 0.62s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.pop.d1 { animation-delay: 0.06s; }
.pop.d2 { animation-delay: 0.12s; }
.pop.d3 { animation-delay: 0.18s; }

@keyframes scrIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes popIn {
  0% { transform: scale(0.55); opacity: 0; }
  45% { transform: scale(1.07); opacity: 1; }
  68% { transform: scale(0.97); }
  85% { transform: scale(1.015); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes popOut { from { transform: scale(1); opacity: 1; } to { transform: scale(0.85); opacity: 0; } }
@keyframes slideDown { from { transform: translateY(-120%); } to { transform: translateY(0); } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.22); } 70% { transform: scale(0.95); } 100% { transform: scale(1); } }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-1.6rem) rotate(-3deg); }
  40% { transform: translateX(1.4rem) rotate(3deg); }
  60% { transform: translateX(-1rem) rotate(-2deg); }
  80% { transform: translateX(0.6rem); }
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-1.6rem) rotate(var(--r, 0deg)); } }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.94); } }
@keyframes pulseRing { 0% { transform: scale(0.9); opacity: 0.85; } 100% { transform: scale(1.65); opacity: 0; } }
@keyframes pulseBtn { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

.shake, .screen .shake { animation: shake 0.42s ease-out; }
.bump { animation: bump 0.4s ease-out; }

/* --------------------------------------------------------------------------
   Botones "caramelo"
   -------------------------------------------------------------------------- */
.btn {
  --c1: var(--mustard-l); --c2: var(--mustard); --edge: var(--mustard-d);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 1.6rem;
  box-sizing: border-box;
  min-height: max(var(--touch), 13rem);
  min-width: max(var(--touch), 13rem);
  padding: 0 5.5rem 0.4rem;
  margin: 0;
  font-family: var(--font);
  font-weight: 600;
  font-size: 5.4rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: var(--o-sm);
  white-space: nowrap;
  background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 62%);
  border: 0.75rem solid var(--ink);
  border-radius: 4.5rem;
  box-shadow:
    0 1.5rem 0 var(--ink),
    inset 0 -1.4rem 0 var(--edge),
    inset 0 0.7rem 0 rgba(255, 255, 255, 0.45);
  cursor: pointer;
  outline: none;
  transform: translateY(0);
  transition: transform 0.07s ease-out, box-shadow 0.07s ease-out, filter 0.15s;
  -webkit-appearance: none; appearance: none;
  touch-action: manipulation;
}
.btn::after {
  content: '';
  position: absolute;
  left: 9%; right: 9%; top: 9%;
  height: 30%;
  border-radius: 4rem 4rem 2rem 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.btn > * { position: relative; z-index: 1; }
.btn:active, .btn.pressed {
  transform: translateY(1.3rem);
  box-shadow:
    0 0.2rem 0 var(--ink),
    inset 0 -1rem 0 var(--edge),
    inset 0 0.7rem 0 rgba(255, 255, 255, 0.45);
}
.btn:focus-visible { filter: brightness(1.08); box-shadow: 0 1.5rem 0 var(--ink), 0 0 0 0.9rem rgba(255, 255, 255, 0.7); }
.btn-green { --c1: var(--green-l); --c2: var(--green); --edge: var(--green-d); }
.btn-red { --c1: var(--red-l); --c2: var(--red); --edge: var(--red-d); }
.btn-blue { --c1: var(--blue-l); --c2: var(--blue); --edge: var(--blue-d); }
.btn-cream { --c1: #fffdf6; --c2: var(--cream-2); --edge: var(--cream-3); color: var(--ink); text-shadow: none; }
.btn.is-disabled, .btn[disabled] {
  --c1: var(--gray-l); --c2: var(--gray); --edge: var(--gray-d);
  cursor: default;
}
.btn-big { min-height: max(54px, 16.5rem); font-size: 7.4rem; padding: 0 9rem 0.6rem; border-radius: 6rem; }
.btn-sm { min-height: max(var(--touch), 11.5rem); font-size: 4.4rem; padding: 0 4rem 0.3rem; border-radius: 4rem; gap: 1.2rem; }
.btn-pulse { animation: pulseBtn 1.1s ease-in-out infinite; }
.btn-pulse:active { animation: none; }

.btn-round {
  --c1: var(--cream); --c2: var(--cream-2); --edge: var(--cream-3);
  position: relative;
  box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  width: max(var(--touch), 12.5rem); height: max(var(--touch), 12.5rem);
  padding: 0; margin: 0;
  flex: none;
  border-radius: 50%;
  border: 0.75rem solid var(--ink);
  background: radial-gradient(circle at 50% 30%, var(--c1), var(--c2) 70%);
  box-shadow: 0 1.3rem 0 var(--ink), inset 0 -1.2rem 0 var(--edge), inset 0 0.7rem 0 rgba(255, 255, 255, 0.5);
  cursor: pointer;
  outline: none;
  transition: transform 0.07s, box-shadow 0.07s;
  -webkit-appearance: none; appearance: none;
  touch-action: manipulation;
}
.btn-round:active { transform: translateY(1.1rem); box-shadow: 0 0.2rem 0 var(--ink), inset 0 -0.9rem 0 var(--edge), inset 0 0.7rem 0 rgba(255, 255, 255, 0.5); }
.btn-round.red { --c1: var(--red-l); --c2: var(--red); --edge: var(--red-d); }
.btn-round.blue { --c1: var(--blue-l); --c2: var(--blue); --edge: var(--blue-d); }
.btn-round .ico { width: 62%; height: 62%; }

/* Íconos SVG con contorno */
.ico { display: block; width: 1.25em; height: 1.25em; flex: none; overflow: visible; }
.ico .so { fill: none; stroke: var(--ink); stroke-width: 6.4; stroke-linecap: round; stroke-linejoin: round; }
.ico .si { fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.ico .fo { fill: #fff; stroke: var(--ink); stroke-width: 2.6; paint-order: stroke; stroke-linejoin: round; fill-rule: evenodd; }
.btn-round .ico .si { stroke: #fff; }
.btn-round:not(.red):not(.blue) .ico .si { stroke: var(--red); }
.btn-round:not(.red):not(.blue) .ico .fo { fill: var(--red); }

/* --------------------------------------------------------------------------
   Paneles tipo tarjeta de menú de diner, cintas y fichas
   -------------------------------------------------------------------------- */
.panel {
  position: relative;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, var(--paper), var(--cream) 60%, var(--cream-2));
  border: 0.85rem solid var(--ink);
  border-radius: 5rem;
  box-shadow: 0 1.8rem 0 var(--ink), 0 3.5rem 6rem rgba(0, 0, 0, 0.35);
  padding: 9rem 6rem 6rem;
}
.panel::before {
  content: '';
  position: absolute; inset: 1.6rem;
  border: 0.45rem dashed rgba(150, 95, 55, 0.35);
  border-radius: 3.6rem;
  pointer-events: none;
}
/* tira de cuadritos rojo/blanco de diner */
.panel .checker {
  position: absolute; left: 0; right: 0; top: 0;
  height: 5rem;
  border-radius: 4.2rem 4.2rem 0 0;
  border-bottom: 0.6rem solid var(--ink);
  background:
    repeating-conic-gradient(var(--red) 0 25%, #fff 0 50%) 0 0 / 5rem 5rem;
  overflow: hidden;
}
.panel-head {
  position: absolute; left: 0; right: 0; top: -5.5rem;
  display: flex; justify-content: center;
  pointer-events: none;
  z-index: 3;
}
.panel .btn-round.close { position: absolute; top: -4.5rem; right: -4.5rem; z-index: 4; }

.ribbon {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 1.4rem;
  box-sizing: border-box;
  min-height: 11rem;
  padding: 0.5rem 7rem 0.9rem;
  font-weight: 700;
  font-size: 6.2rem;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  text-shadow: var(--o-md);
  background: linear-gradient(180deg, var(--red-l), var(--red) 55%, var(--red-d));
  border: 0.75rem solid var(--ink);
  border-radius: 2rem;
  box-shadow: 0 1.2rem 0 var(--ink);
  z-index: 1;
}
.ribbon::before, .ribbon::after {
  content: '';
  position: absolute;
  top: 2.6rem;
  width: 7rem; height: 100%;
  background: var(--rd, var(--red-d));
  border-top: 0.75rem solid var(--ink);
  border-bottom: 0.75rem solid var(--ink);
  box-sizing: border-box;
  z-index: -1;
}
.ribbon::before { left: -5rem; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 35% 50%); }
.ribbon::after { right: -5rem; clip-path: polygon(0 0, 100% 0, 65% 50%, 100% 100%, 0 100%); }
.ribbon.green { background: linear-gradient(180deg, var(--green-l), var(--green) 55%, var(--green-d)); --rd: var(--green-d); }
.ribbon.mustard { background: linear-gradient(180deg, var(--mustard-l), var(--mustard) 55%, var(--mustard-d)); --rd: var(--mustard-d); }
.ribbon.blue { background: linear-gradient(180deg, var(--blue-l), var(--blue) 55%, var(--blue-d)); --rd: var(--blue-d); }
.ribbon.gray { background: linear-gradient(180deg, var(--gray-l), var(--gray) 55%, var(--gray-d)); --rd: var(--gray-d); }
.ribbon.small { min-height: 9rem; font-size: 5rem; padding: 0.3rem 5rem 0.7rem; }
.ribbon.small::before, .ribbon.small::after { top: 2rem; width: 5.5rem; }
.ribbon.small::before { left: -4rem; } .ribbon.small::after { right: -4rem; }

.chip {
  display: inline-flex; align-items: center; gap: 1.2rem;
  box-sizing: border-box;
  height: 10rem;
  padding: 0 3.6rem 0 1.4rem;
  font-weight: 700;
  font-size: 5.4rem;
  color: #fff;
  text-shadow: var(--o-sm);
  background: linear-gradient(180deg, #6b4a36, #4a3226);
  border: 0.7rem solid var(--ink);
  border-radius: 6rem;
  box-shadow: inset 0 0.8rem 0 rgba(255, 255, 255, 0.15), 0 1rem 0 rgba(59, 42, 32, 0.6);
  white-space: nowrap;
  flex: none;
}
.chip .chip-ic { width: 8rem; height: 8rem; }
.chip.light { background: linear-gradient(180deg, var(--paper), var(--cream-2)); color: var(--ink); text-shadow: none; }

.topbar {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; align-items: center; gap: 2.6rem;
  box-sizing: border-box;
  padding: max(2.5rem, var(--sat)) max(3.5rem, var(--sar)) 0 max(3.5rem, var(--sal));
  z-index: 3;
  animation: slideDown 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.topbar > * { flex: none; }
.topbar .grow { flex: 1 1 0; min-width: 0; }
.topbar .ribbon { margin-left: 4rem; margin-right: 2rem; font-size: 5.6rem; }
.topbar .btn-sm { padding: 0 3.4rem 0.3rem; }
.topbar .ribbon { padding-left: 5.5rem; padding-right: 5.5rem; }
/* Pantallas menos panorámicas (tablets 4:3, 16:10): el botón Tienda queda solo con ícono */
@media (max-aspect-ratio: 16/10) {
  .topbar .btn-sm > span { display: none; }
  .topbar .btn-sm { padding: 0 2.4rem 0.3rem; min-width: max(var(--touch), 12.5rem); }
  .topbar .btn-sm .ico { width: 7rem; height: 7rem; }
  .topbar { gap: 1.8rem; }
  .topbar .ribbon { font-size: 5rem; padding-left: 4.5rem; padding-right: 4.5rem; margin-right: 1rem; }
}

.coins-chip.bump { animation: bump 0.4s ease-out; }

/* --------------------------------------------------------------------------
   Título
   -------------------------------------------------------------------------- */
.scr-title { cursor: pointer; background: radial-gradient(ellipse at 50% 48%, rgba(60, 30, 12, 0.12) 0%, rgba(45, 22, 10, 0.55) 100%); }
.sunburst {
  position: absolute; left: 50%; top: 46%;
  width: 260rem; height: 260rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 233, 160, 0.42) 0 9deg, rgba(255, 233, 160, 0) 9deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.6) 25%, transparent 60%);
  mask-image: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.6) 25%, transparent 60%);
  animation: spin 60s linear infinite;
  pointer-events: none;
}
.title-wrap { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: -13rem; }
.title-food { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; height: 25rem; margin-bottom: -1rem; }
.title-food .tf-burger { width: 30rem; height: 25rem; animation: bob 2.6s ease-in-out infinite; }
.title-food .tf-side { width: 14rem; height: 19rem; animation: bob 2.6s ease-in-out infinite; }
.title-food .tf-side.l { --r: -10deg; animation-delay: -0.6s; }
.title-food .tf-side.r { --r: 10deg; animation-delay: -1.3s; }

.logo {
  margin: 0;
  font-weight: 700;
  font-size: 17rem;
  line-height: 0.9;
  text-align: center;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.logo .lt {
  display: inline-block;
  color: var(--mustard);
  text-shadow:
    1.1rem 0 0 var(--ink), -1.1rem 0 0 var(--ink), 0 1.1rem 0 var(--ink), 0 -1.1rem 0 var(--ink),
    0.8rem 0.8rem 0 var(--ink), -0.8rem 0.8rem 0 var(--ink), 0.8rem -0.8rem 0 var(--ink), -0.8rem -0.8rem 0 var(--ink),
    0 2.6rem 0 var(--ink), 1rem 2.4rem 0 var(--ink), -1rem 2.4rem 0 var(--ink), 0 3.6rem 2rem rgba(0, 0, 0, 0.35);
  animation: letterWave 2.4s ease-in-out infinite;
  animation-delay: calc(var(--d) * 0.09s);
}
.logo .w2 .lt { color: #fff; }
.logo .w2 .lt:nth-child(odd) { color: #ffe9c4; }
@keyframes letterWave { 0%, 100% { transform: translateY(0) rotate(0); } 20% { transform: translateY(-1.8rem) rotate(-3deg); } 40% { transform: translateY(0) rotate(0); } }
.logo-sub { margin-top: 4.5rem; }
.tap-hint {
  position: absolute; bottom: max(6rem, calc(var(--sab) + 3rem)); left: 0; right: 0;
  text-align: center;
  font-weight: 600; font-size: 6.4rem;
  color: #fff;
  text-shadow: var(--o-md), 0 1rem 0 var(--ink);
  animation: blink 1.4s ease-in-out infinite;
  pointer-events: none;
}
.corner-tr { position: absolute; top: max(3rem, var(--sat)); right: max(4rem, var(--sar)); }
.version-tag { position: absolute; bottom: max(2rem, var(--sab)); right: max(4rem, var(--sar)); font-size: 3.2rem; color: rgba(255, 255, 255, 0.8); text-shadow: var(--o-sm); }

/* --------------------------------------------------------------------------
   Restaurantes
   -------------------------------------------------------------------------- */
.resto-row { display: flex; gap: 7rem; align-items: stretch; justify-content: center; margin-top: 12rem; }
.resto-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  box-sizing: border-box;
  width: 46rem; min-height: 64rem;
  padding: 12rem 3rem 4rem;
  border: 0.85rem solid var(--ink);
  border-radius: 4.5rem;
  background: linear-gradient(180deg, var(--paper), var(--cream-2));
  box-shadow: 0 1.8rem 0 var(--ink), 0 3rem 5rem rgba(0, 0, 0, 0.3);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.08s, box-shadow 0.08s;
  -webkit-appearance: none; appearance: none;
  font-family: var(--font);
  touch-action: manipulation;
}
.resto-card:active { transform: translateY(1.4rem); box-shadow: 0 0.4rem 0 var(--ink); }
.resto-card .awning {
  position: absolute; left: 0; right: 0; top: 0; height: 9rem;
  background: repeating-linear-gradient(90deg, var(--red) 0 5.5rem, #fff 5.5rem 11rem);
  border-bottom: 0.7rem solid var(--ink);
}
.resto-card .awning::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3.6rem; height: 3.6rem;
  background: radial-gradient(circle at 2.75rem 0, var(--red) 2.6rem, transparent 2.75rem) 0 0 / 11rem 3.6rem repeat-x,
              radial-gradient(circle at 8.25rem 0, #fff 2.6rem, transparent 2.75rem) 0 0 / 11rem 3.6rem repeat-x;
}
.resto-card .resto-art { width: 32rem; height: 24rem; margin-top: 2rem; }
.resto-card .resto-name { font-weight: 700; font-size: 6.4rem; color: var(--red); text-shadow: 0 0.6rem 0 rgba(59, 42, 32, 0.18); margin-top: 1rem; white-space: nowrap; }
.resto-card .resto-sub { font-weight: 500; font-size: 4rem; color: var(--ink-soft); }
.resto-card .resto-prog { margin-top: auto; padding-top: 2rem; }
.resto-card.locked { cursor: default; background: linear-gradient(180deg, #efe6da, #d9ccbc); }
.resto-card.locked .awning { background: repeating-linear-gradient(90deg, #a99886 0 5.5rem, #e7ddd0 5.5rem 11rem); }
.resto-card.locked .awning::after {
  background: radial-gradient(circle at 2.75rem 0, #a99886 2.6rem, transparent 2.75rem) 0 0 / 11rem 3.6rem repeat-x,
              radial-gradient(circle at 8.25rem 0, #e7ddd0 2.6rem, transparent 2.75rem) 0 0 / 11rem 3.6rem repeat-x;
}
.resto-card.locked .resto-art { filter: grayscale(1) brightness(0.9) opacity(0.55); }
.resto-card.locked .resto-name { color: var(--gray-d); }
.resto-card .lock-badge { position: absolute; top: 25rem; left: 50%; width: 15rem; height: 15rem; transform: translateX(-50%); }
.soon {
  margin-top: auto;
  padding: 1.2rem 4rem 1.6rem;
  font-weight: 600; font-size: 4.2rem;
  color: #fff; text-shadow: var(--o-sm);
  background: var(--gray-d);
  border: 0.6rem solid var(--ink);
  border-radius: 3rem;
  transform: rotate(-4deg);
}

/* --------------------------------------------------------------------------
   Mapa de días
   -------------------------------------------------------------------------- */
.scr-map { justify-content: flex-start; }
.map-area {
  position: relative;
  width: min(100%, 175rem);
  flex: 1;
  margin-top: 17rem;
}
.map-road { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-grid {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
}
.day-node {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0; margin: 0;
  background: none; border: 0;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none; appearance: none;
  touch-action: manipulation;
  animation: popIn 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  animation-delay: calc(var(--i) * 0.03s + 0.05s);
}
.day-circle {
  --c1: #fff3c9; --c2: var(--mustard); --edge: var(--mustard-d);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: max(var(--touch), 16rem); height: max(var(--touch), 16rem);
  box-sizing: border-box;
  border-radius: 50%;
  border: 0.8rem solid var(--ink);
  background: radial-gradient(circle at 50% 30%, var(--c1), var(--c2) 72%);
  box-shadow: 0 1.4rem 0 var(--ink), inset 0 -1.3rem 0 var(--edge), inset 0 0.8rem 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.07s, box-shadow 0.07s;
}
.day-node:active .day-circle { transform: translateY(1.2rem); box-shadow: 0 0.2rem 0 var(--ink), inset 0 -1rem 0 var(--edge), inset 0 0.8rem 0 rgba(255, 255, 255, 0.55); }
.day-num { font-weight: 700; font-size: 7.6rem; color: #fff; text-shadow: var(--o-md); line-height: 1; margin-top: -0.6rem; }
.day-node.current .day-circle { --c1: var(--red-l); --c2: var(--red); --edge: var(--red-d); }
.day-node.current .day-circle::before {
  content: ''; position: absolute; inset: -1.6rem;
  border-radius: 50%;
  border: 1rem solid #fff4c2;
  animation: pulseRing 1.3s ease-out infinite;
  pointer-events: none;
}
.day-node.current .day-circle { animation: pulseBtn 1.3s ease-in-out infinite; }
.day-node.perfect .day-circle { --c1: #fff; --c2: #ffd34d; --edge: #e2a00d; }
.day-node.locked .day-circle { --c1: #ece4da; --c2: var(--gray); --edge: var(--gray-d); cursor: default; }
.day-node.locked .day-num { display: none; }
.day-node .lock-ic { width: 9rem; height: 9rem; }
.day-stars { display: flex; gap: 0.2rem; margin-top: 1.4rem; height: 5.4rem; }
.day-stars canvas { width: 5.4rem; height: 5.4rem; }
.day-stars canvas:nth-child(2) { transform: translateY(-1rem); }
.today-flag {
  position: absolute; top: -5.6rem; left: 50%;
  transform: translateX(-50%);
  padding: 0.6rem 2.6rem 1rem;
  font-weight: 700; font-size: 3.6rem; color: #fff; text-shadow: var(--o-sm);
  background: var(--green); border: 0.55rem solid var(--ink); border-radius: 2.4rem;
  white-space: nowrap;
  animation: flagBob 1.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes flagBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -1.2rem); } }

/* --------------------------------------------------------------------------
   Previa del día
   -------------------------------------------------------------------------- */
.preview-panel { width: min(100%, 158rem); padding: 8rem 6rem 4rem; }
.preview-body { display: flex; gap: 5rem; align-items: stretch; }
.preview-panel .panel-foot { margin-top: 3.5rem; }
.preview-panel .btn-big { min-height: max(52px, 15rem); }
.preview-left { flex: 1.05; display: flex; flex-direction: column; min-width: 0; }
.preview-right { flex: 1; display: flex; min-width: 0; }
.lvl-name { margin: 0 0 2.4rem; font-weight: 700; font-size: 8.6rem; line-height: 1; color: var(--red); text-shadow: 0 0.8rem 0 rgba(59, 42, 32, 0.15); }
.goals { display: flex; flex-direction: column; gap: 1.6rem; }
.goal-row {
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem 3rem 1rem 2rem;
  background: #fff;
  border: 0.55rem solid rgba(59, 42, 32, 0.25);
  border-radius: 3rem;
}
.goal-row.got { background: #fff3c4; border-color: var(--mustard-d); }
.goal-stars { display: flex; gap: 0.4rem; }
.goal-stars canvas { width: 6.4rem; height: 6.4rem; }
.goal-val { margin-left: auto; display: flex; align-items: center; gap: 1rem; font-weight: 700; font-size: 6rem; }
.goal-val canvas { width: 6.4rem; height: 6.4rem; }
.goal-hint { display: flex; align-items: center; gap: 2rem; margin: 1rem 0; padding: 2.4rem 3rem; background: #fff; border-radius: 3rem; border: 0.55rem solid rgba(59, 42, 32, 0.2); font-weight: 500; font-size: 4.6rem; }
.goal-hint canvas { width: 10rem; height: 10rem; flex: none; }
.best-line { margin-top: auto; padding-top: 2.4rem; display: flex; align-items: center; gap: 1.4rem; font-weight: 500; font-size: 4.2rem; color: var(--ink-soft); }
.best-line b { color: var(--ink); font-weight: 700; }
.best-line canvas { width: 5.6rem; height: 5.6rem; }

.intro-card {
  position: relative;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 3rem 4rem 3rem;
  background: linear-gradient(180deg, #fff, #fff6dc);
  border: 0.7rem solid var(--ink);
  border-radius: 4rem;
  box-shadow: 0 1.2rem 0 rgba(59, 42, 32, 0.35);
  transform: rotate(1.2deg);
}
.intro-card .sticker {
  position: absolute; top: -4.5rem; left: -3.5rem;
  padding: 1.4rem 3.6rem 2rem;
  font-weight: 700; font-size: 5.4rem;
  color: #fff; text-shadow: var(--o-sm);
  background: radial-gradient(circle at 40% 30%, var(--mustard-l), var(--orange));
  border: 0.7rem solid var(--ink);
  border-radius: 50%;
  transform: rotate(-14deg);
  box-shadow: 0 0.9rem 0 var(--ink);
  animation: pulseBtn 1.2s ease-in-out infinite;
  z-index: 2;
}
.intro-card .intro-art { width: 34rem; height: 12.5rem; flex: none; }
.intro-card h3 { margin: 0.4rem 0 0.6rem; font-weight: 700; font-size: 5rem; line-height: 1.05; color: var(--red); }
.intro-card p { margin: 0; font-weight: 500; font-size: 3.7rem; line-height: 1.18; }
.intro-menu {
  position: relative;
  margin-top: auto;
  padding-top: 2rem;
  width: 100%;
  display: flex; align-items: center;
  border-top: 0.45rem dashed rgba(150, 95, 55, 0.3);
}
.intro-menu .im-label {
  position: absolute; top: -2.3rem; left: 50%;
  transform: translateX(-50%);
  padding: 0 1.6rem;
  font-weight: 600; font-size: 2.9rem; line-height: 1.4; white-space: nowrap;
  color: var(--ink-soft);
  background: #fffaee;
  border-radius: 2rem;
}
.intro-menu .im-row { flex: 1; min-width: 0; display: flex; justify-content: center; gap: 0.6rem; }
.intro-menu .mini { flex: 0 1 9rem; min-width: 0; height: 8.5rem; display: flex; }
.intro-menu .mini canvas { width: 100%; height: 100%; min-width: 0; }
.intro-card.menu-card { transform: rotate(-0.8deg); justify-content: center; }
.menu-card h3 { margin-top: 0; }
.menu-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem 1.6rem; }
.menu-item { display: flex; flex-direction: column; align-items: center; width: 17rem; }
.menu-item canvas { width: 16rem; height: 13rem; }
.menu-item span { font-weight: 500; font-size: 3.2rem; line-height: 1.05; text-align: center; }
.panel-foot { display: flex; justify-content: center; align-items: center; gap: 5rem; margin-top: 5rem; }

/* --------------------------------------------------------------------------
   Pausa / Ajustes / Confirmación
   -------------------------------------------------------------------------- */
.pause-panel { width: min(100%, 140rem); padding: 11rem 7rem 7rem; }
.pause-body { display: flex; gap: 6rem; align-items: center; }
.pause-actions { flex: 1.1; display: flex; flex-direction: column; gap: 4.4rem; min-width: 0; }
.pause-actions .btn { width: 100%; justify-content: flex-start; padding-left: 5rem; }
.pause-toggles { flex: 1; display: flex; flex-direction: column; gap: 3rem; min-width: 0; }

.toggle-row {
  display: flex; align-items: center; gap: 2.6rem;
  padding: 1.6rem 2.4rem 1.6rem 2rem;
  background: #fff;
  border: 0.55rem solid rgba(59, 42, 32, 0.22);
  border-radius: 4rem;
}
.toggle-row .t-ic { width: 9rem; height: 9rem; flex: none; }
.toggle-row .ico.t-ic { width: 9rem; height: 9rem; }
.toggle-row .t-label { flex: 1; min-width: 0; font-weight: 600; font-size: 5rem; white-space: nowrap; }
.switch {
  position: relative;
  flex: none;
  width: max(72px, 22rem); height: max(var(--touch), 12rem);
  padding: 0;
  border: 0.75rem solid var(--ink);
  border-radius: 8rem;
  background: linear-gradient(180deg, #c9bcae, #b0a190);
  box-shadow: inset 0 1rem 0 rgba(0, 0, 0, 0.15), 0 1rem 0 var(--ink);
  cursor: pointer;
  outline: none;
  -webkit-appearance: none; appearance: none;
  transition: background 0.2s;
  touch-action: manipulation;
}
.switch .knob {
  position: absolute; top: 50%; left: 1rem;
  width: max(30px, 8.6rem); height: max(30px, 8.6rem);
  transform: translateY(-50%);
  border-radius: 50%;
  border: 0.6rem solid var(--ink);
  background: radial-gradient(circle at 40% 30%, #fff, #f1e6d6);
  box-sizing: border-box;
  transition: left 0.22s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.switch .s-txt { position: absolute; top: 50%; transform: translateY(-50%); font-weight: 700; font-size: 3.6rem; color: #fff; text-shadow: var(--o-sm); }
.switch .s-on { left: 3rem; opacity: 0; }
.switch .s-off { right: 2.6rem; }
.switch.on { background: linear-gradient(180deg, var(--green-l), var(--green)); }
.switch.on .knob { left: calc(100% - max(30px, 8.6rem) - 1rem); }
.switch.on .s-on { opacity: 1; }
.switch.on .s-off { opacity: 0; }

.settings-panel { width: min(100%, 150rem); padding: 11rem 7rem 6rem; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem 4rem; }
.settings-grid .toggle-row:nth-child(3) { grid-column: 1 / span 1; }
.settings-foot { display: flex; align-items: center; justify-content: space-between; gap: 4rem; margin-top: 5.5rem; }
.settings-foot .credits { font-size: 3.4rem; color: var(--ink-soft); line-height: 1.3; }

.confirm-panel { width: min(100%, 110rem); padding: 11rem 8rem 6rem; text-align: center; }
.confirm-panel p { margin: 0 0 1rem; font-size: 5rem; font-weight: 500; }
.confirm-panel .warn-ic { width: 16rem; height: 16rem; margin: 0 auto 2rem; }

/* --------------------------------------------------------------------------
   Tienda
   -------------------------------------------------------------------------- */
.screen.scr-shop {
  justify-content: flex-start;
  padding-left: 0; padding-right: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 200, 120, 0.18), rgba(255, 200, 120, 0) 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 6rem, rgba(0, 0, 0, 0.04) 6rem 12rem),
    linear-gradient(180deg, rgba(92, 48, 24, 0.97), rgba(52, 26, 12, 0.98));
}
.shop-wrap {
  flex: 1;
  width: 100%;
  margin-top: 13rem;
  min-height: 0;
  display: flex; flex-direction: column;
}
.shop-grid {
  flex: 1; min-height: 0;
  display: flex;
  align-items: center;
  gap: 4rem;
  box-sizing: border-box;
  padding: 3rem max(5rem, var(--sar)) 3rem max(5rem, var(--sal));
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  cursor: grab;
}
.shop-grid.dragging { cursor: grabbing; }
.shop-grid::-webkit-scrollbar { display: none; }
.shop-grid::before, .shop-grid::after { content: ''; flex: 1 0 0; min-width: 0; }
.up-card {
  position: relative;
  flex: none;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  box-sizing: border-box;
  width: 46rem;
  height: min(100%, 76rem);
  padding: 2.4rem 3rem 3.4rem;
  background: linear-gradient(180deg, var(--paper), var(--cream-2));
  border: 0.75rem solid var(--ink);
  border-radius: 4rem;
  box-shadow: 0 1.4rem 0 var(--ink);
  animation: popIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  animation-delay: calc(var(--i) * 0.035s);
}
.up-card.bought { animation: bump 0.5s ease-out; }
.up-card.maxed { background: linear-gradient(180deg, #fffbe6, #ffe9a6); }
.up-head { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.up-icon {
  flex: none;
  width: 14rem; height: 14rem;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fff, #ffe2a8);
  border: 0.6rem solid rgba(59, 42, 32, 0.35);
  display: flex; align-items: center; justify-content: center;
}
.up-icon canvas { width: 11.5rem; height: 11.5rem; }
.up-title { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.up-name { font-weight: 700; font-size: 5.2rem; line-height: 1.02; color: var(--red); white-space: nowrap; }
.up-dots { display: flex; gap: 0.9rem; margin-top: 1rem; }
.up-dots i {
  display: block; width: 3.4rem; height: 3.4rem;
  border-radius: 50%;
  border: 0.5rem solid var(--ink);
  background: #e4d8ca;
  box-sizing: border-box;
}
.up-dots i.on { background: radial-gradient(circle at 40% 35%, var(--green-l), var(--green)); }
.up-desc { margin: 1.2rem 0 1rem; font-size: 3.7rem; font-weight: 500; line-height: 1.15; color: var(--ink-soft); }
.up-effect { margin-bottom: 1.6rem; padding: 0.8rem 2.4rem 1rem; font-size: 3.8rem; font-weight: 600; color: var(--green-d); line-height: 1.1; background: rgba(92, 194, 63, 0.14); border-radius: 2.4rem; }
.up-effect .arr { color: var(--ink-soft); padding: 0 0.6rem; }
.up-card .btn { margin-top: auto; width: 100%; padding: 0 2rem 0.3rem; font-size: 5rem; }
.up-card .btn canvas { width: 7rem; height: 7rem; }
.up-card .btn.is-disabled .cost { color: #ffe0d8; }
.shop-note { text-align: center; color: #fff; text-shadow: var(--o-sm); font-weight: 500; font-size: 4rem; min-height: 5rem; padding-bottom: max(1rem, var(--sab)); }
.shop-empty { color: #fff; text-align: center; text-shadow: var(--o-sm); }

/* --------------------------------------------------------------------------
   Resultados
   -------------------------------------------------------------------------- */
.scr-results .sunburst { top: 40%; opacity: 0.9; }
.results-panel { width: min(100%, 156rem); padding: 8rem 6rem 4rem; }
.results-panel.lose .checker { background: repeating-conic-gradient(#9b8c7c 0 25%, #fff 0 50%) 0 0 / 5rem 5rem; }
.results-panel .panel-foot { margin-top: 3rem; }
.results-panel .btn-big { min-height: max(52px, 15rem); }
.res-body { display: flex; gap: 5rem; align-items: stretch; }
.res-main { flex: 1.25; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.res-side { flex: 1; display: flex; flex-direction: column; gap: 1.2rem; justify-content: center; min-width: 0; }
.res-stars { display: flex; align-items: flex-end; justify-content: center; gap: 2rem; height: 17rem; }
.res-star { position: relative; width: 15rem; height: 15rem; }
.res-star:nth-child(2) { width: 18rem; height: 18rem; transform: translateY(-2rem); }
.res-star canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.res-star .full { opacity: 0; }
.res-star.drop .full { animation: starDrop 0.62s cubic-bezier(0.3, 0.7, 0.4, 1) both; }
@keyframes starDrop {
  0% { opacity: 0; transform: translateY(-34rem) scale(2.1) rotate(-50deg); }
  45% { opacity: 1; transform: translateY(1.6rem) scale(0.86) rotate(6deg); }
  65% { transform: translateY(-2.6rem) scale(1.08) rotate(-3deg); }
  82% { transform: translateY(0.6rem) scale(0.98) rotate(0); }
  100% { opacity: 1; transform: none; }
}
.spark {
  position: absolute; left: 50%; top: 50%;
  width: 3rem; height: 3rem;
  margin: -1.5rem 0 0 -1.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, #ffd34d 60%, rgba(255, 211, 77, 0));
  pointer-events: none;
  animation: spark 0.7s ease-out both;
}
@keyframes spark {
  0% { transform: translate(0, 0) scale(1.4); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; }
}
.res-coins { display: flex; align-items: center; gap: 2rem; margin-top: 1.4rem; font-weight: 700; font-size: 9.6rem; line-height: 1; color: var(--mustard); text-shadow: var(--o-md), 0 1.1rem 0 var(--ink); }
.res-coins canvas { width: 10.5rem; height: 10.5rem; }
.goalbar {
  position: relative;
  width: 92%;
  height: 4.2rem;
  margin: 6rem 0 1rem;
  background: #e2d4c3;
  border: 0.6rem solid var(--ink);
  border-radius: 3rem;
  box-shadow: inset 0 0.9rem 0 rgba(0, 0, 0, 0.12);
}
.goalbar .fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0;
  border-radius: 3rem;
  background: linear-gradient(180deg, #ffe680, var(--mustard) 60%, var(--mustard-d));
}
.goalbar .mark { position: absolute; top: -5.4rem; width: 6rem; height: 6rem; margin-left: -3rem; }
.goalbar .mark canvas { width: 100%; height: 100%; }
.goalbar .tick { position: absolute; top: -0.6rem; bottom: -0.6rem; width: 0.6rem; margin-left: -0.3rem; background: var(--ink); opacity: 0.5; }
.res-total { font-size: 3.8rem; color: var(--ink-soft); font-weight: 500; }
.stat-row {
  display: flex; align-items: center; gap: 2rem;
  padding: 0.6rem 3rem 0.6rem 1.6rem;
  background: #fff;
  border: 0.5rem solid rgba(59, 42, 32, 0.2);
  border-radius: 3rem;
  font-size: 4.2rem; font-weight: 500;
}
.stat-row canvas { width: 6.6rem; height: 6.6rem; flex: none; }
.stat-row b { margin-left: auto; font-weight: 700; font-size: 5rem; }
.scr-results { padding-top: max(6.5rem, var(--sat)); padding-bottom: max(2rem, var(--sab)); }
.res-msg { text-align: center; font-weight: 500; font-size: 4.2rem; line-height: 1.2; color: var(--ink-soft); margin-top: 2.2rem; }
.res-msg b { font-weight: 700; font-size: 4.8rem; color: var(--green-d); }
.res-msg.lose b { color: var(--red-d); }
.res-msg .tip { display: block; font-size: 3.7rem; opacity: 0.85; }
.res-coins { position: relative; }
.stamp {
  position: absolute; left: calc(100% + 3rem); top: -2.4rem;
  padding: 1.2rem 2.6rem 1.6rem;
  font-weight: 700; font-size: 4rem; line-height: 1; text-align: center; white-space: nowrap;
  color: #fff; text-shadow: var(--o-sm);
  background: linear-gradient(180deg, var(--red-l), var(--red));
  border: 0.7rem solid var(--ink);
  border-radius: 2.4rem;
  box-shadow: 0 1rem 0 var(--ink);
  transform: rotate(-12deg) scale(0);
  opacity: 0;
  z-index: 5;
  pointer-events: none;
}
.stamp.show { animation: stampIn 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
@keyframes stampIn { 0% { transform: rotate(-30deg) scale(3); opacity: 0; } 100% { transform: rotate(-12deg) scale(1); opacity: 1; } }
.unlock-chip { opacity: 0; transform: scale(0.5); transition: opacity 0.3s, transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.unlock-chip.show { opacity: 1; transform: scale(1); }

/* --------------------------------------------------------------------------
   RONDA 2: retos, metas compactas, estadísticas compactas, recetario
   -------------------------------------------------------------------------- */
/* puntitos de retos en los nodos del mapa */
.ch-dots {
  position: absolute; left: 50%; bottom: -2.6rem;
  transform: translateX(-50%);
  display: flex; gap: 0.7rem;
  padding: 0.7rem 1.2rem;
  background: rgba(59, 42, 32, 0.85);
  border-radius: 2rem;
  z-index: 1;
}
.ch-dots i { display: block; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: rgba(255, 255, 255, 0.28); box-sizing: border-box; }
.ch-dots i.on { background: radial-gradient(circle at 40% 35%, var(--green-l), var(--green)); box-shadow: 0 0 0 0.3rem rgba(156, 228, 110, 0.35); }
.day-node .day-stars { margin-top: 3.2rem; }

/* metas compactas en la previa */
.goals { flex-direction: row; gap: 1.6rem; }
.goal-chip {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 1rem 1rem 1.2rem;
  background: #fff;
  border: 0.55rem solid rgba(59, 42, 32, 0.22);
  border-radius: 3rem;
}
.goal-chip.got { background: #fff3c4; border-color: var(--mustard-d); }
.goal-chip .goal-stars canvas { width: 4.6rem; height: 4.6rem; }
.goal-chip .goal-val { margin-left: 0; font-size: 5rem; gap: 0.8rem; }
.goal-chip .goal-val canvas { width: 5rem; height: 5rem; }
.preview-panel .lvl-name { margin-bottom: 1.8rem; font-size: 7.6rem; }

/* lista de retos */
.ch-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.2rem; }
.ch-title { display: flex; align-items: center; gap: 1.2rem; font-weight: 700; font-size: 4rem; color: var(--ink-soft); }
.ch-title .ch-title-ic { width: 5rem; height: 5rem; }
.ch-row {
  display: flex; align-items: center; gap: 1.6rem;
  padding: 0.8rem 1.4rem 0.8rem 1.2rem;
  background: #fff;
  border: 0.5rem solid rgba(59, 42, 32, 0.18);
  border-radius: 2.8rem;
  transition: opacity 0.2s, background 0.2s;
}
.ch-row .ch-ic { width: 6.4rem; height: 6.4rem; flex: none; }
.ch-row .ch-text { flex: 1; min-width: 0; font-weight: 500; font-size: 3.7rem; line-height: 1.12; }
.ch-row .ch-reward {
  flex: none; display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 3.8rem; color: var(--mustard-d);
}
.ch-row .ch-coin { width: 4.4rem; height: 4.4rem; }
.ch-row .ch-check {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 6rem; height: 6rem;
  border-radius: 50%;
  border: 0.5rem solid rgba(59, 42, 32, 0.3);
  background: #efe6da;
  box-sizing: border-box;
}
.ch-row .ch-check .ico { width: 70%; height: 70%; opacity: 0; transition: opacity 0.15s; }
.ch-row.st-done .ch-check, .ch-row.st-before .ch-check { background: radial-gradient(circle at 40% 35%, var(--green-l), var(--green)); border-color: var(--ink); }
.ch-row.st-done .ch-check .ico, .ch-row.st-before .ch-check .ico { opacity: 1; }
.ch-row.st-done { background: #f0fbe6; border-color: rgba(46, 138, 34, 0.45); }
.ch-row.st-before { background: #f6fbef; }
.ch-row.st-before .ch-reward, .ch-row.paid .ch-reward { color: var(--gray-d); text-decoration: line-through; opacity: 0.75; }
.ch-row.st-todo { opacity: 0.55; }
.ch-row.pending .ch-check { background: #efe6da; }
.ch-row.tick .ch-check { animation: checkPop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes checkPop { 0% { transform: scale(0.3); } 100% { transform: scale(1); } }
.ch-row.first .ch-reward { animation: bump 0.45s ease-out; }
.ch-list.compact-list .ch-row, .ch-row.compact { padding-top: 0.5rem; padding-bottom: 0.5rem; }

.best-line { flex-wrap: wrap; row-gap: 1rem; }
.note-chip {
  display: inline-flex; align-items: center; gap: 0.8rem;
  margin-left: 1.6rem;
  padding: 0.5rem 2rem 0.7rem 1rem;
  font-weight: 600; font-size: 3.5rem; color: #fff; text-shadow: var(--o-sm);
  background: linear-gradient(180deg, var(--mustard-l), var(--mustard-d));
  border: 0.5rem solid var(--ink);
  border-radius: 3rem;
  white-space: nowrap;
}
.note-chip.rush { background: linear-gradient(180deg, var(--red-l), var(--red)); }
.note-chip .chip-ic { width: 5rem; height: 5rem; }

/* pausa: columna lateral con interruptores, retos y recetario */
.pause-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2.4rem; }
.pause-side .pause-toggles { flex-direction: row; gap: 2rem; }
.pause-side .toggle-row { flex: 1; min-width: 0; padding: 1rem 1.6rem 1rem 1.4rem; gap: 1.4rem; }
.pause-side .toggle-row .t-ic { width: 7rem; height: 7rem; }
.pause-side .toggle-row .t-label { font-size: 4.2rem; }
.pause-side .switch { width: max(64px, 18rem); }
.pause-side .ch-list { margin-top: 0; }
.pause-side .book-wide { align-self: flex-start; }
.btn .btn-ic { width: 7rem; height: 7rem; }
.pause-panel { width: min(100%, 172rem); padding: 10rem 6rem 6rem; }
.pause-actions { flex: 0.8; gap: 3.6rem; }

/* botón redondo del recetario en el mapa */
.book-btn .rb-ic { width: 70%; height: 70%; }

/* resultados: estadísticas compactas 2×2 + retos */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.stat-chip {
  display: flex; align-items: center; gap: 1.2rem;
  min-width: 0;
  padding: 0.6rem 1.6rem 0.6rem 1rem;
  background: #fff;
  border: 0.5rem solid rgba(59, 42, 32, 0.18);
  border-radius: 3rem;
}
.stat-chip canvas { width: 6.2rem; height: 6.2rem; flex: none; }
.stat-chip .sc-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1; }
.stat-chip b { font-weight: 700; font-size: 4.8rem; }
.stat-chip small { font-size: 2.9rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-extra { text-align: center; font-size: 3.3rem; font-weight: 500; color: var(--ink-soft); }
.res-side { gap: 1rem; justify-content: flex-start; }
.res-side .ch-list { margin-top: 0.2rem; gap: 0.7rem; }
.res-side .ch-title { font-size: 3.4rem; }
.res-side .ch-title .ch-title-ic { width: 4.4rem; height: 4.4rem; }
.res-side .ch-row { padding-top: 0.3rem; padding-bottom: 0.3rem; gap: 1.2rem; }
.res-side .ch-row .ch-ic { width: 5.4rem; height: 5.4rem; }
.res-side .ch-row .ch-check { width: 5.2rem; height: 5.2rem; }
.res-side .ch-row .ch-text { font-size: 3.4rem; }
.results-panel { padding-top: 7rem; }
.results-panel .panel-foot { margin-top: 2.2rem; }
.results-panel .res-msg { margin-top: 1.6rem; }
.fly-reward {
  position: absolute;
  z-index: 30;
  padding: 0.6rem 2rem 1rem;
  font-weight: 700; font-size: 5rem; color: #fff; text-shadow: var(--o-sm);
  background: linear-gradient(180deg, var(--mustard-l), var(--mustard-d));
  border: 0.6rem solid var(--ink);
  border-radius: 3rem;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.5, -0.3, 0.7, 1), opacity 0.6s ease-in;
}
.res-total.bump { animation: bump 0.4s ease-out; }
.unlock-wrap { position: absolute; left: -2rem; top: -1rem; z-index: 6; transform: rotate(-8deg); pointer-events: none; }
.unlock-wrap .unlock-chip { background: linear-gradient(180deg, var(--green-l), var(--green-d)); font-size: 4.2rem; height: 9.5rem; }

/* recetario */
.screen.scr-book {
  justify-content: flex-start;
  padding-left: 0; padding-right: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 200, 120, 0.18), rgba(255, 200, 120, 0) 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 6rem, rgba(0, 0, 0, 0.04) 6rem 12rem),
    linear-gradient(180deg, rgba(40, 62, 92, 0.97), rgba(22, 32, 52, 0.98));
}
.tabs { display: flex; gap: 1.6rem; margin-left: 2rem; }
.tab {
  min-height: max(var(--touch), 11rem);
  padding: 0 4.4rem 0.4rem;
  font-family: var(--font); font-weight: 600; font-size: 4.6rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.12);
  border: 0.6rem solid rgba(255, 255, 255, 0.25);
  border-radius: 6rem;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-appearance: none; appearance: none;
}
.tab.on { color: var(--ink); background: linear-gradient(180deg, #fff, var(--cream-2)); border-color: var(--ink); box-shadow: 0 1rem 0 var(--ink); }
.book-wrap { flex: 1; width: 100%; margin-top: 13rem; min-height: 0; display: flex; flex-direction: column; }
.book-pane[hidden] { display: none !important; }
.rc-card {
  position: relative;
  flex: none;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  box-sizing: border-box;
  width: 56rem;
  height: min(100%, 78rem);
  padding: 2rem 2.4rem 2.6rem;
  background: linear-gradient(180deg, var(--paper), var(--cream-2));
  border: 0.75rem solid var(--ink);
  border-radius: 4rem;
  box-shadow: 0 1.4rem 0 var(--ink);
  animation: popIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  animation-delay: calc(var(--i) * 0.03s);
}
.rc-art { position: relative; width: 100%; height: 18rem; flex: none; }
.rc-art .rc-canvas { width: 100%; height: 100%; }
.rc-name { margin-top: 0.6rem; font-weight: 700; font-size: 5.6rem; line-height: 1; color: var(--red); }
.rc-ings {
  list-style: none; margin: 1.4rem 0 1rem; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem 0.8rem;
  counter-reset: ing;
}
.rc-ings li {
  counter-increment: ing;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.2rem 1.4rem 0.2rem 0.6rem;
  font-size: 3.1rem; font-weight: 500;
  background: #fff;
  border: 0.45rem solid rgba(59, 42, 32, 0.18);
  border-radius: 2.4rem;
}
.rc-ings li::before {
  content: counter(ing);
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.6rem; height: 3.6rem;
  font-size: 2.6rem; font-weight: 700; color: #fff;
  background: var(--red); border-radius: 50%;
}
.rc-ings .rc-ing-ic { width: 6rem; height: 4rem; }
.rc-price {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 1rem;
  padding: 0.6rem 3rem 1rem 1.4rem;
  font-weight: 700; font-size: 5.6rem; color: #fff; text-shadow: var(--o-sm);
  background: linear-gradient(180deg, #6b4a36, #4a3226);
  border: 0.6rem solid var(--ink);
  border-radius: 4rem;
}
.rc-price .rc-coin { width: 6.4rem; height: 6.4rem; }
.rc-card.locked { background: linear-gradient(180deg, #efe6da, #d9ccbc); justify-content: flex-start; }
.rc-card.locked .rc-name { color: var(--gray-d); }
.rc-q {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700; font-size: 13rem; line-height: 1;
  color: #fff; text-shadow: var(--o-md), 0 1rem 0 var(--ink);
}
.rc-lock { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 1rem; font-weight: 600; font-size: 4rem; color: var(--ink-soft); }
.rc-lock .rc-lock-ic { width: 9rem; height: 9rem; }
.tips-grid {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 3rem;
  box-sizing: border-box;
  width: min(100%, 186rem);
  align-self: center;
  padding: 2rem max(4rem, var(--sar)) max(4rem, var(--sab)) max(4rem, var(--sal));
  overflow-y: auto;
  touch-action: pan-y;
  scrollbar-width: none;
}
.tips-grid::-webkit-scrollbar { display: none; }
.tip-card {
  display: flex; align-items: center; gap: 2.4rem;
  min-height: 0;
  padding: 2.4rem 3rem;
  background: linear-gradient(180deg, var(--paper), var(--cream-2));
  border: 0.75rem solid var(--ink);
  border-radius: 4rem;
  box-shadow: 0 1.2rem 0 var(--ink);
  animation: popIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  animation-delay: calc(var(--i) * 0.04s);
}
.tip-card .tip-ic { width: 13rem; height: 13rem; flex: none; }
.tip-txt { display: flex; flex-direction: column; gap: 0.8rem; min-width: 0; }
.tip-txt b { font-weight: 700; font-size: 4.8rem; line-height: 1.05; color: var(--red); }
.tip-txt span { font-weight: 500; font-size: 3.8rem; line-height: 1.2; }

/* --------------------------------------------------------------------------
   RONDA 3: restaurantes, temporadas, días difíciles, pizzería
   -------------------------------------------------------------------------- */
.resto-card .soon.req {
  max-width: 38rem; white-space: normal; text-align: center; line-height: 1.1;
  font-size: 3.4rem; background: var(--red-d); transform: rotate(-3deg);
}
.resto-card.locked .resto-prog { margin-top: 1.4rem; padding-top: 0; opacity: 0.7; }
.resto-card.locked .soon { margin-top: auto; }
.resto-card.resto-pizza:not(.locked) .awning { background: repeating-linear-gradient(90deg, var(--green) 0 5.5rem, #fff 5.5rem 11rem); }
.resto-card.resto-pizza:not(.locked) .awning::after {
  background: radial-gradient(circle at 2.75rem 0, var(--green) 2.6rem, transparent 2.75rem) 0 0 / 11rem 3.6rem repeat-x,
              radial-gradient(circle at 8.25rem 0, #fff 2.6rem, transparent 2.75rem) 0 0 / 11rem 3.6rem repeat-x;
}
.resto-card.resto-pizza:not(.locked) .resto-name { color: var(--green-d); }

/* fondo de escena del restaurante (pizzería) bajo el mapa */
.scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; filter: brightness(0.8); }
.scr-map { z-index: 0; }
.scr-map.map-pizza { background: radial-gradient(ellipse at 50% 45%, rgba(20, 50, 20, 0.05) 0%, rgba(20, 30, 15, 0.45) 100%); }

/* cinta con subtítulo (temporada) */
.ribbon.two-line { flex-direction: column; gap: 0.2rem; padding-top: 0.4rem; padding-bottom: 0.8rem; }
.ribbon.two-line .rb-main { line-height: 1; }
.ribbon.two-line .rb-sub { font-size: 3rem; font-weight: 600; line-height: 1; opacity: 0.95; }
.ribbon.hard { background: linear-gradient(180deg, #ff6a45, #d6281a 55%, #8f1b10); --rd: #8f1b10; }

/* mapa con varias temporadas: flechas a los lados + deslizar */
.scr-map.paged .map-area { width: min(100% - 32rem, 175rem); }
.page-arrow {
  position: absolute; top: 56%;
  transform: translateY(-50%);
  flex-direction: column;
  z-index: 4;
}
.page-arrow:active { transform: translateY(calc(-50% + 1.1rem)); }
.page-arrow.prev { left: max(3.5rem, var(--sal)); }
.page-arrow.next { right: max(3.5rem, var(--sar)); }
.page-arrow .pa-label {
  position: absolute; top: calc(100% + 2.4rem); left: 50%;
  transform: translateX(-50%);
  padding: 0.6rem 1.2rem 0.8rem;
  font-weight: 600; font-size: 2.7rem; line-height: 1.05; white-space: nowrap; text-align: center;
  color: #fff; text-shadow: var(--o-sm);
  background: rgba(59, 42, 32, 0.85);
  border-radius: 2rem;
  pointer-events: none;
}
.map-area { touch-action: pan-y; }

/* días difíciles ("muro") */
.day-node.wall .day-circle {
  border-color: #b3170c;
  box-shadow: 0 1.4rem 0 #6e0f08, inset 0 -1.3rem 0 var(--edge), inset 0 0.8rem 0 rgba(255, 255, 255, 0.55), 0 0 0 0.9rem rgba(232, 69, 44, 0.45);
}
.day-node.wall .wall-badge {
  position: absolute; right: -3.4rem; top: -3rem;
  width: 8.6rem; height: 8.6rem;
  z-index: 2;
  filter: drop-shadow(0 0.4rem 0 rgba(59, 42, 32, 0.4));
}
.day-node.wall.locked .wall-badge { opacity: 0.8; }
.note-chip.hard { background: linear-gradient(180deg, #ff7a57, #c8261a); }
.ribbon .rb-chili { width: 7.6rem; height: 7.6rem; margin: -1.4rem 0 -1.4rem -2rem; }
.ribbon .hard-tag {
  margin-left: 0.6rem;
  padding: 0.6rem 1.8rem 0.9rem;
  font-size: 3.4rem; font-weight: 700; line-height: 1;
  color: #fff3c4; text-shadow: var(--o-sm);
  background: rgba(59, 42, 32, 0.45);
  border-radius: 2rem;
}

/* menú del día con muchas recetas (temporada 2) */
.menu-card.many .menu-item { width: 13rem; }
.menu-card.many .menu-item canvas { width: 12.5rem; height: 9.5rem; }
.menu-card.lots .menu-items { gap: 0.6rem 0.8rem; }
.menu-card.lots .menu-item { width: 10.5rem; }
.menu-card.lots .menu-item canvas { width: 10rem; height: 7.4rem; }
.menu-card.lots .menu-item span { font-size: 2.6rem; }
.menu-card.lots h3 { margin-bottom: 0.6rem; }

/* tienda: cifras de 4 dígitos */
.up-card .btn .cost { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   RONDA 4: barra de meta (3★ = 100 %), recomendaciones, consejo en la previa
   -------------------------------------------------------------------------- */
.goalbar { overflow: visible; }
.goalbar .fill { transition: background 0.3s; overflow: hidden; }
.goalbar .mark.end { margin-left: -3rem; }
.goalbar.full .fill {
  background: linear-gradient(180deg, #fff09a, #ffc531 55%, #e8a00d);
  box-shadow: 0 0 2.4rem 0.6rem rgba(255, 210, 70, 0.75);
}
.goalbar.full .fill::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  animation: barShine 1.4s ease-in-out 2;
}
@keyframes barShine { from { left: -40%; } to { left: 110%; } }
.goalbar.full { animation: bump 0.5s ease-out; }
.goalbar .bar-note {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%) scale(0.6);
  text-align: center;
  font-weight: 700; font-size: 3rem; line-height: 1; white-space: nowrap;
  color: #fff; text-shadow: var(--o-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
  z-index: 2;
}
.goalbar .bar-note.show { opacity: 1; transform: translateY(-50%) scale(1); }
.goalbar.short .bar-note { color: var(--ink-soft); text-shadow: 0 0.3rem 0 rgba(255, 255, 255, 0.6); font-weight: 600; }

/* estadísticas en una fila compacta (debajo del total) */
.stat-row-mini { display: flex; gap: 1rem; margin-top: 1.4rem; width: 100%; justify-content: center; }
.mini-stat {
  flex: 1 1 0; min-width: 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto;
  column-gap: 0.6rem; align-items: center;
  padding: 0.4rem 1rem 0.5rem 0.6rem;
  background: #fff;
  border: 0.45rem solid rgba(59, 42, 32, 0.16);
  border-radius: 2.4rem;
  line-height: 1;
}
.mini-stat canvas { grid-row: 1 / span 2; width: 5rem; height: 5rem; }
.mini-stat b { font-weight: 700; font-size: 3.5rem; }
.mini-stat small { font-size: 2.2rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* pestañas Retos | Consejo dentro de Resultados */
.res-tabs { display: flex; gap: 1.2rem; align-items: center; }
.res-tabs .rec-shop { flex: none; padding: 0 0 0.3rem; min-width: max(var(--touch), 12rem); font-size: 3.8rem; min-height: max(var(--touch), 10.5rem); }
.res-tabs .rec-shop > span { display: none; }
.res-tabs .rec-shop .ico { width: 6.4rem; height: 6.4rem; }
.scr-results .res-stars { height: 15rem; }
.scr-results .res-star { width: 13.5rem; height: 13.5rem; }
.scr-results .res-star:nth-child(2) { width: 16rem; height: 16rem; transform: translateY(-1.8rem); }
.scr-results .goalbar { margin-top: 5.6rem; }
.res-tabs .tab {
  flex: 1;
  min-height: max(var(--touch), 10.5rem);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem;
  padding: 0 2rem 0.3rem;
  font-size: 4rem;
  color: var(--ink-soft);
  background: rgba(59, 42, 32, 0.08);
  border-color: rgba(59, 42, 32, 0.2);
}
.res-tabs .tab.on { color: var(--ink); background: linear-gradient(180deg, #fff, var(--cream-2)); border-color: var(--ink); box-shadow: 0 0.8rem 0 var(--ink); }
.res-tabs .tab-ic { width: 4.6rem; height: 4.6rem; }
.res-pane[hidden] { display: none !important; }
.res-pane.pop-in { animation: popIn 0.4s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
.res-side.with-tabs { gap: 1.4rem; }

/* tarjeta "Para conseguir 3 estrellas" */
.rec-head { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.rec-title { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 700; font-size: 4rem; color: var(--red); white-space: nowrap; }
.rec-title .rec-star { width: 4.4rem; height: 4.4rem; }
.rec-head .rec-shop { padding: 0 2.6rem 0.3rem; font-size: 3.8rem; }
.rec-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.rec-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.5rem 0.8rem 0.5rem 0.8rem;
  background: #fff;
  border: 0.5rem solid rgba(59, 42, 32, 0.18);
  border-radius: 3rem;
}
.rec-row.bought { background: #f0fbe6; border-color: rgba(46, 138, 34, 0.45); }
.rec-ic {
  flex: none; width: 8rem; height: 8rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 35%, #fff, #ffe2a8);
  border: 0.45rem solid rgba(59, 42, 32, 0.3);
}
.rec-ic canvas { width: 6.6rem; height: 6.6rem; }
.rec-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; line-height: 1.05; }
.rec-txt b { font-weight: 700; font-size: 3.6rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-txt .rec-why {
  font-size: 2.9rem; color: var(--ink-soft); line-height: 1.08;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.rec-txt .rec-eff { font-size: 2.8rem; font-weight: 600; color: var(--green-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.rec-txt .rec-eff .arr { padding: 0 0.2rem; color: var(--ink-soft); }
.rec-buy { flex: none; min-width: max(var(--touch), 15rem); padding: 0 1.6rem 0.3rem; font-size: 3.8rem; gap: 0.6rem; border-radius: 3.4rem; }
.rec-buy .btn-coin { width: 4.6rem; height: 4.6rem; }
.rec-buy.short { padding: 0 1.2rem 0.3rem; }
.rec-buy .rb-two { display: flex; flex-direction: column; align-items: center; line-height: 1; gap: 0.2rem; }
.rec-buy .rb-two small { font-size: 2.6rem; }
.rec-buy .rb-two > span { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 3.8rem; }
.rec-buy .rb-two .btn-coin { width: 4.2rem; height: 4.2rem; }
.rec-done {
  flex: none; display: inline-flex; align-items: center; gap: 0.8rem;
  min-width: 15rem; justify-content: center;
  font-weight: 700; font-size: 3.2rem; color: var(--green-d);
}
.rec-done .ico { width: 5rem; height: 5rem; }
.rec-done .ico .si { stroke: var(--green); }
.rec-row.bump { animation: bump 0.45s ease-out; }

/* tienda: cinta "¡Recomendado!" */
.up-card.recommended { border-color: var(--red-d); box-shadow: 0 1.4rem 0 var(--red-d), 0 0 0 0.8rem rgba(255, 197, 49, 0.55); }
.rec-ribbon {
  position: absolute; top: -2.4rem; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  padding: 0.6rem 2.6rem 1rem;
  font-weight: 700; font-size: 3.4rem; line-height: 1; white-space: nowrap;
  color: #fff; text-shadow: var(--o-sm);
  background: linear-gradient(180deg, var(--red-l), var(--red));
  border: 0.55rem solid var(--ink);
  border-radius: 2rem;
  box-shadow: 0 0.8rem 0 var(--ink);
  z-index: 3;
}

/* previa: consejo guardado */
.prev-tip {
  display: inline-flex; align-items: center; gap: 1.2rem;
  padding: 0.4rem 2.2rem 0.4rem 0.8rem;
  color: var(--ink);
  font-size: 3.6rem; font-weight: 500; line-height: 1.1;
  background: #fff6d6;
  border: 0.5rem dashed var(--mustard-d);
  border-radius: 3rem;
}
.prev-tip .pt-ic { width: 5.6rem; height: 5.6rem; flex: none; }
.best-line .prev-tip canvas.pt-ic { width: 5.6rem; height: 5.6rem; }
.prev-tip b { color: var(--red); }

/* --------------------------------------------------------------------------
   Modo de prueba (sin game.js), toast
   -------------------------------------------------------------------------- */
.dev-panel { width: min(100%, 120rem); text-align: center; padding: 11rem 6rem 6rem; }
.dev-panel p { margin: 0 0 4rem; font-size: 4.4rem; }
.dev-actions { display: flex; flex-wrap: wrap; gap: 4rem 3rem; justify-content: center; }

#toast {
  position: absolute; left: 50%; top: max(3rem, var(--sat));
  transform: translate(-50%, -160%);
  padding: 2rem 5rem 2.4rem;
  font-weight: 600; font-size: 4.6rem;
  color: #fff; text-shadow: var(--o-sm);
  background: linear-gradient(180deg, #6b4a36, #4a3226);
  border: 0.7rem solid var(--ink);
  border-radius: 4rem;
  box-shadow: 0 1.2rem 0 rgba(0, 0, 0, 0.35);
  white-space: nowrap;
  z-index: 50;
  transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1), visibility 0s 0.35s;
  visibility: hidden;
  pointer-events: none;
}
#toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1), visibility 0s; }

/* --------------------------------------------------------------------------
   Overlay "Gira tu teléfono" (solo CSS)
   -------------------------------------------------------------------------- */
#rotate {
  display: none;
  position: fixed; inset: 0;
  z-index: 100;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 6vmin;
  padding: 8vmin;
  box-sizing: border-box;
  text-align: center;
  font-family: var(--font);
  color: #fff;
  background:
    repeating-conic-gradient(from 0deg at 50% 40%, rgba(255, 220, 140, 0.16) 0 10deg, rgba(255, 220, 140, 0) 10deg 20deg),
    linear-gradient(180deg, #ef5a3a, #b42f1b);
  touch-action: none;
}
#rotate .phone {
  position: relative;
  width: 26vmin; height: 44vmin;
  box-sizing: border-box;
  border: 2.2vmin solid #3b2a20;
  border-radius: 5vmin;
  background: linear-gradient(180deg, #fff6e2, #ffe1a0);
  box-shadow: 0 2vmin 0 #3b2a20;
  animation: rotPhone 2.4s ease-in-out infinite;
}
#rotate .phone::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 12vmin; height: 12vmin; margin: -6vmin 0 0 -6vmin;
  border-radius: 50% 50% 18% 18%;
  background: linear-gradient(180deg, #e8a94f 0 40%, #6cc04a 40% 52%, #7a3f22 52% 75%, #e8a94f 75%);
  border: 1vmin solid #3b2a20;
  box-sizing: border-box;
}
#rotate .phone::after {
  content: ''; position: absolute; left: 50%; bottom: 2vmin;
  width: 6vmin; height: 1.4vmin; margin-left: -3vmin;
  border-radius: 1vmin; background: #3b2a20; opacity: 0.5;
}
@keyframes rotPhone { 0%, 20% { transform: rotate(0deg); } 55%, 85% { transform: rotate(-90deg); } 100% { transform: rotate(0deg); } }
#rotate .rot-title {
  font-weight: 700; font-size: 8.5vmin; line-height: 1.05;
  text-shadow: 0.6vmin 0 0 #3b2a20, -0.6vmin 0 0 #3b2a20, 0 0.6vmin 0 #3b2a20, 0 -0.6vmin 0 #3b2a20, 0.45vmin 0.45vmin 0 #3b2a20, -0.45vmin 0.45vmin 0 #3b2a20, 0.45vmin -0.45vmin 0 #3b2a20, -0.45vmin -0.45vmin 0 #3b2a20, 0 1.4vmin 0 #3b2a20;
}
#rotate .rot-sub { font-weight: 500; font-size: 4.6vmin; opacity: 0.95; }
@media (orientation: portrait) {
  #rotate { display: flex; }
}

/* Pantallas con poca altura relativa (tablets 4:3): un poco más de aire */
@media (min-aspect-ratio: 4/3) and (max-aspect-ratio: 3/2) {
  .preview-panel, .results-panel { max-width: 150rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sunburst, .logo .lt, .tap-hint, .title-food canvas, .day-node.current .day-circle,
  .day-node.current .day-circle::before, .today-flag, .btn-pulse, .intro-card .sticker { animation: none !important; }
}

/* ==========================================================================
   RONDA 5 — Logros, regalo diario, copia de seguridad, ajustes ampliados
   ========================================================================== */
.btn-round.mustard { --c1: var(--mustard-l); --c2: var(--mustard); --edge: var(--mustard-d); }
.btn-round.mustard .ico .fo { fill: #fff; }
.gift-btn .rb-ic, .trophy-btn .rb-ic { width: 70%; height: 70%; }
.badge-dot {
  position: absolute; top: -1rem; right: -2.6rem;
  min-width: 6.4rem; height: 6.4rem; padding: 0 1.2rem;
  box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 3.8rem; line-height: 1; color: #fff; text-shadow: var(--o-sm);
  background: radial-gradient(circle at 40% 35%, var(--red-l), var(--red));
  border: 0.55rem solid var(--ink);
  border-radius: 4rem;
  pointer-events: none;
  animation: blink 1.2s ease-in-out infinite;
}
.badge-dot[hidden] { display: none; }
.gift-btn.wiggle { animation: giftWiggle 2.2s ease-in-out infinite; }
@keyframes giftWiggle {
  0%, 70%, 100% { transform: rotate(0); }
  75% { transform: rotate(-12deg) scale(1.06); } 80% { transform: rotate(10deg) scale(1.06); }
  85% { transform: rotate(-8deg); } 90% { transform: rotate(5deg); }
}

/* aviso de logro */
.ach-toast {
  position: absolute; right: max(3rem, var(--sar)); top: max(3rem, var(--sat));
  transform: translateX(calc(100% + 8rem));
  display: flex; align-items: center; gap: 2.4rem;
  padding: 1.6rem 3.6rem 1.8rem 2rem;
  color: var(--ink);
  background: linear-gradient(180deg, #fffbe6, #ffe08a);
  border: 0.7rem solid var(--ink);
  border-radius: 5rem;
  box-shadow: 0 1.2rem 0 var(--ink), 0 0 0 1rem rgba(255, 213, 79, 0.45);
  white-space: nowrap;
  z-index: 49;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.38s cubic-bezier(0.3, 1.4, 0.5, 1), visibility 0s 0.38s;
}
.ach-toast.show { transform: translateX(0); visibility: visible; transition: transform 0.38s cubic-bezier(0.3, 1.4, 0.5, 1), visibility 0s; }
.ach-toast .at-ic {
  width: 10rem; height: 10rem; flex: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 0.55rem solid var(--ink);
  background: radial-gradient(circle at 50% 30%, var(--mustard-l), var(--mustard));
}
.ach-toast .at-ic .ico { width: 64%; height: 64%; }
.ach-toast .at-ic .ico .fo { fill: #fff; }
.ach-toast .at-txt { display: flex; flex-direction: column; line-height: 1.05; }
.ach-toast small { font-size: 3.2rem; font-weight: 600; color: var(--ink-soft); }
.ach-toast b { font-size: 5rem; color: var(--red); }
.ach-toast .at-rw { display: flex; align-items: center; gap: 0.8rem; font-weight: 700; font-size: 4.6rem; color: var(--green-d); }
.ach-toast .at-coin { width: 6rem; height: 6rem; }

/* regalo diario */
.daily-panel { width: min(100%, 170rem); padding: 12rem 6rem 5rem; text-align: center; }
.daily-panel .rb-chili { width: 8rem; height: 8rem; margin: -1.6rem 0 -1.6rem -2rem; }
.dr-row { display: flex; gap: 2.4rem; justify-content: center; align-items: stretch; }
.dr-cell {
  position: relative;
  flex: 1 1 0; min-width: 0; max-width: 22rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding: 2rem 1rem 2.4rem;
  background: #fff;
  border: 0.6rem solid rgba(59, 42, 32, 0.3);
  border-radius: 3.6rem;
  animation: popIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) both;
  animation-delay: calc(var(--i) * 0.05s);
}
.dr-cell.big { flex-grow: 1.35; max-width: 30rem; background: linear-gradient(180deg, #fff6d6, #ffe08a); }
.dr-day { font-weight: 700; font-size: 3.6rem; color: var(--ink-soft); }
.dr-ic { width: 11rem; height: 11rem; }
.dr-cell.big .dr-ic { width: 14rem; height: 14rem; }
.dr-amt { font-weight: 700; font-size: 5.2rem; color: var(--ink); }
.dr-check {
  position: absolute; inset: 0;
  display: none; align-items: center; justify-content: center;
  background: rgba(92, 194, 63, 0.28);
  border-radius: 3rem;
}
.dr-check .ico { width: 13rem; height: 13rem; }
.dr-cell.got { border-color: var(--green-d); }
.dr-cell.got .dr-check { display: flex; }
.dr-cell.got .dr-ic, .dr-cell.got .dr-amt { opacity: 0.55; }
.dr-cell.today {
  border-color: var(--red);
  box-shadow: 0 0 0 1rem rgba(255, 197, 49, 0.6);
  animation: popIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) both, pulseBtn 1.1s ease-in-out 0.6s infinite;
  animation-delay: calc(var(--i) * 0.05s), 0.6s;
}
.dr-note { margin: 4rem 0 0; font-size: 4.2rem; font-weight: 500; color: var(--ink-soft); }
.dr-note b { color: var(--red); }
.daily-panel .panel-foot { margin-top: 3.6rem; }

/* logros (reutiliza la tienda) */
.ach-card { height: min(100%, 70rem); }
.ach-card .up-desc { flex: 1; }
.ach-card.st-locked .up-icon { filter: grayscale(0.7); opacity: 0.8; }
.ach-card.st-ready { border-color: var(--red-d); box-shadow: 0 1.4rem 0 var(--red-d), 0 0 0 0.8rem rgba(255, 197, 49, 0.55); }
.ach-card.st-claimed { background: linear-gradient(180deg, #f3ffe9, #d9f5c6); }
.ach-bar {
  position: relative; width: 100%; height: 8rem; margin-top: auto;
  background: #e9dccb; border: 0.55rem solid var(--ink); border-radius: 4rem; overflow: hidden;
  box-sizing: border-box;
}
.ach-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(180deg, var(--mustard-l), var(--mustard)); }
.ach-bar span { position: relative; display: flex; height: 100%; align-items: center; justify-content: center; font-weight: 700; font-size: 3.6rem; }
.ach-rw { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.6rem; font-weight: 700; font-size: 4.4rem; color: var(--green-d); }
.ach-coin { width: 6rem; height: 6rem; }
.ach-done { margin-top: auto; display: flex; align-items: center; gap: 1.2rem; font-weight: 700; font-size: 5rem; color: var(--green-d); }
.ach-done .ico { width: 7rem; height: 7rem; }
.ach-done .ico .si { stroke: var(--green); }
.scr-ach .ribbon { margin-left: 4rem; }

/* ajustes ampliados */
.settings-panel { padding-bottom: 5rem; }
.fs-ic .si { stroke: var(--red); }
.settings-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem 4rem; margin-top: 5rem; }
.settings-foot { margin-top: 3.6rem; justify-content: center; text-align: center; }
.settings-foot .credits .warn { color: var(--red-d); }

/* copia de seguridad */
.backup-panel { width: min(100%, 170rem); padding: 11rem 6rem 5rem; }
.bk-cols { display: flex; gap: 5rem; }
.bk-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1.6rem; text-align: center; }
.bk-col > b { font-size: 5.4rem; color: var(--red); }
.bk-col > span { font-size: 3.8rem; font-weight: 500; color: var(--ink-soft); }
.bk-col textarea {
  width: 100%; height: 24rem; box-sizing: border-box; resize: none;
  padding: 2rem 2.4rem;
  font-family: ui-monospace, Consolas, monospace; font-size: 3.2rem; line-height: 1.2;
  color: var(--ink); background: #fff;
  border: 0.55rem solid rgba(59, 42, 32, 0.35); border-radius: 3rem;
  -webkit-user-select: text; user-select: text; touch-action: auto;
  word-break: break-all;
  outline: none;
}
.bk-col textarea:focus { border-color: var(--blue-d); }
.ach-card .up-name { white-space: normal; font-size: 4.6rem; text-align: center; }
.toggle-row .t-label.two { white-space: normal; font-size: 4.3rem; line-height: 1.02; }
.fs-ic .so { stroke-width: 4.6; } .fs-ic .si { stroke-width: 2.2; }
/* Mapa en pantallas 16:9 a 2:1 (PC, tabletas): la barra superior no cabe completa.
   Tienda solo con ícono y, si hace falta, sin la ficha de estrellas (se ve en el restaurante). */
@media (max-aspect-ratio: 2/1) {
  .topbar .btn-sm > span { display: none; }
  .topbar .btn-sm { padding: 0 2.4rem 0.3rem; min-width: max(var(--touch), 12.5rem); }
  .topbar .btn-sm .ico { width: 7rem; height: 7rem; }
}
@media (max-aspect-ratio: 39/20) {
  .scr-map .topbar > .chip.light { display: none; }
}
/* título: botón "Seguir" (ya hay progreso) */
.title-cont {
  position: absolute; bottom: max(3.5rem, calc(var(--sab) + 2rem)); left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2.2rem;
}
.title-cont .btn { font-size: 5.6rem; }
.title-cont .tc-or { font-weight: 600; font-size: 3.8rem; color: #fff; text-shadow: var(--o-sm); opacity: 0.92; }
