/* LA PARED · LAS CLASIFICACIONES (PARED-06E2: docs/album/PARED-06E2.md). Solo la carga Pared.html.
   La vitrina del club, de noche: la misma tela azul, el oro de imprenta, Anton para los números y Barlow para el resto
   (tokens --m-* de olimar-pared.css). Lo propio de las clasificaciones es el PODIO DE LADRILLOS: los pedestales son paredes
   —el material del juego—, la del primero más alta, y un empate comparte el pedestal. Las filas son de lista editorial
   (posición, quién, datos, puntos a la derecha), nunca tarjetas infladas. La fila propia lleva el filete de oro.
   El movimiento es uno solo: el podio se levanta ladrillo a ladrillo al entrar a la vista, una vez; con
   prefers-reduced-motion (o html.rm8) queda el estado, sin el viaje. */

.pt-capa { position: fixed; inset: 0; z-index: 95; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    color: var(--m-tinta); font-family: var(--body);
    background:
        radial-gradient(55% 34% at 8% -4%, rgba(255, 244, 214, .12), transparent 72%),
        radial-gradient(120% 60% at 50% 115%, rgba(2, 6, 23, .95), transparent 62%),
        linear-gradient(180deg, var(--m-tela) 0%, var(--m-tela-2) 44%, var(--m-fondo) 100%);
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 22px);
    opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease-out); }
.pt-capa.on { opacity: 1; pointer-events: auto; }
.pt-capa:focus { outline: none; }

/* ---------------------------------------------------------------- la marquesina */
.pt-cab { position: sticky; top: 0; z-index: 5; padding-top: env(safe-area-inset-top, 0px);
    background: linear-gradient(180deg, #07112e, #091536); border-bottom: 1px solid var(--m-hilo); box-shadow: 0 12px 26px -18px #000; }
.pt-cab__in { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 6px; padding: 8px 10px; }
.pt-cab__t { text-align: center; font-family: var(--disp); font-weight: 400; font-size: 1.3rem; line-height: 1; letter-spacing: .02em; color: var(--m-tinta); }
.pt-cab__t small { display: block; margin-top: 2px; font-family: var(--body); font-size: .68rem; font-weight: 800; letter-spacing: .02em; color: var(--m-tinta-3); }

/* las pestañas: desplazables en el teléfono, con la elegida en oro */
.pt-tabs { display: flex; gap: 6px; max-width: 760px; margin: 0 auto; padding: 2px 10px 10px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pt-tabs::-webkit-scrollbar { display: none; }
.pt-tabs [data-vista] { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
    font: 800 .84rem/1 var(--body); color: var(--m-tinta-2); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--m-linea);
    -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: background var(--mo) var(--ease-out); }
.pt-tabs [data-vista].on { color: var(--m-oro-tinta); background: linear-gradient(180deg, var(--m-oro-2), var(--m-oro)); box-shadow: 0 4px 12px -6px rgba(243, 220, 148, .8); }
body.est .pt-tabs [data-vista]:focus-visible, body.est .pt-capa button:focus-visible { outline: 2px solid var(--m-oro-2); outline-offset: 2px; }

/* ---------------------------------------------------------------- el Partido del Día */
.pt-dia { max-width: 640px; margin: 12px auto 0; padding: 0 12px; }
.pt-dia__in { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px 12px; align-items: center; padding: 12px 14px; border-radius: 18px;
    background: radial-gradient(70% 120% at 0% 0%, rgba(243, 220, 148, .14), transparent 60%), linear-gradient(160deg, rgba(27, 52, 113, .88), rgba(11, 27, 69, .92));
    box-shadow: inset 0 0 0 1px rgba(243, 220, 148, .4), 0 18px 40px -26px #000; }
.pt-dia__sello { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(243, 220, 148, .1); box-shadow: inset 0 0 0 1px rgba(243, 220, 148, .35); }
.pt-dia__bd { display: grid; gap: 2px; min-width: 0; }
.pt-dia__k { font-size: .68rem; font-weight: 800; letter-spacing: .04em; color: var(--m-oro-2); }
.pt-dia__t { font-size: .95rem; color: var(--m-tinta); } .pt-dia__t b { font-weight: 800; }
.pt-dia__s { font-size: .78rem; color: var(--m-tinta-2); }
.pt-dia__in[data-k="cobrado"] .pt-dia__s { color: var(--m-oro-2); }
.pt-dia__cta { grid-column: 1 / -1; min-height: 46px; gap: 8px; }
.pt-dia__cupo { grid-column: 1 / -1; font-size: .78rem; font-weight: 700; color: var(--m-tinta-3); }

/* ---------------------------------------------------------------- el cuerpo */
.pt-cuerpo { max-width: 640px; margin: 0 auto; padding: 14px 12px 8px; display: grid; gap: 14px; }
.pt-carga { padding: 40px 0; text-align: center; font-size: .9rem; color: var(--m-tinta-3); }
.pt-pie { margin: 0; text-align: center; font-size: .7rem; font-weight: 700; color: var(--m-tinta-3); }
.pt-reglas { margin: 0; padding: 9px 12px; border-radius: 12px; font-size: .78rem; line-height: 1.45; color: var(--m-tinta-2);
    background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--m-linea); }

/* el selector de semana y el sub-selector de la histórica */
.pt-sem { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 6px; }
.pt-sem__b { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--m-linea); background: rgba(255, 255, 255, .06);
    color: var(--m-tinta); font-size: 1rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pt-sem__b:disabled { opacity: .35; cursor: default; }
.pt-sem__t { text-align: center; font-family: var(--disp); font-weight: 400; font-size: 1.05rem; letter-spacing: .02em; color: var(--m-tinta); }
.pt-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--m-linea); }
.pt-sub__b { min-height: 38px; border: 0; border-radius: 999px; font: 800 .82rem/1 var(--body); color: var(--m-tinta-2); background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pt-sub__b.on { color: var(--m-oro-tinta); background: linear-gradient(180deg, var(--m-oro-2), var(--m-oro)); }

/* ---------------------------------------------------------------- el podio de ladrillos */
.pt-podio { list-style: none; margin: 2px 0 0; padding: 0 4px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; justify-items: center; }
/* con una o dos líneas el podio no se estira: cada pedestal conserva su ancho de siempre */
.pt-podio:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.pt-podio:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pt-pod { display: grid; justify-items: center; gap: 6px; min-width: 0; width: 100%; max-width: 190px; }
.pt-pod__q { display: grid; justify-items: center; gap: 4px; min-width: 0; max-width: 100%; text-align: center; }
.pt-pod__q .pt-quien__n { font-size: .8rem; font-weight: 800; color: var(--m-tinta); max-width: 100%; overflow-wrap: anywhere; }
.pt-pod__q + .pt-pod__q { margin-top: 2px; }
.pt-pod__mas { font-size: .7rem; font-weight: 800; color: var(--m-tinta-3); }
.pt-pod__pts { display: flex; align-items: baseline; gap: 3px; }
.pt-pod__emp { margin-left: 5px; font-size: .64rem; font-weight: 800; letter-spacing: .03em; color: var(--m-cielo); }
.pt-pts { font-family: var(--disp); font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--m-oro-2); font-variant-numeric: tabular-nums; }
.pt-pts__u { font-style: normal; font-size: .66rem; font-weight: 800; color: var(--m-tinta-3); }
.pt-pod--1 .pt-pts { font-size: 2rem; }
/* el pedestal: una pared de ladrillos de oro; la del primero, más alta; el número grande en tinta de oro */
.pt-pod__muro { position: relative; display: grid; place-items: center; width: 100%; border-radius: 8px 8px 0 0; overflow: hidden; }
.pt-pod--1 .pt-pod__muro { height: 86px; } .pt-pod--2 .pt-pod__muro { height: 64px; } .pt-pod--3 .pt-pod__muro { height: 46px; }
.pt-muro { position: absolute; inset: 0; display: grid; grid-auto-rows: 1fr; }
.pt-muro i { position: relative; background: linear-gradient(180deg, var(--m-oro-3), var(--m-oro) 70%, var(--m-oro-v)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 3px rgba(0, 0, 0, .25); }
/* la trama de aparejo: juntas verticales corridas media pieza por hilada */
.pt-muro i::after { content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(36, 25, 4, .35) calc(25% - 1px) 25%); }
.pt-muro i:nth-child(2n)::after { background-position: 12.5% 0; background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), rgba(36, 25, 4, .35) calc(12.5% - 1px) 12.5%, transparent 12.5% calc(37.5% - 1px), rgba(36, 25, 4, .35) calc(37.5% - 1px) 37.5%) 0 0 / 50% 100%; }
.pt-pod__n { position: relative; z-index: 1; font-family: var(--disp); font-weight: 400; font-size: 1.7rem; line-height: 1; color: var(--m-oro-tinta); text-shadow: 0 1px 0 rgba(255, 255, 255, .3); }
.pt-pod--2 .pt-pod__muro .pt-muro i, .pt-pod--3 .pt-pod__muro .pt-muro i { filter: saturate(.82) brightness(.92); }
.pt-pod.is-yo .pt-pod__q:first-child .pt-quien__n { color: var(--m-oro-2); }
/* la entrada: los ladrillos se levantan de abajo hacia arriba, una vez */
@media (prefers-reduced-motion: no-preference) {
    html:not(.rm8) .pt-podio.is-llega .pt-muro i { animation: ptLadrillo 420ms var(--ease-out) both; animation-delay: calc((var(--filas, 5) - var(--f)) * 70ms); }
    html:not(.rm8) .pt-podio.is-llega .pt-pod__n { animation: ptSube 360ms 560ms var(--ease-out) both; }
    html:not(.rm8) .pt-podio.is-llega .pt-pod__q, html:not(.rm8) .pt-podio.is-llega .pt-pod__pts { animation: ptSube 380ms 420ms var(--ease-out) both; }
}
@keyframes ptLadrillo { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ptSube { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------------------------------------------------------- las filas */
.pt-lista, .pt-marcas { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pt-fila, .pt-marca { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 54px; padding: 7px 12px 7px 8px;
    border-radius: 14px; background: linear-gradient(160deg, rgba(23, 46, 104, .55), rgba(10, 24, 62, .6)); box-shadow: inset 0 0 0 1px var(--m-linea); }
.pt-fila.is-yo, .pt-marca.is-yo { background: radial-gradient(60% 140% at 0% 0%, rgba(243, 220, 148, .12), transparent 60%), linear-gradient(160deg, rgba(23, 46, 104, .7), rgba(10, 24, 62, .75));
    box-shadow: inset 0 0 0 1.5px rgba(243, 220, 148, .55); }
.pt-fila__pos, .pt-marca__pos { justify-self: center; font-family: var(--disp); font-weight: 400; font-size: 1.1rem; color: var(--m-tinta-2); font-variant-numeric: tabular-nums; }
.pt-fila__emp { margin-left: 2px; font-style: normal; font-size: .72rem; color: var(--m-cielo); }
.pt-quien { display: flex; align-items: center; gap: 9px; min-width: 0; }
.pt-quien__n { min-width: 0; font-size: .92rem; font-weight: 800; color: var(--m-tinta); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-quien__n--duo { display: grid; gap: 1px; font-size: .84rem; line-height: 1.2; white-space: normal; }
.pt-quien__n--duo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-apodo { font-style: normal; font-weight: 700; color: var(--m-tinta-3); }
.pt-fila__d { display: block; margin-top: 2px; font-size: .72rem; font-weight: 700; color: var(--m-tinta-3); white-space: normal; }
.pt-quien .pt-fila__d { overflow: hidden; text-overflow: ellipsis; }
.pt-fila__pts { display: flex; align-items: baseline; gap: 3px; }
.pt-fila__pts .pt-pts { font-size: 1.3rem; }
.pt-av { display: block; width: 34px; height: 34px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1.5px rgba(156, 195, 255, .4); }
.pt-av .av, .pt-av .avph { width: 100%; height: 100%; }
.pt-capa .avph--kit .kit-body { fill: #1f4fb5; }
.pt-capa .avph--kit .avph__mono { font-size: .72rem !important; }
.pt-duo { display: flex; flex: none; }
.pt-duo .pt-av--b { margin-left: -10px; }
.pt-mas { min-height: 46px; }
.pt-fila.is-yo .pt-quien__n { color: var(--m-oro-2); }

/* la situación propia y mis duplas */
.pt-miestado, .pt-misd { padding: 11px 14px; border-radius: 14px; background: rgba(243, 220, 148, .07); box-shadow: inset 0 0 0 1px rgba(243, 220, 148, .3); }
.pt-miestado__t, .pt-misd__t { display: block; font-size: .88rem; font-weight: 800; color: var(--m-oro-2); }
.pt-miestado__s { display: block; margin-top: 2px; font-size: .8rem; line-height: 1.4; color: var(--m-tinta-2); }
.pt-misd ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 7px; }
.pt-misd li { display: grid; gap: 1px; }
.pt-misd__s { font-size: .74rem; font-weight: 700; color: var(--m-tinta-3); }

/* vacío, apagado y error */
.pt-vacio { display: grid; justify-items: center; gap: 8px; padding: 26px 16px; text-align: center; border-radius: 18px;
    background: linear-gradient(160deg, rgba(23, 46, 104, .5), rgba(10, 24, 62, .55)); box-shadow: inset 0 0 0 1px var(--m-linea); }
.pt-vacio__esc { width: 44px; height: 48px; background: var(--m-escudo) center / contain no-repeat; opacity: .5; }
.pt-vacio__t { margin: 0; font-family: var(--disp); font-weight: 400; font-size: 1.15rem; color: var(--m-tinta); text-wrap: balance; }
.pt-vacio__s { margin: 0; font-size: .82rem; color: var(--m-tinta-2); }

/* ---------------------------------------------------------------- récords */
.pt-cancha { display: grid; gap: 8px; }
.pt-cancha__hd { display: flex; align-items: baseline; gap: 8px; padding: 2px 2px 0; }
.pt-cancha__hd .pl-mini { align-self: center; }
.pt-cancha__t { margin: 0; font-family: var(--disp); font-weight: 400; font-size: 1.25rem; letter-spacing: .01em; color: var(--m-tinta); }
.pt-cancha__c { font-size: .72rem; font-weight: 800; color: var(--m-tinta-3); }
.pt-marca__dato { display: grid; justify-items: end; gap: 1px; text-align: right; }
.pt-marca__dato b { font-size: .88rem; font-weight: 800; color: var(--m-oro-2); white-space: nowrap; }
.pt-marca__dato span { font-size: .7rem; font-weight: 700; color: var(--m-tinta-3); white-space: nowrap; }
.pt-marca__mia { margin: 0; font-size: .78rem; line-height: 1.45; color: var(--m-tinta-2); padding: 0 2px; }
.pt-marca__mia b { color: var(--m-oro-2); }

/* ---------------------------------------------------------------- yo */
.pt-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.pt-kpis--menores { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pt-kpi { display: grid; gap: 2px; padding: 11px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--m-linea); }
.pt-kpi dt { font-size: .68rem; font-weight: 800; letter-spacing: .02em; color: var(--m-tinta-3); }
.pt-kpi dd { margin: 0; font-family: var(--disp); font-weight: 400; font-size: 1.5rem; line-height: 1.05; color: var(--m-tinta); font-variant-numeric: tabular-nums; }
.pt-kpis--menores .pt-kpi dd { font-size: 1.2rem; }
.pt-kpi dd small { display: block; font-family: var(--body); font-size: .66rem; font-weight: 700; color: var(--m-tinta-3); }
.pt-kpis .pt-kpi:first-child { background: radial-gradient(70% 120% at 0% 0%, rgba(243, 220, 148, .12), transparent 60%), rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(243, 220, 148, .4); }
.pt-kpis .pt-kpi:first-child dd { color: var(--m-oro-2); }

/* el control de privacidad: un interruptor de verdad, con el estado del servidor */
.pt-priv { padding: 13px 14px; border-radius: 16px; background: linear-gradient(160deg, rgba(27, 52, 113, .8), rgba(11, 27, 69, .85)); box-shadow: inset 0 0 0 1px var(--m-hilo); }
.pt-priv__fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pt-priv__t { font-size: .92rem; font-weight: 800; color: var(--m-tinta); }
.pt-priv__s { margin: 7px 0 0; font-size: .78rem; line-height: 1.45; color: var(--m-tinta-2); }
.pt-sw { position: relative; flex: none; width: 52px; height: 30px; border: 0; border-radius: 999px; cursor: pointer; -webkit-tap-highlight-color: transparent;
    background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px var(--m-linea); transition: background 220ms var(--ease-out); }
.pt-sw i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .45); transition: left 220ms var(--ease-out); }
.pt-sw.on { background: linear-gradient(180deg, var(--m-oro-2), var(--m-oro)); }
.pt-sw.on i { left: 25px; }
.pt-sw:disabled { opacity: .55; cursor: default; }

/* ---------------------------------------------------------------- pantallas y movimiento */
@media (min-width: 640px) {
    .pt-cuerpo, .pt-dia { max-width: 680px; }
    .pt-pod--1 .pt-pod__muro { height: 104px; } .pt-pod--2 .pt-pod__muro { height: 76px; } .pt-pod--3 .pt-pod__muro { height: 54px; }
}
@media (max-width: 359px) {
    .pt-cuerpo { padding: 12px 8px 8px; }
    .pt-fila, .pt-marca { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 7px; padding: 6px 9px 6px 6px; }
    .pt-av { width: 30px; height: 30px; }
    .pt-kpis--menores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pt-pod__q .pt-quien__n { font-size: .72rem; }
    .pt-pts { font-size: 1.3rem; } .pt-pod--1 .pt-pts { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
    .pt-capa, .pt-sw, .pt-sw i { transition: none !important; }
    .pt-podio.is-llega .pt-muro i, .pt-podio.is-llega .pt-pod__n, .pt-podio.is-llega .pt-pod__q, .pt-podio.is-llega .pt-pod__pts { animation: none !important; }
}
html.rm8 .pt-podio.is-llega .pt-muro i, html.rm8 .pt-podio.is-llega .pt-pod__n, html.rm8 .pt-podio.is-llega .pt-pod__q, html.rm8 .pt-podio.is-llega .pt-pod__pts { animation: none !important; }

/* ---------------------------------------------------------------- PARED-06K · la vista de ejemplo (solo TEST) */
.pt-demo__btn { min-height: 34px; padding: 0 12px; border: 1px solid rgba(220, 181, 98, .5); border-radius: 999px; cursor: pointer;
    font: 800 .72rem/1 var(--body); letter-spacing: .03em; color: var(--m-oro-3, #f3dc94); background: rgba(255, 255, 255, .06);
    -webkit-tap-highlight-color: transparent; }
.pt-demo__btn[aria-pressed="true"] { color: #10203f; background: linear-gradient(180deg, #f3dc94, #dcb562); border-color: transparent; }
body.est .pt-demo__btn:focus-visible { outline: 2px solid var(--m-oro-2, #dcb562); outline-offset: 2px; }
.pt-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; padding: 8px 14px;
    background: repeating-linear-gradient(135deg, rgba(243, 220, 148, .16) 0 10px, rgba(243, 220, 148, .05) 10px 20px), rgba(17, 38, 90, .9);
    border-top: 1px solid rgba(220, 181, 98, .4); border-bottom: 1px solid rgba(220, 181, 98, .4); }
.pt-demo__sello { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #10203f;
    background: linear-gradient(180deg, #f3dc94, #dcb562); font-size: .8rem; }
.pt-demo__t { flex: 1 1 auto; min-width: 0; font: 800 .78rem/1.2 var(--body); letter-spacing: .02em; color: #f3dc94; }
.pt-demo__dia { display: inline-flex; gap: 4px; }
.pt-demo__dia button { min-height: 30px; padding: 0 10px; border: 1px solid rgba(220, 181, 98, .4); border-radius: 999px; cursor: pointer;
    font: 700 .68rem/1 var(--body); color: var(--m-tinta-2, #c9d4ee); background: rgba(255, 255, 255, .05); -webkit-tap-highlight-color: transparent; }
.pt-demo__dia button.on { color: #10203f; background: linear-gradient(180deg, #f3dc94, #dcb562); border-color: transparent; font-weight: 800; }
.pt-demo__btn { flex: 0 0 auto; white-space: nowrap; justify-self: end; }
