/* Warm-Up · estilos
   Marca: Creative Cycle (estilos de color y texto del proyecto de Framer, mismos valores que
   clientes/creative-cycle/02-direccion-de-arte.md §1 y el prototipo de Content Map). */

@font-face { font-family: "Apfel Grotezk"; src: url("/fonts/apfel-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Apfel Grotezk"; src: url("/fonts/apfel-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Luckiest Guy"; src: url("/fonts/luckiest-guy.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("/fonts/oswald-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --white: #FFFFFF; --black: #171717; --grey-bg: #F5F5F5;
  --grey-700: #434645; --grey-500: #767F7A; --grey-300: #AFB6B4; --grey-100: #DDDFDE;
  --primary-550: #FF531F; --grey-800: #2D2F2E;
  --c1: #E5FA00; --c2: #61B8FF; --c3: #D0A3FF; --c4: #00FFDD; --cb: #0071CE;

  --font: "Apfel Grotezk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --num: "Oswald", "Arial Narrow", sans-serif;

  --bg: var(--grey-bg); --surface: var(--white); --ink: var(--black); --ink-2: var(--grey-700);
  --line: var(--grey-100); --field: var(--grey-500);
  --cta: var(--c2); --focus: var(--cb); --right: var(--c4); --wrong: var(--primary-550);
  --fresh: var(--c1); --welldone: var(--c3);

  --r-32: 32px; --r-24: 24px; --r-16: 16px; --r-12: 12px; --r-pill: 999px;
  --gutter: 40px; --wide: 1080px; --measure: 680px;
  color-scheme: light;
}
@media (max-width: 1199px) { :root { --gutter: 20px; } }
@media (max-width: 809px)  { :root { --gutter: 16px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.45 var(--font); }
a { color: inherit; }
img, iframe, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: var(--measure); }

/* Barra superior */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 22px/1 var(--font); letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none; font: 500 16px/1 var(--font); }
.nav a[aria-current="page"] { background: var(--black); color: var(--white); }
.me { display: inline-flex; align-items: center; gap: 8px; font: 500 15px/1 var(--font); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); object-fit: cover; object-position: 50% 15%; display: inline-grid; place-items: center; font: 500 13px/1 var(--font); overflow: hidden; flex: none; }
@media (max-width: 809px) {
  .top .wrap { min-height: 56px; gap: 12px; }
  .nav { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; justify-content: space-around; background: var(--surface); border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .nav a { flex: 1 1 auto; text-align: center; padding: 12px 6px; font-size: 15px; }
  .me .me-name { display: none; }
  .me { margin-left: auto; }
  body { padding-bottom: 76px; }
}

/* Tipografía */
.h-xl { font: 500 120px/0.88 var(--font); letter-spacing: -0.03em; margin: 0; }
.h-l { font: 500 72px/0.92 var(--font); letter-spacing: -0.025em; margin: 0; }
.h-m { font: 500 48px/0.98 var(--font); letter-spacing: -0.02em; margin: 0; }
.h-s { font: 500 28px/1.08 var(--font); letter-spacing: -0.01em; margin: 0; }
.eyebrow { font: 500 14px/1.2 var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
.lead { font: 500 22px/1.3 var(--font); margin: 0; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; line-height: 1.4; }
.num { font-family: var(--num); font-weight: 500; letter-spacing: 0; }
@media (max-width: 1199px) { .h-xl { font-size: 96px; } .h-l { font-size: 60px; } }
@media (max-width: 809px)  { .h-xl { font-size: 56px; } .h-l { font-size: 42px; } .h-m { font-size: 34px; } .h-s { font-size: 24px; } .lead { font-size: 19px; } body { font-size: 17px; } }

/* Botones y chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: var(--r-pill); border: 1px solid transparent; font: 500 17px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-dark { background: var(--black); color: var(--white); }
.btn-cta { background: var(--cta); color: var(--black); }
.btn-line { background: var(--surface); border-color: var(--field); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); font: 500 14px/1 var(--font); background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.chip-fresh { background: var(--fresh); border-color: transparent; }
.chip-welldone { background: var(--welldone); border-color: transparent; }
.chip-test { background: var(--c2); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Cabecera del día */
.day-head { padding: 72px 0 40px; display: grid; gap: 24px; }
.day-head--today { padding-top: 40px; }
.day-head .h-xl { max-width: 12ch; }
@media (max-width: 809px) { .day-head { padding: 32px 0 24px; gap: 16px; } }
.banner { background: var(--surface); border-radius: var(--r-16); padding: 14px 18px 14px 40px; font: 500 16px/1.35 var(--font); margin: 0; position: relative; }
.banner::before { content: ""; position: absolute; left: 18px; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary-550); }

/* Póster de Hoy (como el hero «Homemade DESIGN» del sitio): fondo claro, la palabra enorme en Color 2
   y el equipo viviendo en ella. Posiciones en em de la propia palabra, medidas en canvas sobre la tinta de
   la fuente (herramienta de Andrés): los pies apoyan en la cara superior de la letra o en el borde del marcador. */
.poster { background: var(--surface); border-radius: 0 0 var(--r-32) var(--r-32); padding: 0 0 40px; }
.poster-h1 { margin: 0; font: 400 var(--pf)/1 "Luckiest Guy", var(--font); color: var(--c2); }
.pw { position: relative; display: block; width: max-content; white-space: nowrap; }
.pw-br { display: none; }
.character { display: block; width: auto; max-width: none; }
.crew { position: absolute; height: .6em; width: auto; pointer-events: none; }
/* Logotipo en Luckiest Guy (elegida por Carlos, la familia de «Homemade»): una línea de 1em, línea base en .70em, cara superior ≈ 0.
   Encima (≥89 % de las columnas del pie apoyadas): Barbara en la W, Jose en la A, Mihail en la M, Carlos en el guion
   (100 %) y Eli en la U. */
.poster--luckiest { --pf: min(234px, calc((100vw - 2 * var(--gutter)) / 4.66)); }
.poster--luckiest .poster-h1 { font-family: "Luckiest Guy", var(--font); font-weight: 400; letter-spacing: 0; padding-top: .66em; }
.poster--luckiest .crew { height: .62em; }
.poster--luckiest .crew-barbara { left: .32em;  bottom: .997em; }
.poster--luckiest .crew-jose    { left: 1.031em; bottom: .993em; }
.poster--luckiest .crew-mihail  { left: 2.46em; bottom: .984em; }
.poster--luckiest .crew-eli     { left: 3.817em; bottom: .966em; }
.poster--luckiest .crew-carlos  { left: 2.955em; bottom: .717em; }

.board { background: var(--grey-bg); color: var(--ink); border-radius: var(--r-32); padding: 24px; display: grid; gap: 16px 24px; position: relative; }
.poster--luckiest .board { margin-top: calc(var(--pf) * -.24); }
.board-head { display: grid; gap: 8px; align-content: start; padding: 4px 4px 0; }
.board-label { margin: 0; font: 500 14px/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.board .total { display: flex; align-items: baseline; gap: 6px; }
.board-num { font: 500 112px/.8 var(--num); letter-spacing: -0.01em; }
.board-max { font: 500 36px/1 var(--num); color: var(--ink-2); }
.board-foot { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 14px; color: var(--ink-2); padding: 0 4px; }
.board-foot p { margin: 0; }
.board-note { color: var(--ink); padding-left: 18px; position: relative; }
.board-note::before { content: ""; position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary-550); }
@media (min-width: 1200px) { .board { grid-template-columns: 200px 1fr; } .board-foot { grid-column: 1 / -1; } }
@media (max-width: 809px) {
  .poster { padding-bottom: 16px; border-radius: 0 0 var(--r-24) var(--r-24); }
  .pw-br { display: inline; }
  .poster--luckiest { --pf: calc((100vw - 2 * var(--gutter)) / 3.42); }
  /* Luckiest Guy en Phone: «Warm-» / «Up» a .9 (caja de 1.8em). Encima: Barbara en la W, Jose en la R, Carlos en la M.
     Junto a «Up», de pie sobre el marcador: Eli y Mihail */
  .poster--luckiest .poster-h1 { line-height: .9; padding-top: .72em; }
  .poster--luckiest .crew { height: .66em; }
  .poster--luckiest .crew-barbara { left: .30em;  bottom: 1.798em; }
  .poster--luckiest .crew-jose    { left: 1.518em; bottom: 1.798em; }
  .poster--luckiest .crew-carlos  { left: 2.074em; bottom: 1.798em; height: .66em; }
  .poster--luckiest .crew-eli     { left: 1.42em; bottom: .19em; height: .7em; }
  .poster--luckiest .crew-mihail  { left: 1.98em; bottom: .19em; height: .7em; }
  .poster--luckiest .board { margin-top: calc(var(--pf) * -.19); }
  .board { padding: 16px; border-radius: var(--r-24); gap: 14px; }
  .board-head { grid-template-columns: auto 1fr; grid-template-areas: "date date" "total sub"; align-items: end; column-gap: 12px; row-gap: 8px; padding: 0; }
  .board-head .board-label { grid-area: date; }
  .board-head .total { grid-area: total; }
  .board-head .board-label--sub { grid-area: sub; padding-bottom: 4px; }
  .board-num { font-size: 80px; } .board-max { font-size: 26px; }
  .board-foot { font-size: 13px; padding: 0; }
}

/* Pasos: claros, cada uno con su color; hecho = lleno de su color. Sin placeholders: el pendiente dice cuánto vale */
.steps { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.step { --tone: var(--c4); background: var(--surface); color: var(--ink); border-radius: var(--r-24); padding: 18px 20px 18px; text-decoration: none; display: grid; gap: 4px; align-content: start; border: 2px solid transparent; transition: background-color .2s, border-color .2s; }
.step-fresh { --tone: var(--c1); }
.step-welldone { --tone: var(--c3); }
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; min-height: 36px; }
.step-n { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--tone); color: var(--black); font: 500 18px/1 var(--num); flex: none; }
.step-n--kerning { --tone: var(--c4); } .step-n--fresh { --tone: var(--c1); } .step-n--welldone { --tone: var(--c3); }
.step-state { display: none; font: 500 14px/1 var(--font); padding: 9px 14px; border-radius: var(--r-pill); background: var(--black); color: var(--white); white-space: nowrap; }
.step-t { font: 500 26px/1.05 var(--font); letter-spacing: -0.01em; }
.step-sub { font-size: 15px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step-score { display: flex; align-items: baseline; gap: 4px; margin-top: 10px; }
.step-p { font: 500 52px/.9 var(--num); }
.step-max { font: 500 20px/1 var(--num); color: var(--ink); }
.step-worth { margin-top: 18px; font: 500 15px/1.3 var(--font); color: var(--ink-2); }
.step.done .step-worth, .step:not(.done) .step-score { display: none; }
.step-bar { height: 6px; border-radius: var(--r-pill); background: var(--grey-100); overflow: hidden; margin-top: 12px; }
.step:not(.done) .step-bar { display: none; }
.step-bar span { display: block; height: 100%; width: 0; background: var(--black); border-radius: inherit; transition: width .4s ease-out; }
.step:hover { border-color: var(--grey-300); }
.step.is-next { border-color: var(--black); }
.step.is-next .step-state { display: inline-block; }
.step.done { background: var(--tone); }
.step.done .step-sub { color: var(--black); }
.step.done .step-n { background: var(--black); color: var(--white); }
.step.done .step-bar { background: var(--white); }
@media (max-width: 1199px) { .step-t { font-size: 23px; } .step-p { font-size: 46px; } .step { padding: 16px; } }
@media (max-width: 809px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .step { padding: 12px 10px; border-radius: var(--r-16); gap: 2px; }
  .step-n { width: 28px; height: 28px; font-size: 15px; }
  .step-top { display: contents; }
  .step-n { margin-bottom: 8px; }
  .step-t { order: 1; } .step-worth, .step-score { order: 2; } .step-state { order: 3; } .step-bar { order: 4; }
  .step.is-next .step-worth { display: none; }
  .step.is-next .step-state { justify-self: start; margin-top: 8px; font-size: 12px; padding: 7px 10px; }
  .step-t { font-size: 17px; }
  .step-sub { display: none; }
  .step-score { margin-top: 6px; }
  .step-p { font-size: 32px; }
  .step-max { font-size: 14px; }
  .step-worth { margin-top: 8px; font-size: 13px; }
  .step-bar { margin-top: 8px; }
}

/* Tarjeta de entrada: cada sección lleva el color de su paso */
.entry { --tone: var(--grey-100); background: var(--surface); border-radius: var(--r-32); padding: 56px; margin: 0 0 24px; display: grid; gap: 40px; scroll-margin-top: 84px; }
.entry--fresh { --tone: var(--c1); } .entry--welldone { --tone: var(--c3); }
.entry-head { display: grid; gap: 18px; }
.entry-head .chips { align-items: center; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-2); font-size: 16px; }
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 1199px) { .entry { padding: 40px; } }
@media (max-width: 809px)  { .entry { padding: 24px 20px; border-radius: var(--r-24); gap: 28px; scroll-margin-top: 68px; } .entry-grid { grid-template-columns: 1fr; gap: 28px; } }

.media { display: grid; gap: 12px; margin: 0; }
.media-main { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--r-16); background: var(--grey-100); }
.media-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.media-row figure { margin: 0; scroll-snap-align: start; }
.media-row img { aspect-ratio: 4 / 5; object-fit: contain; width: 100%; height: auto; border-radius: var(--r-12); background: var(--grey-bg); }
/* La pieza se ve entera (sin recorte) y se agranda con un clic */
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r-12); }
.lightbox { border: 0; padding: 0; margin: auto; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: transparent; }
.lightbox::backdrop { background: rgba(23,23,23,.88); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px 72px 24px; box-sizing: border-box; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: var(--r-12); cursor: default; }
.lightbox-cap { color: var(--white); font: 400 16px/1.4 var(--font); margin-top: 12px; text-align: center; }
.lightbox-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--white); color: var(--black); font: 500 22px/1 var(--font); cursor: pointer; display: grid; place-items: center; }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 809px) { .lightbox-inner { padding: 64px 12px 16px; } .lightbox-prev, .lightbox-next { top: auto; bottom: 16px; transform: none; } }
figcaption, .credit { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.media-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: var(--r-16); background: var(--grey-bg); text-decoration: none; font-weight: 500; }

/* El mecanismo: el titular de la entrada, en el color de su paso */
.mechanism { background: var(--tone); color: var(--black); border-radius: var(--r-24); padding: 32px 36px 36px; display: grid; gap: 12px; }
.mechanism .eyebrow { color: var(--black); }
.mechanism-name { font: 500 72px/.92 var(--font); letter-spacing: -0.03em; }
.mechanism p { margin: 0; font: 500 21px/1.3 var(--font); max-width: 40ch; }
@media (max-width: 1199px) { .mechanism-name { font-size: 60px; } }
@media (max-width: 809px) { .mechanism { padding: 22px 20px 24px; } .mechanism-name { font-size: 44px; } .mechanism p { font-size: 18px; } }

.block { display: grid; gap: 12px; align-content: start; }
.block p { margin: 0; }
.block > p + p { margin-top: 4px; }
.template { display: grid; gap: 0; border-top: 1px solid var(--line); margin: 0; }
.template > div { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.template dt { font: 500 16px/1.4 var(--font); }
.template dd { margin: 0; }
@media (max-width: 809px) { .template > div { grid-template-columns: 1fr; gap: 4px; } }

.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.result { background: var(--grey-bg); border-radius: var(--r-16); padding: 20px; display: grid; gap: 8px; align-content: start; }
.result .num { font-size: 56px; line-height: .9; }
.result a { font-size: 14px; color: var(--ink-2); }
.no-results { background: var(--grey-bg); border-radius: var(--r-16); padding: 18px 20px; color: var(--ink-2); margin: 0; }

.steal { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; counter-reset: s; }
.steal li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.steal li::before { counter-increment: s; content: counter(s); font: 500 18px/1 var(--num); background: var(--primary-550); color: var(--black); border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; }
.sources { font-size: 15px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* Test: la jugada. Superficie clara; el color de la sección marca el puntaje, la selección y el botón */
.test { background: var(--grey-bg); color: var(--ink); border-radius: var(--r-24); padding: 40px; display: grid; gap: 28px; }
.test-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.test-head .eyebrow { margin-bottom: 6px; }
.test-score { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: var(--r-pill); background: var(--tone, var(--c4)); color: var(--black); font: 500 15px/1 var(--font); white-space: nowrap; }
.q { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.q legend { font: 500 22px/1.3 var(--font); margin-bottom: 8px; padding: 0; }
.opt { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: start; background: var(--surface); color: var(--ink); border: 2px solid transparent; border-radius: var(--r-16); padding: 14px 16px; cursor: pointer; }
.opt input { margin: 3px 0 0; width: 20px; height: 20px; accent-color: var(--black); }
.opt:hover { border-color: var(--grey-300); }
.opt:has(input:checked) { border-color: var(--black); }
.opt.is-right, .opt.is-wrong { border-color: transparent; }
.opt.is-right { background: var(--right); }
.opt.is-wrong { background: var(--wrong); }
.opt.is-right::after, .opt.is-wrong::after { font: 500 13px/1 var(--font); letter-spacing: .04em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--r-pill); background: var(--black); color: var(--white); align-self: center; white-space: nowrap; }
.opt.is-right::after { content: "✓ Esperada"; }
.opt.is-wrong::after { content: "✗ Tu respuesta"; }
.why { background: var(--surface); border-left: 6px solid var(--tone, var(--c4)); border-radius: var(--r-16); padding: 16px 18px; display: grid; gap: 6px; }
.why strong { font-weight: 500; }
.test-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-tone { background: var(--black); color: var(--white); }
.test .btn[disabled] { background: var(--grey-100); color: var(--grey-700); opacity: 1; }
@media (max-width: 809px) { .test { padding: 24px 16px; gap: 22px; border-radius: var(--r-16); } .q legend { font-size: 19px; } .opt { grid-template-columns: 24px 1fr; } .opt.is-right::after, .opt.is-wrong::after { grid-column: 2; justify-self: start; } }

/* Reto de kerning */
.kern { --tone: var(--c4); background: var(--surface); border-radius: var(--r-32); padding: 48px 56px; display: grid; gap: 28px; margin: 24px 0; scroll-margin-top: 84px; }
.kern-title { display: flex; gap: 16px; align-items: center; }
.kern-title .eyebrow { margin-bottom: 6px; }
.kern-stage { position: relative; height: 1.5em; font-size: clamp(64px, 12vw, 168px); line-height: 1; margin: 0 auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.kern-stage .ltr { position: absolute; top: .18em; white-space: pre; font-kerning: none; font-feature-settings: "kern" 0, "liga" 0; cursor: grab; padding: 0; border: 0; background: none; line-height: 1; border-radius: 6px; }
.kern-stage .ltr.fixed { cursor: default; color: var(--ink-2); }
.kern-stage .ltr.sel { background: var(--c4); }
.kern-stage .ltr.ref { -webkit-text-stroke: 0; color: var(--grey-100); pointer-events: none; }
.kern-stage .ltr.mine { color: transparent; -webkit-text-stroke: 1.5px var(--black); pointer-events: none; }
.kern-tools { display: grid; gap: 14px; justify-items: center; }
.kern-pick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.kern-pick button { min-width: 52px; min-height: 52px; border-radius: var(--r-12); border: 1px solid var(--field); background: var(--surface); font: 500 22px/1 var(--font); cursor: pointer; }
.kern-pick button[aria-pressed="true"] { background: var(--c4); border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.kern-nudge { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.kern-nudge button { min-width: 64px; min-height: 52px; border-radius: var(--r-pill); border: 1px solid var(--field); background: var(--surface); font: 500 17px/1 var(--font); cursor: pointer; }
.kern-pairs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 15px; color: var(--ink-2); }
.kern-result { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.kern-result .num { font-size: 168px; line-height: .8; }
.kern-result .lead.num-max { font: 500 40px/1 var(--num); color: var(--ink-2); }
.legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; color: var(--ink-2); }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
.legend .l-ref::before { background: var(--grey-100); }
.legend .l-mine::before { border: 1.5px solid var(--black); }
.pairs-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pairs-table th, .pairs-table td { text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.pairs-table th:first-child, .pairs-table td:first-child { text-align: left; }
@media (max-width: 809px) { .kern { padding: 24px 16px; border-radius: var(--r-24); scroll-margin-top: 68px; } .kern-result { grid-template-columns: 1fr; gap: 12px; } .kern-result .num { font-size: 104px; } }

/* Ranking: el equipo en la cancha, cada uno sobre una columna tan alta como sus puntos */
.lineup { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: end; background: var(--surface); border-radius: var(--r-32); padding: 40px 40px 28px; margin-bottom: 12px; }
.lu { display: grid; justify-items: center; align-content: end; gap: 0; min-width: 0; }
.lu .character { height: 168px; margin-bottom: -2px; position: relative; z-index: 1; }
.lu-ini { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--grey-bg); font: 500 28px/1 var(--font); margin-bottom: 8px; }
.lu-col { width: 100%; min-height: 56px; background: var(--black); color: var(--white); border-radius: var(--r-16) var(--r-16) 0 0; display: flex; justify-content: center; padding-top: 10px; }
.lineup-cap { margin: 0 0 12px; }
.lu-col .num { font-size: 40px; line-height: 1; }
.lu.is-me .lu-col { background: var(--primary-550); color: var(--black); }
.lu-name { width: 100%; text-align: center; border-top: 2px solid var(--black); padding-top: 10px; font: 500 16px/1.2 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1199px) { .lu .character { height: 132px; } .lineup { padding: 32px 24px 20px; } }
@media (max-width: 809px) { .lineup { gap: 4px; padding: 24px 12px 16px; border-radius: var(--r-24); } .lu .character { height: 76px; } .lu-col .num { font-size: 24px; } .lu-col { padding-top: 6px; border-radius: 10px 10px 0 0; min-height: 36px; } .lu-name { font-size: 12px; padding-top: 6px; } .lu-ini { width: 48px; height: 48px; font-size: 16px; } }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--surface); border-radius: var(--r-24); padding: 24px; display: grid; gap: 8px; }
.stat .num { font-size: 56px; line-height: .9; }
.rank { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: var(--r-24); overflow: hidden; }
.rank th { font: 500 14px/1.2 var(--font); color: var(--ink-2); text-align: right; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.rank td { text-align: right; padding: 14px 20px; border-bottom: 1px solid var(--line); font: 500 22px/1 var(--num); }
.rank th:nth-child(2), .rank td:nth-child(2) { text-align: left; }
.rank th:first-child, .rank td:first-child { text-align: left; width: 48px; }
.rank tr:last-child td { border-bottom: 0; }
.rank tr.is-me td { background: var(--grey-bg); }
.rank tr.is-me td:first-child { box-shadow: inset 6px 0 0 var(--primary-550); }
.rank .who { display: flex; align-items: center; gap: 12px; font: 500 18px/1.2 var(--font); }
.rank .who .avatar { width: 44px; height: 44px; }
.rank .split { display: none; font: 400 14px/1.3 var(--font); color: var(--ink-2); }
.rank td.total-col { font-size: 28px; }
@media (max-width: 809px) {
  .cards3 { grid-template-columns: 1fr; }
  .rank th:nth-child(3), .rank td:nth-child(3), .rank th:nth-child(4), .rank td:nth-child(4), .rank th:nth-child(5), .rank td:nth-child(5) { display: none; }
  .rank .split { display: block; }
  .rank td, .rank th { padding: 12px 12px; }
}
.rank-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding: 48px 0 24px; }
.week-label { font: 500 20px/1.2 var(--font); min-width: 15ch; text-align: center; }
.rank-rule { margin: 12px 0 40px; max-width: 72ch; }
@media (max-width: 809px) { .rank-head { padding: 24px 0 16px; } .week-nav { width: 100%; justify-content: space-between; } .week-label { font-size: 17px; min-width: 0; } .rank-rule { margin-bottom: 24px; } }
.week-nav { display: flex; align-items: center; gap: 12px; }
.week-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--field); background: var(--surface); cursor: pointer; font-size: 18px; }

/* Archivo */
.arch-day { display: grid; gap: 16px; padding: 32px 0; border-top: 1px solid var(--grey-300); }
.arch-date { display: flex; align-items: baseline; gap: 14px; margin: 0; font-weight: 500; }
.arch-date .num { font-size: 72px; line-height: .8; }
.arch-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.arch-card { background: var(--surface); border-radius: var(--r-24); padding: 24px; text-decoration: none; display: grid; gap: 10px; align-content: start; border: 2px solid transparent; }
.arch-card:hover { border-color: var(--black); }
.arch-mech { justify-self: start; font: 500 30px/1 var(--font); letter-spacing: -0.02em; padding: 8px 12px 10px; border-radius: var(--r-12); background: var(--c1); margin-top: 6px; }
.arch-mech--welldone { background: var(--c3); }
.arch-score { font: 500 15px/1.2 var(--font); }
.arch-card .h-s { font-size: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 10px 16px; border-radius: var(--r-pill); border: 1px solid var(--field); background: var(--surface); cursor: pointer; font: 500 15px/1 var(--font); }
.filters button[aria-pressed="true"] { background: var(--black); color: var(--white); border-color: var(--black); }
@media (max-width: 809px) { .arch-list { grid-template-columns: 1fr; } }

/* Estados y pie */
.state { min-height: 62vh; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; padding: 64px var(--gutter) 0; }
.state-text { display: grid; gap: 20px; padding-bottom: 64px; }
.state-text p { margin: 0; }
.state-figure { height: 380px; }
@media (max-width: 809px) { .state { grid-template-columns: 1fr; gap: 0; padding-top: 40px; } .state-text { padding-bottom: 24px; } .state-figure { height: 200px; justify-self: end; } }
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--ink-2); font-size: 14px; }
.section-gap { height: 24px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--black); color: var(--white); padding: 12px 18px; border-radius: var(--r-pill); font: 500 15px/1.2 var(--font); z-index: 50; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.wrap > .no-results, [data-review] .no-results { background: var(--surface); }

/* Trofeos: un sistema, no 107 dibujos. Pegatina = círculo del tono del nivel (I c4 · II c2 · III c3 · IV c1 · V+ Primary)
   con borde negro + icono de familia en tinta (cifras en Luckiest Guy) + pastilla negra con el nivel.
   Una tarjeta por familia (33): el icono toma el tono del nivel más alto ganado y la fila I–VIII muestra la colección.
   Por ganar = pegatina en gris claro y el progreso «3 de 10» legible. */
.tone-c1 { --tone: var(--c1); } .tone-c2 { --tone: var(--c2); } .tone-c3 { --tone: var(--c3); } .tone-c4 { --tone: var(--c4); } .tone-primary { --tone: var(--primary-550); }
.trophies-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding: 48px 0 8px; }
.trophies-count { display: flex; align-items: baseline; gap: 6px; }
.trophies-count .num { font-size: 112px; line-height: .8; }
.trophies-count .of { font: 500 36px/1 var(--num); color: var(--ink-2); }
.trophy-cat { display: flex; align-items: baseline; gap: 10px; margin: 40px 0 14px; font: 500 28px/1.1 var(--font); letter-spacing: -0.01em; }
.trophy-cat-n { font: 500 22px/1 var(--num); color: var(--ink-2); }
.trophy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 10px; margin: 0; }
.trophy { background: var(--surface); border-radius: var(--r-24); padding: 18px 16px 16px; display: grid; gap: 6px; align-content: start; justify-items: start; border: 2px solid transparent; }
.trophy-art { position: relative; width: 88px; height: 88px; border-radius: 50%; background: var(--tone); border: 3px solid var(--black); display: block; margin-bottom: 8px; }
.trophy-art img { width: 100%; height: 100%; display: block; }
.trophy-tier { position: absolute; right: -10px; bottom: -4px; min-width: 30px; padding: 5px 7px; border-radius: var(--r-pill); background: var(--black); color: var(--white); font: 500 13px/1 var(--num); letter-spacing: .04em; text-align: center; }
.trophy:not(.is-earned) .trophy-art { background: var(--grey-bg); border-color: var(--grey-300); }
.trophy:not(.is-earned) .trophy-art img { opacity: .3; }
.trophy:not(.is-earned) .trophy-tier { background: var(--grey-300); color: var(--black); }
.trophy.is-earned { border-color: var(--black); }
.trophy-name { font: 500 18px/1.15 var(--font); margin: 0; }
.trophy-desc { margin: 0; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.trophy-state { margin: 6px 0 0; font: 500 13px/1 var(--font); padding: 7px 10px; border-radius: var(--r-pill); background: var(--grey-bg); color: var(--ink); }
.trophy.is-complete .trophy-state { background: var(--tone); color: var(--black); }
.tiers { list-style: none; margin: 4px 0 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.tier { min-width: 26px; height: 22px; padding: 0 5px; border-radius: var(--r-pill); display: grid; place-items: center; font: 500 12px/1 var(--num); letter-spacing: .03em; background: var(--grey-bg); color: var(--ink-2); border: 1.5px solid var(--grey-300); }
.tier.is-earned { background: var(--tone); color: var(--black); border-color: var(--black); }
.trophies-team { margin: 56px 0 48px; }
.trophies-team .h-m { margin-bottom: 16px; }
.team-trophies { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.team-trophies li { background: var(--surface); border-radius: var(--r-24); padding: 14px 20px; display: grid; grid-template-columns: 200px 1fr auto; gap: 16px; align-items: center; }
.team-trophies li.is-me { box-shadow: inset 6px 0 0 var(--primary-550); }
.team-trophies .who { display: flex; align-items: center; gap: 12px; font: 500 18px/1.2 var(--font); }
.team-trophies .who .avatar { width: 44px; height: 44px; }
.team-trophies .num { font-size: 36px; line-height: 1; }
.mini-row { display: flex; flex-wrap: wrap; gap: 6px; min-height: 36px; align-items: center; }
.mini-row:empty::before { content: "Todavía sin trofeos"; font-size: 14px; color: var(--ink-2); }
.mini { width: 36px; height: 36px; border-radius: 50%; background: var(--tone); border: 2px solid var(--black); display: block; }
.mini img { width: 100%; height: 100%; display: block; }
@media (max-width: 809px) {
  .trophies-head { padding: 24px 0 0; } .trophies-count .num { font-size: 80px; }
  .trophy-cat { margin-top: 28px; font-size: 22px; }
  .trophy-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .trophy { padding: 14px 12px; border-radius: var(--r-16); } .trophy-art { width: 72px; height: 72px; } .trophy-name { font-size: 16px; } .trophy-desc { font-size: 13px; }
  .team-trophies li { grid-template-columns: 1fr auto; padding: 12px 14px; border-radius: var(--r-16); } .mini-row { grid-column: 1 / -1; } .mini { width: 30px; height: 30px; }
}

/* Entrar */
.login { display: grid; gap: 12px; }
.login-label { font: 500 18px/1.3 var(--font); }
.login-row { display: flex; gap: 8px; flex-wrap: wrap; }
.login-row input { flex: 1 1 260px; min-height: 52px; padding: 12px 18px; border: 1px solid var(--field); border-radius: var(--r-pill); font: 400 18px/1 var(--font); background: var(--surface); color: var(--ink); }
.login-msg { margin: 0; min-height: 1.4em; font: 500 16px/1.4 var(--font); }
.login-msg[data-kind="error"]::before { content: "● "; color: var(--primary-550); }
.login-msg[data-kind="ok"]::before { content: "● "; color: var(--c4); -webkit-text-stroke: 1px var(--black); }
/* Entrar · ajustes de arte (Andrés, 2026-10-26): la puerta es una sola hoja blanca, sin franja gris debajo;
   el marcador no usa las dos columnas del día (el formulario quedaba en 200 px); campo y botón en una fila */
body.is-login { background: var(--surface); }
.is-login .poster { padding-bottom: 48px; }
.login-board { grid-template-columns: 1fr !important; padding: 32px; }
.login { gap: 14px; }
.login-label { margin-top: 4px; }
.login-row input { flex: 1 1 320px; min-width: 0; }
.login-row .btn { min-height: 52px; padding-inline: 28px; }
@media (max-width: 809px) {
  .login-board { padding: 20px; }
  .login-row .btn { flex: 1 1 100%; }
}
.login-msg:empty { min-height: 0; margin-top: -14px; } /* sin mensaje no se reserva hueco; sigue en el árbol para que aria-live anuncie */
.login-msg:not(:empty) { position: relative; padding-left: 1.15em; }
.login-msg[data-kind]::before { position: absolute; left: 0; }

/* Cerrar sesión */
.logout { margin-left: 4px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); font: 500 14px/1 var(--font); color: var(--ink); cursor: pointer; }
.logout:hover { border-color: var(--field); }
