/* ==========================================================================
   TOTORE · PIZZA ZONE
   Todo se apoya en el azulejo: la pared es una grilla (--t = un azulejo) y
   fotos y paneles ocupan azulejos enteros. Mobile first.
   ========================================================================== */

@font-face {
  font-family: 'Pixelify Sans';
  src: url('../assets/fonts/pixelify-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../assets/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('../assets/fonts/caveat-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

/* El 5 de Pixelify se lee como S o como 8, y acá hay precios: va uno propio en su misma grilla. */
@font-face {
  font-family: 'Totore Cinco';
  src: url('../assets/fonts/totore-cinco-500.woff2') format('woff2');
  font-weight: 400 500;
  font-display: swap;
  unicode-range: U+35;
}
@font-face {
  font-family: 'Totore Cinco';
  src: url('../assets/fonts/totore-cinco-600.woff2') format('woff2');
  font-weight: 600 700;
  font-display: swap;
  unicode-range: U+35;
}

:root {
  --rojo: #A02118;
  --bordo: #811A15;
  --crema: #DACDBC;
  --azulejo: #F4F1EC;
  --verde: #29352B;
  --azul: #346296;
  --tinta: #1C1412;
  --crema-posteo: #DFD2C2; /* el papel del posteo de los personajes */
  --led-on: #7CFF9B;
  --led-off: #FF7A6B;

  --pixel: 'Totore Cinco', 'Pixelify Sans', 'Courier New', monospace;
  --texto: 'Bricolage Grotesque', system-ui, sans-serif;
  --mano: 'Caveat', cursive;

  --cols: 6;     /* azulejos de ancho */
  --j: 2px;      /* junta */
  --hud-h: 52px;
  --g: 16px;     /* margen lateral */
  --foco: var(--tinta);
}
@media (min-width: 720px) {
  :root { --cols: 12; --hud-h: 56px; --g: 28px; }
}
@media (min-width: 1100px) {
  :root { --cols: 16; --j: 3px; --hud-h: 60px; --g: clamp(32px, 3vw, 64px); }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hud-h) + 6px);
}
html.intro-on, html.intro-on body { overflow: hidden; }
body {
  margin: 0;
  background: var(--bordo);
  color: var(--tinta);
  font: 400 1.0625rem/1.45 var(--texto);
  overflow-x: clip;
}
img, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
strong.px, .px { font-family: var(--pixel); font-weight: 600; }

@media (pointer: fine) {
  html { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='34' viewBox='0 0 12 17' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M1 2h1v1H1zM1 3h2v1H1zM1 4h3v1H1zM1 5h4v1H1zM1 6h5v1H1zM1 7h6v1H1zM1 8h7v1H1zM1 9h8v1H1zM1 10h5v1H1zM1 11h2v1H1zM4 11h2v1H4zM1 12h1v1H1zM5 12h2v1H5zM5 13h2v1H5zM6 14h2v1H6zM6 15h2v1H6z'/%3E%3Cpath fill='%231C1412' d='M0 0h1v15H0zM1 1h1v1H1zM2 2h1v1H2zM3 3h1v1H3zM4 4h1v1H4zM5 5h1v1H5zM6 6h1v1H6zM7 7h1v1H7zM8 8h1v1H8zM9 9h1v1H9zM6 10h5v1H6zM3 11h1v1H3zM6 11h1v1H6zM2 12h1v1H2zM4 12h1v1H4zM7 12h1v1H7zM1 13h1v1H1zM4 13h1v1H4zM7 13h1v1H7zM5 14h1v1H5zM8 14h1v1H8zM5 15h1v1H5zM8 15h1v1H8zM6 16h2v1H6z'/%3E%3C/svg%3E") 0 0, auto; }
  a, button, label, summary { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='34' viewBox='0 0 12 17' shape-rendering='crispEdges'%3E%3Cpath fill='%23F4F1EC' d='M1 2h1v1H1zM1 3h2v1H1zM1 4h3v1H1zM1 5h4v1H1zM1 6h5v1H1zM1 7h6v1H1zM1 8h7v1H1zM1 9h8v1H1zM1 10h5v1H1zM1 11h2v1H1zM4 11h2v1H4zM1 12h1v1H1zM5 12h2v1H5zM5 13h2v1H5zM6 14h2v1H6zM6 15h2v1H6z'/%3E%3Cpath fill='%23A02118' d='M0 0h1v15H0zM1 1h1v1H1zM2 2h1v1H2zM3 3h1v1H3zM4 4h1v1H4zM5 5h1v1H5zM6 6h1v1H6zM7 7h1v1H7zM8 8h1v1H8zM9 9h1v1H9zM6 10h5v1H6zM3 11h1v1H3zM6 11h1v1H6zM2 12h1v1H2zM4 12h1v1H4zM7 12h1v1H7zM1 13h1v1H1zM4 13h1v1H4zM7 13h1v1H7zM5 14h1v1H5zM8 14h1v1H8zM5 15h1v1H5zM8 15h1v1H8zM6 16h2v1H6z'/%3E%3C/svg%3E") 0 0, pointer; }
}

:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; }
.superficie-oscura, .hud, .pausa, .roster, .ficha-barra { --foco: var(--azulejo); }
.jugador--champi, .jugador--cebo, .panel--blanco { --foco: var(--tinta); }

svg { fill: currentColor; shape-rendering: crispEdges; }
#i-wa { shape-rendering: auto; }
.girada { transform: scaleX(-1); }

/* --------------------------------------------------------------------------
   Piezas de interfaz
   -------------------------------------------------------------------------- */

.btn {
  --borde: var(--azulejo);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: .55em 1em;
  border: 0;
  background: var(--borde);
  color: var(--rojo);
  font: 600 1rem/1.05 var(--pixel);
  text-align: center;
  text-decoration: none;
  /* borde pixelado: esquinas cortadas, sin radio */
  box-shadow: 0 -3px 0 0 var(--borde), 0 3px 0 0 var(--borde), -3px 0 0 0 var(--borde), 3px 0 0 0 var(--borde), 0 7px 0 0 rgba(28, 20, 18, .55);
  transition: transform 60ms steps(1), box-shadow 60ms steps(1);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(4px); box-shadow: 0 -3px 0 0 var(--borde), 0 3px 0 0 var(--borde), -3px 0 0 0 var(--borde), 3px 0 0 0 var(--borde); }
.btn:focus-visible { outline-offset: 7px; }
.btn--crema { --borde: var(--azulejo); color: var(--rojo); }
.btn--tinta { --borde: var(--tinta); color: var(--azulejo); }
.btn--rojo { --borde: var(--rojo); color: var(--azulejo); }
.btn--ancho { width: 100%; }
.btn-wa { width: 1.2em; height: 1.2em; shape-rendering: auto; }

.corazon { display: block; width: 1em; height: .86em; }
.vidas { display: inline-flex; gap: .2em; }
.vidas .corazon { opacity: .28; }
.vidas .corazon.is-on { opacity: 1; }
.vidas--llenas .corazon { opacity: 1; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-height: 34px;
  padding: .25em .7em;
  background: var(--tinta);
  color: var(--azulejo);
  font: 500 .9375rem/1.1 var(--pixel);
}
.chip-led { flex: none; width: 10px; height: 10px; background: var(--led-off); }
.chip.is-abierto .chip-led { background: var(--led-on); box-shadow: 0 0 0 2px rgba(124, 255, 155, .25); }

.pend {
  display: inline-block;
  padding: .2em .5em;
  background: var(--azulejo);
  border: 2px dashed var(--tinta);
  color: var(--tinta);
  font: 500 .8125rem/1.3 var(--texto);
}

.titular {
  color: var(--rojo);
  font: 800 clamp(1.75rem, 8cqw, 3.5rem)/1 var(--texto);
  letter-spacing: -.025em;
}

.barra { padding: .5em var(--g); background: var(--rojo); color: var(--azulejo); }
.barra h2 {
  text-wrap: balance;
  font: 600 clamp(1.45rem, 7cqw, 3.25rem)/1 var(--pixel);
  text-transform: uppercase;
  letter-spacing: .01em;
}
.barra--clara { background: var(--crema); color: var(--rojo); }
.barra--pared { display: flex; align-items: center; padding: 0 var(--g); }
.wall--bordo .barra--pared { background: var(--crema); color: var(--rojo); }

.papel {
  background-color: var(--crema);
  background-image:
    linear-gradient(to right, rgba(28, 20, 18, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 20, 18, .05) 1px, transparent 1px);
  background-size: 44px 44px;
}

.foto { position: relative; overflow: hidden; background: var(--tinta); }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: .3em .55em;
  background: var(--tinta);
  color: var(--azulejo);
  font: 600 clamp(.9375rem, 4cqw, 1.5rem)/1.1 var(--pixel);
}

.sticker { position: absolute; pointer-events: none; }

/* --------------------------------------------------------------------------
   La pared de azulejos
   -------------------------------------------------------------------------- */

.wall {
  --t: calc(100cqw / var(--cols));
  --pared: var(--rojo);
  --junta: rgba(244, 241, 236, .26);
  background-color: var(--pared);
  background-image:
    linear-gradient(to right, var(--junta) var(--j), transparent var(--j)),
    linear-gradient(to bottom, var(--junta) var(--j), transparent var(--j));
  background-size: var(--t) var(--t);
  background-position: calc(50% + var(--t) / 2) 0;
}
@supports (width: round(down, 1px, 1px)) {
  .wall { --t: round(down, calc(100cqw / var(--cols)), 1px); }
}
.wall--blanca { --pared: var(--azulejo); --junta: var(--rojo); }
.wall--bordo { --pared: var(--bordo); --junta: rgba(218, 205, 188, .17); }

.wall--grilla {
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--t));
  grid-auto-rows: minmax(var(--t), auto);
  justify-content: center;
  padding-bottom: var(--t);
}

/* Cada bloque ocupa azulejos enteros. --c y --r dicen cuáles. */
.b {
  position: relative;
  grid-column: var(--c, 1 / -1);
  grid-row: var(--r, auto);
  min-width: 0;
  min-height: 0;
  margin: var(--j) 0 0 var(--j);
}
.foto.b img { position: absolute; inset: 0; }

.panel-in { padding: clamp(14px, calc(var(--t) * .3), 40px); }
.panel-in > * + * { margin-top: .6em; }
.panel--rojo { background: var(--rojo); color: var(--azulejo); }
.panel--bordo { background: var(--bordo); color: var(--azulejo); }
.panel--blanco { background: var(--azulejo); color: var(--tinta); }
.panel-titulo {
  font: 800 calc(var(--t) * .8)/.95 var(--texto);
  letter-spacing: -.025em;
}

/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */

.intro { display: none; }
.js .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 100;
  animation: intro-seguro 0s linear 6s forwards;
}
@keyframes intro-seguro { to { visibility: hidden; } }

.intro-pantalla {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3.2vmin, 30px);
  background: var(--bordo);
  color: var(--crema);
  overflow: hidden;
}
.intro-pantalla::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(to bottom, rgba(28, 20, 18, .2) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.intro-vidas { display: flex; gap: .45em; font-size: clamp(22px, 6vmin, 40px); }
.intro-vidas .corazon { opacity: 0; animation: aparece 1ms steps(1) forwards; }
.intro-vidas .corazon:nth-child(1) { animation-delay: 80ms; }
.intro-vidas .corazon:nth-child(2) { animation-delay: 200ms; }
.intro-vidas .corazon:nth-child(3) { animation-delay: 320ms; }
@keyframes aparece { to { opacity: 1; } }

.intro-ficha {
  width: clamp(120px, 34vmin, 230px);
  height: auto;
  animation: ficha-cae 560ms steps(9) 300ms both;
}
@keyframes ficha-cae {
  0% { transform: translateY(-100vh) rotate(-28deg); }
  72% { transform: translateY(0) rotate(0); }
  86% { transform: translateY(-18px) rotate(4deg); }
  100% { transform: translateY(0) rotate(0); }
}

.intro-lineas {
  display: flex;
  flex-direction: column;
  align-items: center;
  font: 600 clamp(3rem, 17vmin, 8rem)/1.12 var(--pixel);
  letter-spacing: .04em;
}
/* Se escribe letra por letra: seis pasos para las seis letras. */
.intro-lineas span { clip-path: inset(0 100% 0 0); animation: escribe 720ms steps(6) 900ms forwards; }
@keyframes escribe { to { clip-path: inset(0 0 0 0); } }

.intro-start {
  font: 500 clamp(1rem, 3.6vmin, 1.6rem)/1 var(--pixel);
  letter-spacing: .08em;
  opacity: 0;
  animation: titila 270ms steps(1) 2020ms 3 forwards;
}
@keyframes titila {
  0% { opacity: 1; }
  55% { opacity: 0; }
  100% { opacity: 1; }
}

.intro-azulejos {
  position: absolute;
  inset: 0;
  display: none;
  grid-template-columns: repeat(var(--ic, 6), 1fr);
  grid-auto-rows: var(--ih, 70px);
  overflow: hidden;
}
.intro-azulejos i {
  display: block;
  background: var(--bordo);
  box-shadow: inset 0 0 0 1px rgba(218, 205, 188, .2);
  animation: azulejo-sale 260ms steps(5) forwards;
  animation-delay: calc(var(--d) * 1ms);
}
@keyframes azulejo-sale { to { transform: scale(0); } }
.intro.is-abriendo .intro-pantalla { display: none; }
.intro.is-abriendo .intro-azulejos { display: grid; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro-vidas .corazon { opacity: 1; animation: none; }
  .intro-ficha, .intro-start { animation: none; opacity: 1; }
  .intro-lineas span { clip-path: none; animation: none; }
  .intro { transition: opacity 280ms linear; }
  .intro.is-fundido { opacity: 0; }
  .btn, .slot-foto img { transition: none; }
}

/* --------------------------------------------------------------------------
   HUD
   -------------------------------------------------------------------------- */

.hud {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--hud-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 var(--g);
  background: var(--bordo);
  color: var(--azulejo);
  border-bottom: 3px solid var(--tinta);
}
.hud-logo { flex: 0 1 112px; min-width: 0; display: flex; align-items: center; min-height: 44px; }
.hud-logo img { width: 100%; }
.hud-nav { display: none; }
.hud-score {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
  color: var(--azulejo);
  font: 600 1rem/1 var(--pixel);
  text-decoration: none;
}
.hud-score .vidas { font-size: 14px; }
.hud-pausa {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--azulejo);
  color: var(--bordo);
  border: 0;
}
.hud-pausa svg { width: 18px; height: 16px; }

.pausa {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 20px var(--g) 28px;
  border: 0;
  background: var(--bordo);
  color: var(--azulejo);
  overflow: auto;
}
.pausa[open] { display: flex; flex-direction: column; gap: 14px; }
.pausa::backdrop { background: var(--bordo); }
.pausa h2 { font: 600 3rem/1 var(--pixel); text-transform: uppercase; }
.pausa ul { flex: 1; }
.pausa a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 2px dotted rgba(244, 241, 236, .3);
  font: 500 1.25rem/1.1 var(--pixel);
  text-decoration: none;
}
.pausa a:hover, .pausa a:focus-visible { background: var(--azulejo); color: var(--bordo); padding-left: .4em; }

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */

.game { container-type: inline-size; padding-top: var(--hud-h); }

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--hud-h));
  padding: 12px var(--g) 26px;
  overflow: hidden;
  color: var(--azulejo);
}
.hero > * { position: relative; z-index: 3; }
.hero-senal {
  display: flex;
  justify-content: space-between;
  font: 500 .875rem/1 var(--pixel);
  letter-spacing: .06em;
}
.hero-logo { margin-top: 12px; }
.hero-logo img { width: 100%; }
.bajada {
  align-self: flex-end;
  margin-top: 2px;
  font: 700 clamp(1.5rem, 6.6cqw, 3rem)/1 var(--mano);
  transform: rotate(-4deg);
}
.hero-claim {
  margin-top: .1em;
  font: 800 16.4cqw/.9 var(--texto);
  letter-spacing: -.035em;
}
.hero-datos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.hero-dir {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .25em .7em;
  background: var(--azulejo);
  color: var(--rojo);
  font: 600 .9375rem/1.1 var(--pixel);
}
.hero-aire { flex: 1 0 44cqw; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; padding: 0 3px; }
.hero-cta .btn { flex: 1 1 auto; }
.hero > .hero-pizza {
  position: absolute;
  z-index: 2;
  width: 118cqw;
  max-width: none;
  right: -34cqw;
  bottom: -26cqw;
  filter: drop-shadow(0 14px 18px rgba(28, 20, 18, .5));
}
.hero > .hero-pepe {
  position: absolute;
  z-index: 1;
  width: 37cqw;
  left: -3cqw;
  bottom: 42cqw;
  transform: rotate(-9deg);
}

/* --------------------------------------------------------------------------
   2. Selección de pizza
   -------------------------------------------------------------------------- */

.seleccion { padding-bottom: 28px; }
.seleccion-cabeza {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px var(--g);
}
.filtro { display: inline-flex; }
.filtro button {
  min-height: 44px;
  padding: .4em .85em;
  background: transparent;
  border: 2px solid var(--tinta);
  color: var(--tinta);
  font: 600 1rem/1 var(--pixel);
}
.filtro button + button { margin-left: -2px; }
.filtro button[aria-pressed="true"] { background: var(--tinta); color: var(--azulejo); }

.roster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--rojo);
}
.slot { position: relative; box-shadow: inset 1px 1px 0 rgba(244, 241, 236, .24); }
.slot-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 8px 8px 10px;
  background: transparent;
  border: 0;
  color: var(--azulejo);
  text-align: left;
}
.slot-foto { display: block; }
.slot-foto img { width: 100%; transition: transform 200ms steps(4); }
.slot-btn:hover .slot-foto img, .slot-btn:focus-visible .slot-foto img { transform: rotate(16deg); }
.slot-btn:focus-visible { outline-offset: -5px; }
.slot-nombre { margin-top: 6px; font: 500 .9375rem/1.05 var(--pixel); }
.slot-precio { margin-top: auto; padding-top: 4px; color: var(--crema); font: 600 .9375rem/1 var(--pixel); }
.slot-btn[aria-pressed="true"] { background: var(--bordo); box-shadow: inset 0 0 0 3px var(--azulejo); }
.slot-cursor {
  position: absolute;
  right: 8%;
  top: 50%;
  width: 21px;
  height: 30px;
  visibility: hidden;
  shape-rendering: crispEdges;
}
.slot-btn[aria-pressed="true"] .slot-cursor { visibility: visible; }
.nivel {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: .2em .4em;
  background: var(--azul);
  color: var(--azulejo);
  font: 600 .8125rem/1 var(--pixel);
}
.slot--alba { overflow: hidden; min-height: 100%; }
.slot--alba img { position: absolute; right: 0; bottom: 0; width: 72%; }

.leyenda {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 14px var(--g) 0;
  font: 500 .9375rem/1.2 var(--pixel);
}

.ficha {
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  background: var(--crema);
  color: var(--tinta);
}
.ficha:not([open]) { display: none; }
.ficha::backdrop { background: rgba(28, 20, 18, .72); }
.ficha:modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.ficha-barra {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 2px 14px;
  min-height: 48px;
  background: var(--azul);
  color: var(--azulejo);
  font: 600 1rem/1 var(--pixel);
}
.ficha-x {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--azulejo);
}
.ficha-x svg { width: 16px; height: 16px; }
.ficha-cuerpo { flex: 1; min-height: 0; overflow-y: auto; }
.ficha-nombre {
  padding: .3em .4em;
  border-bottom: 2px solid var(--tinta);
  font: 600 clamp(1.6rem, 8cqw, 2.25rem)/1 var(--pixel);
  text-align: center;
}
.ficha:modal .ficha-nombre { font-size: clamp(1.6rem, 8vw, 2.25rem); }
.ficha-foto { position: relative; aspect-ratio: 1 / .84; background: var(--rojo); overflow: hidden; }
.ficha-foto img { width: 100%; height: 100%; object-fit: cover; }
.ficha-foto .nivel { top: 10px; left: 10px; font-size: 1rem; }
.ficha-info { padding: 12px 14px; }
.ficha-info h4 { font: 700 1rem/1.2 var(--texto); }
.ficha-info ul { margin-top: 4px; }
.ficha-info li { line-height: 1.3; }
.ficha-info li::before { content: '- '; }
.ficha-precio { margin-top: 8px; color: var(--rojo); font: 600 1.75rem/1 var(--pixel); }
.ficha-pie { flex: none; padding: 10px 14px 12px; border-top: 2px solid var(--tinta); background: var(--crema); }
.ficha-ready { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 3px 4px; }
.ficha-ready-txt { font: 600 1.125rem/1 var(--pixel); }
.ficha-ready .btn { flex: 1; }
.ficha-en { min-height: 1.3em; margin-top: 8px; font: 500 .9375rem/1.3 var(--pixel); text-align: center; }
.ficha-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ficha-nav button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 2px solid var(--tinta);
}
.ficha-nav svg { width: 12px; height: 17px; }
.ficha-ver { display: inline-flex; align-items: center; min-height: 44px; font: 600 1rem/1 var(--pixel); }

/* --------------------------------------------------------------------------
   3. Pizza al taglio
   -------------------------------------------------------------------------- */

.taglio { position: relative; grid-auto-flow: row dense; }
.taglio-texto { --r: auto / span 4; }
.taglio-texto p { font-size: 1.0625rem; }
.taglio-texto strong { font-size: 1.15em; white-space: nowrap; }
.sticker--toma { right: 8px; bottom: 0; width: calc(var(--t) * 2.7); z-index: 4; }
.taglio-mostrador { --r: auto / span 5; }
.taglio-porciones { display: contents; }
.porcion {
  --c: span 3;
  --r: span 4;
  display: flex;
  flex-direction: column;
  background: var(--rojo);
  color: var(--azulejo);
}
.porcion-foto { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.porcion-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.porcion-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 8px;
  padding: 6px 6px 6px 10px;
}
.porcion-nombre { font: 500 .9375rem/1.05 var(--pixel); }
.porcion-precio { font: 600 1rem/1 var(--pixel); color: var(--crema); margin-top: 2px; }
.taglio-nota { --c: span 3; --r: span 3; background: var(--azulejo); }
.px-label { font: 600 clamp(1rem, calc(var(--t) * .22), 1.5rem)/1.15 var(--pixel); color: var(--rojo); }

.add {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--azulejo);
  color: var(--rojo);
  border: 0;
}
.add svg { width: 16px; height: 16px; }
.add:hover { background: var(--tinta); color: var(--azulejo); }
.add-n {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  padding: 3px 4px;
  background: var(--tinta);
  color: var(--azulejo);
  font: 600 .8125rem/1 var(--pixel);
  text-align: center;
}
.add-n:empty { display: none; }

/* --------------------------------------------------------------------------
   4. La masa
   -------------------------------------------------------------------------- */

.masa-texto { --r: auto / span 5; }
.masa-copy { font-size: clamp(1.125rem, calc(var(--t) * .31), 2.6rem); line-height: 1.24; font-weight: 500; }
.masa-remate { font: 800 calc(var(--t) * .95)/.92 var(--texto); letter-spacing: -.03em; }
.masa-salsa { --c: 1 / span 4; --r: auto / span 4; }
.masa-pizzero { --c: 3 / span 4; --r: auto / span 5; }
.masa-pizzero img { object-position: 50% 30%; }
.masa-horno { --c: 1 / -1; --r: auto / span 5; }
.masa-horno img { object-position: 50% 62%; }
.masa-adentro { --c: 1 / span 3; --r: auto / span 5; }
.masa-macro { --c: 4 / span 3; --r: auto / span 5; }

/* --------------------------------------------------------------------------
   5. Personajes
   -------------------------------------------------------------------------- */

.personajes { padding-bottom: 28px; }
.jugadores {
  display: flex;
  gap: 12px;
  padding: 26px var(--g) 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--g);
  scrollbar-color: var(--azulejo) transparent;
}
.jugadores:focus-visible { outline-offset: -5px; }
.jugador {
  --fondo: var(--crema);
  --tinta-j: var(--verde);
  --panel: var(--verde);
  flex: 0 0 min(78cqw, 340px);
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  padding: 14px;
  background: var(--fondo);
  color: var(--tinta-j);
}
.jugador-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  font: 700 1rem/1 var(--texto);
}
.jugador-top .vidas { font-size: 15px; }
.jugador-foto {
  position: relative;
  margin-top: 12px;
  aspect-ratio: 1 / 1;
  background: var(--panel);
}
.jugador-foto img {
  position: absolute;
  left: 50%;
  bottom: 5%;
  width: 92%;
  max-width: none;
  transform: translateX(-50%);
}
.jugador h3 {
  margin-top: 12px;
  font: 600 clamp(1.9rem, 9cqw, 2.4rem)/1 var(--pixel);
}
.jugador p { margin-top: 6px; line-height: 1.28; font-size: 1rem; }
.match {
  display: block;
  margin-top: auto;
  padding-top: 14px;
  color: inherit;
  text-decoration: none;
}
.match-label { display: block; font: 500 .9375rem/1 var(--pixel); }
.match-pizza {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  margin-top: 6px;
  padding: 4px 12px 4px 4px;
  border: 1.5px solid currentColor;
  font: 600 1.0625rem/1 var(--pixel);
}
.match-pizza img { width: 46px; }
.match-pizza svg { width: 10px; height: 14px; margin-left: auto; }
.match:hover .match-pizza { background: var(--tinta-j); color: var(--fondo); }

.jugador--toma { --fondo: var(--bordo); --tinta-j: var(--azulejo); --panel: var(--crema); }
.jugador--toma .jugador-foto img { bottom: 0; width: 100%; }
.jugador--pepe { --fondo: var(--azul); --tinta-j: var(--azulejo); --panel: var(--crema); }
.jugador--pepe .jugador-foto img { width: 100%; bottom: 3%; }
.jugador--champi { --tinta-j: var(--rojo); --panel: var(--rojo); }
.jugador--champi .jugador-foto img { width: 84%; bottom: 3%; }
.jugador--alba { --fondo: var(--verde); --tinta-j: var(--crema); --panel: #2F3B31; }
.jugador--alba .jugador-foto { overflow: hidden; }
.jugador--alba .jugador-foto img { left: auto; right: 0; bottom: 0; width: 76%; transform: none; }
.jugador--cebo .jugador-foto img { width: 86%; bottom: 3%; }

/* --------------------------------------------------------------------------
   6. No-pizzas y bebidas
   -------------------------------------------------------------------------- */

.extras { padding-bottom: 32px; }
.extras-col { padding: 18px var(--g) 0; }
.inventario {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
  border-left: 2px solid var(--tinta);
  border-top: 2px solid var(--tinta);
}
.item {
  display: flex;
  flex-direction: column;
  background: var(--azulejo);
  border-right: 2px solid var(--tinta);
  border-bottom: 2px solid var(--tinta);
}
.item-foto { aspect-ratio: 1 / 1; overflow: hidden; background: var(--tinta); }
.item-foto img { width: 100%; height: 100%; object-fit: cover; }
.item-info {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  gap: 6px 8px;
  padding: 10px;
}
.item-nombre { grid-column: 1 / -1; font: 600 1rem/1.08 var(--pixel); }
.item-desc { display: block; margin-top: 4px; font: 400 .875rem/1.25 var(--texto); }
.item-precio { align-self: center; color: var(--rojo); font: 600 1.125rem/1 var(--pixel); }
.item .add { background: var(--rojo); color: var(--azulejo); }
.item .add:hover { background: var(--tinta); }

.extras-bebidas { display: grid; gap: 20px; padding: 26px var(--g) 0; }
.heladera { position: relative; display: flex; flex-direction: column; padding: 10px; background: var(--rojo); }
.heladera-titulo { padding: 4px 4px 10px; color: var(--azulejo); font: 600 1.75rem/1 var(--pixel); }
.sticker--cebo { right: 4px; bottom: calc(100% - 62px); width: 84px; }
.botellas { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 2px; background: var(--rojo); }
.botella {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  gap: 4px;
  padding: 8px 5px 5px;
  background: var(--azulejo);
}
.botella img { grid-column: 1 / -1; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; mix-blend-mode: multiply; }
.botella-nombre { grid-column: 1 / -1; align-self: start; font: 600 .875rem/1.05 var(--pixel); }
.botella-desc { display: block; font: 400 .8125rem/1.2 var(--texto); }
.botella-precio { color: var(--rojo); font: 600 clamp(.875rem, 3.9cqw, 1rem)/1 var(--pixel); white-space: nowrap; }
.botella .add { width: 36px; background: var(--rojo); color: var(--azulejo); }
.botella .add:hover { background: var(--tinta); }

.peroni { display: flex; flex-direction: column; background: var(--bordo); color: var(--azulejo); }
.peroni img { width: 100%; height: 100%; min-height: 0; flex: 1; object-fit: cover; aspect-ratio: 4 / 4.4; }
.peroni figcaption { padding: 14px; font: 800 clamp(1.5rem, 7cqw, 2.5rem)/1 var(--texto); letter-spacing: -.02em; }

/* --------------------------------------------------------------------------
   7. Vereda | Delivery | Take away
   -------------------------------------------------------------------------- */

.teclas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 22px var(--g) 24px;
}
.tecla {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 84px;
  padding: 6px;
  background: var(--crema);
  border: 0;
  color: var(--tinta);
  font: 600 clamp(.9375rem, 4.2cqw, 1.75rem)/1 var(--pixel);
  box-shadow: 0 9px 0 0 var(--tinta);
  transition: transform 60ms steps(1), box-shadow 60ms steps(1);
}
.tecla-led { width: 12px; height: 12px; background: rgba(28, 20, 18, .35); }
.tecla[aria-selected="true"] {
  transform: translateY(6px);
  background: var(--azulejo);
  color: var(--rojo);
  box-shadow: 0 3px 0 0 var(--tinta);
}
.tecla[aria-selected="true"] .tecla-led { background: var(--rojo); }
.modos { color: var(--azulejo); }
.modo { display: grid; gap: 16px; padding: 0 var(--g) 28px; }
.modo:focus-visible { outline-offset: -3px; }
.modo-texto { padding: 0 3px; }
.modo-texto > * + * { margin-top: 12px; }
.modo-texto .btn { margin-top: 18px; }
.modo-titulo { font: 800 clamp(2rem, 9.4cqw, 4rem)/.95 var(--texto); letter-spacing: -.03em; }
.modo-fotos { display: grid; gap: 8px; }
.modo-fotos .foto { aspect-ratio: 4 / 4.6; }
.modo-fotos--2, .modo-fotos--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.modo-fotos--3 .foto:first-child { grid-column: 1 / -1; aspect-ratio: 1 / .92; }
.modo-fotos--3 .foto:first-child img { object-position: 50% 28%; }
.modo-fotos > .foto:only-child img { object-position: 50% 0; }

.fichin {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  align-items: center;
  background: var(--azul);
  color: var(--azulejo);
}
.fichin-foto { aspect-ratio: 345 / 612; }
.fichin-texto { padding: 14px var(--g) 14px 14px; }
.fichin-label { font: 500 1rem/1.1 var(--pixel); }
.fichin-frase { margin-top: 8px; font: 600 clamp(1.6rem, 8cqw, 7rem)/1.02 var(--pixel); }

/* --------------------------------------------------------------------------
   8. Tu partida
   -------------------------------------------------------------------------- */

.pedido {
  position: relative;
  padding: 20px var(--g) 40px;
  background: var(--tinta);
  color: var(--crema);
}
.pedido::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(to bottom, rgba(244, 241, 236, .035) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.pedido > * { position: relative; }
.pedido-cabeza {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--crema);
}
.pedido-cabeza h2 { font: 600 clamp(2.25rem, 11cqw, 4.75rem)/1 var(--pixel); text-transform: uppercase; }
.pedido-hs { font: 500 1rem/1 var(--pixel); white-space: nowrap; }
.pedido-grilla { display: grid; gap: 28px; margin-top: 18px; }
.pedido-vacio-titulo { font: 600 1.75rem/1 var(--pixel); }
.pedido-vacio > * + * { margin-top: 10px; }
.pedido-vacio .btn { margin: 16px 3px 6px; }
.fila {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 2px dotted rgba(218, 205, 188, .4);
}
.stepper { display: inline-flex; align-items: center; }
.stepper button {
  width: 40px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 2px solid var(--crema);
  color: var(--crema);
}
.stepper button:hover { background: var(--crema); color: var(--tinta); }
.stepper svg { width: 12px; height: 12px; }
.stepper-n { min-width: 30px; text-align: center; font: 600 1.125rem/1 var(--pixel); }
.fila-nombre { font: 500 1rem/1.12 var(--pixel); }
.fila-sub { font: 600 1.0625rem/1 var(--pixel); white-space: nowrap; }
.vida { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 18px; }
.vida-barra { flex: 1; height: 16px; padding: 2px; border: 2px solid var(--crema); }
.vida-nivel { display: block; width: 0; height: 100%; background: var(--crema); transition: width 200ms steps(4); }
.total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font: 600 1.25rem/1 var(--pixel);
}
.total strong { font: 600 clamp(2.5rem, 13cqw, 5rem)/1 var(--pixel); color: var(--azulejo); }
.vaciar {
  min-height: 44px;
  margin-top: 6px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--crema);
  font: 500 .9375rem/1 var(--pixel);
  text-decoration: underline;
}
.pedido-form { display: grid; gap: 14px; align-content: start; }
.ready {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 10px 14px 14px;
  border: 2px solid var(--crema);
}
.ready legend { padding: 0 6px; font: 600 1rem/1 var(--pixel); }
.ready label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font: 600 1.25rem/1 var(--pixel);
}
.ready input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; }
.ready svg { width: 11px; height: 15px; visibility: hidden; }
.ready input:checked ~ svg { visibility: visible; }
.ready input:not(:checked) ~ span { opacity: .72; }
.ready input:focus-visible ~ span { outline: 3px solid var(--azulejo); outline-offset: 3px; }
.pedido-nota { font-size: .9375rem; }
.campo label { display: block; margin-bottom: 6px; font: 500 1rem/1 var(--pixel); }
.campo input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  background: transparent;
  border: 2px solid var(--crema);
  border-radius: 0;
  color: var(--azulejo);
  font: 500 1.0625rem/1.2 var(--texto);
}
.campo-error { margin-top: 6px; color: var(--azulejo); font-size: .9375rem; }
.campo-error::before { content: '! '; font-family: var(--pixel); font-weight: 700; }
.pedido-form .btn { margin: 4px 3px 8px; width: auto; }
.pedido-aviso {
  padding: 10px 12px;
  background: var(--azulejo);
  color: var(--rojo);
  font: 600 1.0625rem/1.2 var(--pixel);
}
.pedido-preview-titulo { font: 500 1rem/1.2 var(--pixel); }
.pedido-preview pre {
  margin: 8px 0 0;
  padding: 12px;
  border: 2px dotted var(--crema);
  font: 400 .9375rem/1.4 var(--texto);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   9. Visitanos y cierre
   -------------------------------------------------------------------------- */

.visita-dir { --r: auto / span 5; }
.visita-dir .chip { margin-top: 12px; }
.visita-botones { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px !important; padding: 0 3px 6px; }
.visita-horas { --r: auto / span 4; }
.horas { display: grid; gap: 12px; }
.horas dt { color: var(--rojo); font: 600 1.0625rem/1.1 var(--pixel); }
.horas dd { line-height: 1.25; }
.horas dd.px { font-size: 1.375rem; line-height: 1.15; }
.visita-mapa { --r: auto / span 5; background: var(--crema); }
.visita-mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.gameover { display: grid; background: var(--crema-posteo); color: var(--rojo); }
.gameover-texto { padding: 34px var(--g) 8px; }
.gameover h2 { font: 600 clamp(3rem, 16cqw, 7.5rem)/.95 var(--pixel); text-transform: uppercase; }
.gameover p { margin-top: 10px; color: var(--tinta); font: 800 clamp(1.5rem, 7.4cqw, 3rem)/1.02 var(--texto); letter-spacing: -.02em; }
.btn--continue { margin: 20px 3px 12px; font-size: 1.25rem; text-transform: uppercase; }
.continue-n { display: inline-block; min-width: 1.1em; text-align: center; }
.gameover-todos { width: 100%; }

.pie { padding: 18px var(--g) 22px; background: var(--tinta); color: var(--crema); font: 500 .9375rem/1.3 var(--pixel); }

.fab-wa {
  position: fixed;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 40;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--verde);
  color: var(--azulejo);
  --foco: var(--tinta);
  box-shadow: 0 -3px 0 0 var(--azulejo), 0 3px 0 0 var(--azulejo), -3px 0 0 0 var(--azulejo), 3px 0 0 0 var(--azulejo);
}
.fab-wa svg { width: 30px; height: 30px; shape-rendering: auto; }

.aviso {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 60;
  width: max-content;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
  padding: .6em .9em;
  background: var(--azulejo);
  color: var(--tinta);
  font: 600 1rem/1.2 var(--pixel);
  text-align: center;
  box-shadow: 0 -3px 0 0 var(--tinta), 0 3px 0 0 var(--tinta), -3px 0 0 0 var(--tinta), 3px 0 0 0 var(--tinta);
}
.pop {
  position: fixed;
  z-index: 70;
  padding: .1em .35em;
  background: var(--tinta);
  color: var(--azulejo);
  font: 600 1.125rem/1.1 var(--pixel);
  pointer-events: none;
  animation: pop 620ms steps(8) forwards;
}
@keyframes pop {
  from { transform: translate(-50%, 0); opacity: 1; }
  80% { opacity: 1; }
  to { transform: translate(-50%, -54px); opacity: 0; }
}

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

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */

@media (min-width: 720px) {
  .hud-logo { flex-basis: 150px; }
  .hud-score { font-size: 1.125rem; }
  .hud-score .vidas { font-size: 16px; }

  .hero-claim { font-size: 15cqw; }
  .hero-aire { flex-basis: 38cqw; }
  .hero-cta { justify-content: flex-start; }
  .hero-cta .btn { flex: 0 1 auto; padding-inline: 1.5em; font-size: 1.125rem; }
  .hero > .hero-pizza { width: 88cqw; right: -18cqw; bottom: -22cqw; }
  .hero > .hero-pepe { width: 24cqw; left: 16cqw; bottom: 19cqw; }

  .roster { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .slot-nombre, .slot-precio { font-size: 1.0625rem; }

  .taglio-texto { --c: 1 / span 8; --r: 2 / span 3; }
  .taglio-mostrador { --c: 9 / span 4; --r: 2 / span 7; }
  .porcion { --c: span 4; --r: span 4; }
  .taglio-nota { --c: span 4; --r: span 4; }

  .masa-texto { --c: 1 / span 7; --r: 2 / span 6; }
  .masa-salsa { --c: 8 / span 5; --r: 2 / span 5; }
  .masa-horno { --c: 6 / span 7; --r: 7 / span 5; }
  .masa-pizzero { --c: 1 / span 4; --r: 8 / span 6; }
  .masa-adentro { --c: 5 / span 3; --r: 12 / span 5; }
  .masa-macro { --c: 8 / span 5; --r: 12 / span 5; }

  .jugador { flex-basis: min(46cqw, 360px); }

  .inventario { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .extras-bebidas { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

  .modo-fotos--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .modo-fotos--3 .foto:first-child { grid-column: auto; aspect-ratio: 4 / 4.6; }
  .modo-fotos > .foto:only-child { aspect-ratio: 16 / 11; }
  .fichin { grid-template-columns: min(28cqw, 360px) minmax(0, 1fr); }
  .fichin-texto { padding: 24px var(--g); }
  .fichin-frase { font-size: clamp(3rem, 7.4cqw, 7rem); }

  .visita-dir { --c: 1 / span 6; --r: 2 / span 5; }
  .visita-horas { --c: 7 / span 6; --r: 2 / span 5; }
  .visita-mapa { --c: 1 / -1; --r: 7 / span 5; }

  .gameover { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gameover-texto { align-self: center; padding-bottom: 34px; }
  .gameover-todos { height: 100%; object-fit: contain; object-position: 100% 100%; border-left: 4px solid var(--tinta); }
  .fab-wa { right: 22px; bottom: 22px; }
}

/* --------------------------------------------------------------------------
   Compu
   -------------------------------------------------------------------------- */

@media (min-width: 1100px) {
  .hud { gap: 18px; padding: 0 var(--g); }
  .hud-logo { flex-basis: 170px; }
  .hud-nav { display: flex; gap: 4px; margin-left: 10px; }
  .hud-nav a {
    padding: .5em .6em;
    font: 500 1.0625rem/1 var(--pixel);
    text-decoration: none;
  }
  .hud-nav a:hover, .hud-nav a.is-activa { background: var(--azulejo); color: var(--bordo); }
  .hud-pausa, .fab-wa { display: none; }
  .hud-score { padding: 0 14px; background: var(--tinta); }
  .hud-score .vidas { font-size: 18px; }

  .hero { padding: 16px var(--g) 42px; }
  .hero-senal { max-width: 46cqw; font-size: 1rem; }
  .hero-logo { width: 46cqw; }
  .bajada { align-self: auto; margin-left: 33cqw; font-size: 2.8cqw; }
  .hero-claim { font-size: 8.6cqw; max-width: 54cqw; }
  .hero-datos { margin-top: 22px; }
  .hero-dir, .chip { font-size: clamp(1rem, 1.25cqw, 1.5rem); min-height: 42px; }
  .hero-aire { flex: 1 0 24px; }
  .hero-cta .btn { font-size: clamp(1.125rem, 1.4cqw, 1.625rem); padding: .7em 1.4em; }
  .hero > .hero-pizza { width: 57cqw; right: -9cqw; bottom: -11cqw; }
  .hero > .hero-pepe { width: 15cqw; left: 43cqw; bottom: 13cqw; }

  .seleccion-cabeza { padding-block: 24px 22px; }
  .seleccion-grilla {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 30cqw);
    align-items: start;
    gap: 28px;
    padding-inline: var(--g);
  }
  .roster { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .slot-btn { padding: 10px 10px 12px; }
  .leyenda { padding-inline: 0; }
  .ficha[open]:not(:modal) {
    position: sticky;
    top: calc(var(--hud-h) + 12px);
    inset-inline: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
    outline: 2px solid var(--tinta);
    box-shadow: 8px 8px 0 0 var(--bordo);
  }
  .ficha:not(:modal) .ficha-x { display: none; }
  .ficha-barra { padding-left: 14px; min-height: 40px; }
  .ficha-foto { aspect-ratio: 16 / 10; }
  .ficha-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: end; }
  .ficha-info h4, .ficha-info ul { grid-column: 1; }
  .ficha-precio { grid-column: 2; grid-row: 1 / span 2; margin: 0; font-size: 1.75rem; }

  .taglio-texto { --c: 1 / span 6; --r: 2 / span 5; }
  .taglio-texto p { font-size: calc(var(--t) * .25); }
  .taglio-mostrador { --c: 7 / span 4; --r: 2 / span 6; }
  .porcion { --c: span 3; --r: span 3; }
  .porcion-nombre { font-size: clamp(.9375rem, calc(var(--t) * .2), 1.5rem); }
  .porcion-precio { font-size: clamp(1rem, calc(var(--t) * .21), 1.5rem); }
  .taglio-nota { --c: span 3; --r: span 3; }
  .sticker--toma { right: var(--t); width: calc(var(--t) * 5); }

  .masa-texto { --c: 1 / span 7; --r: 2 / span 5; }
  .masa-salsa { --c: 9 / span 4; --r: 2 / span 4; }
  .masa-pizzero { --c: 13 / span 4; --r: 2 / span 6; }
  .masa-horno { --c: 2 / span 6; --r: 7 / span 4; }
  .masa-adentro { --c: 9 / span 3; --r: 6 / span 5; }
  .masa-macro { --c: 12 / span 5; --r: 8 / span 3; }

  .jugadores {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
    padding-inline: var(--g);
  }
  .jugador { padding: clamp(10px, 1cqw, 18px); }
  .jugador h3 { font-size: clamp(1.5rem, 2.3cqw, 2.75rem); }

  .extras-col { padding-top: 24px; }
  .extras-bebidas { grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); }
  .botellas { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sticker--cebo { right: 10px; bottom: 10px; width: calc((100% - 20px) / 5); }
  .peroni figcaption { font-size: clamp(1.75rem, 2.8cqw, 3rem); }

  .teclas { gap: 14px; padding-top: 28px; }
  .tecla { min-height: 104px; }
  .modo { grid-template-columns: minmax(0, 5fr) minmax(0, 11fr); gap: 28px; }
  .modo-titulo { font-size: 4.4cqw; }
  .modo-texto p:not(.modo-titulo) { font-size: 1.25rem; }

  .pedido { padding-block: 30px 56px; }
  .pedido-grilla { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
  .fila-nombre { font-size: 1.125rem; }

  .visita-dir { --c: 1 / span 6; --r: auto / span 4; }
  .visita-horas { --c: 1 / span 6; --r: auto / span 3; }
  .visita-mapa { --c: 8 / span 9; --r: 2 / span 8; }
  .horas { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .gameover { grid-template-columns: minmax(0, 7fr) minmax(0, 9fr); }
}
