@font-face {
  font-family: "BROTHER";
  src: url("assets/fonts/brother-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Authentic Signature";
  src: url("assets/fonts/authentic-signature.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* La portada manda: papel crema cuadriculado, tinta negra, estrellas rojas y la comida en color plano */
  /* La mesa es vino oscuro con una lámpara encima: el pasaporte crema es lo más claro de la pantalla */
  --cc-desk: #2b0a05;
  --cc-desk-glow: #7a1c0c;
  --cc-desk-grid: rgba(255, 248, 239, .05);
  --cc-on-desk: #fff8ef;
  --cc-on-desk-muted: #fff8ef;
  --cc-desk-line: rgba(255, 248, 239, .16);
  --cc-paper: #ffffff;
  --cc-sheet: #ffffff;
  --cc-paper-back: #ffffff;
  --cc-white: #ffffff;
  --cc-grid: rgba(230, 56, 37, .14);
  --cc-foreground: #141210;
  --cc-muted: #57534a;
  --cc-faint: #85816f;
  --cc-border: #141210;
  --cc-rule: rgba(20, 18, 16, .16);
  --cc-primary: #d82506;
  --cc-on-primary: #fff8ef;
  --cc-press: #fde3d9;
  --cc-focus: #28aae2;

  --food-orange: #fbb03e;
  --food-green: #8ac83c;
  --food-pink: #ef91bc;
  --food-blue: #28aae2;
  --food-red: #e63825;

  --line: 2px;
  --art-grid: rgba(20, 18, 16, .13);
  --fold-dark: rgba(20, 18, 16, .2);
  --fold-light: rgba(255, 255, 255, .6);
  --fold-soft: rgba(20, 18, 16, .07);
  --cast-dark: rgba(20, 18, 16, .3);
  --cast-mid: rgba(20, 18, 16, .12);
  --book-shadow: rgba(12, 2, 0, .7);
  --map-park: rgba(138, 200, 60, .3);
  --map-minor: rgba(20, 18, 16, .3);
  --map-me: #28aae2;

  --ink-red: #c0270e;
  --ink-blue: #1f4c97;
  --ink-green: #2c6a2a;
  --ink-violet: #57307f;
  --ink-black: #26231f;

  --font-display: "BROTHER", "DM Sans", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-sign: "Authentic Signature", cursive;

  --radius-page: 4px 14px 14px 4px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-press: cubic-bezier(.3, 0, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

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

html, body { height: 100%; }
/* El body solo recorta si el html también lo hace; sin esto los recortes del doblez (1578 px) agrandan el viewport en móvil */
html { overflow: hidden; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100svh;
  overflow: hidden;
  background-color: var(--cc-desk);
  background-image:
    linear-gradient(var(--cc-desk-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--cc-desk-grid) 1px, transparent 1px),
    radial-gradient(ellipse 85% 60% at 50% 46%, var(--cc-desk-glow), var(--cc-desk) 78%);
  background-size: 46px 46px, 46px 46px, 100% 100%;
  background-position: -1px -1px, -1px -1px, 0 0;
  color: var(--cc-on-desk);
  font: 400 15px/1.45 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}
button:focus-visible { outline: 2px solid var(--cc-focus); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; }
.defs { position: absolute; }

/* ---------- Barra superior ---------- */
.topbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 8px) 14px 6px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--cc-on-desk);
}
.brand img { width: 119px; height: 26px; filter: brightness(0) invert(1); }
.brand:active { opacity: .6; }

.counter {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  border: var(--line) solid var(--cc-border);
  background: var(--cc-white);
  font-size: 14px;
  color: var(--cc-muted);
  transition: background-color .2s var(--ease-out), transform .15s var(--ease-press);
}
.counter b { color: var(--cc-foreground); font-weight: 700; font-variant-numeric: tabular-nums; }
.counter:active { transform: scale(.96); background: var(--cc-press); }

/* ---------- Libro ---------- */
.stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 4px 14px 2px 8px;
  container-type: size;
}
.book {
  position: relative;
  width: min(100cqw, 100cqh / 1.4);
  height: min(100cqh, 100cqw * 1.78);
  touch-action: none;
  container-type: size;
  color: var(--cc-foreground);
}
.book::before {
  content: "";
  position: absolute;
  inset: 14px -6px -10px 8px;
  border-radius: var(--radius-page);
  box-shadow: 0 34px 60px -16px var(--book-shadow), 0 6px 14px var(--book-shadow);
}
/* El canto del pasaporte: hojas apiladas dibujadas con la misma tinta que la portada */
.book-edge {
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: calc(var(--edge, 6px) * -1 + 1px);
  width: var(--edge, 6px);
  border-radius: 0 7px 7px 0;
  border: var(--line) solid var(--cc-border);
  border-left: 0;
  background: repeating-linear-gradient(90deg, var(--cc-paper) 0 2px, var(--cc-border) 2px 3px);
  transition: width .5s var(--ease-out), right .5s var(--ease-out);
}

.page {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}
.page.is-visible { display: block; }

/* Dos ventanas giradas sobre el pliegue: una recorta el frente, la otra muestra el reverso reflejado */
.clip {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--L, 3000px);
  height: var(--L, 3000px);
  overflow: hidden;
  transform-origin: 0 0;
  pointer-events: none;
}
.flap { visibility: hidden; }
.page.is-folded .flap { visibility: inherit; }
.page.is-turning .clip,
.page.is-turning .face { will-change: transform; }

.face {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(100cqw);
  height: calc(100cqh);
  overflow: hidden;
  transform-origin: 0 0;
  border-radius: var(--radius-page);
  background-color: var(--cc-paper);
  background-image: none;
  color: var(--cc-foreground);
  pointer-events: auto;
}
.rim {
  position: absolute;
  inset: 0;
  z-index: 8;
  border-radius: inherit;
  box-shadow: inset 0 0 0 var(--line) var(--cc-border);
  pointer-events: none;
}
.face.back {
  background: var(--cc-paper-back);
  pointer-events: none;
}
.curl, .cast {
  position: absolute;
  left: 0;
  top: 0;
  width: 100px;
  height: var(--L, 3000px);
  transform-origin: 0 0;
  pointer-events: none;
}
/* El reverso se curva hacia el pliegue: brillo donde la hoja da la vuelta, sombra justo en el filo */
.curl {
  background: linear-gradient(90deg,
    var(--fold-dark) 0%,
    var(--fold-light) 16%,
    transparent 46%,
    var(--fold-soft) 100%);
}
.under {
  position: absolute;
  inset: 0;
  z-index: 7;
  overflow: hidden;
  border-radius: var(--radius-page);
  pointer-events: none;
}
.cast {
  opacity: 0;
  background: linear-gradient(90deg, var(--cast-dark), var(--cast-mid) 30%, transparent);
}
/* Hoja de visa del pasaporte original: papel casi blanco con guilloché de ondas finas */
.grid-paper {
  background-color: var(--cc-sheet);
  background-image: url("assets/ondas.svg");
  background-size: 76px 9px;
}
/* El pliegue: la hoja se oscurece hacia el lomo y lleva la costura, como un pasaporte cosido */
.face.front::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(60, 40, 10, .2), rgba(60, 40, 10, .05) 14px, transparent 30px);
}
.face.front::after {
  content: "";
  position: absolute;
  z-index: 5;
  left: 5px;
  top: 6%;
  bottom: 6%;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(var(--cc-primary) 55%, transparent 55%) 0 0 / 1px 11px;
  opacity: .45;
}
.page.cover .face.front::before,
.page.cover .face.front::after,
.page.backcover .face.front::after { display: none; }

.sheet {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 18px 26px;
}

/* ---------- Portada y contraportada ---------- */
.cover-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  pointer-events: none;
}
.cover-hint {
  position: absolute;
  left: 50%;
  bottom: 16px;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px 10px 13px;
  border-radius: 999px;
  background: var(--cc-foreground);
  color: var(--cc-paper);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  animation: hint-in .6s .9s var(--ease-out) both;
}
.cover-hint svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes hint-in { from { opacity: 0; translate: -50% 8px; } }

.page.backcover .face.front { background: var(--cc-paper); }
.backcover-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 34px 24px 0;
  text-align: center;
  overflow: hidden;
}
.contra-mark { width: 150px; height: auto; }
.contra-title { margin: 14px 0 0; font-family: var(--font-display); font-size: 54px; line-height: .86; text-transform: uppercase; }
.contra-title span { color: var(--cc-primary); }
.contra-tag { position: absolute; top: 112px; left: 6px; width: 78px; height: 78px; }
.contra-tag.is-right { left: auto; right: 6px; top: 196px; }
.backcover-inner small { font-size: 13px; color: var(--cc-muted); }
.backcover-inner .btn-line { position: relative; z-index: 1; background: var(--cc-paper); }
.backcover-inner .hands-row { margin: 0 -24px; align-self: stretch; }

/* Las cinco manos de la portada, asomando desde el borde de la hoja */
.hands-row {
  position: relative;
  flex: 1;
  min-height: 70px;
  display: flex;
  align-items: flex-end;
  justify-content: space-evenly;
  overflow: hidden;
  pointer-events: none;
}
.hands-row img {
  height: calc(var(--h) + 10px);
  max-height: 280px;
  width: auto;
  max-width: 21%;
  min-width: 0;
  object-fit: contain;
  object-position: 50% 100%;
  margin-bottom: -10px;
}
.sheet > .hands-row { margin: 10px -20px 14px -26px; border-bottom: var(--line) solid var(--cc-border); }
.page.is-enter .hands-row img { animation: hand-rise .8s calc(.15s + var(--d)) var(--ease-out) both; }

/* ---------- Tipografía de página ---------- */
.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: .92;
  text-transform: uppercase;
}
.page-title.is-red { color: var(--cc-primary); }
.page-lede { margin: 8px 0 0; font-size: 14px; color: var(--cc-muted); }
.field-label { display: block; font-size: 11px; font-weight: 500; color: var(--cc-muted); }
.field-label i { font-weight: 400; color: var(--cc-faint); }

/* ---------- Titular ---------- */
.holder-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--cc-border);
}
.holder-head .page-title { font-size: 30px; }
.holder-head img { width: 40px; height: 40px; border-radius: 9px; flex: none; }
.holder-id { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 16px 0 14px; }
.holder-photo {
  aspect-ratio: 3 / 4;
  border: 0;
  border-radius: 6px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  background: var(--cc-primary) center / cover no-repeat;
  color: var(--cc-on-primary);
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transition: transform .15s var(--ease-press);
}
.holder-photo:active { transform: scale(.96); }
.holder-photo:focus-visible { outline: 3px solid var(--cc-focus); outline-offset: 2px; }
.holder-photo small { font-family: var(--font-body); font-size: 10px; font-weight: 500; letter-spacing: .04em; opacity: .85; }
.holder-pair { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.holder-pair { gap: 6px; }
.holder-pair p { font-size: 11.5px; white-space: nowrap; }
.mrz {
  display: grid;
  flex: none;
  gap: 1px;
  margin: 0 0 12px;
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(20, 18, 16, .06);
  font: 600 10.5px/1.25 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: .02em;
  color: var(--cc-muted);
  white-space: nowrap;
  overflow: hidden;
}
.holder-fields { display: grid; gap: 9px; align-content: start; min-width: 0; }
.holder-fields p { margin: 1px 0 0; font-size: 15px; font-weight: 700; }
.signature {
  display: block;
  width: 100%;
  text-align: left;
  margin-top: 2px;
  padding: 0 0 3px;
  border-bottom: 1px solid var(--cc-rule);
  font-family: var(--font-sign);
  font-size: 30px;
  line-height: 1.2;
  color: var(--ink-blue);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 0;
}
.signature:active { opacity: .6; }
.signature-input {
  display: block;
  width: 100%;
  margin-top: 2px;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1.5px solid var(--ink-blue);
  border-radius: 0;
  background: transparent;
  font: 400 28px/1.2 var(--font-sign);
  color: var(--ink-blue);
  outline: none;
  user-select: text;
  -webkit-user-select: text;
}

.progress { padding: 14px 0 0; border-top: 1px solid var(--cc-rule); }
.progress-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.progress-num { font-family: var(--font-display); font-size: 46px; line-height: .85; }
.progress-num small { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--cc-muted); margin-left: 4px; }
.progress-next { font-size: 13px; line-height: 1.3; color: var(--cc-muted); text-align: right; max-width: 19ch; }
.progress-next b { color: var(--cc-foreground); }
.ticks { display: grid; grid-template-columns: repeat(37, 1fr); gap: 2px; margin-top: 12px; }
.ticks i { height: 9px; border-radius: 1px; background: var(--cc-rule); }
.ticks i.on { background: var(--cc-primary); }

.howto { margin: auto 0 0; padding: 16px 0 0; list-style: none; display: grid; gap: 11px; counter-reset: step; }
.howto li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: 13.5px; line-height: 1.38; color: var(--cc-muted); counter-increment: step; }
.howto li::before { content: counter(step); font-family: var(--font-display); font-size: 24px; line-height: 1; color: var(--cc-primary); }
.howto b { color: var(--cc-foreground); font-weight: 700; }
.howto-go { margin-top: 16px; }

/* ---------- Mis sellos ---------- */
.seals-wrap { flex: 1; min-height: 0; margin-top: 12px; container-type: size; }
.seals {
  display: grid;
  /* El número de filas llega desde el catálogo para que nuevos restaurantes siempre quepan. */
  --cell: min(calc((100cqw - 18px) / 7), calc((100cqh - 42px) / var(--seal-rows, 15)));
  grid-template-columns: repeat(7, var(--cell));
  justify-content: center;
  align-content: start;
  gap: 3px;
}
.seal {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  /* El número crece y se encoge con el sello: en pantallas chicas 13px fijos se salían del círculo */
  font-size: clamp(8px, calc(var(--cell) * .31), 14px);
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--cc-faint);
  transition: transform .15s var(--ease-press);
}
.seal::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1.2px dashed rgba(20, 18, 16, .28);
}
.seal.on { color: var(--cc-on-primary); }
.seal.on::before {
  inset: -3%;
  border: 0;
  border-radius: 0;
  background: url("assets/sello-qcw.png") center / contain no-repeat;
  rotate: var(--tilt, 0deg);
}
.seal span { position: relative; }
.seal:active { transform: scale(.88); }
.seals-legend { margin: 10px 0 0; font-size: 13px; color: var(--cc-muted); }

/* ---------- Índice ---------- */
.budgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 16px 0 0; }
.budget {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  transition: transform .18s var(--ease-press);
}
svg.burst { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.burst path { fill: var(--cc-paper); stroke: var(--cc-primary); stroke-width: 1.8; stroke-linejoin: round; transition: fill .2s var(--ease-out); }
.budget b { position: relative; font-family: var(--font-display); font-size: 27px; line-height: 1; color: var(--cc-primary); rotate: -6deg; }
.budget small { position: relative; margin-top: 3px; font-size: 11.5px; color: var(--cc-muted); }
.budget:active { transform: scale(.94); }
.budget:active .burst path { fill: var(--cc-press); }

.index-more { margin-top: auto; display: grid; gap: 10px; }
.btn-ink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0 16px 0 18px;
  border-radius: 12px;
  background: var(--cc-foreground);
  color: var(--cc-paper);
  text-align: left;
  transition: transform .15s var(--ease-press);
}
.btn-ink b { display: block; font-size: 15px; }
.btn-ink small { display: block; font-size: 12px; color: #c9c5b1; }
.btn-ink svg, .btn-line svg, .row-go svg, .reward-note svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-ink:active { transform: scale(.97); }
.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--cc-border);
  font-size: 14px;
  font-weight: 700;
  transition: transform .15s var(--ease-press), background-color .2s;
}
.btn-line:active { transform: scale(.96); }

/* ---------- Sección por precio ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-bottom: 12px; border-bottom: 1.5px solid var(--cc-border); }
.section-price { margin: 0; font-family: var(--font-display); font-size: 64px; line-height: .8; color: var(--cc-primary); }
.section-price.is-text { font-size: 32px; line-height: .92; text-transform: uppercase; }
.section-head p { margin: 0; font-size: 13px; line-height: 1.3; color: var(--cc-muted); text-align: right; }
.rows { margin: 2px 0 0; padding: 0; list-style: none; display: grid; align-content: start; }
.row {
  display: grid;
  grid-template-columns: 24px 26px 1fr 22px;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border-bottom: 1px solid var(--cc-rule);
  font-size: 14px;
  line-height: 1.2;
}
.row.has-menu { grid-template-columns: 24px 26px 1fr auto; }
.row.is-flash { animation: flash 1.4s var(--ease-out); }
@keyframes flash { 0%, 35% { background: var(--cc-press); } }
/* Logo de cada restaurante; sin logo propio lleva sus iniciales en la tinta de su sello */
.logo {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: var(--s, 26px);
  height: var(--s, 26px);
  border-radius: 24%;
  overflow: hidden;
  background: var(--cc-white);
  box-shadow: 0 0 0 1px var(--cc-rule);
}
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo.is-mono {
  background: var(--cc-paper);
  box-shadow: inset 0 0 0 1.5px var(--ink-color);
  color: var(--ink-color);
  font-family: var(--font-display);
  font-size: calc(var(--s, 26px) * .46);
  line-height: 1;
  letter-spacing: .02em;
}
.logo.is-mono span { translate: 0 .04em; }
.logo.is-chip {
  --s: 46px;
  position: absolute;
  z-index: 3;
  right: 12px;
  top: 12px;
  border-radius: 14px;
  rotate: 4deg;
  box-shadow: 0 0 0 3px var(--cc-white), 0 3px 10px rgba(12, 2, 0, .35);
}
.logo.is-chip.is-mono { box-shadow: 0 0 0 3px var(--cc-white), inset 0 0 0 2px var(--ink-color), 0 3px 10px rgba(12, 2, 0, .35); }
.logo.is-mini { --s: 20px; border-radius: 6px; font-size: 9px; }

.row-num { font-family: var(--font-display); font-size: 12px; color: var(--cc-faint); }
.row-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.has-menu .row-name { font-weight: 700; }
.row-slot { width: 20px; height: 20px; border-radius: 50%; border: 1.2px dashed rgba(20, 18, 16, .3); }
.row-slot.on { border: 0; border-radius: 0; background: url("assets/sello-qcw.png") center / contain no-repeat; rotate: -8deg; }
.row-go {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 30px;
  padding: 0 7px 0 11px;
  border-radius: 999px;
  background: var(--cc-foreground);
  color: var(--cc-paper);
  font-size: 12px;
  font-weight: 700;
  transition: transform .15s var(--ease-press);
}
.row-go.is-done { background: transparent; color: var(--cc-foreground); box-shadow: inset 0 0 0 1.2px var(--cc-rule); }
.row-go svg { width: 14px; height: 14px; }
.row-go:active { transform: scale(.94); }
.section-foot { margin: auto 0 0; padding-top: 12px; font-size: 12.5px; line-height: 1.4; color: var(--cc-muted); }

/* ---------- Restaurante ---------- */
.rest {
  display: grid;
  grid-template-rows: minmax(92px, 1fr) auto auto;
  height: 100%;
  /* Las ondas del pasaporte original: el fondo de seguridad de una hoja de visa */
  background: url("assets/ondas.svg") 0 0 / 76px 9px var(--cc-sheet);
}
.rest-photo { position: relative; margin: 0; background: #2a2622; border-bottom: 6px solid var(--cc-primary); }
.rest-photo img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* Por encima del cuerpo: el sello de precio se asoma sobre la franja roja y no debe quedar tapado ni recortado */
.rest-photo { z-index: 2; }
.art-clip { position: absolute; inset: 0; overflow: hidden; }
.rest-photo.is-art {
  background-color: var(--art);
  background-image:
    linear-gradient(var(--art-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--art-grid) 1px, transparent 1px);
  background-size: 10cqw 10cqw;
  background-position: -1px -1px;
  border-bottom: 6px solid var(--cc-primary);
}
.rest-photo .art-hand {
  position: absolute;
  left: var(--x);
  top: 14px;
  width: auto;
  height: max(118%, 190px);
  translate: -50% 0;
  rotate: var(--lean);
  transform-origin: 50% 100%;
}
/* La mano del tomate trae el brazo corto: se ancla abajo para que no flote */
.rest-photo .art-hand[src$="tomate.webp"] { top: auto; bottom: -6%; height: max(84%, 120px); }
/* La mano sube al llegar a la página, como en la portada donde todas asoman desde abajo */
.page.is-enter .art-hand { animation: hand-rise .9s .12s var(--ease-out) both; }
@keyframes hand-rise { from { transform: translateY(46%) rotate(-5deg); } }
.art-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 86px;
  height: 86px;
  display: grid;
  place-content: center;
  rotate: var(--tilt);
}
.art-tag .burst path { fill: var(--cc-white); }
.art-tag b { position: relative; font-family: var(--font-display); font-size: 12.5px; letter-spacing: .02em; color: var(--cc-foreground); }
.price-tag {
  position: absolute;
  right: 12px;
  bottom: -28px;
  width: 80px;
  height: 80px;
  display: grid;
  place-content: center;
  justify-items: center;
  z-index: 2;
}
.price-tag b { position: relative; font-family: var(--font-display); font-size: 24px; line-height: .9; color: var(--cc-primary); rotate: -8deg; text-align: center; }
.price-tag b small { display: block; font-size: 11px; }
.rest-body { position: relative; padding: 16px 20px 2px 26px; }
.rest-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding-right: 70px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cc-primary);
}
.rest-meta span:last-child { white-space: nowrap; }
.rest-name {
  margin: 10px 0 0;
  padding-right: 64px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--cc-primary);
  -webkit-text-stroke: 5px var(--cc-white);
  paint-order: stroke fill;
  filter: drop-shadow(2px 2px 0 var(--cc-foreground));
}
.rest-tag { margin: 6px 0 0; font-family: var(--font-sign); font-size: 25px; line-height: 1.25; color: var(--cc-foreground); }
.menu { margin: 8px 0 0; display: grid; gap: 7px; font-size: 15px; line-height: 1.42; color: var(--cc-muted); }
.menu.is-long { font-size: 14px; gap: 5px; }
.menu.is-dense { font-size: 13px; line-height: 1.36; gap: 4px; }
.menu p { margin: 0; }
.menu b { color: var(--cc-foreground); }
.menu b span { font-family: var(--font-display); font-weight: 700; color: var(--cc-primary); }

/* Casilla del sello */
.visa { padding: 8px 18px 16px 26px; }
.visa-box {
  position: relative;
  width: 100%;
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr 84px;
  align-items: center;
  gap: 8px;
  padding: 10px 6px 10px 14px;
  border-radius: 12px;
  border: 1.5px dashed rgba(20, 18, 16, .4);
  background: var(--cc-paper);
  text-align: left;
}
.visa-box b { display: block; font-size: 15px; line-height: 1.2; }
.visa-box small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.3; color: var(--cc-muted); }
.visa-spot { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.visa-spot .ghost {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1.5px dashed rgba(20, 18, 16, .3);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--cc-faint);
}
.visa-box.is-done { border-style: solid; border-color: var(--cc-rule); }
.visa-box.is-done .ghost { display: none; }

.ink {
  position: absolute;
  width: 110px;
  height: 110px;
  left: 50%;
  top: 50%;
  margin: -55px 0 0 -55px;
  color: var(--ink-color, var(--ink-red));
  rotate: var(--tilt, -10deg);
  mix-blend-mode: multiply;
  pointer-events: none;
  overflow: visible;
}
.ink g { opacity: var(--press, 1); }
.ink text { fill: currentColor; stroke: none; font-family: var(--font-body); font-weight: 700; }
.ink .ink-num { font-family: var(--font-display); }

.reward-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  padding: 11px 12px 11px 14px;
  border-radius: 10px;
  background: var(--cc-foreground);
  color: var(--cc-paper);
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
  animation: note-in .5s var(--ease-out) both;
}
.reward-note b { color: var(--cc-focus); }
@keyframes note-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Premios ---------- */
.reward-summary { margin-top: 18px; padding: 18px; display: grid; grid-template-columns: 78px 1fr; gap: 16px; align-items: center; border: 1.5px solid var(--cc-rule); border-radius: 18px; background: rgba(255,255,255,.38); }
.reward-burst { position: relative; width: 78px; height: 78px; display: grid; place-items: center; }
.reward-burst .burst { position: absolute; inset: 0; width: 100%; height: 100%; }
.reward-burst b { position: relative; font: 34px/1 var(--font-display); color: var(--cc-primary); }
.reward-summary.has-reward .burst path { fill: var(--cc-primary); }
.reward-summary.has-reward .reward-burst b { color: var(--cc-on-primary); }
.reward-summary small { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--cc-muted); }
.reward-summary strong { display: block; margin-top: 3px; font-size: 18px; line-height: 1.1; }
.reward-summary p { margin: 5px 0 0; font-size: 12.5px; line-height: 1.35; color: var(--cc-muted); }
.reward-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.reward-progress i { height: 48px; display: grid; place-items: center; border: 1.5px dashed rgba(20,18,16,.3); border-radius: 50%; font: 20px/1 var(--font-display); color: var(--cc-faint); }
.reward-progress i.on { border: 0; background: var(--cc-primary); color: var(--cc-on-primary); }
.reward-next { margin: 10px 0 0; text-align: center; font-size: 13px; font-weight: 800; }
.reward-rules { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--cc-rule); display: grid; gap: 7px; }
.reward-rules p { margin: 0; font-size: 12.5px; line-height: 1.35; color: var(--cc-muted); }
.reward-rules b { color: var(--cc-primary); margin-right: 5px; }
.prizes { margin: 12px 0 0; padding: 0; list-style: none; display: grid; }
.prize { display: grid; grid-template-columns: 62px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--cc-rule); }
.prize-mark { position: relative; width: 62px; height: 62px; display: grid; place-items: center; }
.prize-mark b { position: relative; font-family: var(--font-display); font-size: 22px; color: var(--cc-primary); rotate: -6deg; }
.prize.is-open .burst path { fill: var(--cc-primary); }
.prize.is-open .prize-mark b { color: var(--cc-on-primary); }
.prize strong { display: block; font-size: 15.5px; line-height: 1.2; }
.prize p { margin: 2px 0 0; font-size: 13px; line-height: 1.35; color: var(--cc-muted); }
.prize em { display: block; margin-top: 4px; font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--cc-foreground); }
.prize.is-open em { color: var(--ink-green); }
.is-faint { color: var(--cc-faint); font-weight: 400; }

/* Ranking */
.rank-link {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--cc-rule);
  font-size: 13px;
  color: var(--cc-foreground);
  transition: background-color .2s, transform .25s var(--ease-press);
}
.rank-link b { color: var(--cc-primary); }
.rank-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rank-link:active { transform: scale(.97); background: var(--cc-press); }
.rank-prize { display: flex; align-items: center; gap: 9px; margin: 9px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--cc-foreground); color: var(--cc-white); font-size: 11px; line-height: 1.25; }
.rank-prize b { flex: none; padding: 4px 7px; border-radius: 999px; background: var(--cc-primary); color: var(--cc-on-primary); font-family: var(--font-display); font-size: 16px; font-weight: 400; }
.rank { margin: 12px 0 0; padding: 0; list-style: none; overflow: hidden auto; flex: 1; min-height: 0; overscroll-behavior: contain; }
.rank-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--cc-rule);
}
.rank-pos { font-family: var(--font-display); font-size: 20px; color: var(--cc-faint); text-align: center; }
.rank-row.is-top .rank-pos { color: var(--cc-primary); font-size: 24px; }
.rank-who { min-width: 0; }
.rank-who b { display: block; font-size: 14.5px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-who b i { font-style: normal; font-weight: 500; color: var(--cc-muted); }
.rank-bar { display: block; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--cc-rule); overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: var(--cc-foreground); transform-origin: 0 50%; transform: scaleX(var(--k, 0)); }
.rank-row.is-top .rank-bar i, .rank-row.is-me .rank-bar i { background: var(--cc-primary); }
.rank-row.is-me { background: linear-gradient(90deg, var(--cc-press), transparent); margin-inline: -8px; padding-inline: 8px; border-radius: 10px; }
.rank-n { font-family: var(--font-display); font-size: 22px; line-height: 1; text-align: right; }
.rank-n small { display: block; margin-top: 2px; font-family: var(--font-body); font-size: 11px; color: var(--cc-muted); }
.rank-empty { margin-top: 28px; padding: 18px; border-radius: 14px; border: 1.5px dashed rgba(20, 18, 16, .3); text-align: center; display: grid; gap: 12px; justify-items: center; }
.rank-empty p { margin: 0; font-size: 14px; color: var(--cc-muted); }
.rank-me { margin: 12px 0 8px; font-size: 14px; color: var(--cc-muted); }
.rank-me b { color: var(--cc-foreground); }

/* Aviso al volver de la etiqueta NFC */
.aviso {
  position: fixed;
  z-index: 60;
  left: 16px;
  right: 16px;
  top: calc(env(safe-area-inset-top, 0px) + 68px);
  margin: 0 auto;
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--cc-foreground);
  color: var(--cc-on-primary);
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 10px 30px rgba(12, 2, 0, .35);
  animation: aviso-in .4s var(--ease-out) both;
}
.aviso.is-leaving { opacity: 0; translate: 0 -8px; transition: opacity .3s, translate .3s; }
@keyframes aviso-in { from { opacity: 0; translate: 0 -10px; } }

.fineprint { margin: auto 0 12px; font-size: 12px; line-height: 1.4; color: var(--cc-muted); }

/* ---------- Paginador ---------- */
.pager {
  flex: none;
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  align-items: center;
  gap: 6px;
  padding: 8px 12px calc(env(safe-area-inset-bottom) + 10px);
}
.pager-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: var(--line) solid var(--cc-border);
  background: var(--cc-white);
  color: var(--cc-foreground);
  transition: transform .15s var(--ease-press), background-color .2s, opacity .25s;
}
.pager-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pager-btn:active:not(:disabled) { transform: scale(.92); background: var(--food-orange); }
.pager-btn:disabled { opacity: .45; cursor: default; }
.pager-title {
  min-width: 0;
  min-height: 48px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1px;
  border-radius: 12px;
  transition: background-color .2s, transform .15s var(--ease-press);
}
/* El recorte de la elipsis se come los acentos (Í, É) si la línea no deja aire arriba */
.pager-title span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-size: 21px; line-height: 1.3; padding-top: 2px; margin-bottom: -3px; text-transform: uppercase; color: var(--cc-on-desk); }
.pager-title small { font-size: 12.5px; font-weight: 500; color: var(--cc-on-desk-muted); }
.pager-title:active { background: var(--cc-desk-line); transform: scale(.98); }

/* Sello que vuela al contador */
.flyer {
  position: fixed;
  z-index: 50;
  width: 34px;
  height: 34px;
  left: 0;
  top: 0;
  pointer-events: none;
  background: url("assets/sello-qcw.png") center / contain no-repeat;
}

/* ---------- Mapa ---------- */
.topbar-end { display: flex; align-items: center; gap: 8px; }
.map-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: var(--line) solid var(--cc-border);
  background: var(--cc-white);
  color: var(--cc-foreground);
  transition: transform .15s var(--ease-press), background-color .2s;
}
.map-btn svg, .rest-map svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.map-btn:active { transform: scale(.92); background: var(--cc-press); }
.rest-map {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: -12px -8px -12px 0;
  padding: 12px 8px;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  white-space: nowrap;
}
.rest-map svg { width: 14px; height: 14px; stroke-width: 2.4; }
.rest-map span { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.rest-map:active { opacity: .6; }

.mapa {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--cc-foreground);
  background-color: var(--cc-paper);
  background-image:
    linear-gradient(var(--cc-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--cc-grid) 1px, transparent 1px);
  background-size: 180px 180px, 22px 22px, 22px 22px;
  /* Se abre como una mancha de tinta que crece desde el botón que lo llamó */
  clip-path: circle(0 at var(--ox, 100%) var(--oy, 0));
  transition: clip-path .4s cubic-bezier(.5, 0, .75, 0);
}
.mapa.is-open { clip-path: circle(var(--r, 150vmax) at var(--ox, 100%) var(--oy, 0)); transition: clip-path .62s cubic-bezier(.5, 0, .1, 1); }
.mapa.is-open .mapa-lienzo { animation: lienzo-in .7s var(--ease-out) both; }
@keyframes lienzo-in { from { scale: 1.08; } }
.lite .mapa { clip-path: none; opacity: 0; transform: translateY(16px); transition: opacity .24s, transform .28s var(--ease-out); }
.lite .mapa.is-open { clip-path: none; opacity: 1; transform: none; }
.lite .mapa.is-open .mapa-lienzo { animation: none; }
.mapa[hidden] { display: none; }
.mapa-top {
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: calc(env(safe-area-inset-top) + 14px) 14px 0 20px;
}
.mapa-titulo h2 { margin: 0; font-family: var(--font-display); font-size: 34px; line-height: 1.1; font-weight: 400; text-transform: uppercase; color: var(--cc-primary); -webkit-text-stroke: 5px var(--cc-white); paint-order: stroke fill; filter: drop-shadow(2px 2px 0 var(--cc-foreground)); }
.mapa-cuenta { margin: 2px 0 0; font-size: 13px; color: var(--cc-muted); }
.mapa-botones { flex: none; display: flex; gap: 8px; }
.mapa-icono {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: var(--line) solid var(--cc-border);
  background: var(--cc-white);
  transition: transform .15s var(--ease-press), background-color .2s;
}
.mapa-icono svg, .mapa-yo svg, .mapa-zoom svg, .lista-buscar > svg, .ficha-nav svg, .ficha-acciones svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mapa-icono:active { transform: scale(.92); background: var(--cc-press); }
.mapa-progreso { flex: none; height: 4px; margin: 10px 20px 0; border-radius: 4px; background: var(--cc-rule); overflow: hidden; }
.mapa-progreso i { display: block; height: 100%; border-radius: 4px; background: var(--cc-primary); transform-origin: 0 50%; transform: scaleX(0); transition: transform .8s var(--ease-out) .3s; }
.mapa-filtros {
  flex: none;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 12px 20px 12px;
  scrollbar-width: none;
  border-bottom: 1.5px solid var(--cc-border);
}
.mapa-filtros::-webkit-scrollbar { display: none; }
.mapa-chip {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--cc-border);
  background: var(--cc-white);
  font-size: 13.5px;
  font-weight: 700;
  transition: transform .15s var(--ease-press), background-color .2s, color .2s;
}
.mapa-chip[aria-pressed="true"] { background: var(--cc-foreground); color: var(--cc-paper); }
.mapa-chip:active { transform: scale(.95); }

.mapa-lienzo { position: relative; flex: 1; min-height: 0; overflow: hidden; contain: layout paint; touch-action: none; cursor: grab; }
.mapa-lienzo.is-moving { cursor: grabbing; }
.mapa-lienzo canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Un mapa de papel guarda las marcas de donde se dobló */
.mapa-pliegues {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(33.3% - 6px), var(--fold-soft) calc(33.3% - 1px), var(--fold-light) 33.3%, transparent calc(33.3% + 5px)),
    linear-gradient(90deg, transparent calc(66.6% - 6px), var(--fold-soft) calc(66.6% - 1px), var(--fold-light) 66.6%, transparent calc(66.6% + 5px)),
    linear-gradient(transparent calc(50% - 6px), var(--fold-soft) calc(50% - 1px), var(--fold-light) 50%, transparent calc(50% + 5px));
}
.mapa-pines { position: absolute; inset: 0; pointer-events: none; }
.mapa-pin, .mapa-grupo, .mapa-tu {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  will-change: transform;
}
.mapa-pin {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  display: grid;
  place-items: center;
}
.mapa-pin[hidden], .mapa-tu[hidden] { display: none; }
/* Solo al abrir: los grupos se rehacen al hacer zoom y no deben volver a brotar. scale es aparte de transform, no pisa la posición */
.mapa.is-entering .mapa-pin, .mapa.is-entering .mapa-grupo { animation: pin-brota .5s var(--ease-spring) var(--d, 0ms) backwards; }
@keyframes pin-brota { from { scale: 0; opacity: 0; } }
.mapa-pin.is-sel::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2.5px solid var(--cc-primary);
  animation: pin-eco 1.6s var(--ease-out) infinite;
  pointer-events: none;
}
@keyframes pin-eco { from { scale: .7; opacity: .9; } to { scale: 1.9; opacity: 0; } }
.mapa-pin svg { position: absolute; inset: 6px; width: 32px; height: 32px; overflow: visible; transition: transform .2s var(--ease-out); }
/* El trazo va en el svg: el <use> no recibe selectores de afuera, solo hereda */
.mapa-pin svg, .ficha-precio svg { fill: var(--cc-white); stroke: var(--cc-primary); stroke-width: 5; stroke-linejoin: round; }
.mapa-pin span { position: relative; font-family: var(--font-display); font-size: 12px; line-height: 1; color: var(--cc-primary); transition: transform .2s var(--ease-out); }
.mapa-pin.is-on svg { fill: var(--cc-primary); stroke: var(--cc-foreground); }
.mapa-pin.is-on span { color: var(--cc-on-primary); }
.mapa-pin.is-sel { z-index: 2; }
.mapa-pin.is-sel svg { transform: scale(1.45); filter: drop-shadow(2px 3px 0 var(--cc-foreground)); }
.mapa-pin.is-sel span { transform: scale(1.4); }
.mapa-pin:active svg { transform: scale(.88); }
.mapa-pin:focus-visible { outline: none; }
.mapa-pin:focus-visible svg { outline: 3px solid var(--cc-focus); outline-offset: 2px; border-radius: 50%; }
.mapa-grupo {
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  display: grid;
  place-items: center;
}
.mapa-grupo b {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--cc-foreground);
  color: var(--cc-paper);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  box-shadow: 0 0 0 3px var(--cc-paper), 0 0 0 4.5px var(--cc-foreground);
  transition: transform .15s var(--ease-press);
}
.mapa-grupo:active b { transform: scale(.9); }
.mapa-tu {
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--map-me);
  border: 3px solid var(--cc-white);
  box-shadow: 0 1px 4px var(--cast-dark);
  pointer-events: none;
}
.mapa-tu::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid var(--map-me);
  animation: tu-pulso 2.2s var(--ease-out) infinite;
}
@keyframes tu-pulso { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.mapa-aviso {
  position: absolute;
  left: 50%;
  top: 14px;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--cc-foreground);
  color: var(--cc-paper);
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity .2s, transform .25s var(--ease-out);
}
.mapa-aviso.is-on { opacity: 1; transform: translate(-50%, 0); }
.mapa-mandos {
  position: absolute;
  right: 14px;
  bottom: calc(env(safe-area-inset-bottom) + 16px + var(--ficha-lift, 0px));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  transition: bottom .34s var(--ease-out);
}
.mapa.has-ficha .mapa-mandos { --ficha-lift: calc(var(--ficha-h, 0px) + 8px); }
.mapa-zoom { display: flex; flex-direction: column; border: var(--line) solid var(--cc-border); border-radius: 14px; overflow: hidden; background: var(--cc-white); box-shadow: 0 6px 16px -8px var(--cast-dark); }
.mapa-zoom button { display: grid; place-items: center; width: 44px; height: 44px; transition: background-color .2s; }
.mapa-zoom button + button { border-top: 1.5px solid var(--cc-rule); }
.mapa-zoom button:active { background: var(--cc-press); }
.mapa-leyenda {
  position: absolute;
  left: 14px;
  bottom: calc(env(safe-area-inset-bottom) + 20px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 8px 10px;
  list-style: none;
  border-radius: 12px;
  background: color-mix(in srgb, var(--cc-paper) 88%, transparent);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
  transition: opacity .25s, transform .3s var(--ease-out);
}
.mapa.has-ficha .mapa-leyenda { opacity: 0; transform: translateY(12px); }
.mapa-leyenda li { display: flex; align-items: center; gap: 7px; }
.mapa-leyenda svg { width: 16px; height: 16px; overflow: visible; fill: var(--cc-white); stroke: var(--cc-primary); stroke-width: 7; stroke-linejoin: round; }
.mapa-leyenda svg.is-on { fill: var(--cc-primary); stroke: var(--cc-foreground); }
.mapa-leyenda i { width: 12px; height: 12px; margin: 0 2px; border-radius: 50%; background: var(--map-me); border: 2px solid var(--cc-white); box-shadow: 0 0 0 1px var(--cc-rule); }
.mapa-yo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  background: var(--cc-foreground);
  color: var(--cc-paper);
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 6px 16px -6px var(--cast-dark);
  transition: transform .15s var(--ease-press), opacity .2s;
}
.mapa-yo:active:not(:disabled) { transform: scale(.95); }
.mapa-yo:disabled { opacity: .7; }
.mapa.has-ficha .mapa-yo { padding: 0; width: 48px; justify-content: center; }
.mapa.has-ficha .mapa-yo span { display: none; }

.mapa-ficha {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(env(safe-area-inset-bottom) + 8px);
  padding: 6px 16px 14px 16px;
  border: var(--line) solid var(--cc-border);
  border-radius: 18px;
  background-color: var(--cc-paper);
  background-image: url("assets/ondas.svg");
  background-size: 76px 9px;
  box-shadow: 0 -2px 0 var(--cc-paper), 4px 5px 0 var(--cc-foreground);
  transform: translateY(calc(100% + 24px));
  transition: transform .4s var(--ease-out);
  touch-action: pan-y;
}
.mapa.has-ficha .mapa-ficha { transform: none; }
.mapa-ficha[hidden] { display: block; visibility: hidden; }
/* Al cambiar de parada, el contenido entra desde el lado hacia donde fuiste */
.mapa-ficha > * { animation: ficha-in .38s var(--ease-out) backwards; }
.mapa-ficha > :nth-child(2) { animation-delay: 40ms; }
.mapa-ficha > :nth-child(3) { animation-delay: 80ms; }
.mapa-ficha > :nth-child(4) { animation-delay: 110ms; }
.mapa-ficha > :nth-child(5) { animation-delay: 140ms; }
.mapa-ficha > :nth-child(6) { animation-delay: 170ms; }
@keyframes ficha-in { from { opacity: 0; transform: translateY(10px); } }
.ficha-cabeza { display: flex; align-items: center; justify-content: space-between; height: 28px; }
.ficha-asa { width: 40px; height: 4px; border-radius: 4px; background: var(--cc-rule); }
.ficha-nav { display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -10px; color: var(--cc-muted); transition: transform .15s var(--ease-press), color .2s; }
.ficha-nav svg { width: 18px; height: 18px; }
.ficha-nav.is-der svg { scale: -1 1; }
.ficha-nav:active { transform: scale(.85); color: var(--cc-primary); }
.ficha-cuerpo { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 2px; }
.ficha-foto { position: relative; width: 84px; height: 84px; border-radius: 12px; border: var(--line) solid var(--cc-border); background: var(--cc-white); rotate: -2.5deg; }
.ficha-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; display: block; }
.ficha-foto.sin-foto { display: grid; place-items: center; background: var(--cc-press); }
.ficha-foto.sin-foto .ficha-precio { position: relative; inset: auto; }
.ficha-precio { position: absolute; top: -12px; left: -12px; width: 56px; height: 56px; display: grid; place-items: center; rotate: -8deg; }
.ficha-precio svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ficha-precio svg { stroke-width: 3; }
.ficha-precio b { position: relative; max-width: 42px; font-family: var(--font-display); font-size: 14px; line-height: .95; font-weight: 400; color: var(--cc-primary); text-align: center; rotate: 8deg; }
.ficha-foto.sin-foto .ficha-precio { width: 68px; height: 68px; top: auto; left: auto; }
.ficha-foto.sin-foto .ficha-precio b { max-width: 52px; font-size: 17px; }
.ficha-marca { position: absolute; right: -10px; bottom: -10px; width: 34px; height: 34px; background: url("assets/sello-qcw.png") center / contain no-repeat; rotate: 12deg; }
.ficha-texto { min-width: 0; }
.ficha-meta { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cc-primary); }
.ficha-nombre { margin: 4px 0 0; font-family: var(--font-display); font-size: 26px; line-height: 1.1; font-weight: 400; text-transform: uppercase; color: var(--cc-primary); -webkit-text-stroke: 4px var(--cc-white); paint-order: stroke fill; filter: drop-shadow(2px 2px 0 var(--cc-foreground)); overflow-wrap: anywhere; }
.ficha-frase { margin: 6px 0 0; font-size: 13px; font-style: italic; line-height: 1.3; color: var(--cc-muted); }
.ficha-dir { margin: 10px 0 0; font-size: 14px; line-height: 1.35; color: var(--cc-muted); }
.ficha-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 6px 0 0; font-size: 13.5px; font-weight: 700; }
.ficha-extra i { font-style: normal; color: var(--cc-faint); }
.ficha-sello { display: inline-flex; align-items: center; gap: 6px; color: var(--cc-primary); }
.ficha-ubicame { padding: 8px 0; margin: -8px 0; font: inherit; font-weight: 700; color: var(--cc-foreground); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.ficha-ubicame:active { opacity: .6; }
.ficha-chips { display: flex; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; overflow: hidden; }
.ficha-chips li { flex: 0 1 auto; min-width: 0; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--cc-rule); background: var(--cc-white); font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ficha-chips .mas { flex: none; color: var(--cc-muted); }
.ficha-acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ficha-acciones .btn-ink { min-height: 50px; padding: 0 14px 0 16px; white-space: nowrap; }
.ficha-acciones .btn-line { min-height: 50px; padding: 0 12px; background: var(--cc-white); text-decoration: none; color: var(--cc-foreground); white-space: nowrap; }

/* Buscador: una hoja que sube sobre el mapa */
.mapa-lista {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top);
  background-color: var(--cc-paper);
  background-image: linear-gradient(var(--cc-grid) 1px, transparent 1px), linear-gradient(90deg, var(--cc-grid) 1px, transparent 1px);
  background-size: 22px 22px;
  transform: translateY(100%);
  transition: transform .34s var(--ease-out);
}
.mapa-lista[hidden] { display: none; }
.mapa.lista-abierta .mapa-lista { transform: none; }
.lista-buscar { flex: none; display: flex; align-items: center; gap: 10px; margin: 12px 14px 8px; padding: 0 8px 0 14px; min-height: 52px; border-radius: 16px; border: var(--line) solid var(--cc-border); background: var(--cc-white); }
.lista-buscar input { flex: 1; min-width: 0; min-height: 48px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--cc-foreground); }
.lista-cerrar { flex: none; min-height: 40px; padding: 0 12px; border-radius: 12px; font-weight: 700; color: var(--cc-primary); }
.lista-cerrar:active { background: var(--cc-press); }
.lista-items { flex: 1; min-height: 0; margin: 0; padding: 0 14px calc(env(safe-area-inset-bottom) + 16px); list-style: none; overflow-y: auto; overscroll-behavior: contain; }
.lista-items li { border-bottom: 1.5px solid var(--cc-rule); }
.lista-items button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 4px; text-align: left; transition: background-color .2s; }
.lista-items button:active { background: var(--cc-press); }
.li-num { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; }
.li-num svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: var(--cc-white); stroke: var(--cc-primary); stroke-width: 6; stroke-linejoin: round; }
.li-num b { position: relative; font-family: var(--font-display); font-size: 13px; font-weight: 400; line-height: 1; color: var(--cc-primary); }
.li-num.is-on svg { fill: var(--cc-primary); stroke: var(--cc-foreground); }
.li-num.is-on b { color: var(--cc-on-primary); }
.li-info { flex: 1; min-width: 0; display: grid; gap: 1px; }
.li-info b { font-size: 15.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-info small, .li-der small { font-size: 12.5px; color: var(--cc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-der { flex: none; display: grid; justify-items: end; gap: 1px; }
.li-der b { font-family: var(--font-display); font-size: 15px; font-weight: 400; color: var(--cc-primary); }
.li-der .li-ok { color: var(--cc-primary); font-weight: 700; }
.lista-vacio { margin: 40px 24px; text-align: center; color: var(--cc-muted); }

.mapa-pin:focus-visible, .mapa-grupo:focus-visible, .mapa-chip:focus-visible, .mapa-icono:focus-visible, .mapa-zoom button:focus-visible, .ficha-nav:focus-visible, .lista-items button:focus-visible, .lista-cerrar:focus-visible, .mapa-yo:focus-visible, .map-btn:focus-visible { outline: 3px solid var(--cc-focus); outline-offset: 2px; }
.lite .mapa-pin.is-sel svg { filter: none; }
.lite .mapa.is-entering .mapa-pin, .lite .mapa.is-entering .mapa-grupo, .lite .mapa-pin.is-sel::after, .lite .mapa-ficha > * { animation: none; }
.lite .mapa-titulo h2, .lite .ficha-nombre { filter: none; text-shadow: 2px 2px 0 var(--cc-foreground); }

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

.lite .ink g { filter: none; }
.lite .page.is-enter .art-hand,
.lite .page.is-enter .hands-row img { animation: none; }
.lite .rest-name { filter: none; text-shadow: 2px 2px 0 var(--cc-foreground); }
.lite .book::before { box-shadow: 0 10px 24px -8px var(--book-shadow); }

/* ---------- Transiciones ----------
   Cada hoja se arma sola mientras se destapa: el contenido asienta, no aparece de golpe.
   .is-enter la pone paint() solo en la hoja que acaba de quedar a la vista debajo de la que se voltea. */
:root { --motion: 1; }
.lite { --motion: 0; }
@media (prefers-reduced-motion: reduce) { :root { --motion: 0; } }
@keyframes enter-up { from { opacity: 0; translate: 0 16px; } }
@keyframes enter-side { from { opacity: 0; translate: -14px 0; } }
@keyframes enter-pop { from { opacity: 0; scale: .4; } }
@keyframes enter-tag { from { opacity: 0; scale: .3; rotate: calc(var(--tilt, 0deg) - 40deg); } }
@keyframes enter-photo { from { scale: 1.16; } }
@keyframes enter-fade { from { opacity: 0; } }
@keyframes enter-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes enter-stamp { from { opacity: 0; scale: 1.5; rotate: -14deg; } }

.page.is-enter .rest-photo { animation: enter-fade .5s var(--ease-out) both; }
.page.is-enter .rest-photo > img:not(.art-hand) { animation: enter-photo 1s var(--ease-out) both; }
.page.is-enter .price-tag,
.page.is-enter .art-tag { animation: enter-tag .7s calc(.22s * var(--motion)) var(--ease-spring) both; }
.page.is-enter .rest-meta { animation: enter-up .5s calc(.1s * var(--motion)) var(--ease-out) both; }
.page.is-enter .rest-name { animation: enter-up .6s calc(.16s * var(--motion)) var(--ease-out) both; }
.page.is-enter .rest-tag { animation: enter-up .5s calc(.24s * var(--motion)) var(--ease-out) both; }
.page.is-enter .menu > p { animation: enter-up .5s calc((.3s + var(--i, 0) * .07s) * var(--motion)) var(--ease-out) both; }
.page.is-enter .visa { animation: enter-up .6s calc(.55s * var(--motion)) var(--ease-out) both; }
.page.is-enter .visa-box.is-done .visa-spot { animation: enter-stamp .5s calc(.7s * var(--motion)) var(--ease-spring) both; }

.page.is-enter .page-title { animation: enter-up .6s calc(.08s * var(--motion)) var(--ease-out) both; }
.page.is-enter .page-lede { animation: enter-up .5s calc(.16s * var(--motion)) var(--ease-out) both; }
.page.is-enter .section-head { animation: enter-up .55s calc(.06s * var(--motion)) var(--ease-out) both; }
.page.is-enter .row { animation: enter-side .5s calc((.14s + var(--i, 0) * .045s) * var(--motion)) var(--ease-out) both; }
.page.is-enter .budget { animation: enter-pop .55s calc((.16s + var(--i, 0) * .07s) * var(--motion)) var(--ease-spring) both; }
.page.is-enter .index-more { animation: enter-up .5s calc(.55s * var(--motion)) var(--ease-out) both; }
.page.is-enter .seal { animation: enter-pop .45s calc((.12s + min(var(--i, 0), 36) * .014s) * var(--motion)) var(--ease-spring) both; }
.page.is-enter .rank-row { animation: enter-up .5s calc((.14s + var(--i, 0) * .05s) * var(--motion)) var(--ease-out) both; }
.page.is-enter .prize { animation: enter-up .55s calc((.14s + var(--i, 0) * .1s) * var(--motion)) var(--ease-out) both; }
.page.is-enter .holder-head { animation: enter-up .55s calc(.04s * var(--motion)) var(--ease-out) both; }
.page.is-enter .holder-id { animation: enter-up .55s calc(.14s * var(--motion)) var(--ease-out) both; }
.page.is-enter .progress { animation: enter-up .55s calc(.24s * var(--motion)) var(--ease-out) both; }
.page.is-enter .ticks { animation: enter-wipe .9s calc(.4s * var(--motion)) var(--ease-out) both; }
.page.is-enter .howto li { animation: enter-up .5s calc((.36s + var(--i, 0) * .08s) * var(--motion)) var(--ease-out) both; }
.page.is-enter .howto-go { animation: enter-up .55s calc(.62s * var(--motion)) var(--ease-out) both; }
.page.is-enter .contra-mark { animation: enter-pop .7s calc(.1s * var(--motion)) var(--ease-spring) both; }
.page.is-enter .contra-title { animation: enter-up .6s calc(.22s * var(--motion)) var(--ease-out) both; }

/* El cromo (barra, libro, paginador) también entra al abrir la app */
@keyframes chrome-down { from { opacity: 0; translate: 0 -14px; } }
@keyframes chrome-up { from { opacity: 0; translate: 0 18px; } }
@keyframes book-in { from { opacity: 0; translate: 0 26px; } }
.topbar { animation: chrome-down .6s .05s var(--ease-out) backwards; }
.stage { animation: book-in .8s .1s var(--ease-out) backwards; }
.pager { animation: chrome-up .6s .25s var(--ease-out) backwards; }

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


/* ---------- Visas ---------- */
.visas {
  list-style: none;
  margin: 9px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 7px;
}
.visa-card {
  position: relative;
  display: grid;
  gap: 2px;
  min-height: 0;
  padding: 5px 8px 4px;
  border: 1px dashed rgba(20, 18, 16, .3);
  border-radius: 7px;
  color: var(--cc-faint);
  rotate: var(--tilt, 0deg);
}
.visa-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.visa-name { font-family: var(--font-display); font-size: 17px; line-height: .95; letter-spacing: .01em; font-weight: 400; }
.visa-dots { display: flex; gap: 4px; margin: 1px 0; }
.visa-dots i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; }
.visa-dots i.on { background: currentColor; }
.visa-card small { font-size: 9px; line-height: 1; }
.visa-card.is-won {
  color: var(--vc);
  border: 2px solid currentColor;
  background:
    repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, currentColor 9%, transparent) 7px 8px),
    var(--cc-white);
  box-shadow: 0 0 0 3px var(--cc-white), 0 0 0 4.5px currentColor;
  margin: 2px;
}
.visa-card.is-won .visa-name { color: var(--cc-foreground); }
.visa-card.is-won small { color: var(--cc-muted); font-weight: 500; }
.visa-card.is-won::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 5px;
  width: 17px;
  height: 17px;
  background: url("assets/sello-qcw.png") center / contain no-repeat;
  rotate: -12deg;
}
.page.is-enter .visa-card { animation: enter-pop .45s calc((.12s + var(--i, 0) * .05s) * var(--motion)) var(--ease-spring) both; }

/* ---------- Ruta de premios ---------- */
.rewards-sheet { min-height: 0; }
.rewards-sheet > .page-title { padding-right: 58px; }
.reward-gift { position: absolute; z-index: 2; top: 23px; right: 20px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--cc-primary); color: var(--cc-on-primary); box-shadow: 0 5px 0 rgba(82,18,2,.22); }
.reward-gift svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reward-gift b { position: absolute; right: -3px; top: -4px; min-width: 19px; height: 19px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; background: var(--cc-foreground); color: var(--cc-white); font-size: 10px; }
.reward-gift:active { transform: translateY(2px); box-shadow: 0 3px 0 rgba(82,18,2,.22); }
.reward-list { flex: 1; min-height: 0; margin: 10px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(6,minmax(0,1fr)); gap: 3px 10px; overflow: visible; }
.reward-item { min-width: 0; display: grid; grid-template-columns: 33px 1fr; gap: 7px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--cc-rule); opacity: .58; }
.reward-item.has-action { grid-template-columns: 33px minmax(0,1fr) auto; }
.reward-action { padding: 6px 8px; border-radius: 8px; background: var(--cc-foreground); color: var(--cc-white); font-size: 8px; font-weight: 800; line-height: 1.1; text-align: center; text-decoration: none; }
.reward-action:active { transform: translateY(1px); }
.reward-item.is-open { opacity: 1; }
.reward-milestone { width: 31px; height: 31px; display: grid; place-items: center; border: 1px dashed rgba(20,18,16,.34); border-radius: 50%; font: 14px/1 var(--font-display); color: var(--cc-faint); }
.reward-item.is-open .reward-milestone { border: 0; background: var(--cc-primary); color: var(--cc-on-primary); }
.reward-item.is-redeemed .reward-milestone { background: var(--ink-green); }
.reward-item strong { display: block; font-size: 11px; line-height: 1.08; }
.reward-item em { display: block; margin-top: 2px; font-style: normal; font-size: 9px; line-height: 1; font-weight: 800; color: var(--cc-foreground); }
.reward-item.is-open em { color: var(--ink-green); }
.reward-item.is-redeemed em { color: var(--cc-muted); }
.reward-wallet-dialog { position: fixed; inset: 0; margin: auto; width: min(390px,calc(100vw - 28px)); max-height: calc(100dvh - 28px); padding: 27px 20px 20px; overflow: auto; border: 0; border-radius: 20px; background: var(--cc-white); color: var(--cc-foreground); box-shadow: 0 20px 80px #0005; }
.reward-wallet-dialog::backdrop { background: #160b08aa; backdrop-filter: blur(3px); }
.reward-wallet-close { position: absolute; right: 9px; top: 8px; width: 36px; height: 36px; font-size: 28px; }
.reward-wallet-kicker { margin: 0; color: var(--cc-primary); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.reward-wallet-dialog h2 { margin: 5px 0 4px; font: 38px/1 var(--font-display); }
.reward-wallet-dialog > p:not(.reward-wallet-kicker) { margin: 0 0 14px; color: var(--cc-muted); font-size: 13px; }
.reward-wallet-list { display: grid; gap: 8px; }
.reward-wallet-list article { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--cc-rule); border-radius: 12px; }
.reward-wallet-list article > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--cc-primary); color: var(--cc-on-primary); font: 17px/1 var(--font-display); }
.reward-wallet-list b,.reward-wallet-list small { display: block; }
.reward-wallet-list b { font-size: 13px; line-height: 1.15; }
.reward-wallet-list small { margin-top: 3px; color: var(--cc-muted); font-size: 10px; }
.reward-wallet-list details { margin-top: 6px; }
.reward-wallet-list summary { cursor: pointer; color: var(--cc-primary); font-size: 10px; font-weight: 800; }
.reward-wallet-list details p { margin: 6px 0 0; max-height: 116px; padding: 8px; overflow: auto; border-radius: 8px; background: var(--cc-sheet); color: var(--cc-muted); font-size: 10px; line-height: 1.45; }
.reward-wallet-list button { min-height: 38px; padding: 0 12px; border-radius: 9px; background: var(--cc-foreground); color: var(--cc-white); font-size: 12px; font-weight: 800; }
.reward-wallet-empty { margin-top: 18px; padding: 22px 16px; border: 1px dashed var(--cc-rule); border-radius: 14px; text-align: center; }
.reward-wallet-empty p { margin: 7px 0 0; color: var(--cc-muted); font-size: 12px; line-height: 1.4; }
