/* Fuentes autoalojadas (OFL, ver assets/fonts/): Inter con eje de tamaño
   óptico — a tamaño de titular se convierte sola en Inter Display — e
   Instrument Serif: recta en el nombre del logo y cursiva sólo en la
   palabra destacada de cada titular. No hay más familias. Sólo subconjunto latino
   (incluye á é í ó ú ñ ü ¿ ¡). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-opsz.woff2') format('woff2-variations'), url('../fonts/inter-opsz.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/instrument-serif-italic.woff2') format('woff2');
}

/* ==========================================================================
   Rubato — web
   Mismos tokens que la app (src/theme/variables.scss): blanco y carbón,
   superficies gris frío, radios 28/18, botones en píldora. El color sólo
   aparece en las fichas de respuesta (verde sí, ámbar quizás, rojo no).
   ========================================================================== */

:root {
  --paper: #ffffff;
  --ink: #2a2a2c;
  --ink-rgb: 42, 42, 44;
  --soft: rgba(42, 42, 44, 0.62);
  --muted: #8a8d96;
  --surface: #ffffff;
  --surface-2: #f2f4f8;
  --surface-3: #e6e9f0;
  --border: rgba(42, 42, 44, 0.08);
  --border-strong: rgba(42, 42, 44, 0.16);
  --block: #2e2e30;
  --block-text: #ffffff;
  --shadow: 0 8px 24px rgba(30, 40, 70, 0.07), 0 1px 3px rgba(30, 40, 70, 0.05);
  --shadow-lg: 0 40px 80px -24px rgba(30, 40, 70, 0.28), 0 12px 24px -12px rgba(30, 40, 70, 0.18);

  --yes: #1f8f57;
  --maybe: #a5670f;
  --no: #c62828;

  --radius: 28px;
  --radius-sm: 18px;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  /* Escala tipográfica: todo el texto de la web sale de aquí. */
  --fs-display: clamp(44px, 7.4vw, 96px);
  --fs-h2: clamp(36px, 5.4vw, 68px);
  --fs-h3: 22px;
  --fs-h4: 17px;
  --fs-lead: clamp(17px, 1.6vw, 19px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-label: 12px;

  --tr-display: -0.045em;
  --tr-h2: -0.04em;
  --tr-h3: -0.022em;
  --tr-body: -0.011em;
  --tr-label: 0.08em;

  /* Proporción de la cursiva dentro de un titular sans: iguala su altura x. */
  --serif-scale: 1.1;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e0e0f;
    --ink: #f2f2f4;
    --ink-rgb: 242, 242, 244;
    --soft: rgba(255, 255, 255, 0.72);
    --muted: #8a8a92;
    --surface: #18181a;
    --surface-2: #1e1f22;
    --surface-3: #2a2b2f;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.18);
    --block: #232326;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 40px 80px -24px rgba(0, 0, 0, 0.7), 0 12px 24px -12px rgba(0, 0, 0, 0.5);
    --yes: #34c77b;
    --maybe: #e8a33d;
    --no: #e5484d;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  letter-spacing: var(--tr-body);
  font-optical-sizing: auto;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.serif {
  font-family: var(--serif);
  font-size: calc(var(--serif-scale) * 1em);
  line-height: 0.9;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-small);
}
.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Logo (monograma + «ubato») ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.logo img {
  height: 30px;
  width: auto;
  aspect-ratio: 635 / 560;
  margin-right: -0.14em;
}
.logo span {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0;
}

/* Imágenes con variante para tema oscuro: tinta en claro, crema en oscuro. */
.on-dark {
  display: none !important;
}
@media (prefers-color-scheme: dark) {
  :root .on-light {
    display: none !important;
  }
  :root .on-dark {
    display: block !important;
  }
}

/* ---------- Botones ---------- */

.pill {
  --pill-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--pill-fg);
  font: inherit;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    transform 200ms ease;
}
.pill svg {
  width: 16px;
  height: 16px;
  transition: transform 250ms ease;
}
.pill:hover {
  border-color: var(--ink);
}
.pill:hover svg {
  transform: translateX(3px);
}
.pill.solid {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.pill.solid:hover {
  background: transparent;
  color: var(--ink);
}
.pill.on-block {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.pill.on-block:hover {
  border-color: #fff;
}

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}
.site-nav {
  display: none;
  margin-inline: auto;
  gap: 28px;
  font-size: var(--fs-small);
  font-weight: 500;
}
.site-nav a {
  text-decoration: none;
  color: var(--soft);
  transition: color 150ms ease;
}
.site-nav a:hover {
  color: var(--ink);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.header-cta {
  padding-inline: 16px;
}

@media (min-width: 860px) {
  .site-nav {
    display: flex;
  }
  .header-actions {
    margin-left: 0;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(28px, 5vw, 64px);
  text-align: center;
  overflow: hidden;
}

/* Pentagramas de Rubato. Cada pentagrama es un tramo que encaja consigo
   mismo por los lados (staff-a/b.svg, generados con tools/staves.py) y ya
   viene en su color: es una imagen de fondo normal, no una máscara, y sólo
   ocupa la franja con líneas (del 11 % al 71 % del alto). La capa mide la
   pantalla más un tramo y se desliza un tramo entero en bucle, sólo con
   transform: lo hace la tarjeta gráfica, sin repintar. */
.staves {
  --h: max(750px, 65vw);
  --tile: calc(var(--h) * 2);
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  height: var(--h);
  overflow: hidden;
  pointer-events: none;
}
.staff {
  position: absolute;
  top: 11.25%;
  height: 60%;
  left: calc(var(--tile) * -1);
  width: calc(100% + var(--tile));
  background: var(--staff) 0 0 / auto 100% repeat-x;
  backface-visibility: hidden;
  will-change: transform;
}
.staff-a {
  --staff: url('../img/illustrations/staff-a.svg');
  opacity: 0.17;
  animation:
    staff-flow 48s linear infinite,
    staff-bob 11s ease-in-out infinite;
}
.staff-b {
  --staff: url('../img/illustrations/staff-b.svg');
  opacity: 0.1;
  animation:
    staff-flow 80s linear infinite,
    staff-bob 14s ease-in-out infinite reverse;
}
@media (prefers-color-scheme: dark) {
  :root .staff-a {
    --staff: url('../img/illustrations/staff-a-light.svg');
  }
  :root .staff-b {
    --staff: url('../img/illustrations/staff-b-light.svg');
  }
}
@keyframes staff-flow {
  to {
    transform: translateX(var(--tile));
  }
}
@keyframes staff-bob {
  50% {
    translate: 0 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .staff {
    animation: none;
  }
}
.hero .staves {
  top: clamp(190px, 26vw, 300px);
}
/* Halo gris, el «degradado difuminado» de Rubato: monocromo. */
.hero::before {
  content: '';
  position: absolute;
  z-index: -2;
  left: 50%;
  top: clamp(280px, 34vw, 420px);
  width: min(1100px, 140vw);
  height: 520px;
  translate: -50% 0;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, color-mix(in srgb, var(--surface-3) 90%, transparent), transparent),
    radial-gradient(closest-side at 30% 60%, color-mix(in srgb, var(--surface-2) 100%, transparent), transparent);
  filter: blur(30px);
}

.eyebrow {
  display: block;
  font-size: var(--fs-label);
  color: var(--muted);
  margin-bottom: 18px;
  letter-spacing: var(--tr-label);
  font-weight: 600;
  text-transform: uppercase;
}

.display {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: var(--tr-display);
  text-wrap: balance;
}
.display .serif {

}

/* El titular corta siempre igual: «La gestión de tu banda» / «en tu bolsillo». */
.hero .display .serif {
  display: block;
}
.hero .display {
  max-width: none;
  margin-inline: auto;
}

.lede {
  max-width: 34rem;
  margin: 22px auto 0;
  color: var(--soft);
  font-size: var(--fs-lead);
  text-wrap: pretty;
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.hero-stage {
  position: relative;
  margin-top: clamp(28px, 4vw, 48px);
  display: flex;
  justify-content: center;
  padding-bottom: 0;
  height: clamp(470px, 70vw, 640px);
}
.hero-stage .phone {
  rotate: -4deg;
}
/* El móvil se funde con la página por abajo, como si saliera de ella. */
.hero-stage::after {
  content: '';
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--paper) 85%);
  pointer-events: none;
}

/* Fichas flotantes alrededor del móvil */
.float {
  position: absolute;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  text-align: left;
  font-size: var(--fs-small);
  line-height: 1.35;
}
.float strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.float small {
  color: var(--muted);
  font-size: 13px;
}
.float .ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: color-mix(in srgb, var(--c, var(--ink)) 14%, transparent);
  color: var(--c, var(--ink));
}
.float .ico svg {
  width: 18px;
  height: 18px;
}
.float-a {
  left: calc(50% - 400px);
  top: 120px;
}
.float-b {
  right: calc(50% - 410px);
  top: 260px;
}
.float-c {
  left: calc(50% - 360px);
  top: 380px;
}
@media (min-width: 900px) {
  .float {
    display: flex;
  }
}

/* ---------- Móvil (mockup dibujado en HTML con el estilo de la app) ---------- */

.phone {
  --w: 300px;
  position: relative;
  width: var(--w);
  height: calc(var(--w) * 2.05);
  flex: 0 0 auto;
  padding: 11px;
  border-radius: 52px;
  background: linear-gradient(145deg, #3a3a3e, #121214 40%, #2a2a2e);
  box-shadow:
    var(--shadow-lg),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.4);
}
.phone::after {
  /* botón lateral */
  content: '';
  position: absolute;
  right: -3px;
  top: 150px;
  width: 3px;
  height: 70px;
  border-radius: 0 3px 3px 0;
  background: #2a2a2e;
}
.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 42px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: -0.006em;
  font-feature-settings: 'tnum';
}
.screen::before {
  /* isla */
  content: '';
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 50%;
  translate: -50% 0;
  width: 88px;
  height: 26px;
  border-radius: 20px;
  background: #000;
}
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 46px;
  padding: 6px 26px 0;
  font-size: 12px;
  font-weight: 600;
}
.status-bar i {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.status-bar i::before {
  content: '';
  width: 16px;
  height: 9px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.85;
  mask: linear-gradient(90deg, #000 18%, transparent 18% 27%, #000 27% 45%, transparent 45% 54%, #000 54% 72%, transparent 72% 81%, #000 81%);
}
.status-bar i::after {
  content: '';
  width: 20px;
  height: 10px;
  border-radius: 3px;
  border: 1.5px solid currentColor;
  box-shadow: inset 0 0 0 1.5px var(--paper);
  background: currentColor;
  opacity: 0.85;
}
.app {
  padding: 4px 14px 14px;
}
.app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
  margin-bottom: 8px;
}
.app-bar .logo img {
  height: 18px;
}
.app-bar .logo span {
  font-size: 13px;
}
.app-bar .plus {
  width: 20px;
  height: 20px;
}
.app-bar h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.app-bar .back {
  width: 18px;
  height: 18px;
}

/* Bloque carbón con pentagramas (cabecera de agrupación) */
.waves-block {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--block);
  color: var(--block-text);
}
/* Pentagramas en movimiento dentro de los bloques carbón: misma técnica que
   en el hero, con staves.svg (los dos pentagramas, ya en blanco) en una sola
   capa del alto de la franja útil. main.js pone --tile (= dos veces el alto
   del bloque) y pausa los bloques que no están en pantalla. Sin JS, o con
   «Reducir movimiento», se quedan quietos. */
.waves-block::before {
  content: '';
  position: absolute;
  z-index: -1;
  /* Franja de pentagramas: el 60 % del bloque, pero nunca más de 420 px de
     alto (en bloques muy altos, como directores en móvil, salían gigantes). */
  --band: min(60%, 420px);
  top: calc(41.25% - var(--band) / 2);
  height: var(--band);
  left: calc(var(--tile, 0px) * -1);
  width: calc(100% + var(--tile, 0px));
  background: url('../img/illustrations/staves.svg') 0 0 / auto 100% repeat-x;
  opacity: 0.3;
  backface-visibility: hidden;
  animation: staff-flow var(--flow, 60s) linear infinite;
  will-change: transform;
}
.waves-block.is-offscreen::before,
.hero.is-offscreen .staff {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .waves-block::before {
    animation: none;
  }
}
.m-hero {
  border-radius: 20px;
  padding: 14px 14px 12px;
}
.m-hero small {
  display: block;
  opacity: 0.7;
  font-size: 10.5px;
}
.m-hero b {
  display: block;
  margin: 2px 0 10px;
  font-size: 17px;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.m-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 9.5px;
  font-weight: 600;
}
.m-chip svg {
  width: 10px;
  height: 10px;
}
.m-next {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 20px;
  background: var(--surface-2);
}
.m-next .ey {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.m-next b {
  display: block;
  margin: 3px 0 6px;
  font-size: 14px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.m-next .meta {
  display: flex;
  gap: 10px;
  color: var(--soft);
  font-size: 10.5px;
}
.tally {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  font-weight: 600;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}
.tally span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tally span::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
}
.m-seg {
  display: flex;
  gap: 6px;
  margin: 12px 0 10px;
}
.m-seg span {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 10.5px;
  font-weight: 600;
}
.m-seg span:first-child {
  background: var(--ink);
  color: var(--paper);
}

/* Tarjeta de evento, como .rubato-event-card */
.ev {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px 11px 10px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.ev + .ev {
  margin-top: 8px;
}
.ev .date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 34px;
  padding-right: 9px;
  align-self: stretch;
  justify-content: center;
  border-right: 1px solid var(--border);
}
.ev .date strong {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.ev .date small {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
}
.ev .body {
  flex: 1;
  min-width: 0;
}
.ev .top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ev .title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ev .sub {
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar {
  display: flex;
  gap: 2px;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
}
.bar i {
  min-width: 3px;
  background: var(--c);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}
.chip {
  --c: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  color: var(--c);
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.3;
}
.chip svg {
  width: 9px;
  height: 9px;
}
.c-yes {
  --c: var(--yes);
}
.c-maybe {
  --c: var(--maybe);
}
.c-no {
  --c: var(--no);
}
.c-pending {
  --c: var(--muted);
}
.c-ink {
  --c: var(--ink);
}

/* Barra de pestañas inferior de la app */
.tabbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 52px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.tabbar svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.tabbar .on {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
}
.tabbar .on svg {
  color: var(--paper);
}

.person {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  overflow: hidden;
  flex: 0 0 auto;
  font-size: 9.5px;
  font-weight: 600;
}
.avatar img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.person .name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 12px;
}
.person .name small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 10.5px;
}

/* Pasar lista, como en la app (roll-call.page): cabecera, resumen, lista
   continua y, por músico, los botones «no vino» (✕) y «vino» (✓). */
.rc-head b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.rc-head small {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted);
}
.rc-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 10px 0 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 10.5px;
  color: var(--muted);
}
.rc-summary strong {
  color: var(--ink);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.rc-auto {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  color: var(--ink);
  font-weight: 600;
}
.rc-auto svg {
  width: 11px;
  height: 11px;
}
.rc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.rc-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
}
.rc-list li + li {
  border-top: 1px solid var(--border);
}
.rc-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.rc-avatar.dimmed {
  opacity: 0.55;
}
.rc-who {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.rc-name {
  font-size: 12px;
  font-weight: 600;
}
.rc-meta,
.rc-reason {
  font-size: 9.5px;
  color: var(--muted);
}
.rc-meta i {
  font-style: normal;
  opacity: 0.5;
  margin: 0 2px;
}
.rc-meta b {
  font-weight: inherit;
  color: var(--c);
}
.rc-reason {
  color: var(--soft);
}
.rc-mark {
  display: flex;
  gap: 5px;
  flex: 0 0 auto;
}
.rc-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  color: var(--muted);
}
.rc-btn svg {
  width: 13px;
  height: 13px;
}
.rc-btn.yes.on {
  background: var(--yes);
  border-color: var(--yes);
  color: #fff;
}
.rc-btn.no.on {
  background: var(--no);
  border-color: var(--no);
  color: #fff;
}
.rc-save {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  padding: 11px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}
/* Versión grande, en la tarjeta de funciones. */
.rc-lg {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.rc-lg li {
  gap: 12px;
  padding: 10px 12px;
}
.rc-lg .rc-avatar {
  width: 36px;
  height: 36px;
  font-size: 12px;
}
.rc-lg .rc-name {
  font-size: 14px;
}
.rc-lg .rc-meta,
.rc-lg .rc-reason {
  font-size: 12px;
}
.rc-lg .rc-btn {
  width: 34px;
  height: 34px;
}
.rc-lg .rc-btn svg {
  width: 16px;
  height: 16px;
}

/* Pantalla de evento (músico) */
.ev-detail {
  border-radius: 20px;
  padding: 16px 14px;
}
.ev-detail small {
  font-size: 9.5px;
  opacity: 0.75;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.ev-detail b {
  display: block;
  margin: 4px 0 10px;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.ev-detail .meta {
  display: grid;
  gap: 4px;
  font-size: 10.5px;
  opacity: 0.85;
}
.answer {
  margin-top: 12px;
  padding: 12px;
  border-radius: 18px;
  background: var(--surface-2);
}
.answer p {
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 8px;
}
.answer .opts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.answer .opts span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-radius: 14px;
  background: var(--surface);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--c);
  border: 1.5px solid transparent;
}
.answer .opts span.sel {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, var(--surface));
}
.answer .opts svg {
  width: 15px;
  height: 15px;
}
.reason {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--soft);
  font-size: 10.5px;
}
.notes {
  margin-top: 12px;
  font-size: 10.5px;
  color: var(--soft);
  line-height: 1.45;
}
.notes b {
  display: block;
  color: var(--ink);
  font-size: 12px;
  margin-bottom: 2px;
  font-weight: 600;
}

/* ---------- Bandas que usan Rubato ---------- */

.bands {
  padding-block: clamp(64px, 9vw, 112px);
  background: var(--surface-2);
  text-align: center;
}
.bands-head {
  margin-bottom: clamp(32px, 5vw, 48px);
}
.bands-title {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: var(--tr-h2);
  text-wrap: balance;
}
.bands-head p {
  max-width: 30rem;
  margin: 16px auto 0;
  color: var(--soft);
  font-size: var(--fs-body);
}
.bands-viewport {
  overflow: hidden;
  padding: 8px var(--gutter) 40px;
}
.bands-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* Cada banda: tarjeta blanca y sobria con su escudo, como las tarjetas de la app.
   Al pasar el ratón (o con el teclado) la tarjeta no se mueve: sólo se
   subraya «Visitar su web» y la flecha avanza. */
.band {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 32px);
  width: min(100%, 520px);
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
  text-decoration: none;
  color: var(--ink);
}
.band:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.band-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(96px, 14vw, 128px);
  aspect-ratio: 1;
}
.band-logo img {
  height: clamp(80px, 11.5vw, 108px);
  width: auto;
}
/* Los escudos son tinta negra: en oscuro se invierten a blanco. */
@media (prefers-color-scheme: dark) {
  :root .band-logo img {
    filter: invert(1);
  }
}
.band-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.band-type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--muted);
}
.band-name {
  margin-top: 6px;
  font-size: clamp(20px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--tr-h3);
}
.band-place {
  margin-top: 4px;
  font-size: var(--fs-small);
  color: var(--soft);
}
.band-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: var(--fs-small);
  font-weight: 600;
  /* Subrayado que se dibuja de izquierda a derecha al pasar el ratón. */
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 300ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.band-link svg {
  width: 16px;
  height: 16px;
  transition: transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.band:hover .band-link,
.band:focus-visible .band-link {
  background-size: 100% 1px;
}
.band:hover .band-link svg,
.band:focus-visible .band-link svg {
  transform: translateX(4px);
}

@media (max-width: 480px) {
  .band {
    flex-direction: column;
    text-align: center;
  }
  .band-body {
    align-items: center;
  }
}

/* Cinta en movimiento cuando las bandas no caben en una fila (main.js pone
   .is-marquee y duplica la lista). */
.bands-viewport.is-marquee {
  padding-inline: 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.is-marquee .bands-list {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  animation: marquee var(--bands-duration, 40s) linear infinite;
}
.is-marquee .band {
  width: 440px;
}
.is-marquee:hover .bands-list,
.is-marquee:focus-within .bands-list {
  animation-play-state: paused;
}

/* ---------- Secciones ---------- */

section {
  position: relative;
}
.section {
  padding-block: clamp(72px, 11vw, 140px);
}

.split {
  display: grid;
  gap: 28px;
  align-items: end;
}
.h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--tr-h2);
  text-wrap: balance;
}
.h2 .serif {

}
.split p {
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  max-width: 26rem;
}
@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
  }
}

.trio {
  display: grid;
  gap: 28px;
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.trio h3 {
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: var(--tr-h3);
  margin-bottom: 8px;
}
.trio p {
  color: var(--soft);
  font-size: var(--fs-small);
  max-width: 22rem;
  line-height: 1.6;
}
.trio .num {
  display: block;
  color: var(--muted);
  font-size: var(--fs-label);
  margin-bottom: 14px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: var(--tr-label);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 720px) {
  .trio {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

/* ---------- Bento de funciones ---------- */

.features-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.features-head p {
  max-width: 24rem;
  color: var(--soft);
  font-size: var(--fs-body);
}

.bento {
  display: grid;
  gap: 14px;
}
.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface-2);
  min-height: 260px;
}
.card h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: var(--tr-h3);
  line-height: 1.2;
}
.card p {
  color: var(--soft);
  font-size: var(--fs-small);
  max-width: 28rem;
  line-height: 1.6;
}
.card .visual {
  margin-top: auto;
  padding-top: 18px;
}
.card.dark {
  background-color: var(--block);
  color: var(--block-text);
}
.card.dark p {
  color: rgba(255, 255, 255, 0.72);
}
.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
}
.card.dark .badge {
  border-color: rgba(255, 255, 255, 0.3);
}

@media (min-width: 720px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
  }
  .card {
    grid-column: span 3;
  }
  .card.wide {
    grid-column: span 4;
  }
  .card.narrow {
    grid-column: span 2;
  }
}

/* visuales de las tarjetas */
.v-events {
  display: grid;
  gap: 8px;
  font-size: 12px;
}
.v-events .ev {
  max-width: 420px;
}
.v-events .ev:nth-child(2) {
  margin-left: 18px;
}

/* Como la pantalla de estadísticas de la app: cifras grandes y ranking de
   músicos con su barra de asistencia. */
.v-stats {
  display: grid;
  gap: 16px;
}
.v-stats .kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.v-stats .kpis span {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.68);
}
.v-stats .kpis b {
  display: block;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.rank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.rank li {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  column-gap: 10px;
  row-gap: 6px;
  align-items: baseline;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.rank .pos {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.rank .who {
  font-weight: 600;
  color: #fff;
}
.rank .who small {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
}
.rank .val {
  font-weight: 600;
  color: #fff;
}
.rank .meter {
  grid-column: 2 / -1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.rank .meter i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transform-origin: left;
}
.rank .low .meter i {
  background: rgba(255, 255, 255, 0.45);
}

/* Las secciones ocupan todo el alto libre de la tarjeta, para casar con la
   lista de «Pasar lista» que tiene al lado. */
.card .visual.v-sections {
  flex: 1;
  min-height: 170px;
}
.v-sections {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.v-sections figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow);
  min-height: 0;
}
.v-sections img {

  width: auto;
  object-fit: contain;
  flex: 1;
  min-height: 0;
  max-height: 120px;
  max-width: 100%;
}
.v-sections figcaption small {
  display: block;
  font-weight: 400;
  color: var(--muted);
}

.v-guests {
  display: grid;
  gap: 8px;
}
.v-guests .person {
  padding: 9px 12px;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
}
.v-guests .person .name {
  font-size: 14px;
}
.v-guests .person .name small {
  font-size: 12px;
}

.v-bell {
  display: grid;
  gap: 8px;
}
.notif {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13px;
  line-height: 1.35;
}
.notif img {
  width: 26px;
  height: 26px;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
  flex: 0 0 auto;
}
.notif b {
  display: block;
  font-weight: 600;
}
.notif small {
  opacity: 0.7;
}

/* ---------- Bloque a sangre: directores ---------- */

.bleed {
  padding-block: clamp(72px, 11vw, 140px);
  color: var(--block-text);
}
.bleed .eyebrow,
.bleed .lede,
.bleed .list li span {
  color: rgba(255, 255, 255, 0.72);
}
.audience {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.audience .phone-col {
  display: flex;
  justify-content: center;
}
.audience .h2 {
  margin-bottom: 18px;
}
.audience .lede {
  margin: 0;
  max-width: 30rem;
}
.list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.bleed .list li {
  border-top-color: rgba(255, 255, 255, 0.12);
}
.list li svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}
.list li b {
  font-weight: 600;
  letter-spacing: var(--tr-h3);
  font-size: var(--fs-h4);
  line-height: 1.35;
}
.list li span {
  grid-column: 2;
  color: var(--soft);
  font-size: var(--fs-small);
  line-height: 1.55;
}
.bleed .phone {
  rotate: 3deg;
}
@media (min-width: 900px) {
  .audience {
    grid-template-columns: 1fr 1fr;
  }
  .audience.reverse .phone-col {
    order: -1;
  }
}

/* ---------- Instrumentos (cinta) ---------- */

.marquee {
  overflow: hidden;
  padding-block: 8px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 132px;
  height: 172px;
  padding: 16px 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 500;
}
.marquee img {
  max-height: 110px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.instruments-head {
  text-align: center;
  margin-bottom: 36px;
}
.instruments-head p {
  color: var(--soft);
  margin-top: 12px;
  font-size: var(--fs-body);
}

/* ---------- Llamada final ---------- */

.cta-block {
  margin-inline: var(--gutter);
  border-radius: clamp(28px, 4vw, 44px);
  padding: clamp(56px, 9vw, 112px) var(--gutter);
  text-align: center;
}
.cta-block .r-draw {
  width: clamp(84px, 11vw, 120px);
  height: auto;
  margin: 0 auto 28px;
}
.cta-block .display {
  font-size: clamp(40px, 6.4vw, 84px);
  max-width: 14ch;
  margin-inline: auto;
}
.cta-block .lede {
  color: rgba(255, 255, 255, 0.72);
}
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 22px 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: #1c1c1e;
  text-decoration: none;
  text-align: left;
  border: 1px solid #fff;
  transition: background-color 200ms ease, color 200ms ease;
}
.store[aria-disabled='true'] {
  cursor: default;
}
.store svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}
.store small {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  opacity: 0.6;
}
.store b {
  display: block;
  font-size: 17px;
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-weight: 600;
}
.store.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.cta-note {
  margin-top: 22px;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Pie ---------- */

.site-footer {
  padding-block: clamp(56px, 8vw, 88px) 40px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  gap: 32px;
}
.footer-grid .motto {
  margin-top: 14px;
  max-width: 22rem;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--soft);
  letter-spacing: 0;
}
.footer-grid h2 {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tr-label);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer-grid a {
  text-decoration: none;
  color: var(--soft);
}
.footer-grid a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ---------- Página de créditos ---------- */

.doc {
  padding-block: 56px 96px;
  max-width: 900px;
}
.doc h1 {
  font-size: var(--fs-h2);
  letter-spacing: var(--tr-h2);
  line-height: 1;
  margin-bottom: 16px;
  font-weight: 600;
}
.doc p {
  color: var(--soft);
  max-width: 40rem;
}
.credits {
  width: 100%;
  margin-top: 32px;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.credits th,
.credits td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.credits th {
  font-size: var(--fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tr-label);
  color: var(--muted);
}
.credits td:first-child {
  width: 56px;
}
.credits img {
  height: 40px;
  width: 40px;
  max-width: none;
  object-fit: contain;
}
.table-scroll {
  overflow-x: auto;
}

/* ---------- Animaciones de entrada ---------- */
/* Sólo si hay JS y el usuario no pidió reducir movimiento (lo marca main.js). */

.motion .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 900ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
.motion .reveal.in {
  opacity: 1;
  transform: none;
}
.motion .hero-stage .phone {
  animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both 200ms;
}
.motion .float {
  animation:
    pop 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both,
    bob 7s ease-in-out infinite;
  animation-delay: calc(var(--d, 0ms) + 900ms), calc(var(--d, 0ms) + 1800ms);
}
.motion .v-stats .meter i {
  transform: scaleX(0);
  transition: transform 1100ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.motion .v-stats.in .meter i {
  transform: none;
}
.motion .rank li:nth-child(2) .meter i { transition-delay: 100ms; }
.motion .rank li:nth-child(3) .meter i { transition-delay: 200ms; }
.motion .rank li:nth-child(4) .meter i { transition-delay: 300ms; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(80px);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
}
@keyframes bob {
  50% {
    translate: 0 -8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
  .marquee {
    -webkit-mask: none;
    mask: none;
  }
  .marquee .dup {
    display: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
