/* La Clasificación semanal en la web (clasificacion.js). Todo con prefijo cl-.
   Medidas y colores copiados de las demos aprobadas:
   · prototipo-diseno/clasificacion-pestana/index.html?diseno=3e (la pestaña: crema tostado, peanas de metal pastel,
     filas miel, tu fila en azul Palique y la franja café «Tu puesto»), lleno y poca gente;
   · prototipo-diseno/clasificacion-boinas (el pase de viajero B, las flechas, «Puntos +N» y «Ver Clasificación»). */
:root {
  --cl-azul: #213f86; --cl-azul-suave: #e6ebf7; --cl-carbon: #383838; --cl-gris: #6F675E; --cl-noche: #121D45;
  --cl-marron: #4A2A08; --cl-rojo: #D42A32; --cl-borde: #E8DFD2; --cl-crema: #FCF8F1; --cl-verde: #2F6B12;
  --cl-titulo: 'Fraunces', Georgia, serif; --cl-texto: 'Nunito', system-ui, sans-serif;
}

/* ── La pestaña, dentro de la ventana de la app («como pestaña», con la barra de abajo a la vista) ── */
.modo-app dialog.pagina-app.cl-dialogo { padding-left: 0; padding-right: 0; padding-bottom: var(--cl-abajo, 96px); background: #FFF6E4; }
.modo-app dialog.pagina-app.cl-dialogo > #dialogo-contenido { min-height: 100%; display: flex; flex-direction: column; }
@media (min-width: 1000px) {
  .modo-app dialog.pagina-app.como-pestana.cl-dialogo { padding-left: max(234px, calc((100vw - 820px) / 2 + 106px)); padding-right: max(0px, calc((100vw - 820px) / 2 - 154px)); padding-bottom: 12px; }
}
.cl, .cl-capa { font: 600 15px/1.35 var(--cl-texto); color: var(--cl-carbon); -webkit-font-smoothing: antialiased; text-align: left; }
.cl { position: relative; flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 560px; margin: 0 auto; overflow-x: clip; }
/* Los botones de aquí no llevan el estilo general de la app (mayúsculas, borde, hundirse) */
.cl button, .cl-capa button, .cl-tut button, .bol-celebra button.cl-pastilla, .bol-celebra button.cl-enlace {
  margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit;
  font: inherit; line-height: inherit; text-transform: none; letter-spacing: 0; min-height: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.cl button:hover:not(:disabled), .cl-capa button:hover:not(:disabled), .cl-tut button:hover:not(:disabled) { background: none; }
.cl button:active:not(:disabled), .cl-capa button:active:not(:disabled), .cl-tut button:active:not(:disabled) { transform: none; border-bottom-width: 0; }
.cl button:focus-visible, .cl-capa button:focus-visible, .cl [role="button"]:focus-visible { outline: 3px solid #7FA2E8; outline-offset: -3px; border-radius: 12px; }
.cl-recorta, .cl .cl-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-av { display: block; overflow: visible; }

/* Cabecera crema que se tuesta hacia café claro, sin rayos, con tres destellos discretos */
.cl-escena { position: absolute; inset: 0 0 auto; height: 573px; pointer-events: none; background: linear-gradient(180deg, #FCF6EA 0%, #F5E7CE 45%, #E9D3AE 100%); }
.cl-destello { position: absolute; pointer-events: none; }
.cl-destello path { fill: #D9B36A; }
.cl-cab { position: relative; padding: 18px 18px 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.modo-app dialog.pagina-app.cl-dialogo .cl-cab h2, .cl-cab h2 { margin: 0; padding: 0; font: 800 30px/1 var(--cl-titulo); color: #4A2A08; letter-spacing: -.01em; text-align: left; text-shadow: none; }
.cl-cab small { display: block; margin-top: 4px; font-weight: 800; font-size: 13px; color: #8A6A3E; }
.cl-reloj { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px 0 9px; border-radius: 999px; background: rgba(122,69,18,.08);
  box-shadow: inset 0 0 0 1px rgba(122,69,18,.22); color: #5A3205; font-weight: 900; font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cl-reloj svg { width: 15px; height: 15px; }

/* Podio: peanas planas de oro, plata y bronce pastel con una línea de brillo; corona pequeña en el 1.º */
.cl-podio { position: relative; display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; padding: 10px 16px 0; }
.cl-pod { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; position: relative; -webkit-tap-highlight-color: transparent; }
.cl-pod[role="button"] { cursor: pointer; }
.cl-pod .cl-av { filter: drop-shadow(0 4px 3px rgba(90,50,10,.22)); }
.cl-pod .cl-nom { margin-top: 4px; max-width: 100%; font-weight: 900; font-size: 14.5px; color: #3A1F03; }
.cl-pod .cl-pts { font-weight: 900; font-size: 13.5px; color: #5A3205; font-variant-numeric: tabular-nums; }
.cl-pod .cl-pts small { font-weight: 800; font-size: 11.5px; color: #7A4A12; }
.cl-peana { width: 100%; margin-top: 8px; border-radius: 10px 10px 0 0; display: grid; place-items: start center; padding-top: 8px; position: relative; }
.cl-peana b { font: 800 30px/1 var(--cl-titulo); }
.cl-peana .cl-mov { position: absolute; top: 8px; right: 8px; padding: 2px 5px; border-radius: 999px; background: rgba(255,255,255,.85); }
.cl-pod.p1 .cl-peana { height: 84px; background: #F1D589; box-shadow: inset 0 3px 0 rgba(255,255,255,.55), inset 0 0 0 1.5px #D9B65E; }
.cl-pod.p1 .cl-peana b { color: #7A5410; font-size: 34px; }
.cl-pod.p2 .cl-peana { height: 60px; background: #E1E3E9; box-shadow: inset 0 3px 0 rgba(255,255,255,.7), inset 0 0 0 1.5px #C2C6D0; }
.cl-pod.p2 .cl-peana b { color: #5C6273; }
.cl-pod.p3 .cl-peana { height: 46px; background: #EBC3A0; box-shadow: inset 0 3px 0 rgba(255,255,255,.5), inset 0 0 0 1.5px #CF9D73; }
.cl-pod.p3 .cl-peana b { color: #6E3C17; font-size: 26px; }
/* Poca gente: el lugar libre, punteado en su metal, con su interrogante */
.cl-pod.libre .cl-peana { background: repeating-linear-gradient(135deg, rgba(203,142,94,.14) 0 7px, transparent 7px 14px); box-shadow: none; border: 2px dashed #C58A5A; border-bottom: 0; }
.cl-pod.libre .cl-peana b { color: #B57A4A; }
.cl-pod.p1.libre .cl-peana { background: repeating-linear-gradient(135deg, rgba(217,182,94,.16) 0 7px, transparent 7px 14px); border-color: #D2A84E; }
.cl-pod.p1.libre .cl-peana b { color: #B98A2A; }
.cl-pod.p2.libre .cl-peana { background: repeating-linear-gradient(135deg, rgba(150,156,172,.14) 0 7px, transparent 7px 14px); border-color: #A9AEBB; }
.cl-pod.p2.libre .cl-peana b { color: #8A909E; }
.cl-interrogante { width: 66px; height: 56px; border-radius: 50%; border: 2.5px dashed #C58A5A; display: grid; place-items: center; font: 800 28px/1 var(--cl-titulo); color: #9A5F32; background: rgba(255,255,255,.35); }
.cl-pod.p1 .cl-interrogante { border-color: #D2A84E; color: #9A7422; }
.cl-pod.p2 .cl-interrogante { border-color: #A9AEBB; color: #6F7584; }
.cl-pod.libre .cl-nom { color: #3A1F03; }
.cl-pod.libre .cl-pts { color: #5A3205; font-weight: 800; font-size: 12.5px; }
.cl-pod.vacio .cl-interrogante { opacity: .7; }
.cl-pod.vacio .cl-nom { color: #A58A62; font-weight: 800; }
/* Mientras carga: la silueta */
.cl-esperando .cl-hueco { width: 60px; height: 50px; border-radius: 50%; background: rgba(165,124,85,.14); }
.cl-esperando .cl-pod.p1 .cl-hueco { width: 76px; height: 64px; }
.cl-esperando .cl-peana { background: rgba(165,124,85,.12) !important; box-shadow: none !important; }

/* La hoja de abajo: filas color miel; tu fila en azul Palique */
.cl-hoja { position: relative; background: #FFF6E4; border-radius: 22px 22px 0 0; padding: 14px 12px 12px; box-shadow: 0 -8px 20px -14px rgba(80,40,0,.35); }
.cl-filas { display: grid; gap: 6px; }
.cl-fila { display: grid; grid-template-columns: 30px 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 54px; padding: 0 14px 0 8px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px #F0E1BE; -webkit-tap-highlight-color: transparent; }
.cl-fila[role="button"] { cursor: pointer; }
.cl-fila[role="button"]:active { background: #FBF4E6; }
.cl-fila .cl-n { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 800 18px/1 var(--cl-titulo); color: #9C7A3E; font-variant-numeric: tabular-nums; }
.cl-fila .cl-nom { font-weight: 800; font-size: 15.5px; color: var(--cl-carbon); }
.cl-fila .cl-pts { font-weight: 900; font-size: 15.5px; color: var(--cl-marron); text-align: right; font-variant-numeric: tabular-nums; }
.cl-av-mini { width: 44px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #FFF4DA; box-shadow: inset 0 0 0 1px #F0DDB0; }
.cl-fila.yo { background: var(--cl-azul-suave); box-shadow: inset 0 0 0 2px var(--cl-azul); }
.cl-fila.yo .cl-n, .cl-fila.yo .cl-nom, .cl-fila.yo .cl-pts { color: var(--cl-azul); }
.cl-fila.yo[role="button"]:active { background: #D9E1F3; }
.cl-ia { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 0 5px; border-radius: 5px; font-size: 9.5px; font-weight: 900; letter-spacing: .06em; line-height: 15px; border: 1.2px solid currentColor; color: var(--cl-azul); opacity: .78; }
.cl-pod .cl-ia { margin-left: 4px; }
.cl-pase-ia { display: block; margin: 2px 0 4px; font-size: 12px; font-weight: 700; opacity: .7; }
.cl-tu { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .02em; background: var(--cl-azul); color: #fff; }
.cl-fila.libre { background: transparent; box-shadow: none; border: 2px dashed #E6D3A6; }
.cl-fila.libre .cl-n { color: #D2BC8A; }
.cl-fila.libre .cl-nom { color: #B9A57C; font-weight: 700; }
.cl-fila.libre .cl-pts { color: #D2BC8A; }
.cl-fila.libre .cl-av-mini { background: none; box-shadow: none; border: 2px dashed #E6D3A6; border-radius: 50%; width: 38px; height: 38px; justify-self: center; }
.cl-libres { margin-top: 10px; }
.cl-libres:first-child { margin-top: 0; }
.cl-nota { margin: 10px 18px 0; text-align: center; font-size: 13px; color: var(--cl-gris); }
/* ▲ verde / ▼ roja con los puestos ganados o perdidos desde tu última visita */
.cl-mov { display: inline-flex; align-items: center; gap: 1px; font-size: 11.5px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; font-family: var(--cl-texto); }
.cl-mov svg { width: 9px; height: 7px; display: block; }
.cl-sube { color: #2E7D1F; } .cl-baja { color: #C8262E; }
.cl-peana .cl-sube { color: #1F6B12; }
.cl-mov.entra { animation: cl-entra .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes cl-entra { from { opacity: 0; transform: translateY(var(--desde, 4px)) scale(.6); } to { opacity: 1; transform: none; } }
.cl-destella { animation: cl-destella 1.6s ease-out; }
@keyframes cl-destella { 0%, 35% { box-shadow: inset 0 0 0 3px #F0B84A; } 100% { box-shadow: inset 0 0 0 2px var(--cl-azul); } }
.cl-pod.cl-destella { animation: none; }

/* Poca gente: «El bronce está libre» con «Hacer una estación» */
.cl-invita { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: 20px; background: linear-gradient(135deg, #FFF0C7, #FFE2A0); box-shadow: inset 0 0 0 1.5px #EBC46E; }
.cl-invita .cl-medalla { width: 52px; height: 52px; }
.modo-app dialog.pagina-app .cl-invita h3, .cl-invita h3 { margin: 0; font: 700 19px/1.15 var(--cl-titulo); color: var(--cl-marron); text-align: left; }
.cl-invita p { margin: 3px 0 0; font-size: 13.5px; color: #6B4A1E; }
.cl-invita p b { color: var(--cl-marron); }
.cl .cl-boton { grid-column: 1 / -1; min-height: 48px; border-radius: 999px; background: linear-gradient(180deg, #F6C955, #E0A532); color: var(--cl-marron); font-weight: 900; font-size: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 0 #A87418, inset 0 1px 0 #FFEFB8; }
.cl .cl-boton:hover:not(:disabled) { background: linear-gradient(180deg, #F8CF63, #E4AB3A); }
.cl .cl-boton:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 #A87418, inset 0 1px 0 #FFEFB8; }
.cl-cuenta-boina { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.6); }
.cl-error { display: grid; gap: 12px; padding: 16px 6px; text-align: center; color: var(--cl-gris); }

/* «Tu puesto»: la franja café, encima de la barra de abajo; se esconde cuando tu fila ya se ve */
.cl-tu-puesto { position: sticky; bottom: 0; z-index: 3; margin: auto 12px 0; display: grid; grid-template-columns: auto 44px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  min-height: 58px; padding: 6px 16px; border-radius: 18px; background: linear-gradient(90deg, #5A300A, #7A4512); color: #FFF3D3; box-shadow: 0 10px 24px -10px rgba(60,30,0,.55); cursor: pointer; }
.cl-tu-puesto[hidden] { display: none; }
.cl-tu-puesto.cl-oculto { cursor: default; }
.cl-hoja + .cl-tu-puesto { margin-top: auto; }
.cl-tu-puesto .cl-et { font-size: 10.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; line-height: 1.1; text-align: center; color: #F2C66A; }
.cl-tu-puesto .cl-et b { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 21px; letter-spacing: 0; font-variant-numeric: tabular-nums; color: #FFF3D3; }
.cl-tu-puesto .cl-mov { color: #8FE07A; }
.cl-tu-puesto .cl-baja { color: #FF9A9A; }
.cl-tu-puesto .cl-av-mini { background: #FFF4DA; box-shadow: none; }
.cl-tu-puesto .cl-nom { font-weight: 800; font-size: 15.5px; }
.cl-tu-puesto .cl-nom small { display: block; font-size: 12px; font-weight: 700; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-tu-puesto .cl-pts { font-weight: 900; font-size: 16px; text-align: right; line-height: 1.1; color: #FFE39A; font-variant-numeric: tabular-nums; }
.cl-tu-puesto .cl-pts small { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.cl-tu-puesto.cl-oculto .cl-nom small { white-space: normal; }
.cl .cl-ajustes { display: inline; font-weight: 900; color: #FFE39A; text-decoration: underline; text-underline-offset: 2px; }

/* ── Pase de viajero B (como el boleto), sobre todo lo demás ── */
.cl-capa { position: fixed; inset: 0; z-index: 70; background: rgba(18,29,69,.42); display: flex; align-items: flex-end; justify-content: center; }
.cl-hoja-v { position: relative; width: 100%; max-width: 560px; max-height: calc(100% - max(18px, env(safe-area-inset-top)) - 10px); overflow-y: auto; background: #F6EFE3;
  border-radius: 26px 26px 0 0; padding: 8px 16px max(22px, env(safe-area-inset-bottom)); container-type: inline-size; }
.cl-hoja-v:focus { outline: none; }
.cl-asa { display: block; width: 44px; height: 5px; border-radius: 9px; background: #D6CAB7; margin: 0 auto 6px; }
.cl-capa .cl-cerrar-v { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--cl-borde); display: grid; place-items: center; color: var(--cl-gris); z-index: 2; font-size: 16px; }
.cl-hoja-v h3 { font: 900 12px/1 var(--cl-texto); letter-spacing: .08em; text-transform: uppercase; color: var(--cl-gris); margin: 16px 2px 8px; }
.cl-pase { position: relative; margin-top: 4px; border-radius: 18px; overflow: hidden; background: #D8A869; box-shadow: 0 10px 22px -16px rgba(80,45,10,.7); }
.cl-pase-cab { display: flex; justify-content: space-between; align-items: center; padding: 8px 56px 8px 14px; background: var(--cl-noche); color: #F5D88A; font-size: 11.5px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.cl-pase-cab span:last-child { color: #C9D2EE; }
.cl-pase-cuerpo { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 14px; align-items: center; }
.cl-retrato { width: 112px; height: 112px; border-radius: 16px; background: #FBF4E6; box-shadow: 0 0 0 2px #B5824A, 0 2px 6px rgba(90,50,10,.25); display: grid; place-items: center; }
.cl-pase-datos { min-width: 0; }
.cl-pase-datos b { display: block; font: 700 24px/1.05 var(--cl-titulo); color: #2B1A06; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-linea { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 800; font-size: 13px; color: #4A2F0E; }
.cl-linea i { min-width: 18px; height: 18px; padding: 0 3px; border-radius: 999px; background: var(--cl-rojo); color: #fff; font-style: normal; font-size: 9.5px; font-weight: 900; display: grid; place-items: center; letter-spacing: .02em; }
.cl-pase-datos dl { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; font-size: 13px; }
.cl-pase-datos dt { font-weight: 800; color: #6B4A20; }
.cl-pase-datos dd { margin: 0; font-weight: 900; color: #2B1A06; font-variant-numeric: tabular-nums; }
.cl-mov-v { display: inline-flex; align-items: center; gap: 2px; font-weight: 900; font-size: 13px; }
.cl-mov-v svg { width: 10px; height: 8px; }
.cl-mov-v.cl-sube { color: #2E7D1F; } .cl-mov-v.cl-baja { color: #C8262E; }
.cl-perfo { height: 0; border-top: 2.5px dashed rgba(90,55,20,.35); margin: 0 14px; position: relative; }
.cl-perfo::before, .cl-perfo::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: #F6EFE3; }
.cl-perfo::before { left: -22px; } .cl-perfo::after { right: -22px; }
.cl-pase-pie { padding: 10px 14px 12px; }
.cl-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cl-dia { display: grid; justify-items: center; gap: 3px; font-size: 10.5px; font-weight: 900; color: #6B4A20; }
.cl-dia i { width: 26px; height: 26px; border-radius: 50%; border: 2px dashed rgba(90,55,20,.45); display: grid; place-items: center; }
.cl-dia.si i { border: 0; background: #2A4A9A; box-shadow: inset 0 0 0 3px #FCF6EA, 0 0 0 1.5px #2A4A9A; }
.cl-dia.oro i { background: #E0B03A; box-shadow: inset 0 0 0 3px #FFF3C4, 0 0 0 1.5px #B8861B; }
.cl-brillo-pase { position: absolute; top: 0; bottom: 0; left: 0; width: 34%; background: linear-gradient(90deg, transparent, rgba(255,250,232,.55), transparent); pointer-events: none; transform: translateX(-120%); }
.cl-carrusel { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x mandatory; }
.cl-chip { flex: none; width: 132px; scroll-snap-align: start; display: grid; justify-items: center; gap: 6px; padding: 12px 10px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--cl-borde); text-align: center; }
.cl-chip b { font-weight: 800; font-size: 14px; color: var(--cl-carbon); line-height: 1.15; }
.cl-pieza-mini { width: 44px; height: 44px; border-radius: 12px; background: #FBF7EF; display: grid; place-items: center; overflow: hidden; flex: none; box-shadow: inset 0 0 0 1px var(--cl-borde); }
.cl-pieza-mini svg { display: block; }
.cl-precio { display: inline-flex; align-items: center; gap: 3px; font-weight: 900; font-size: 13px; color: #5a3d05; font-variant-numeric: tabular-nums; }
.cl-precio svg { width: 16px !important; height: 16px !important; display: block; }
.cl-tienes { font-weight: 800; font-size: 12.5px; color: var(--cl-verde); }
/* «Oro de campeón» (§12, prototipo-diseno/oro-de-campeon, A-podio): halo dorado en el podio, fondo dorado en las
   filas y la franja, y el candado en el pase (se prueba, no se compra). Sin animaciones. */
.cl-pod.oro .cl-av { filter: drop-shadow(0 4px 3px rgba(90,50,10,.25)) drop-shadow(0 0 12px rgba(255,214,120,.55)); }
.cl-pod.oro > :not(.cl-brilla-oro) { position: relative; }
.cl-brilla-oro { position: absolute; left: 50%; top: 4px; width: 150px; height: 120px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(255,226,150,.6), transparent); pointer-events: none; }
.cl-av-mini.oro, .cl-tu-puesto .cl-av-mini.oro { background: radial-gradient(circle at 50% 40%, #FFF7DE, #FFE7A8); box-shadow: inset 0 0 0 1.5px #E2B54E; }
.cl-retrato.oro { background: radial-gradient(circle at 50% 42%, #FFF7DE, #FBE6B0); box-shadow: 0 0 0 2px #C9932E, 0 2px 6px rgba(90,50,10,.25); }
.cl-pase-datos .fi-insignia-oro { margin-top: 4px; }
.cl-solo { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px 2px 5px; border-radius: 8px; background: #4A2A08; color: #FFE39A; font-weight: 900; font-size: 11.5px; white-space: nowrap; }
.cl-solo svg { width: 12px; height: 12px; flex: none; }
.cl-capa .cl-probar { flex: none; width: 100%; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--cl-azul); color: #fff; font-weight: 900; font-size: 13.5px; }
.cl-capa .cl-probar.ya { background: var(--cl-azul-suave); color: var(--cl-azul); }
.cl-capa .cl-cambiar-solo { width: auto; padding: 0 22px; }
.cl-boina-vuela { position: fixed; z-index: 90; pointer-events: none; }
@container (max-width: 350px) {
  .cl-pase-cab span:last-child { display: none; }
  .cl-pase-cuerpo { grid-template-columns: 96px 1fr; }
  .cl-retrato { width: 96px; height: 96px; }
  .cl-retrato svg { width: 88px; height: auto; }
}

/* ── En la celebración: «Puntos +N» (con su «i»), de dónde salen y «Ver Clasificación» ── */
.bol-celebra button.cl-pastilla { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--cl-azul); color: #fff; font: 800 18px/1 var(--cl-titulo); }
.cl-pastilla .cl-ic { font: 900 13px/1 var(--cl-texto); letter-spacing: .06em; text-transform: uppercase; color: #C9D2EE; }
.cl-pastilla .cl-info { width: 18px; height: 18px; border-radius: 50%; margin-left: 2px; display: grid; place-items: center; background: rgba(255,255,255,.18); font: 900 11.5px/1 var(--cl-texto); font-style: normal; color: #DCE3F7; }
.bol-celebra button.cl-pastilla:focus-visible, .bol-celebra button.cl-enlace:focus-visible { outline: 3px solid var(--bol-oro, #FFC533); outline-offset: 2px; }
.cl-nota-puntos { width: 100%; margin: 8px 0 0; font: 700 13.5px/1.35 var(--cl-texto); color: var(--cl-gris); text-align: center; flex: none; }
.cl-nota-puntos[hidden] { display: none; }
.bol-celebra button.cl-enlace { flex: none; margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font: 800 14px/1.2 var(--cl-texto); color: var(--cl-azul); background: var(--cl-azul-suave); max-width: 100%; }
.cl-enlace .cl-subio { color: #2E7D1F; font-weight: 900; }
.cl-enlace svg { width: 14px; height: 14px; flex: none; }

/* ── Tutorial (§13, estilo B «Señales sobre la Clasificación real»): copiado de
   prototipo-diseno/clasificacion-tutorial/index.html?estilo=B (capturas B-*.png y ayuda.png) ── */
/* El «?» junto al título: se ve de 26 px y se toca en 44 px */
.cl-titulo { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cl .cl-ayuda { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px;
  background: rgba(122,69,18,.08); box-shadow: inset 0 0 0 2px #A57A45; color: #5A3205; font: 900 15px/1 var(--cl-texto); }
.cl .cl-ayuda::before { content: ""; position: absolute; inset: -9px; }
.cl .cl-ayuda:focus-visible { outline: 3px solid #7FA2E8; outline-offset: 3px; border-radius: 50%; }
.cl .cl-ayuda.cl-marcado { background: var(--cl-marron); color: #FFE39A; box-shadow: 0 0 0 4px rgba(242,198,106,.55); }
.cl .cl-ayuda.cl-marcado::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #E2B04A; animation: cl-tut-onda 1.8s ease-out infinite; }
@keyframes cl-tut-onda { from { transform: scale(1); opacity: .9; } to { transform: scale(2); opacity: 0; } }
.cl-tut-pista { position: absolute; z-index: 6; max-width: 260px; padding: 10px 14px; border-radius: 14px; background: var(--cl-marron); color: #FFF3D3; font-weight: 800; font-size: 14px; line-height: 1.3;
  box-shadow: 0 12px 24px -10px rgba(60,30,0,.6); display: flex; gap: 10px; align-items: center; }
.cl-tut-pista::before { content: ""; position: absolute; top: -7px; left: var(--pico, 24px); width: 14px; height: 14px; margin-left: -7px; background: var(--cl-marron); transform: rotate(45deg); border-radius: 2px; }
.cl-tut-pista b { color: #FFE39A; }
.cl .cl-tut-pista .cl-tut-x { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; color: #FFE39A; font-size: 13px; font-weight: 900; }
.cl .cl-tut-pista .cl-tut-x::before { content: ""; position: absolute; inset: -10px; }
.cl .cl-tut-pista .cl-tut-x:hover:not(:disabled) { background: rgba(255,255,255,.22); }

/* El velo con el hueco, el globo y su pico */
.cl-tut { position: fixed; inset: 0; z-index: 75; font: 600 15px/1.35 var(--cl-texto); color: var(--cl-carbon); -webkit-font-smoothing: antialiased; text-align: left; }
.cl-tut-tapa { position: absolute; inset: 0; }
.cl-tut-hueco { position: absolute; border-radius: 20px; pointer-events: none; box-shadow: 0 0 0 2px #FFE39A, 0 0 0 4000px rgba(20,22,48,.66); }
.cl-tut-hueco::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; box-shadow: 0 0 0 2px #FFE39A; opacity: 0; }
.cl-tut-globo { position: absolute; left: 14px; width: calc(100% - 28px); padding: 14px 16px; border-radius: 22px; background: #FFFCF6; box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); }
.cl-tut-globo:focus { outline: none; }
.cl-tut-pico { position: absolute; width: 18px; height: 18px; margin-left: -9px; background: #FFFCF6; transform: rotate(45deg); border-radius: 3px; }
.cl-tut-globo.abajo .cl-tut-pico { top: -7px; } .cl-tut-globo.arriba .cl-tut-pico { bottom: -7px; }
.cl-tut-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -4px -6px 4px 0; }
.cl-tut-cuenta { font-weight: 900; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #A3620C; }
.cl-tut .cl-tut-saltar { position: relative; flex: none; min-height: 32px; padding: 0 14px; border-radius: 999px; font-weight: 900; font-size: 14px; color: #6B4310; background: rgba(122,69,18,.09); }
.cl-tut .cl-tut-saltar::before { content: ""; position: absolute; inset: -6px -2px; }
.cl-tut .cl-tut-saltar:hover:not(:disabled) { background: rgba(122,69,18,.15); }
.cl-tut-globo h2 { margin: 0; padding: 0; font: 800 21px/1.12 var(--cl-titulo); color: var(--cl-marron); text-align: left; letter-spacing: 0; text-transform: none; }
.cl-tut-globo p { margin: 6px 0 0; font-size: 15.5px; font-weight: 700; color: #5A4630; line-height: 1.35; }
.cl-tut-leyenda { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.cl-tut-chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px 0 8px; border-radius: 999px; font-weight: 900; font-size: 13.5px; white-space: nowrap; }
.cl-tut-chip svg { width: 11px; height: 9px; }
.cl-tut-sube { background: #E3F2DC; color: #23661A; }
.cl-tut-baja { background: #FBE3E2; color: #B3212A; }
.cl-tut-desde { font-weight: 800; font-size: 13px; color: #7A5A2E; }
.cl-tut-ej { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 10px; padding: 6px 12px; border-radius: 12px; background: linear-gradient(90deg, #5A300A, #7A4512); color: #FFF3D3; font-weight: 800; font-size: 14px; }
.cl-tut-ej b { font: 800 20px/1 var(--cl-titulo); color: #FFE39A; font-variant-numeric: tabular-nums; }
.cl-tut-pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.cl-tut-puntos { display: flex; gap: 7px; }
.cl-tut-puntos i { width: 8px; height: 8px; border-radius: 999px; background: #D7C09A; transition: width .3s, background .3s; }
.cl-tut-puntos i.si { width: 24px; background: var(--cl-marron); }
.cl-tut .cl-tut-sig { min-height: 46px; padding: 0 20px; border-radius: 999px; background: linear-gradient(180deg, #6A3A0C, #4E2A06); color: #FFF3D3; font-weight: 900; font-size: 16px; box-shadow: 0 3px 0 #2E1803; display: inline-flex; align-items: center; gap: 6px; }
.cl-tut .cl-tut-sig:hover:not(:disabled) { background: linear-gradient(180deg, #74420F, #57300A); }
.cl-tut-sig svg { width: 16px; height: 16px; }
.cl-tut .cl-tut-boton { width: 100%; margin-top: 12px; min-height: 50px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 900; font-size: 17px;
  background: linear-gradient(180deg, #F6C955, #E0A532); color: var(--cl-marron); box-shadow: 0 4px 0 #A87418, inset 0 1px 0 #FFEFB8; }
.cl-tut .cl-tut-boton:hover:not(:disabled) { background: linear-gradient(180deg, #F8CF63, #E4AB3A); }
.cl-tut-boton svg { width: 18px; height: 18px; flex: none; }
/* el enlace a «Cómo funcionan los puntos y las fichas» bajo el botón del último paso (fichas_guia.js) */
.cl-tut button.cl-tut-guia { display: block; margin: 10px auto 0; padding: 6px 4px; min-height: 0; background: none; box-shadow: none; border: 0; color: #6B4A12; font-weight: 800; font-size: 14px; text-decoration: underline; text-underline-offset: 2px; text-transform: none; letter-spacing: 0; }
.cl-tut button.cl-tut-guia:hover:not(:disabled) { background: none; }
.cl-tut button:focus-visible { outline: 3px solid #7FA2E8; outline-offset: 2px; }
.cl-tut-extra { position: absolute; inset: 0; pointer-events: none; }
.cl-tut-toque { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(255,227,154,.35); box-shadow: 0 0 0 2px #FFE39A; pointer-events: none; }
.cl-tut-toque::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: #FFE39A; }
.cl-tut-chispa { position: absolute; pointer-events: none; }
.cl-tut-chispa path { fill: #FFE39A; }
@keyframes cl-tut-sube { 0% { transform: translateY(7px); opacity: 0; } 55% { transform: translateY(-3px); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes cl-tut-baja { 0% { transform: translateY(-7px); opacity: 0; } 55% { transform: translateY(3px); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes cl-tut-toque { 0% { transform: scale(.4); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes cl-tut-titila { 0%, 100% { transform: scale(.6); opacity: .35; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes cl-tut-respira { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: 0; transform: scale(1.04); } }
@keyframes cl-tut-entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .cl-tut-hueco { transition: top .45s cubic-bezier(.3,.7,.2,1), left .45s cubic-bezier(.3,.7,.2,1), width .45s cubic-bezier(.3,.7,.2,1), height .45s cubic-bezier(.3,.7,.2,1), border-radius .45s; }
  .cl-tut-hueco::after { animation: cl-tut-respira 2s ease-in-out infinite; }
  .cl-tut-globo { transition: top .45s cubic-bezier(.3,.7,.2,1); }
  .cl-tut-globo.cl-tut-vivo .cl-tut-dentro { animation: cl-tut-entra .3s ease-out both; }
  .cl-tut-vivo .cl-tut-toque { animation: cl-tut-toque .6s ease-out .5s both; }
  .cl-tut-vivo .cl-tut-chispa { animation: cl-tut-titila 2s ease-in-out infinite; }
  .cl-tut-vivo .cl-tut-chispa:nth-child(2n) { animation-delay: .7s; }
  .cl-tut-mueve .cl-mov { animation: cl-tut-sube .7s cubic-bezier(.2,.8,.2,1) .3s both; }
  .cl-tut-mueve .cl-mov.cl-baja { animation-name: cl-tut-baja; animation-delay: .5s; }
}
@media (max-width: 350px) {
  .cl-tut-globo { padding: 12px 14px; } .cl-tut-globo h2 { font-size: 19px; } .cl-tut-globo p { font-size: 14.5px; }
  .cl-tut .cl-tut-sig { min-height: 44px; padding: 0 16px; font-size: 15px; }
  .cl-tut .cl-tut-boton { font-size: 16px; }
  .cl-titulo { gap: 6px; }
}

/* ── Teléfonos angostos (320 px) ── */
@media (max-width: 350px) {
  .cl-cab { padding: 14px 12px 0; }
  .modo-app dialog.pagina-app.cl-dialogo .cl-cab h2, .cl-cab h2 { font-size: 25px; }
  .cl-cab small { font-size: 12px; }
  .cl-reloj { font-size: 12.5px; padding: 0 9px 0 7px; height: 30px; }
  .cl-podio { padding: 6px 10px 0; gap: 6px; }
  .cl-pod .cl-nom { font-size: 13.5px; }
  .cl-pod.p1 .cl-peana { height: 64px; } .cl-pod.p2 .cl-peana { height: 46px; } .cl-pod.p3 .cl-peana { height: 36px; }
  .cl-pod.p1 .cl-peana b { font-size: 28px; } .cl-peana b { font-size: 24px; } .cl-pod.p3 .cl-peana b { font-size: 21px; }
  .cl-peana .cl-mov { top: 5px; right: 5px; }
  .cl-interrogante { width: 56px; height: 48px; font-size: 24px; }
  .cl-hoja { padding: 12px 8px 10px; }
  .cl-fila { grid-template-columns: 26px 44px minmax(0, 1fr) auto; gap: 8px; padding: 0 12px 0 6px; }
  .cl-invita { padding: 12px; gap: 10px; }
  .modo-app dialog.pagina-app .cl-invita h3, .cl-invita h3 { font-size: 17px; }
  .cl-tu-puesto { margin-left: 8px; margin-right: 8px; padding: 6px 12px; gap: 8px; }
  .bol-celebra button.cl-pastilla { height: 40px; padding: 0 12px; gap: 6px; font-size: 16px; }
  .bol-celebra button.cl-enlace { font-size: 13px; padding: 6px 10px; }
  .pestanas-app [data-pestana="clasificacion"] span { letter-spacing: -.03em; }
}

/* Movimiento reducido: sin animaciones, solo el resultado */
@media (prefers-reduced-motion: reduce) {
  .cl-mov.entra, .cl-destella { animation: none; }
  .cl .cl-ayuda.cl-marcado::after { animation: none; opacity: 0; }
}

/* ── «Racha de oro» (§12 bis; prototipo-diseno/oro-racha, B1 y O1): el campeón que repite semana ──
   cl-r2 / cl-r3: oro con reflejo rosa · cl-r4: «Leyenda» (4-7 semanas) · cl-r8: «Obsidiana» (8+).
   El chip junto al nombre, el aro del avatar, el retrato del pase, la fila y «Mejor racha». */
.cl-racha, .cl-mejor { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px 0 5px; border-radius: 999px; white-space: nowrap; font: 900 11px/1 var(--cl-texto); letter-spacing: .02em; font-variant-numeric: tabular-nums; vertical-align: middle; color: #5A3605; }
.cl-racha svg, .cl-mejor svg { width: 13px; height: 13px; flex: none; }
.cl-fila .cl-racha, .cl-tu-puesto .cl-racha { margin-left: 6px; vertical-align: 1px; }
.cl-pod .cl-racha { margin-top: 3px; }
.cl-mejor { font-size: 12px; }
.cl-mejor.cl-r1 { background: linear-gradient(180deg, #FFE9A6, #F0C35A); box-shadow: inset 0 0 0 1px #C9932E; }
.cl-racha.cl-r2, .cl-mejor.cl-r2 { background: linear-gradient(100deg, #FFD9CC, #F8C25A 38%, #FFE7B0 55%, #F2B07E); box-shadow: inset 0 0 0 1.4px #D07A64; }
.cl-racha.cl-r3, .cl-mejor.cl-r3 { background: linear-gradient(100deg, #FFC8BC, #F7B860 34%, #FFDCC0 52%, #EE9C84); box-shadow: inset 0 0 0 1.5px #C2624E; }
.cl-racha.cl-r4, .cl-mejor.cl-r4 { background: linear-gradient(100deg, #FFD6C8, #FFE79A 28%, #FFD0D8 48%, #FFE9A6 66%, #F6C64E); box-shadow: inset 0 0 0 1.4px #A8601A; color: #3A2203; }
.cl-racha.cl-r8, .cl-mejor.cl-r8 { background: linear-gradient(100deg, #2E2934, #0E0C11 45%, #2A2430 60%, #0E0C11); box-shadow: inset 0 0 0 1.5px #EE9C84, 0 0 0 1px rgba(242,194,74,.55); color: #FFD878; }
.cl-racha:is(.cl-r2, .cl-r3, .cl-r4) svg, .cl-mejor:is(.cl-r2, .cl-r3, .cl-r4) svg { color: #fff; filter: drop-shadow(0 0 1px #B8604C) drop-shadow(0 0 1px #B8604C); }
.cl-racha.cl-r8 svg, .cl-mejor.cl-r8 svg { width: 14px; height: 14px; }
.cl-av-mini.cl-r2 { background: radial-gradient(circle at 50% 40%, #FFF6E2, #FFE0C4); box-shadow: inset 0 0 0 1.5px #D98A72; }
.cl-av-mini.cl-r3 { background: radial-gradient(circle at 50% 40%, #FFF2E6, #FFD3C2); box-shadow: inset 0 0 0 1.5px #C2624E; }
.cl-av-mini.cl-r4 { border: 2px solid transparent; box-shadow: none; background: radial-gradient(circle at 50% 40%, #FFFDF3, #FFF0D2) padding-box, conic-gradient(from 30deg, #FFD24E, #FFB0C8, #FFD24E, #C8B4FF, #FFE27A, #FFD24E) border-box; }
.cl-av-mini.cl-r8 { border: 2.5px solid transparent; box-shadow: none; background: radial-gradient(circle at 50% 40%, #FFF8EA, #F6E2CC) padding-box, conic-gradient(from 20deg, #0E0C11, #F2C24A, #EE9C84, #0E0C11, #F2C24A, #0E0C11) border-box; }
.cl-retrato.cl-r2, .cl-retrato.cl-r3 { box-shadow: 0 0 0 2.5px #D98A72, 0 2px 6px rgba(90,50,10,.25); }
.cl-retrato.cl-r4 { border: 3px solid transparent; box-shadow: 0 2px 6px rgba(90,50,10,.25); background: radial-gradient(circle at 50% 42%, #FFFDF3, #FBEBD0) padding-box, conic-gradient(from 30deg, #FFD24E, #FFB0C8, #FFD24E, #C8B4FF, #FFE27A, #FFD24E) border-box; }
.cl-retrato.cl-r8 { border: 3.5px solid transparent; box-shadow: 0 2px 8px rgba(20,10,20,.4); background: radial-gradient(circle at 50% 42%, #FFF8EA, #F3DCC4) padding-box, conic-gradient(from 20deg, #0E0C11, #F2C24A, #EE9C84, #0E0C11, #F2C24A, #0E0C11) border-box; }
.cl-pod:is(.cl-r2, .cl-r3) .cl-brilla-oro { background: radial-gradient(closest-side, rgba(255,226,150,.75), rgba(255,200,190,.25) 70%, transparent); }
.cl-pod.cl-r4 .cl-brilla-oro, .cl-pod.cl-r8 .cl-brilla-oro { width: 170px; height: 140px; top: -6px; background: radial-gradient(closest-side, rgba(255,240,180,.95), rgba(255,200,215,.4) 58%, rgba(255,220,150,.18) 80%, transparent); }
/* Obsidiana: la fila lleva el número sobre una franja negra */
.cl-fila.cl-r8 { background: linear-gradient(90deg, #1C1920 0 38px, #FFF6EE 38px, #FFFFFF 80%); box-shadow: inset 0 0 0 1.5px #EE9C84, inset 0 0 0 2.5px rgba(242,194,74,.45); }
.cl-fila.cl-r8 .cl-n { color: #FFD878; }
.cl-fila.cl-r4 { box-shadow: inset 0 0 0 1.5px #E3BE6E; }
.cl-fila.yo.cl-r8 .cl-n { color: #FFD878; }
@media (max-width: 350px) { .cl-fila.cl-r8 { background: linear-gradient(90deg, #1C1920 0 32px, #FFF6EE 32px, #FFFFFF 80%); } }
/* Lo que se mueve dentro de la boina (Boina2DC.svg con rachaOro): destellos, polvo, un brillo que cruza y chispas */
@media (prefers-reduced-motion: no-preference) {
  .racha-destello { transform-box: fill-box; transform-origin: center; animation: rachaTitila 2.6s ease-in-out infinite; }
  .racha-polvo { animation: rachaPolvo 1.9s ease-in-out infinite; }
  .racha-barrido { animation: rachaBarrido 4.2s cubic-bezier(.45,.05,.4,1) infinite; }
  .racha-chispa { transform-box: fill-box; transform-origin: center; animation: rachaChispa 3.2s ease-in-out infinite; }
}
@keyframes rachaTitila { 0%, 60%, 84%, 100% { transform: scale(1) rotate(0deg); opacity: 1; } 72% { transform: scale(.25) rotate(45deg); opacity: .15; } }
@keyframes rachaPolvo { 0%, 100% { opacity: .95; } 50% { opacity: .15; } }
@keyframes rachaBarrido { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: 1; } 48% { transform: translateX(330px); opacity: 1; } 54%, 100% { transform: translateX(330px); opacity: 0; } }
@keyframes rachaChispa { 0%, 100% { transform: translateY(0) scale(1); opacity: 1; } 45% { transform: translateY(-5px) scale(.55) rotate(40deg); opacity: .25; } 70% { transform: translateY(-2px) scale(1.1); opacity: 1; } }
/* La insignia «Campeón ×N / Leyenda ×N / Obsidiana ×N · semana S» (pase y Perfil; fichas.js) */
.fi-insignia-oro.fi-r2 { background: linear-gradient(100deg, #FFD9CC, #F8C25A 38%, #FFE7B0 55%, #F2B07E); box-shadow: inset 0 0 0 1.4px #D07A64; }
.fi-insignia-oro.fi-r3 { background: linear-gradient(100deg, #FFC8BC, #F7B860 34%, #FFDCC0 52%, #EE9C84); box-shadow: inset 0 0 0 1.5px #C2624E; }
.fi-insignia-oro.fi-r4 { background: linear-gradient(100deg, #FFD6C8, #FFE79A 28%, #FFD0D8 48%, #FFE9A6 66%, #F6C64E); box-shadow: inset 0 0 0 1.4px #A8601A; color: #3A2203; }
.fi-insignia-oro.fi-r8 { background: linear-gradient(100deg, #2E2934, #0E0C11 45%, #2A2430 60%, #0E0C11); box-shadow: inset 0 0 0 1.5px #EE9C84, 0 0 0 1px rgba(242,194,74,.55); color: #FFD878; }
.fi-insignia-oro:is(.fi-r2, .fi-r3, .fi-r4) svg { color: #fff; filter: drop-shadow(0 0 1px #B8604C) drop-shadow(0 0 1px #B8604C); }
.fi-insignia-oro.fi-r8 svg { width: 14px; height: 14px; }
/* En «Tu puesto», el chip va debajo del nombre (si no, el nombre se corta) */
.cl-tu-puesto .cl-nom .cl-racha { display: flex; width: max-content; max-width: 100%; margin: 3px 0 0; }

/* ── «¿Cómo quieres que te vean?» (clasificacion.js, Apodo; decidido el 13 nov 2026) ──
   Hoja de abajo en el teléfono y ventana centrada en la computadora, en el crema del pase de viajero: tu fila de
   vista previa (la misma fila azul de la Clasificación, con tu boina), tres tarjetas elegibles con su círculo y
   «Guardar» / «Ahora no». Es un <dialog> modal: queda por encima de Ajustes, el pase y la pestaña. */
dialog.cl-apodo { width: 100%; max-width: 520px; max-height: calc(100dvh - max(18px, env(safe-area-inset-top)) - 10px); margin: auto auto 0; padding: 0; border: 0;
  border-radius: 26px 26px 0 0; background: #F6EFE3; color: var(--cl-carbon); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 -12px 40px -18px rgba(18,29,69,.55); }
dialog.cl-apodo::backdrop { background: rgba(18,29,69,.42); }
@media (min-width: 640px) { dialog.cl-apodo { margin: auto; border-radius: 26px; max-height: calc(100dvh - 48px); } }
@media (prefers-reduced-motion: no-preference) {
  dialog.cl-apodo[open]:not(.sale) { animation: cl-ap-sube .36s cubic-bezier(.2,.8,.25,1); }
  dialog.cl-apodo[open]:not(.sale)::backdrop { animation: cl-ap-fondo .28s ease-out; }
}
@keyframes cl-ap-sube { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cl-ap-fondo { from { opacity: 0; } to { opacity: 1; } }
.cl-ap { position: relative; padding: 8px 18px max(18px, env(safe-area-inset-bottom)); font: 600 15px/1.35 var(--cl-texto); -webkit-font-smoothing: antialiased; text-align: left; }
.cl-apodo button { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: inherit; font: inherit; line-height: inherit;
  text-transform: none; letter-spacing: 0; min-height: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cl-apodo button:hover:not(:disabled) { background: none; }
.cl-apodo button:active:not(:disabled) { transform: none; border-bottom-width: 0; }
.cl-apodo button:focus-visible, .cl-apodo input:focus-visible { outline: 3px solid #7FA2E8; outline-offset: 2px; }
.cl-apodo .cl-asa { margin-bottom: 10px; }
@media (min-width: 640px) { .cl-apodo .cl-asa { visibility: hidden; margin-bottom: 4px; } }
.cl-apodo .cl-ap-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--cl-borde); display: grid; place-items: center; color: var(--cl-gris); font-size: 16px; }
.cl-apodo .cl-ap-x::before { content: ""; position: absolute; inset: -5px; }
dialog.cl-apodo h2 { margin: 0 44px 4px 0; padding: 0; font: 800 25px/1.12 var(--cl-titulo); color: var(--cl-marron); letter-spacing: -.01em; text-align: left; }
.cl-ap-sub { margin: 0 0 14px; font-size: 14.5px; color: var(--cl-gris); }
.cl-ap-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* La vista previa: tu fila tal cual se verá */
.cl-ap-previa { padding: 12px 12px 10px; border-radius: 20px; background: linear-gradient(180deg, #FCF6EA, #F3E2C4); box-shadow: inset 0 0 0 1.5px #EBD6AE; }
.cl-ap-et { display: block; margin: 0 2px 8px; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #8A6A3E; }
.cl-ap-fila { cursor: default; }
.cl-ap-fila .cl-nom { min-width: 0; display: flex; align-items: center; }
.cl-ap-nombre { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-ap-nombre.vacio { opacity: .45; font-style: italic; }
.cl-ap-fila .cl-tu { flex: none; }
.cl-ap-menor { display: block; margin: 8px 2px 0; font-size: 12.5px; font-weight: 700; color: #6B4A1E; }
.cl-ap-menor[hidden] { display: none; }
/* El límite de la semana */
.cl-ap-limite { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; background: #FFF0C7; box-shadow: inset 0 0 0 1.5px #EBC46E; color: #5A3A0A; font-size: 13.5px; font-weight: 800; }
.cl-ap-limite::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat; }
.cl-ap-limite[hidden] { display: none; }
/* Las tres tarjetas */
.cl-ap-opciones { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; border: 0; min-width: 0; }
.cl-ap-op { position: relative; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--cl-borde); transition: box-shadow .18s, background-color .18s; }
.cl-ap-op > label { display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; gap: 12px; align-items: center; min-height: 64px; padding: 10px 14px 10px 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cl-ap-op[data-tipo="azar"] .cl-ap-txt { margin-right: 96px; }
.cl-ap-op input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.cl-ap-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #FFF4DA; color: #8A5A12; box-shadow: inset 0 0 0 1px #F0DDB0; }
.cl-ap-ic svg { width: 22px; height: 22px; }
.cl-ap-txt { min-width: 0; display: grid; gap: 1px; }
.cl-ap-txt b { font-weight: 900; font-size: 15.5px; color: var(--cl-carbon); }
.cl-ap-txt small { font-weight: 700; font-size: 13.5px; color: var(--cl-gris); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-ap-radio { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px #CDBFA8; background: #fff; display: grid; place-items: center; transition: box-shadow .18s; }
.cl-ap-radio::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--cl-azul); transform: scale(0); transition: transform .18s cubic-bezier(.2,.8,.2,1.4); }
.cl-ap-op.si { background: var(--cl-azul-suave); box-shadow: inset 0 0 0 2px var(--cl-azul); }
.cl-ap-op.si .cl-ap-radio { box-shadow: inset 0 0 0 2px var(--cl-azul); }
.cl-ap-op.si .cl-ap-radio::after { transform: scale(1); }
.cl-ap-op.si .cl-ap-ic { background: #fff; color: var(--cl-azul); box-shadow: inset 0 0 0 1px #C7D3EE; }
.cl-ap-op.si .cl-ap-txt b { color: var(--cl-azul); }
.cl-ap-op:has(input[type=radio]:focus-visible) { outline: 3px solid #7FA2E8; outline-offset: 2px; }
.cl-ap-op.cl-ap-bloq:not(.si) { opacity: .55; }
.cl-ap-op.cl-ap-bloq:not(.si) > label { cursor: not-allowed; }
.cl-ap-op[data-tipo="azar"] .cl-ap-azar { font-family: var(--cl-titulo); font-weight: 700; font-size: 15px; color: var(--cl-marron); }
.cl-ap-op.si[data-tipo="azar"] .cl-ap-azar { color: var(--cl-azul); }
/* El 🎲 «Otro»: dentro de la tarjeta, a la izquierda del círculo */
.cl-apodo .cl-ap-dado { position: absolute; top: 50%; right: 50px; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px 0 8px; border-radius: 999px;
  background: #FFF4DA; box-shadow: inset 0 0 0 1.5px #E8CB8A; color: #7A4A12; font-weight: 900; font-size: 13.5px; }
.cl-apodo .cl-ap-dado::before { content: ""; position: absolute; inset: -4px; }
.cl-apodo .cl-ap-dado:hover:not(:disabled) { background: #FFEDC4; }
.cl-apodo .cl-ap-dado:active:not(:disabled) { transform: translateY(-50%) scale(.96); }
.cl-apodo .cl-ap-dado:disabled { opacity: .45; cursor: not-allowed; }
.cl-apodo .cl-ap-dado svg { width: 20px; height: 20px; }
.cl-ap-ic-dado svg { width: 24px; height: 24px; }
/* El campo del apodo propio: se abre al elegirla */
.cl-ap-campo, .cl-ap-ayuda { display: none; }
.cl-ap-op.si .cl-ap-campo { display: flex; align-items: center; gap: 8px; margin: -2px 14px 0 64px; padding: 0 12px; height: 46px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px #B9C6E6; }
.cl-ap-op.si .cl-ap-campo:focus-within { box-shadow: inset 0 0 0 2px var(--cl-azul); }
.cl-ap-op.si.mal .cl-ap-campo { box-shadow: inset 0 0 0 2px #C8262E; }
.cl-ap-op.si .cl-ap-ayuda { display: block; margin: 6px 14px 12px 64px; font-size: 12.5px; font-weight: 700; color: #4F5F86; }
.cl-ap-op.si .cl-ap-ayuda.mal { color: #B3212A; font-weight: 800; }
.cl-ap-campo input { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: none;
  font: 800 16px/1 var(--cl-texto); color: var(--cl-carbon); }
.cl-ap-campo input:focus-visible { outline: none; }
.cl-ap-campo input::placeholder { color: #A9A196; font-weight: 700; }
.cl-ap-cuenta { flex: none; font-size: 12px; font-weight: 900; color: #8C93A8; font-variant-numeric: tabular-nums; }
.cl-ap-cuenta.pasa { color: #C8262E; }
@media (max-width: 380px) {
  .cl-ap-op.si .cl-ap-campo, .cl-ap-op.si .cl-ap-ayuda { margin-left: 14px; }
  .cl-ap-op[data-tipo="azar"] > label { padding-bottom: 54px; }
  .cl-ap-op[data-tipo="azar"] .cl-ap-txt { margin-right: 0; }
  .cl-apodo .cl-ap-dado { top: auto; bottom: 10px; right: auto; left: 64px; transform: none; }
  .cl-apodo .cl-ap-dado:active:not(:disabled) { transform: scale(.96); }
}
.cl-ap-error { margin: 10px 2px 0; color: #B3212A; font-size: 13.5px; font-weight: 800; min-height: 0; }
.cl-ap-error:empty, .cl-ap-error[hidden] { display: none; }
.cl-ap-nota { margin: 12px 2px 0; font-size: 12.5px; font-weight: 700; color: var(--cl-gris); }
.cl-ap-pie { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 14px; }
.cl-apodo .cl-ap-no { min-height: 50px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--cl-borde); color: var(--cl-gris); font-weight: 900; font-size: 15.5px; }
.cl-apodo .cl-ap-no:hover:not(:disabled) { background: #FBF7EF; }
.cl-apodo .cl-ap-si { min-height: 50px; border-radius: 999px; background: linear-gradient(180deg, #F6C955, #E0A532); color: var(--cl-marron); font-weight: 900; font-size: 16px; box-shadow: 0 4px 0 #A87418, inset 0 1px 0 #FFEFB8; }
.cl-apodo .cl-ap-si:hover:not(:disabled) { background: linear-gradient(180deg, #F8CF63, #E4AB3A); }
.cl-apodo .cl-ap-si:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 #A87418, inset 0 1px 0 #FFEFB8; }
.cl-apodo .cl-ap-si:disabled { opacity: .5; cursor: not-allowed; box-shadow: 0 4px 0 #C9A25A; }
.cl-apodo .cl-ap-si.cargando, .cl-capa .cl-ap-conf-si.cargando { color: transparent; position: relative; }
.cl-apodo .cl-ap-si.cargando::after, .cl-capa .cl-ap-conf-si.cargando::after { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(74,42,8,.25); border-top-color: var(--cl-marron); animation: cl-ap-gira .8s linear infinite; }
.cl-capa .cl-ap-conf-si.cargando::after { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
@keyframes cl-ap-gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cl-ap-op, .cl-ap-radio, .cl-ap-radio::after { transition: none; } .cl-apodo .cl-ap-si.cargando::after, .cl-capa .cl-ap-conf-si.cargando::after { animation-duration: 2.4s; } }

/* En tu pase: «Cambiar cómo me ven» */
.cl-capa .cl-ap-cambiar { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: 10px; min-height: 44px; padding: 0 16px; border-radius: 14px;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--cl-borde); color: var(--cl-azul); font-weight: 900; font-size: 14.5px; }
.cl-capa .cl-ap-cambiar svg { width: 16px; height: 16px; flex: none; }
.cl-capa .cl-ap-cambiar:hover:not(:disabled) { background: #FBF7EF; }
/* En el pase de otro: «Avisar de este nombre» y su confirmación */
.cl-ap-avisar { margin-top: 14px; display: flex; justify-content: center; }
.cl-capa .cl-ap-avisar-b { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; color: #8A5A50; font-weight: 800; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(138,90,80,.45); }
.cl-capa .cl-ap-avisar-b:hover:not(:disabled) { color: #B3212A; }
.cl-capa .cl-ap-avisar-b svg { width: 15px; height: 15px; }
.cl-ap-conf { width: 100%; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px #EBC9C2; }
.cl-ap-conf p { margin: 0; font-size: 13.5px; color: var(--cl-gris); }
.cl-ap-conf p b { display: block; margin-bottom: 2px; font-size: 15px; color: var(--cl-carbon); overflow-wrap: anywhere; }
.cl-ap-conf-b { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.cl-capa .cl-ap-conf-no, .cl-capa .cl-ap-conf-si { min-height: 42px; border-radius: 999px; font-weight: 900; font-size: 14.5px; }
.cl-capa .cl-ap-conf-no { background: #F6EFE3; color: var(--cl-gris); }
.cl-capa .cl-ap-conf-si { background: #C8262E; color: #fff; }
.cl-capa .cl-ap-conf-si:hover:not(:disabled) { background: #B01F27; }
.cl-capa .cl-ap-conf-si:disabled { opacity: .7; }
.cl-ap-hecho { margin: 0; padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--cl-borde); font-size: 13.5px; font-weight: 800; color: var(--cl-gris); text-align: center; }
.cl-ap-hecho.bien { color: var(--cl-verde); box-shadow: inset 0 0 0 1.5px #BFD9A8; }
/* «Tu apodo se cambió por tu nombre porque alguien avisó» (una vez, arriba de la Clasificación) */
.cl-ap-quitado { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: start; margin-bottom: 10px; padding: 12px 12px 10px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1.5px #EBD6AE; }
.cl-ap-quitado-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #FFF4DA; color: #8A5A12; }
.cl-ap-quitado-ic svg { width: 18px; height: 18px; }
.cl-ap-quitado p { margin: 0; font-size: 14px; font-weight: 700; color: var(--cl-carbon); }
.cl-ap-quitado-b { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cl .cl-ap-quitado-b button:first-child { min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--cl-azul); color: #fff; font-weight: 900; font-size: 14px; }
.cl .cl-ap-quitado-b .cl-ap-quitado-x { position: relative; width: 30px; height: 30px; border-radius: 50%; background: #F6EFE3; color: var(--cl-gris); display: grid; place-items: center; font-size: 13px; }
.cl .cl-ap-quitado-x::before { content: ""; position: absolute; inset: -7px; }
/* Ajustes: el nombre de «Cómo te ven» no empuja la flecha */
#valor-apodo { max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
