/* Álbum de cartitas y premio diario (/album, bloque 5, oct-2026). */
/* Colores de rareza: también en la capa del sobre, que cuelga del body */
.al-wrap, .al-sb, .al-dlg { --r-comun: #a7b0ba; --r-rara: #4da3ff; --r-epica: #b47dff; --r-legendaria: #f5c542; --r-especial: #ff5fae; }
.al-wrap { position: relative; max-width: 1560px; margin: 0 auto; padding: 1rem 16px 4rem; }
.al-h2 { margin: 0; font-size: 1.05rem; color: var(--gdt-text-hi); }
.al-caja { background: var(--gdt-surface-1); border: 1px solid var(--gdt-border); border-radius: var(--gdt-r-lg); padding: 1rem; }
.al-cab { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .75rem; }
.al-cab > span { font-size: .8rem; color: var(--gdt-text-mid); }
.al-vacio { color: var(--gdt-text-mid); font-size: .9rem; padding: .6rem 0; }
.al-sec + .al-sec { margin-top: 1rem; }

.al-acc { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.al-btn { appearance: none; border: 0; border-radius: var(--gdt-r-pill); padding: .75rem 1.3rem; min-height: 44px;
          font: inherit; font-weight: 700; cursor: pointer; background: var(--gdt-accent); color: #04140a; }
.al-btn:hover { background: var(--gdt-accent-hi); }
.al-btn:focus-visible { outline: 2px solid var(--gdt-text-hi); outline-offset: 2px; }
.al-btn[disabled] { background: var(--gdt-surface-3); color: var(--gdt-text); cursor: default; }
.al-btn.sec { background: var(--gdt-surface-3); color: var(--gdt-text-hi); border: 1px solid var(--gdt-border-hi); }
.al-btn.sec:hover { border-color: var(--gdt-accent-line); }
.al-btn.sec[disabled] { background: var(--gdt-surface-2); color: var(--gdt-text); border-color: var(--gdt-border); cursor: default; }
.al-btn.chico { padding: .45rem .85rem; min-height: 36px; font-size: .85rem; }
.al-nota { margin: .7rem 0 0; font-size: .8rem; color: var(--gdt-text-mid); }
.al-nota b { color: var(--gdt-text); }
.al-corto { margin: 0 0 .7rem; padding: .5rem .7rem; border-radius: var(--gdt-r-sm); font-size: .85rem;
            background: rgba(255,179,0,.08); border: 1px solid rgba(255,179,0,.3); color: var(--gdt-text); }

/* ── Cartita ── */
.al-grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.al-card { --rc: var(--r-comun); position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0;
           padding: .5rem .45rem .55rem; border-radius: 12px; text-decoration: none; color: var(--gdt-text);
           background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 22%, var(--gdt-surface-2)), var(--gdt-surface-2) 62%);
           border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent); box-shadow: var(--gdt-shadow-sm); }
.al-card.r-rara { --rc: var(--r-rara); }
.al-card.r-epica { --rc: var(--r-epica); }
.al-card.r-legendaria { --rc: var(--r-legendaria); box-shadow: 0 0 0 1px color-mix(in srgb, var(--rc) 40%, transparent), 0 6px 22px color-mix(in srgb, var(--rc) 22%, transparent); }
.al-card.r-especial { --rc: var(--r-especial); background: linear-gradient(160deg, color-mix(in srgb, var(--r-especial) 26%, var(--gdt-surface-2)), var(--gdt-surface-2) 55%, color-mix(in srgb, var(--gdt-accent) 16%, var(--gdt-surface-2))); }
.al-card-top { align-self: stretch; display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }
.al-ovr { font-size: 1.35rem; font-weight: 800; color: var(--gdt-text-hi); line-height: 1; font-variant-numeric: tabular-nums; }
.al-pos { font-size: .68rem; font-weight: 700; color: var(--gdt-text-mid); letter-spacing: .04em; }
.al-rz { align-self: stretch; margin: .3rem 0 .35rem; font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
         color: var(--rc); text-align: left; }
.al-foto { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex: none;
           background: var(--gdt-surface-3); border: 2px solid color-mix(in srgb, var(--rc) 70%, transparent);
           color: var(--gdt-text-hi); font-weight: 800; font-size: 1.05rem; }
.al-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-nom { margin-top: .4rem; max-width: 100%; font-size: .82rem; font-weight: 700; color: var(--gdt-text-hi);
          white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-club { max-width: 100%; font-size: .68rem; color: var(--gdt-text-mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-temp { margin-top: .2rem; font-size: .66rem; color: var(--gdt-text); font-variant-numeric: tabular-nums; }
.al-cant { position: absolute; top: -7px; right: -7px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; display: grid; place-items: center;
           background: var(--gdt-accent); color: #04140a; font-size: .72rem; font-weight: 800; }
.al-nueva { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); padding: 1px 8px; border-radius: 10px;
            background: var(--gdt-text-hi); color: #07090c; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.al-card.falta { filter: grayscale(1); opacity: .42; box-shadow: none; }
.al-card.falta .al-foto img { display: none; }
.al-card.retirada { opacity: .5; }

/* ── Etiqueta del día en la caja (bloque 14) ── */
.al-etq { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: .45rem; text-align: center;
          margin-top: .8rem; padding: 1rem .9rem 1.1rem; border-radius: var(--gdt-r-md);
          border: 1px dashed rgba(255,211,90,.5); background: radial-gradient(circle at 50% 0%, rgba(255,211,90,.14), transparent 70%), var(--gdt-surface-2); }
.al-etq-k { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--r-legendaria, #fbbf24); }
.al-etq .dt-tit { font-size: 18px; padding: .2em .7em; }
.al-etq p { margin: 0; color: var(--gdt-text); font-size: .86rem; max-width: 34rem; }
.al-etq p b { color: var(--gdt-text-hi); }
.al-etq small { color: var(--gdt-text-mid); font-size: .78rem; }
.al-etq a { font-weight: 700; }
.al-etq-rayos { position: absolute; inset: -40%; pointer-events: none; opacity: 0;
                background: repeating-conic-gradient(from 0deg, rgba(255,211,90,.16) 0 10deg, transparent 10deg 30deg); }
.al-etq > :not(.al-etq-rayos) { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .al-etq.anim { animation: alEtqEntra .7s cubic-bezier(.22,1,.36,1) both; }
  .al-etq.anim .dt-tit { animation: alEtqChip .9s .35s cubic-bezier(.34,1.56,.64,1) both; }
  .al-etq.anim.r-epico .al-etq-rayos, .al-etq.anim.r-legendario .al-etq-rayos { animation: alEtqRayos 6s linear .3s infinite, alEtqLuz .6s .3s both; }
}
@keyframes alEtqEntra { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes alEtqChip { 0% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: scale(1); } }
@keyframes alEtqRayos { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes alEtqLuz { from { opacity: 0; } to { opacity: 1; } }
.al-etq.r-epico .al-etq-rayos, .al-etq.r-legendario .al-etq-rayos { opacity: 1; }
/* ── Guía ── */
.al-guia summary { cursor: pointer; font-weight: 700; color: var(--gdt-text-hi); min-height: 32px; display: flex; align-items: center; }
.al-guia summary:focus-visible { outline: 2px solid var(--gdt-accent); outline-offset: 2px; border-radius: 4px; }
.al-pasos { margin: .6rem 0 0; padding-left: 1.3rem; display: grid; gap: .55rem; font-size: .9rem; color: var(--gdt-text); }
.al-pasos b { color: var(--gdt-text-hi); }
.al-pasos i { display: block; font-style: normal; color: var(--gdt-text-mid); font-size: .82rem; margin-top: 2px; }
.al-guia a { color: var(--gdt-accent-hi); }

/* ── Modo prueba del sobre (solo admins) ── */
.al-prueba { border-style: dashed; border-color: rgba(255,179,0,.45); }
.al-prueba-bts { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Aviso: el dispositivo tiene las animaciones apagadas ── */
.al-aviso-anim { margin-bottom: 1rem; padding: 1rem 1.1rem; border-radius: var(--gdt-r-lg);
                 background: linear-gradient(110deg, rgba(255,179,0,.14), rgba(255,179,0,.04) 70%); border: 2px solid rgba(255,179,0,.55); }
.al-aviso-anim[hidden] { display: none; }
.al-aviso-anim h2 { margin: 0 0 .35rem; font-size: 1.15rem; color: #ffd35a; }
.al-aviso-anim p { margin: 0 0 .8rem; font-size: .95rem; color: var(--gdt-text-hi); max-width: 70ch; }
.al-aviso-acc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.al-aviso-como { margin-top: .8rem; }
.al-aviso-como summary { cursor: pointer; font-weight: 700; color: var(--gdt-text-hi); font-size: .9rem; }
.al-aviso-como summary:focus-visible { outline: 2px solid var(--gdt-accent); outline-offset: 2px; border-radius: 4px; }
.al-aviso-pasos { margin: .5rem 0 0; padding-left: 1.2rem; display: grid; gap: .3rem; font-size: .88rem; color: var(--gdt-text); }
.al-aviso-pasos b { color: var(--gdt-text-hi); }
.al-sb-aviso { position: relative; z-index: 1; margin: 0; max-width: min(460px, 90vw); text-align: center; font-size: .82rem; color: #ffd35a; }
.al-sb-aviso[hidden] { display: none; }

button.al-card { font: inherit; cursor: pointer; width: 100%; }
button.al-card:hover { transform: translateY(-2px); }
button.al-card:focus-visible { outline: 2px solid var(--gdt-text-hi); outline-offset: 2px; }
button.al-card.falta:hover { opacity: .65; }

/* ── Ventanita de una cartita ── */
.al-dlg { width: min(420px, calc(100vw - 32px)); padding: 1.1rem; border-radius: var(--gdt-r-lg); border: 1px solid var(--gdt-border-hi);
          background: var(--gdt-surface-1); color: var(--gdt-text); box-shadow: var(--gdt-shadow-lg); }
.al-dlg { position: fixed; inset: 0; margin: auto; height: fit-content; max-height: calc(100vh - 32px); overflow: auto; }
.al-dlg::backdrop { background: rgba(0,0,0,.65); }
.al-dlg-cerrar { position: absolute; top: 6px; right: 8px; margin: 0; }
.al-dlg-cerrar button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--gdt-text-mid); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.al-dlg-cerrar button:hover { color: var(--gdt-text-hi); background: var(--gdt-surface-3); }
.al-dlg-top { display: flex; gap: 1rem; align-items: flex-start; }
.al-dlg-top .al-card { width: 132px; flex: none; }
.al-dlg-info { min-width: 0; padding-top: .2rem; }
.al-dlg-info h2 { margin: 0 0 .25rem; font-size: 1.05rem; color: var(--gdt-text-hi); padding-right: 30px; overflow-wrap: anywhere; }
.al-dlg-info p { margin: .15rem 0; font-size: .84rem; }
.al-dlg-info a { color: var(--gdt-accent-hi); }
.al-dlg-acc { display: grid; gap: 8px; margin-top: 1rem; }
.al-dlg-acc .al-btn { width: 100%; }
.al-dlg-acc p { margin: 0; font-size: .82rem; color: var(--gdt-text-mid); }

/* ── Probabilidades ── */
.al-probs { margin-top: 1rem; }
.al-probs summary { cursor: pointer; color: var(--gdt-text-hi); font-weight: 700; font-size: .92rem; padding: .3rem 0; }
.al-probs summary:focus-visible { outline: 2px solid var(--gdt-accent); outline-offset: 2px; border-radius: 4px; }
.al-tabla-prob { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; margin-top: .6rem; }
.al-tabla-prob h3 { margin: 0 0 .4rem; font-size: .85rem; color: var(--gdt-text); }
.al-tabla-prob table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.al-tabla-prob td { padding: .3rem .2rem; border-top: 1px solid var(--gdt-border); }
.al-tabla-prob td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--gdt-text-hi); font-weight: 700; }
.al-tabla-prob small { color: var(--gdt-text-mid); font-size: .75rem; }
.al-punto { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--r-comun); }
.al-punto.r-rara { background: var(--r-rara); } .al-punto.r-epica { background: var(--r-epica); }
.al-punto.r-legendaria { background: var(--r-legendaria); } .al-punto.r-especial { background: var(--r-especial); }

@media (max-width: 520px) {
  .al-grilla { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
  .al-foto { width: 48px; height: 48px; }
  .al-dlg-top .al-card { width: 112px; }
}
@media (hover: none) { button.al-card:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .al-cd-pts { animation: none; }
}

/* ══ Mi álbum: el carpetón (bloque 18a) ═════════════════════════════════════
   La idea: un carpetón de archivo con hojas troqueladas. Cada temporada es un
   separador con solapa que se funde con la hoja; cada club, una hoja impresa
   como planilla de plantel. Lo que falta es un HUECO troquelado por el que
   asoma el foil de su rareza; lo que tenés queda encastrado encima.
   Superficies y textos con tokens de theme.css: anda en los 7 temas.
   Las animaciones solo usan transform y opacity. */

/* ── Cabecera compacta ── */
.al-cabeza { display: flex; align-items: center; gap: .6rem 1rem; flex-wrap: wrap; padding: .15rem 0 .8rem; }
.al-cab-id { display: flex; align-items: center; gap: .45rem .9rem; flex: none; min-width: 0; }
.al-titulo { margin: 0; font-family: var(--font-titulo), sans-serif; font-weight: 400; font-size: 2rem; line-height: 1; letter-spacing: .02em; color: var(--gdt-text-hi); white-space: nowrap; }
.al-total { display: grid; gap: 4px; min-width: 96px; }
.al-total-n { font-size: .78rem; color: var(--gdt-text-mid); font-variant-numeric: tabular-nums; white-space: nowrap; }
.al-total-n b { color: var(--gdt-text-hi); font-size: .95rem; }
.al-total-barra { display: block; height: 3px; border-radius: 2px; background: var(--gdt-surface-3); overflow: hidden; }
.al-total-barra i { display: block; height: 100%; background: var(--r-legendaria); border-radius: 2px; }

.al-meta { flex: 1 1 300px; min-width: 0; }
.al-meta[hidden] { display: none; }
.al-meta-b { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 2px .55rem; width: 100%; min-height: 44px; padding: .28rem 2rem .28rem .45rem; border-radius: 10px;
             border: 1px solid color-mix(in srgb, var(--r-legendaria) 38%, var(--gdt-border)); background: linear-gradient(100deg, color-mix(in srgb, var(--r-legendaria) 11%, var(--gdt-surface-1)), var(--gdt-surface-1) 75%);
             color: var(--gdt-text); font: inherit; font-size: .88rem; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s; }
.al-meta-b::after { content: ""; position: absolute; right: .8rem; top: 50%; width: 8px; height: 8px; margin-top: -4px; border: solid var(--r-legendaria); border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .15s; }
.al-meta-b:hover { border-color: var(--r-legendaria); }
.al-meta-b:hover::after { transform: translateX(3px) rotate(45deg); }
.al-meta-b:focus-visible { outline: 2px solid var(--gdt-text-hi); outline-offset: 2px; }
.al-meta-esc { flex: none; width: 32px; height: 32px; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: var(--gdt-text-hi); }
.al-meta-esc img { width: 100%; height: 100%; object-fit: contain; display: block; }
.al-meta-tx { min-width: 0; color: var(--gdt-text); }
.al-meta-tx b { color: var(--gdt-text-hi); }
.al-meta-prem { font-weight: 700; color: var(--r-legendaria); white-space: nowrap; }

.al-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 11px; border: 1px solid var(--gdt-border); background: var(--gdt-surface-1); flex: none; margin-left: auto; }
.al-tab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: .3rem .85rem; border: 0; border-radius: 8px; background: none;
          color: var(--gdt-text-mid); font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; white-space: nowrap; transition: color .15s, background-color .15s; }
.al-tab:hover { color: var(--gdt-text-hi); }
.al-tab[aria-selected="true"] { background: var(--gdt-surface-3); color: var(--gdt-text-hi); box-shadow: inset 0 -2px 0 var(--gdt-accent); }
.al-tab:focus-visible { outline: 2px solid var(--gdt-accent); outline-offset: 1px; }
.al-tab-n { font-size: .75rem; font-weight: 700; color: var(--gdt-text-mid); font-variant-numeric: tabular-nums; }
.al-tab-pt { width: 8px; height: 8px; border-radius: 50%; background: var(--gdt-accent); }
.al-tab-pt[hidden] { display: none; }
.al-panel[hidden] { display: none; }

.al-ayuda-b { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gdt-border-hi); background: var(--gdt-surface-1); color: var(--gdt-text-hi);
              font-family: var(--font-titulo), sans-serif; font-size: 1.35rem; line-height: 1; cursor: pointer; transition: border-color .15s, color .15s; }
.al-ayuda-b:hover, .al-ayuda-b[aria-expanded="true"] { border-color: var(--gdt-accent); color: var(--gdt-accent-hi); }
.al-ayuda-b:focus-visible { outline: 2px solid var(--gdt-accent); outline-offset: 2px; }

/* La guía: hoja suelta encima de la página */
.al-guia:not([open]) { display: none; }
.al-guia[open] { position: absolute; z-index: 40; top: 3.7rem; right: 16px; width: min(600px, calc(100% - 32px)); max-height: calc(100vh - var(--gdt-nav-h) - 90px); overflow: auto;
                 margin: 0; padding: .8rem 1.1rem 1rem; background: var(--gdt-surface-2); border-color: var(--gdt-border-hi); box-shadow: var(--gdt-shadow-lg); overscroll-behavior: contain; }
.al-guia summary { justify-content: space-between; gap: 1rem; list-style: none; }
.al-guia summary::-webkit-details-marker { display: none; }
.al-guia-x { font-size: 1.5rem; line-height: 1; color: var(--gdt-text-mid); }

/* Modo prueba (solo admins): cerrado y al final */
.al-prueba { margin-top: 1.5rem; padding: .55rem 1rem; }
.al-prueba summary { cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--gdt-text-hi); min-height: 30px; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.al-prueba summary span { font-weight: 400; font-size: .8rem; color: var(--gdt-text-mid); }
.al-prueba summary:focus-visible { outline: 2px solid var(--gdt-accent); outline-offset: 2px; border-radius: 4px; }
.al-prueba-bts { margin-top: .5rem; }

/* ── El carpetón: estante + libro ── */
.lb { display: grid; grid-template-columns: 158px minmax(0, 1fr); align-items: start; }
.lb-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lb-estante { position: sticky; top: calc(var(--gdt-nav-h) + 10px); display: flex; flex-direction: column; gap: .7rem; min-height: 0; max-height: calc(100vh - var(--gdt-nav-h) - 20px); padding-top: .6rem; }

/* Separadores de temporada */
.al-temps { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 3px; padding: 1px 0 4px; overflow: hidden auto; scrollbar-width: thin; scrollbar-color: var(--gdt-border-hi) transparent; }
.al-temps::-webkit-scrollbar { width: 6px; }
.al-temps::-webkit-scrollbar-thumb { background: var(--gdt-border-hi); border-radius: 3px; }
.al-temps::-webkit-scrollbar-track { background: transparent; }
.al-temp-b { position: relative; flex: none; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 .4rem; margin-right: 12px; padding: .22rem .55rem .36rem .85rem; min-height: 40px;
             border: 1px solid var(--gdt-border); border-right: 0; border-radius: 8px 0 0 8px; color: var(--gdt-text); font: inherit; cursor: pointer; text-align: left;
             background: linear-gradient(90deg, var(--gdt-surface-2), var(--gdt-surface-1)); transition: margin-right .18s cubic-bezier(.22,1,.36,1), background-color .15s, border-color .15s; }
.al-temp-b::before { content: ""; position: absolute; left: 4px; top: 7px; bottom: 7px; width: 2px; border-radius: 1px; background: var(--gdt-border-hi); }
.lb-lomo-n { font-family: var(--font-titulo), sans-serif; font-size: 1.32rem; line-height: 1.05; letter-spacing: .03em; color: var(--gdt-text-hi); white-space: nowrap; }
.al-temp-b small { font-size: .75rem; font-weight: 600; color: var(--gdt-text-mid); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-lomo-barra { grid-column: 1 / -1; display: block; height: 2px; border-radius: 1px; background: var(--gdt-surface-3); overflow: hidden; }
.lb-lomo-barra i { display: block; height: 100%; background: var(--gdt-accent); }
.al-temp-b:hover { margin-right: 6px; border-color: var(--gdt-border-hi); }
.al-temp-b:focus-visible { outline: 2px solid var(--gdt-accent); outline-offset: -2px; }
.al-temp-b[aria-pressed="true"] { margin-right: 0; background: var(--gdt-surface-1); border-color: var(--gdt-border-hi); border-right-color: transparent; border-radius: 8px 0 0 8px; }
.al-temp-b[aria-pressed="true"] .lb-lomo-n { color: var(--gdt-accent-hi); }
.al-temp-b[aria-pressed="true"]::before { background: var(--gdt-accent); width: 3px; }
.lb.busca .al-temp-b[aria-pressed="true"] { margin-right: 12px; background: linear-gradient(90deg, var(--gdt-surface-2), var(--gdt-surface-1)); }
.al-temp-b.lleno::before { background: var(--r-legendaria); }
.al-temp-b.lleno .lb-lomo-barra i { background: var(--r-legendaria); }
.al-temp-b.esp::before { background: linear-gradient(180deg, var(--r-especial), var(--r-epica), var(--r-rara)); width: 3px; }
.al-temp-b.esp .lb-lomo-n { font-size: 1.08rem; }

/* Tu colección (el valor de la colección entra acá en el bloque 18, E2) */
.lb-colec { flex: none; margin-right: 12px; padding: .55rem .6rem .6rem; border-radius: 10px; border: 1px solid var(--gdt-border); background: var(--gdt-surface-1); display: grid; gap: .5rem; }
.lb-colec-datos { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.al-res-dato { min-width: 0; }
.al-res-dato b { display: block; font-family: var(--font-titulo), sans-serif; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--gdt-text-hi); font-variant-numeric: tabular-nums; }
.al-res-dato span { display: block; font-size: .75rem; line-height: 1.2; color: var(--gdt-text-mid); margin-top: 2px; }
.lb-colec .al-btn { width: 100%; padding: .4rem .5rem; font-size: .8rem; border-radius: 9px; line-height: 1.2; }
.al-btn.confirmar { background: var(--gdt-warn); color: #1a1200; }

/* El libro: papel con grano, medianil oscuro y ojales */
.lb-libro { --cantos: 8px; position: relative; min-width: 0; margin-right: 14px; padding: .6rem 1.2rem .9rem 2.9rem; border-radius: 0 12px 12px 12px; border: 1px solid var(--gdt-border-hi); border-left-color: transparent;
            background:
              radial-gradient(circle at 14px 42px, var(--gdt-bg) 0 5px, var(--gdt-border-hi) 5.5px 6.5px, rgba(0,0,0,0) 7px) 0 0 / 28px 96px repeat-y,
              linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.26) 26px, rgba(0,0,0,0) 46px),
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E"),
              var(--gdt-surface-1);
            box-shadow: var(--gdt-shadow-md); }
/* Los cantos de las hojas que quedan: más finos cuanto menos falta */
.lb-libro::after { content: ""; position: absolute; top: 12px; bottom: 7px; left: 100%; width: var(--cantos); border-radius: 0 3px 3px 0; pointer-events: none;
                   background: repeating-linear-gradient(90deg, var(--gdt-border-hi) 0 1px, var(--gdt-surface-2) 1px 3px); border-block: 1px solid var(--gdt-border); }

/* Buscador sobre las cartitas y filtros plegados */
.lb-arriba { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; }
.lb-barra { order: 2; flex: 0 1 310px; min-width: 240px; display: flex; gap: 8px; align-items: stretch; }
.al-f { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.al-f span { font-size: .75rem; color: var(--gdt-text-mid); font-weight: 600; }
.al-f input, .al-f select { width: 100%; min-height: 40px; padding: .35rem .6rem; border-radius: var(--gdt-r-sm); font: inherit; font-size: 16px;
                            background: var(--gdt-surface-2); color: var(--gdt-text-hi); border: 1px solid var(--gdt-border); }
.al-f input:focus-visible, .al-f select:focus-visible { outline: 2px solid var(--gdt-accent); outline-offset: 0; border-color: transparent; }
.al-f input::placeholder { color: var(--gdt-text-mid); opacity: 1; }
.al-f-q { flex: 1 1 auto; }
.lb-indice[hidden] + .lb-barra { flex: 1 1 100%; }
.al-f-q span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.al-f-q input { padding-left: 2.1rem; background: var(--gdt-surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a2adb8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='M11 11l4 4'/%3E%3C/svg%3E") no-repeat .65rem center; }
.lb-filtrar { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 .85rem; border-radius: var(--gdt-r-sm); border: 1px solid var(--gdt-border); background: var(--gdt-surface-2); color: var(--gdt-text-hi); font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; }
.lb-filtrar:hover, .lb-filtrar[aria-expanded="true"] { border-color: var(--gdt-border-hi); background: var(--gdt-surface-3); }
.lb-filtrar:focus-visible, .lb-limpiar:focus-visible { outline: 2px solid var(--gdt-accent); outline-offset: 1px; }
.lb-filtrar-n { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; background: var(--gdt-accent); color: #04140a; font-size: .75rem; font-weight: 800; }
.lb-filtrar-n[hidden] { display: none; }
.al-filtros { order: 3; flex: 1 1 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px; align-items: end; }
.al-filtros[hidden] { display: none; }
.lb-limpiar { min-height: 40px; padding: 0 .85rem; border-radius: var(--gdt-r-sm); border: 1px solid var(--gdt-border); background: none; color: var(--gdt-text-hi); font: inherit; font-size: .88rem; cursor: pointer; }
.lb-limpiar[hidden] { display: none; }

/* El índice de la temporada: escudos con su anillo de progreso */
.lb-indice { order: 1; flex: 1 1 320px; min-width: 0; display: flex; gap: 4px; padding: 4px; overflow-x: auto; scrollbar-width: none;
             -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
.lb-indice::-webkit-scrollbar { display: none; }
.lb-indice[hidden] { display: none; }
.lb-ind-b { --p: 0%; --anillo: var(--gdt-accent); flex: none; width: 38px; height: 38px; padding: 3px; border: 0; border-radius: 50%; cursor: pointer; background: conic-gradient(var(--anillo) var(--p), var(--gdt-surface-3) 0); transition: transform .14s; }
.lb-ind-esc { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--gdt-surface-1); overflow: hidden; color: var(--gdt-text-hi); font-size: .75rem; font-weight: 800; }
.lb-ind-esc img { width: 78%; height: 78%; object-fit: contain; display: block; }
.lb-ind-b:hover { transform: translateY(-2px); }
.lb-ind-b.lleno { --anillo: var(--r-legendaria); }
.lb-ind-b[aria-current] { outline: 2px solid var(--gdt-text-hi); outline-offset: 1px; }
.lb-ind-b:focus-visible { outline: 2px solid var(--gdt-accent); outline-offset: 2px; }
.lb-ind-b[disabled] { cursor: default; transform: none; }
.lb-ind-b[disabled] .lb-ind-esc { filter: grayscale(1); }
.lb-ind-b[disabled] .lb-ind-esc img { opacity: .3; }

/* La hoja */
.lb-hoja { position: relative; isolation: isolate; margin: .4rem 0 0; min-height: 380px; }
.lb-marca { position: absolute; z-index: -1; right: -1rem; top: -1.4rem; width: 330px; height: 330px; pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(200deg, #000, transparent 72%); mask-image: linear-gradient(200deg, #000, transparent 72%); }
.lb-marca img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) contrast(.8); opacity: .085; }
.lb-cab { display: flex; align-items: center; gap: .85rem; flex-wrap: nowrap; margin-bottom: .55rem; }
.lb-flecha { flex: none; width: 42px; height: 42px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gdt-border-hi); background: var(--gdt-surface-2); color: var(--gdt-text-hi); cursor: pointer; transition: transform .14s, border-color .14s, background-color .14s; }
.lb-flecha svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lb-flecha:hover:not([disabled]) { border-color: var(--gdt-accent); background: var(--gdt-surface-3); }
.lb-flecha.ant:hover:not([disabled]) { transform: translateX(-2px); }
.lb-flecha.sig:hover:not([disabled]) { transform: translateX(2px); }
.lb-flecha:focus-visible { outline: 2px solid var(--gdt-accent); outline-offset: 2px; }
.lb-flecha[disabled] { color: var(--gdt-text-mid); border-color: var(--gdt-border); background: none; cursor: default; opacity: .5; }
.lb-escudo { flex: none; width: 76px; height: 76px; display: grid; place-items: center; font-family: var(--font-titulo), sans-serif; font-size: 2rem; color: var(--gdt-text-hi); filter: drop-shadow(0 4px 10px rgba(0,0,0,.55)); }
.lb-escudo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lb-escudo.esp { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--r-especial); color: var(--r-especial); }
.lb-tit { flex: 1 1 auto; min-width: 0; }
.lb-folio { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .03em; color: var(--gdt-text-mid); }
.lb-cab h3 { margin: 0; font-family: var(--font-titulo), sans-serif; font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1; letter-spacing: .02em; color: var(--gdt-text-hi); overflow-wrap: anywhere; }
.lb-progreso { display: flex; align-items: center; gap: .6rem; margin-top: .3rem; max-width: 520px; }
.lb-muescas { flex: 0 1 auto; min-width: 0; display: flex; gap: 3px; width: fit-content; }
.lb-muescas i { --rc: var(--r-comun); flex: 0 1 26px; width: 26px; min-width: 3px; height: 8px; border-radius: 2px; background: color-mix(in srgb, var(--rc) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rc) 42%, transparent); }
.lb-muescas i.si { background: var(--rc); box-shadow: none; }
.lb-muescas .r-rara { --rc: var(--r-rara); } .lb-muescas .r-epica { --rc: var(--r-epica); } .lb-muescas .r-legendaria { --rc: var(--r-legendaria); } .lb-muescas .r-especial { --rc: var(--r-especial); }
.al-pag-n { flex: none; font-size: .85rem; font-weight: 700; color: var(--gdt-text-hi); font-variant-numeric: tabular-nums; }

/* El sello del premio: lacre con el borde dentado */
.al-pag-prem { --s: var(--r-legendaria); position: relative; flex: none; width: 108px; height: 108px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-radius: 50%; line-height: 1.05; transform: rotate(-6deg);
               color: var(--s); background: radial-gradient(circle, color-mix(in srgb, var(--s) 16%, var(--gdt-surface-1)) 60%, color-mix(in srgb, var(--s) 8%, var(--gdt-surface-1))); }
.al-pag-prem::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(var(--s) 0 5deg, transparent 5deg 10deg); -webkit-mask: radial-gradient(circle, transparent 67%, #000 68%); mask: radial-gradient(circle, transparent 67%, #000 68%); opacity: .9; }
.al-pag-prem small { position: relative; font-size: .75rem; font-weight: 700; }
.al-pag-prem b { position: relative; font-family: var(--font-titulo), sans-serif; font-weight: 400; font-size: 1.75rem; letter-spacing: .02em; }
.al-pag-prem.ok { --s: var(--gdt-accent-hi); transform: rotate(5deg); }
.al-pag-prem.ok small:first-child { max-width: 68px; line-height: 1; }
.al-pag-prem.cerca { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--s) 45%, transparent)); }
.al-pag-prem.sellando { animation: lbSello .5s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes lbSello { from { opacity: 0; transform: scale(1.9) rotate(-16deg); } to { opacity: 1; transform: rotate(5deg); } }

/* Las líneas del plantel */
.lb-lineas { display: flex; flex-wrap: wrap; gap: .7rem 1.1rem; }
.lb-linea { flex: 0 1 auto; min-width: 0; max-width: 100%; display: flex; align-items: flex-start; gap: .55rem; padding-top: .5rem; border-top: 1px solid color-mix(in srgb, var(--gdt-border-hi) 65%, transparent); }
.lb-linea-t { flex: none; width: 50px; display: flex; flex-direction: column; gap: 4px; padding-top: 2px; font-size: .75rem; font-weight: 700; color: var(--gdt-text); }
.lb-cancha { width: 40px; height: 27px; fill: none; stroke: var(--gdt-text-mid); stroke-width: 1; }
.lb-cancha .z { fill: var(--gdt-accent); stroke: none; opacity: .5; }

.lb-hoja .al-grilla { display: flex; flex-wrap: wrap; gap: 9px; min-width: 0; }
.lb-hoja .al-grilla .al-card.lb-c { flex: none; width: 126px; }
.lb-pie { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: .85rem; padding-top: .55rem; border-top: 1px solid color-mix(in srgb, var(--gdt-border-hi) 65%, transparent); }
.lb-pie > * { flex: 1 1 0; min-width: 0; }
.lb-pie-b { min-height: 38px; padding: 0 .4rem; border: 0; background: none; color: var(--gdt-text); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 6px; }
.lb-pie-b.ant { text-align: left; } .lb-pie-b.sig { text-align: right; }
.lb-pie-b:hover { color: var(--gdt-accent-hi); }
.lb-pie-b:focus-visible { outline: 2px solid var(--gdt-accent); outline-offset: 1px; }
.lb-folio-n { flex: 0 0 auto; font-family: var(--font-titulo), sans-serif; font-size: 1.3rem; color: var(--gdt-text-mid); letter-spacing: .05em; }
.lb-folio-n::before, .lb-folio-n::after { content: "—"; margin: 0 .4rem; }

.lb-hoja.completa .lb-cab h3 { color: var(--r-legendaria); }
.lb-hoja.completa::before { content: ""; position: absolute; z-index: -1; inset: -.4rem -.7rem -.5rem; border-radius: 10px; pointer-events: none;
                            box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--r-legendaria) 50%, transparent), inset 0 0 44px -14px color-mix(in srgb, var(--r-legendaria) 60%, transparent); }
.lb-res-cab { margin-bottom: .75rem; }
.lb-res-cab h3 { margin: 0; font-family: var(--font-titulo), sans-serif; font-weight: 400; font-size: 1.9rem; color: var(--gdt-text-hi); letter-spacing: .02em; }
.lb-res-cab p { margin: 0; font-size: .85rem; color: var(--gdt-text-mid); }
.lb-nada { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; min-height: 200px; }
.lb-cargando { min-height: 380px; }

/* Al pasar de hoja */
.lb-hoja.pasa-sig { animation: lbSig .32s cubic-bezier(.22,1,.36,1) both; }
.lb-hoja.pasa-ant { animation: lbAnt .32s cubic-bezier(.22,1,.36,1) both; }
@keyframes lbSig { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes lbAnt { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes lbFundido { from { opacity: 0; } to { opacity: 1; } }

/* ── La cartita encastrada ── */
.al-card.lb-c { --foil: 0%; --filo: 60%; --sil: 16%; --halo: 0px; padding: 0; overflow: hidden; align-items: stretch; border-radius: 10px; isolation: isolate; text-align: left;
                border: 1px solid color-mix(in srgb, var(--rc) var(--filo), transparent);
                background: color-mix(in srgb, var(--rc) 11%, var(--gdt-surface-2));
                box-shadow: 0 5px 12px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.1); transition: transform .16s cubic-bezier(.22,1,.36,1), box-shadow .16s; }
button.al-card.lb-c:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,.55), 0 0 0 1px var(--rc); }
.al-card.lb-c .al-card-top { position: absolute; z-index: 2; inset: 0 0 auto 0; padding: 5px 7px 16px; align-items: flex-start; background: linear-gradient(rgba(0,0,0,.78), rgba(0,0,0,0)); }
.al-card.lb-c .al-ovr { font-family: var(--font-titulo), sans-serif; font-weight: 400; font-size: 1.75rem; color: #fff; }
.al-card.lb-c .al-pos { font-size: .75rem; color: #fff; }
.al-card.lb-c .al-foto { order: 1; position: relative; width: 100%; height: auto; aspect-ratio: 1 / .94; border: 0; border-bottom: 2px solid var(--rc); border-radius: 0; font-family: var(--font-titulo), sans-serif; font-size: 2.2rem; color: var(--gdt-text); background: color-mix(in srgb, var(--rc) 22%, var(--gdt-surface-3)); }
.al-card.lb-c .al-nom, .al-card.lb-c .al-rz, .lb-res .al-card.lb-c .al-club, .lb-res .al-card.lb-c .al-temp { position: relative; z-index: 2; }
.al-card.lb-c .al-nom { order: 2; margin: 0; padding: .32rem .45rem 0; font-size: .85rem; line-height: 1.2; }
.al-card.lb-c .al-rz { order: 3; margin: 0; padding: .05rem .45rem .38rem; font-size: .75rem; line-height: 1.2; letter-spacing: .03em; font-weight: 800; text-transform: none; color: color-mix(in srgb, var(--rc) 74%, #fff); }
.al-card.lb-c .al-club, .al-card.lb-c .al-temp { display: none; }
.lb-res .al-card.lb-c .al-temp { display: block; order: 4; margin: 0; padding: 0 .45rem .4rem; font-size: .75rem; color: var(--gdt-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-res .al-card.lb-c .al-club { display: block; order: 2; padding: 0 .45rem; font-size: .75rem; color: var(--gdt-text); }
.lb-res .al-card.lb-c .al-nom { order: 2; }
.al-card.lb-c .al-cant { top: auto; right: 5px; bottom: auto; top: 6px; right: auto; left: 50%; transform: translateX(-50%); min-width: 26px; height: 22px; z-index: 3; font-size: .78rem; box-shadow: 0 2px 6px rgba(0,0,0,.6); }
/* Rareza que se nota en lo que tenés */
.al-card.lb-c.r-rara:not(.falta) { background: color-mix(in srgb, var(--rc) 16%, var(--gdt-surface-2)); }
.al-card.lb-c.r-epica:not(.falta) { background: color-mix(in srgb, var(--rc) 22%, var(--gdt-surface-2)); box-shadow: 0 5px 14px rgba(0,0,0,.5), 0 0 12px -3px var(--rc); }
.al-card.lb-c.r-legendaria:not(.falta) { background: color-mix(in srgb, var(--rc) 24%, var(--gdt-surface-2)); border-color: var(--rc); box-shadow: 0 5px 14px rgba(0,0,0,.5), 0 0 18px -3px var(--rc), inset 0 0 0 1px color-mix(in srgb, var(--rc) 45%, transparent); }
.al-card.lb-c.r-especial:not(.falta) { background: linear-gradient(150deg, color-mix(in srgb, var(--r-especial) 30%, var(--gdt-surface-2)), color-mix(in srgb, var(--r-epica) 22%, var(--gdt-surface-2)) 60%, color-mix(in srgb, var(--r-rara) 24%, var(--gdt-surface-2))); border-color: var(--rc); box-shadow: 0 5px 14px rgba(0,0,0,.5), 0 0 18px -3px var(--rc); }
/* Destello: las grandes que tenés, al pasar por encima */
.al-card.lb-c::after { content: ""; position: absolute; z-index: 1; top: -20%; bottom: -20%; left: 0; width: 42%; pointer-events: none; opacity: 0;
                       background: linear-gradient(90deg, transparent, color-mix(in srgb, #fff 60%, var(--rc)), transparent); transform: translateX(-130%) skewX(-14deg); }
.al-card.lb-c.r-legendaria:not(.falta):hover::after, .al-card.lb-c.r-especial:not(.falta):hover::after, .al-card.lb-c.r-epica:not(.falta):hover::after { opacity: .55; transform: translateX(290%) skewX(-14deg); transition: transform .7s ease; }

/* ── El hueco troquelado: lo que falta ── */
.al-card.lb-c.falta { filter: none; opacity: 1; background: color-mix(in srgb, var(--rc) var(--foil), var(--gdt-bg));
                      box-shadow: inset 0 3px 9px rgba(0,0,0,.8), inset 0 0 0 1px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.08), 0 0 var(--halo) -2px var(--rc); }
.al-card.lb-c.falta.r-comun { --foil: 2%; --filo: 26%; --sil: 15%; }
.al-card.lb-c.falta.r-rara { --foil: 6%; --filo: 50%; --sil: 34%; }
.al-card.lb-c.falta.r-epica { --foil: 10%; --filo: 68%; --sil: 48%; --halo: 10px; }
.al-card.lb-c.falta.r-legendaria { --foil: 13%; --filo: 95%; --sil: 58%; --halo: 20px; }
.al-card.lb-c.falta.r-especial { --foil: 12%; --filo: 90%; --sil: 48%; --halo: 16px; }
.al-card.lb-c.falta .al-card-top { background: none; }
.al-card.lb-c.falta .al-ovr { color: color-mix(in srgb, var(--rc) 82%, var(--gdt-text-hi)); }
.al-card.lb-c.falta.r-comun .al-ovr, .al-card.lb-c.falta .al-pos { color: var(--gdt-text); }
.al-card.lb-c.falta .al-foto { border-bottom: 1px solid color-mix(in srgb, var(--rc) 28%, transparent); background: radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--rc) calc(var(--foil) * 2.6), transparent), transparent 72%); }
.al-card.lb-c.falta .al-foto::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 72%; height: 72%; transform: translateX(-50%); background: color-mix(in srgb, var(--rc) var(--sil), var(--gdt-bg));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='30' r='21'/%3E%3Cpath d='M4 100c1-27 15-43 35-46l11 9 11-9c20 3 34 19 35 46z'/%3E%3C/svg%3E") center bottom / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='30' r='21'/%3E%3Cpath d='M4 100c1-27 15-43 35-46l11 9 11-9c20 3 34 19 35 46z'/%3E%3C/svg%3E") center bottom / contain no-repeat; }
.al-card.lb-c.falta .al-nom { color: var(--gdt-text); font-weight: 600; }
.al-card.lb-c.falta.r-comun .al-rz { color: var(--gdt-text-mid); font-weight: 600; }
/* La foto de Steam, apagada: toma el color de su rareza y se prende al pasar por encima */
.al-card.lb-c.falta.con-foto .al-foto::before { display: none; }
.al-card.lb-c.falta.con-foto .al-card-top { background: linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,0)); }
.al-card.lb-c.falta .al-foto img { display: block; filter: grayscale(1) contrast(.95); mix-blend-mode: luminosity; opacity: var(--vela); transition: opacity .16s; }
.al-card.lb-c.falta { --vela: .34; }
.al-card.lb-c.falta.r-rara { --vela: .44; }
.al-card.lb-c.falta.r-epica { --vela: .52; }
.al-card.lb-c.falta.r-legendaria, .al-card.lb-c.falta.r-especial { --vela: .62; }
button.al-card.lb-c.falta:hover .al-foto img, button.al-card.lb-c.falta:focus-visible .al-foto img { opacity: .9; }
.al-wrap.quieto .al-card.lb-c.falta .al-foto img { transition: none; }
/* El foil de las grandes: rayos quietos y un barrido lento */
.al-card.lb-c.falta.r-legendaria .al-foto::after, .al-card.lb-c.falta.r-especial .al-foto::after { content: ""; position: absolute; inset: -30% -30% -30% -30%; z-index: -1; opacity: .34;
    background: repeating-conic-gradient(from 8deg at 50% 48%, var(--rc) 0 7deg, transparent 7deg 22deg); -webkit-mask: radial-gradient(circle at 50% 48%, #000 22%, transparent 62%); mask: radial-gradient(circle at 50% 48%, #000 22%, transparent 62%); }
.al-card.lb-c.falta.r-especial .al-foto::after { background: repeating-conic-gradient(from 8deg at 50% 48%, var(--r-especial) 0 7deg, transparent 7deg 15deg, var(--r-rara) 15deg 22deg, transparent 22deg 30deg, var(--r-epica) 30deg 37deg, transparent 37deg 45deg); opacity: .42; }
.al-card.lb-c.falta.r-legendaria::after, .al-card.lb-c.falta.r-especial::after { opacity: 1; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--rc) 34%, transparent), transparent); animation: lbBarrido 6.5s ease-in-out infinite; }
.al-card.lb-c.falta:nth-child(3n+2)::after { animation-delay: -2.1s; }
.al-card.lb-c.falta:nth-child(3n)::after { animation-delay: -4.2s; }
@keyframes lbBarrido { 0%, 58% { transform: translateX(-130%) skewX(-14deg); } 100% { transform: translateX(290%) skewX(-14deg); } }
button.al-card.lb-c.falta:hover { opacity: 1; transform: none; box-shadow: inset 0 3px 9px rgba(0,0,0,.8), 0 0 0 1px var(--rc), 0 0 calc(var(--halo) + 8px) -2px var(--rc); }
button.al-card.lb-c:focus-visible { outline: 2px solid var(--gdt-text-hi); outline-offset: 2px; }
/* La cartita que recién entró se encastra; los huecos de la meta laten */
.al-card.lb-c.recien { animation: lbEncastre .5s cubic-bezier(.3,1.4,.5,1) both; z-index: 2; }
@keyframes lbEncastre { from { opacity: 0; transform: scale(1.22) rotate(-3deg); } to { opacity: 1; transform: none; } }
.lb-hoja.resaltar .al-card.falta { animation: lbLatido .75s ease-in-out 2 both; }
@keyframes lbLatido { 50% { transform: scale(1.05); } }

/* Modo .quieto: el dispositivo pide menos movimiento */
.al-wrap.quieto .lb-hoja.pasa-sig, .al-wrap.quieto .lb-hoja.pasa-ant { animation: lbFundido .2s ease both; }
.al-wrap.quieto .al-card.lb-c::after { animation: none; }
.al-wrap.quieto .al-card.lb-c.falta.r-legendaria::after, .al-wrap.quieto .al-card.lb-c.falta.r-especial::after { transform: translateX(90%) skewX(-14deg); opacity: .6; }
.al-wrap.quieto .al-card.lb-c.recien, .al-wrap.quieto .al-pag-prem.sellando { animation: lbFundido .3s ease both; }
.al-wrap.quieto .lb-hoja.resaltar .al-card.falta { animation: none; box-shadow: inset 0 3px 9px rgba(0,0,0,.8), 0 0 0 2px var(--rc); }
.al-wrap.quieto .al-temp-b, .al-wrap.quieto .lb-flecha, .al-wrap.quieto .al-card.lb-c, .al-wrap.quieto .lb-ind-b { transition: none; }

/* ── Tablet y celular: las solapas arriba, en una tira deslizable ── */
@media (max-width: 999px) {
  .al-tabs { margin-left: 0; }
  .lb { display: flex; flex-direction: column; align-items: stretch; }
  .lb-estante { display: contents; }
  .al-temps { order: 1; }
  .lb-libro { order: 2; }
  .lb-colec { order: 3; margin: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .al-temps { flex: none; flex-direction: row; gap: 3px; padding: 0; overflow: auto hidden; scrollbar-width: none; align-items: flex-end; }
  .al-temps::-webkit-scrollbar { display: none; }
  .al-temp-b { flex: none; width: 74px; margin: 6px 0 0; padding: .42rem .45rem .3rem; min-height: 44px; grid-template-columns: 1fr; border: 1px solid var(--gdt-border); border-bottom: 0; border-radius: 8px 8px 0 0; transition: margin-top .18s cubic-bezier(.22,1,.36,1), background-color .15s; }
  .al-temp-b.esp { width: 96px; }
  .al-temp-b::before { left: 7px; right: 7px; top: 3px; bottom: auto; width: auto; height: 2px; }
  .al-temp-b:hover { margin: 3px 0 0; }
  .al-temp-b[aria-pressed="true"] { margin: 0; border-color: var(--gdt-border-hi); border-bottom-color: transparent; background: var(--gdt-surface-1); }
  .al-temp-b[aria-pressed="true"]::before { width: auto; height: 3px; }
  .lb.busca .al-temp-b[aria-pressed="true"] { margin: 6px 0 0; }
  .lb-libro { margin: 0 0 .9rem; padding: .7rem .75rem .8rem; border-left-color: var(--gdt-border-hi); border-radius: 0 0 12px 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E"), var(--gdt-surface-1); }
  .lb-libro::after { display: none; }
}
@media (max-width: 720px) {
  .al-wrap { padding-top: .7rem; }
  .al-cabeza { gap: .55rem .6rem; padding-bottom: .55rem; }
  .al-cab-id { flex: 1 1 calc(100% - 52px); order: 1; justify-content: space-between; }
  .al-titulo { font-size: 1.7rem; }
  .al-total { justify-items: end; min-width: 84px; }
  .al-total-barra { width: 84px; }
  .al-ayuda-b { order: 2; }
  .al-meta { order: 3; flex: 1 1 100%; }
  .al-tabs { order: 4; flex: 1 1 100%; }
  .al-tab { flex: 1 1 0; padding: .3rem .35rem; }
  .al-guia[open] { top: 3.2rem; }
  .lb-barra { flex: 1 1 100%; order: 1; }
  .lb-indice { order: 2; flex: 1 1 100%; }
  .al-filtros { grid-template-columns: 1fr 1fr; }
  .lb-cab { flex-wrap: wrap; gap: .45rem .55rem; }
  .lb-flecha { width: 40px; height: 40px; }
  .lb-flecha.ant { order: 1; }
  .lb-escudo { order: 2; width: 56px; height: 56px; font-size: 1.5rem; }
  .lb-escudo.esp { width: 48px; height: 48px; }
  .lb-tit { order: 3; flex: 1 1 0; }
  .lb-flecha.sig { order: 4; }
  .lb-cab h3 { font-size: 1.6rem; }
  .lb-progreso { flex-wrap: wrap; gap: .15rem .5rem; }
  .lb-marca { width: 220px; height: 220px; top: -1rem; right: -1.2rem; }
  /* El sello se vuelve una tira entera, debajo del título */
  .al-pag-prem { order: 5; flex: 1 1 100%; flex-direction: row; gap: .35rem; width: auto; height: 40px; border-radius: 9px; transform: none; border: 1px solid color-mix(in srgb, var(--s) 55%, transparent); }
  .al-pag-prem::before, .al-pag-prem::after { display: none; }
  .al-pag-prem b { font-size: 1.4rem; }
  .al-pag-prem.ok { transform: none; }
  .al-pag-prem.ok small:first-child { max-width: none; }
  .lb-hoja { min-height: 0; }
  .lb-lineas { display: grid; gap: .55rem; }
  .lb-linea { display: grid; grid-template-columns: minmax(0, 1fr); gap: .35rem; padding-top: .45rem; }
  .lb-linea-t { width: auto; flex-direction: row; align-items: center; gap: 6px; padding: 0; }
  .lb-cancha { width: 30px; height: 20px; }
  .lb-hoja .al-grilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .lb-hoja .al-grilla .al-card.lb-c { width: auto; }
  .al-card.lb-c .al-ovr { font-size: 1.55rem; }
  .al-card.lb-c .al-nom { padding-inline: .35rem; }
  .al-card.lb-c .al-rz { padding-inline: .35rem; }
}
@media (hover: none) {
  .al-temp-b:hover { margin-right: 12px; }
  button.al-card.lb-c:hover { transform: none; }
}

/* ══ Hoy y Sobres: otras hojas del mismo carpetón (bloque 18a, E2) ═══════════
   El libro no se mueve al cambiar de pestaña: mismo papel, mismos ojales y
   cantos; lo que cambia es la hoja. Hoy es un boleto troquelado de 7 días y
   una caja lacrada en su hueco; Sobres es una funda con bolsillos. */
.al-wrap, .al-sb { --lb-grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E"); }

/* El fichero del costado: fichas con la misma forma de las solapas */
.lb-fichero { gap: .4rem; }
.lb-fichero-t { margin: 0 12px 0 0; padding-left: .85rem; font-family: var(--font-titulo), sans-serif; font-size: 1.15rem; line-height: 1; letter-spacing: .04em; color: var(--gdt-text-mid); }
.lb-fichas { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lb-ficha { position: relative; display: grid; align-content: center; gap: 1px; margin-right: 12px; padding: .42rem .55rem .48rem 1.95rem; min-height: 56px; border: 1px solid var(--gdt-border); border-right: 0; border-radius: 8px 0 0 8px;
            background: linear-gradient(90deg, var(--gdt-surface-2), var(--gdt-surface-1)); color: var(--gdt-text); font: inherit; text-align: left; cursor: pointer; transition: margin-right .18s cubic-bezier(.22,1,.36,1), border-color .15s; }
button.lb-ficha:hover { margin-right: 6px; border-color: var(--gdt-border-hi); }
button.lb-ficha:focus-visible { outline: 2px solid var(--gdt-accent); outline-offset: -2px; }
.lb-ficha > b { font-family: var(--font-titulo), sans-serif; font-weight: 400; font-size: 1.25rem; line-height: 1.05; letter-spacing: .03em; color: var(--gdt-text-hi); }
.lb-ficha small { font-size: .75rem; line-height: 1.2; color: var(--gdt-text-mid); }
.lb-ficha-ojo { position: absolute; left: .62rem; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 1.5px dashed var(--gdt-border-hi); }
.lb-ficha.falta .lb-ficha-ojo { border: 2px solid var(--gdt-accent); background: radial-gradient(circle, var(--gdt-accent) 36%, transparent 40%); }
.lb-ficha.falta small { color: var(--gdt-text-hi); }
.lb-ficha.hecho .lb-ficha-ojo { border: 0; background: var(--gdt-bg); box-shadow: inset 0 2px 3px #000, 0 0 0 2px var(--gdt-accent-line); }
.lb-ficha.hecho small { color: var(--gdt-accent-hi); }
.lb-ficha.fija { padding-left: .85rem; cursor: default; }
.lb-ficha-dato { font-size: .85rem; color: var(--gdt-text); }
.lb-ficha-dato b { font-family: var(--font-titulo), sans-serif; font-weight: 400; font-size: 1.35rem; color: var(--gdt-accent-hi); }
.lb-perfo { display: flex; flex-wrap: wrap; gap: 3px; margin: .2rem 0 .2rem; }
.lb-perfo i { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--gdt-border-hi); }
.lb-perfo i.si { background: var(--gdt-bg); box-shadow: inset 0 1px 2px #000, 0 0 0 1.5px var(--gdt-accent); }

/* La hoja: columna ancha, perforado y columna angosta */
.dh { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: start; padding-block: .35rem .1rem; }
.dh-premio, .dh-pack { min-width: 0; padding-right: 1.5rem; }
.dh-caja { min-width: 0; align-self: stretch; padding-left: 1.5rem; background: radial-gradient(circle, var(--gdt-border-hi) 1.6px, transparent 2px) 0 0 / 5px 11px repeat-y; }
.dh-ult { grid-column: 1 / -1; min-width: 0; margin-top: .85rem; padding-top: .6rem; border-top: 1px solid color-mix(in srgb, var(--gdt-border-hi) 65%, transparent); }
.dh-funda { grid-column: 1 / -1; min-width: 0; margin-bottom: .9rem; padding-bottom: .85rem; border-bottom: 1px solid color-mix(in srgb, var(--gdt-border-hi) 65%, transparent); }
.dh-h { margin: 0; font-family: var(--font-titulo), sans-serif; font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1; letter-spacing: .02em; color: var(--gdt-text-hi); }
.dh-h.chica { font-size: 1.6rem; }
.dh .al-cab { margin-bottom: .55rem; }
.dh-cab { margin-bottom: .7rem; }
.dh .al-acc { margin-top: .1rem; }
.dh-sello { width: 100px; height: 100px; }
.dh-sello small { max-width: 74px; line-height: 1.05; }
.dh-sello.ok { transform: rotate(5deg); }
.dh-sello.ok small:first-child { max-width: 74px; }
.dh-sello.sellando { animation: lbSello .5s cubic-bezier(.3,1.5,.5,1) both; }

/* El taco del día */
.dh-taco { flex: none; position: relative; width: 66px; height: 80px; display: flex; flex-direction: column; align-items: center; border-radius: 6px; color: var(--gdt-text-hi); text-transform: uppercase; transform: rotate(-2.5deg);
           background: linear-gradient(var(--gdt-accent) 0 22px, transparent 22px), var(--lb-grano), var(--gdt-surface-3); box-shadow: 0 5px 12px rgba(0,0,0,.5), inset 0 0 0 1px var(--gdt-border-hi); }
.dh-taco span { font-size: .75rem; font-weight: 800; letter-spacing: .05em; line-height: 22px; }
.dh-taco span:first-child { color: #04140a; }
.dh-taco b { flex: 1 1 auto; display: grid; place-items: center; font-family: var(--font-titulo), sans-serif; font-weight: 400; font-size: 2rem; line-height: 1; }
.dh-taco span:last-child { line-height: 1; padding-bottom: 6px; color: var(--gdt-text); }

/* Botones de acción: placa impresa con canto */
.al-btn.lb-accion { border-radius: 10px; min-height: 48px; padding: .4rem 1.3rem; font-family: var(--font-titulo), sans-serif; font-weight: 400; font-size: 1.3rem; line-height: 1.1; letter-spacing: .03em;
                    box-shadow: 0 3px 0 color-mix(in srgb, var(--gdt-accent) 50%, #000), 0 7px 14px rgba(0,0,0,.4); transition: transform .1s, box-shadow .1s, background-color .15s; }
.al-btn.lb-accion:active:not([disabled]) { transform: translateY(2px); box-shadow: 0 1px 0 color-mix(in srgb, var(--gdt-accent) 50%, #000); }
.al-btn.lb-accion.sec { box-shadow: 0 3px 0 var(--gdt-border-hi), 0 7px 14px rgba(0,0,0,.4); }
.al-btn.lb-accion[disabled] { box-shadow: none; border: 1px dashed var(--gdt-border-hi); background: none; color: var(--gdt-text); font-size: 1.15rem; }

/* ── El boleto de 7 días: se troquela un ojal por día ── */
.al-racha { list-style: none; margin: 0 0 .85rem; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(0, 1.3fr); filter: drop-shadow(0 5px 10px rgba(0,0,0,.45)); }
.al-dia { --s: 7px; position: relative; display: flex; flex-direction: column; align-items: center; gap: .32rem; min-width: 0; padding: .55rem .2rem .55rem; text-align: center; color: var(--gdt-text);
          background: var(--lb-grano), var(--gdt-surface-3); border-right: 1px dashed var(--gdt-border-hi);
          -webkit-mask: radial-gradient(circle var(--s) at 0 0, #0000 98%, #000) 0 0 / 51% 51% no-repeat, radial-gradient(circle var(--s) at 100% 0, #0000 98%, #000) 100% 0 / 51% 51% no-repeat, radial-gradient(circle var(--s) at 0 100%, #0000 98%, #000) 0 100% / 51% 51% no-repeat, radial-gradient(circle var(--s) at 100% 100%, #0000 98%, #000) 100% 100% / 51% 51% no-repeat;
          mask: radial-gradient(circle var(--s) at 0 0, #0000 98%, #000) 0 0 / 51% 51% no-repeat, radial-gradient(circle var(--s) at 100% 0, #0000 98%, #000) 100% 0 / 51% 51% no-repeat, radial-gradient(circle var(--s) at 0 100%, #0000 98%, #000) 0 100% / 51% 51% no-repeat, radial-gradient(circle var(--s) at 100% 100%, #0000 98%, #000) 100% 100% / 51% 51% no-repeat; }
.al-dia:last-child { border-right: 0; }
.al-dia-t { font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--gdt-text); }
.al-dia small { font-size: .75rem; line-height: 1.15; color: var(--gdt-text); min-height: 1.15em; }
.al-dia-ojo { position: relative; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed var(--gdt-border-hi); }
.al-dia-ojo b { font-family: var(--font-titulo), sans-serif; font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--gdt-text-hi); font-variant-numeric: tabular-nums; }
/* Hecho: el ojal quedó perforado y le cayó tinta alrededor */
.al-dia.hecho { background: linear-gradient(color-mix(in srgb, var(--gdt-accent) 11%, transparent), color-mix(in srgb, var(--gdt-accent) 11%, transparent)), var(--lb-grano), var(--gdt-surface-3); }
.al-dia.hecho .al-dia-ojo { border: 0; background: var(--gdt-bg); box-shadow: inset 0 4px 8px #000, inset 0 0 0 1px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.14), 0 0 0 3px color-mix(in srgb, var(--gdt-accent) 60%, transparent); }
.al-dia.hecho .al-dia-ojo b { color: var(--gdt-accent-hi); }
/* Hoy: el ojal que espera el troquel */
.al-dia.hoy { background: linear-gradient(color-mix(in srgb, var(--gdt-accent) 17%, transparent), color-mix(in srgb, var(--gdt-accent) 17%, transparent)), var(--lb-grano), var(--gdt-surface-3); }
.al-dia.hoy .al-dia-t, .al-dia.hoy small { color: var(--gdt-text-hi); }
.al-dia.hoy .al-dia-ojo { border: 2px solid var(--gdt-accent); background: var(--gdt-accent); box-shadow: 0 0 16px -2px var(--gdt-accent), inset 0 2px 0 rgba(255,255,255,.3); }
.al-dia.hoy .al-dia-ojo b { color: #04140a; }
.al-dia.hoy .al-dia-ojo::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--gdt-accent); opacity: 0; animation: dhLlama 2.4s ease-out infinite; }
@keyframes dhLlama { 0% { opacity: .75; transform: scale(.92); } 70%, 100% { opacity: 0; transform: scale(1.22); } }
/* Día 7: el foil dorado de las legendarias */
.al-dia.d7 { background: linear-gradient(color-mix(in srgb, var(--r-legendaria) 14%, transparent), color-mix(in srgb, var(--r-legendaria) 14%, transparent)), var(--lb-grano), var(--gdt-surface-3); }
.al-dia.d7 small { color: color-mix(in srgb, var(--r-legendaria) 74%, #fff); font-weight: 700; }
.al-dia.d7 .al-dia-t { color: var(--gdt-text-hi); }
.al-dia.d7:not(.hecho) .al-dia-ojo { border: 2px solid var(--r-legendaria); background: repeating-conic-gradient(from 8deg, color-mix(in srgb, var(--r-legendaria) 42%, transparent) 0 8deg, transparent 8deg 24deg), color-mix(in srgb, var(--r-legendaria) 12%, var(--gdt-bg)); box-shadow: 0 0 16px -2px var(--r-legendaria); }
.al-dia.d7:not(.hecho) .al-dia-ojo b { color: #fff; text-shadow: 0 1px 4px #000, 0 0 2px #000; }
/* Recién troquelado: golpe del ojal y el pedacito de papel que cae */
.al-dia.recien .al-dia-ojo { animation: dhTroquel .45s cubic-bezier(.3,1.5,.5,1) both; }
.al-dia.recien::before { content: ""; position: absolute; left: 50%; top: 42%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--gdt-surface-3); box-shadow: 0 0 0 1px var(--gdt-border-hi); opacity: 0; animation: dhPapelito .7s .1s ease-in both; }
@keyframes dhTroquel { from { transform: scale(1.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dhPapelito { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(10px, 70px) rotate(70deg) scale(.7); } }

/* ── Lo que salió: queda a la vista en un hueco de la hoja ── */
.al-revelar { margin-top: .9rem; padding: .8rem; display: flex; gap: .9rem; flex-wrap: wrap; justify-content: center; align-items: flex-start; border-radius: 10px; border: 1px dashed var(--gdt-border-hi); background: color-mix(in srgb, var(--gdt-bg) 70%, var(--gdt-surface-1)); box-shadow: inset 0 3px 10px rgba(0,0,0,.6); }
.al-revelar[hidden] { display: none; }
.al-revelar .al-pts-ganados { flex-basis: 100%; margin: 0; text-align: center; font-family: var(--font-titulo), sans-serif; font-weight: 400; font-size: 1.35rem; letter-spacing: .02em; color: var(--gdt-text-hi); }
.al-revelar .al-card.lb-c { width: 150px; animation: lbEncastre .5s cubic-bezier(.3,1.4,.5,1) both; }
.al-revelar .al-card.lb-c:nth-of-type(2) { animation-delay: .2s; }
.al-revelar .al-card.lb-c:nth-of-type(3) { animation-delay: .4s; }
.al-revelar .al-etq { flex: 1 1 100%; margin-top: 0; }
.al-card.lb-c .al-nueva { top: 6px; z-index: 3; padding: 0 7px; border-radius: 10px; background: var(--gdt-accent); color: #04140a; font-size: .75rem; letter-spacing: .02em; text-transform: none; box-shadow: 0 2px 6px rgba(0,0,0,.6); }
.al-cd-pts { flex-basis: 100%; margin: 0; text-align: center; font-family: var(--font-titulo), sans-serif; font-weight: 400; font-size: 2.4rem; line-height: 1; color: var(--r-legendaria); animation: lbEncastre .5s cubic-bezier(.3,1.4,.5,1) both; }
.al-cd-pts small { display: block; margin-top: .2rem; font-family: var(--font-body), sans-serif; font-size: .8rem; font-weight: 600; color: var(--gdt-text); letter-spacing: 0; }

/* ── La caja del día: lacrada, en su hueco troquelado ── */
.al-cd { display: grid; gap: .7rem; }
.al-cd-txt { min-width: 0; }
.al-cd-txt p { margin: 0 0 .7rem; color: var(--gdt-text); font-size: .9rem; }
.al-cd-txt p b { color: var(--gdt-text-hi); }
.al-cd-dibujo { --o: var(--r-legendaria); position: relative; height: 158px; display: grid; place-items: center; overflow: hidden; isolation: isolate; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--o) 72%, transparent); background: color-mix(in srgb, var(--o) 9%, var(--gdt-bg));
                box-shadow: inset 0 4px 12px rgba(0,0,0,.85), inset 0 0 0 1px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.08), 0 0 18px -5px var(--o); }
.al-cd-dibujo::before { content: ""; position: absolute; z-index: -1; inset: -60% -10%; opacity: .3; background: repeating-conic-gradient(from 8deg at 50% 50%, var(--o) 0 7deg, transparent 7deg 22deg); -webkit-mask: radial-gradient(circle at 50% 50%, #000 18%, transparent 62%); mask: radial-gradient(circle at 50% 50%, #000 18%, transparent 62%); }
.al-cd-dibujo::after { content: ""; position: absolute; z-index: -1; top: -20%; bottom: -20%; left: 0; width: 42%; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--o) 30%, transparent), transparent); animation: lbBarrido 6.5s ease-in-out infinite; }
.al-cd-cuerpo, .al-cd-tapa { grid-area: 1 / 1; width: 170px; height: 114px; border-radius: 7px; }
.al-cd-cuerpo { display: grid; place-items: center; background: color-mix(in srgb, var(--o) 7%, var(--gdt-bg)); box-shadow: inset 0 7px 16px #000, 0 0 0 2px color-mix(in srgb, var(--o) 55%, var(--gdt-surface-3)); }
.al-cd-adentro { display: grid; justify-items: center; line-height: 1; transform: translateX(-14px); }
.al-cd-adentro b { font-family: var(--font-titulo), sans-serif; font-weight: 400; font-size: 2.4rem; color: var(--o); }
.al-cd-adentro small { font-size: .75rem; font-weight: 700; color: var(--gdt-text-hi); }
.al-cd-tapa { position: relative; z-index: 1; transition: transform .6s cubic-bezier(.22,1,.36,1);
              background: linear-gradient(90deg, transparent calc(50% - 9px), color-mix(in srgb, var(--o) 88%, #000) calc(50% - 9px) calc(50% + 9px), transparent calc(50% + 9px)),
                          linear-gradient(transparent calc(50% - 9px), var(--o) calc(50% - 9px) calc(50% + 9px), transparent calc(50% + 9px)),
                          var(--lb-grano),
                          linear-gradient(150deg, color-mix(in srgb, var(--o) 14%, var(--gdt-surface-3)), var(--gdt-surface-2));
              box-shadow: 0 9px 16px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px color-mix(in srgb, var(--o) 45%, transparent); }
.al-cd-lacre { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 49% 51% 50% 50% / 52% 48% 52% 48%; display: grid; place-items: center; font-style: normal; font-family: var(--font-titulo), sans-serif; font-size: 1.6rem; line-height: 1; color: #2a1f07;
               background: radial-gradient(circle at 36% 30%, color-mix(in srgb, var(--o) 55%, #fff), var(--o) 52%, color-mix(in srgb, var(--o) 60%, #000)); box-shadow: 0 3px 7px rgba(0,0,0,.6), inset 0 -2px 4px rgba(0,0,0,.3), inset 0 0 0 3px rgba(0,0,0,.14); }
.al-cd-lacre::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: repeating-conic-gradient(var(--o) 0 7deg, transparent 7deg 14deg); -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%); mask: radial-gradient(circle, transparent 60%, #000 61%); }
.al-cd-dibujo.lista { cursor: pointer; }
.al-cd-dibujo.lista .al-cd-tapa { animation: dhMenea 5.5s ease-in-out infinite; }
.al-cd-dibujo.lista:hover .al-cd-tapa { animation: none; transform: translateY(-6px) rotate(-1.5deg); }
.al-cd-dibujo.abierta { background: color-mix(in srgb, var(--o) 5%, var(--gdt-bg)); }
.al-cd-dibujo.abierta::after { display: none; }
.al-cd-dibujo.abierta .al-cd-tapa { transform: translate(84%, -46%) rotate(16deg); }
@keyframes dhMenea { 0%, 86%, 100% { transform: none; } 89% { transform: rotate(-1.6deg) translateY(-2px); } 92% { transform: rotate(1.6deg) translateY(-2px); } 95% { transform: rotate(-.8deg); } }

/* ── Tus últimas: la cartita nueva, en una tira ── */
.al-grilla.lb-tira { display: flex; flex-wrap: wrap; gap: 9px; }
.lb-tira .al-card.lb-c { flex: none; width: 126px; }
/* Las últimas: una sola tira que se desliza, con el fundido del índice */
.al-grilla.lb-tira.corre { flex-wrap: nowrap; overflow: auto hidden; padding: 4px 28px 6px 2px; margin: -4px -2px 0; scrollbar-width: none; scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); }
.lb-tira.corre::-webkit-scrollbar { display: none; }
.lb-tira.corre .al-card.lb-c { scroll-snap-align: start; }
.lb-tira.corre:focus-visible { outline: 2px solid var(--gdt-accent); outline-offset: 2px; border-radius: 10px; }
.lb-tira-nada { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.lb-tira-vacia { display: flex; gap: 9px; }
.al-pack-nada { display: grid; gap: .6rem; }
.al-pack-nada .al-vacio { padding: 0; }
.al-pack-nada .lb-tira-vacia span { flex: 0 1 126px; width: auto; aspect-ratio: 126 / 165; height: auto; }
.lb-tira-vacia span { width: 64px; height: 84px; border-radius: 8px; border: 1px dashed var(--gdt-border-hi); background: var(--gdt-bg); box-shadow: inset 0 3px 8px rgba(0,0,0,.75); }

/* ── La funda: bolsillos de plástico cosidos a la hoja ── */
.lb-funda { display: flex; flex-wrap: wrap; padding: .4rem 0 0; border-radius: 12px; overflow: hidden; margin-bottom: .75rem;
            background: linear-gradient(115deg, rgba(255,255,255,.06), rgba(255,255,255,.012) 28%, rgba(255,255,255,.045) 46%, rgba(255,255,255,.012) 62%), color-mix(in srgb, var(--gdt-bg) 70%, var(--gdt-surface-1));
            box-shadow: inset 0 0 0 1px var(--gdt-border-hi), inset 0 8px 18px rgba(0,0,0,.4); }
.al-sob { position: relative; flex: 1 1 200px; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: .7rem 0 0; border: 0; background: none; color: var(--gdt-text-hi); font: inherit; text-align: center; }
button.al-sob { cursor: pointer; }
.al-sob + .al-sob::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 0; border-left: 1px dashed var(--gdt-border-hi); }
.al-sob-rot { position: relative; z-index: 1; flex: 1 1 auto; align-self: stretch; display: grid; align-content: start; gap: 1px; margin: -46px 0 0; padding: 54px .6rem .75rem; min-height: 124px;
              background: linear-gradient(115deg, rgba(255,255,255,.14), rgba(255,255,255,.035) 34%, rgba(255,255,255,.1) 52%, rgba(255,255,255,.035) 70%); border-top: 1px solid rgba(255,255,255,.3);
              box-shadow: 0 -4px 8px rgba(0,0,0,.25); }
.al-sob-rot::before { content: ""; position: absolute; left: 6px; right: 6px; top: 4px; border-top: 1px dashed rgba(255,255,255,.28); }
.al-sob-rot b { font-size: .92rem; font-weight: 700; line-height: 1.2; color: var(--gdt-text-hi); overflow-wrap: anywhere; }
.al-sob-rot small { font-size: .75rem; line-height: 1.25; color: var(--gdt-text); overflow-wrap: anywhere; }
.al-sob-toca { margin-top: .15rem; font-weight: 700; color: var(--gdt-accent-hi) !important; }
button.al-sob:focus-visible { outline: 2px solid var(--gdt-accent); outline-offset: -3px; border-radius: 10px; }
button.al-sob[disabled] { cursor: default; opacity: .6; }
.al-sob.vacio .al-sob-rot { background: linear-gradient(115deg, rgba(255,255,255,.07), rgba(255,255,255,.02) 40%, rgba(255,255,255,.05) 60%); }
.al-sob.vacio small { color: var(--gdt-text-mid); }
.al-sob-sil { display: block; width: 110px; height: 156px; border-radius: 6px; border: 1.5px dashed var(--gdt-border-hi); }

/* El sobre chico: los mismos materiales del sobre grande */
.al-sob-dib { --rz: var(--gdt-accent); --rz2: var(--gdt-accent); --crimp: 14px; --banda: 18px; --dente: 8px; position: relative; display: block; flex: none; width: 110px; height: 156px; transition: transform .22s cubic-bezier(.22,1,.36,1); }
.al-sob-dib::after { content: "C"; position: absolute; left: 50%; top: 21%; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-titulo), sans-serif; font-size: 1.6rem; line-height: 1; color: #0b0f14;
                     background: radial-gradient(circle at 36% 30%, color-mix(in srgb, var(--rz) 55%, #fff), var(--rz) 52%, color-mix(in srgb, var(--rz) 62%, #000)); box-shadow: 0 3px 7px rgba(0,0,0,.55); }
.al-sob-dib::before { content: "CARGÁ LA BARRA"; position: absolute; left: 0; right: 0; top: 54%; text-align: center; font-family: var(--font-titulo), sans-serif; font-size: .82rem; letter-spacing: .04em; color: #fff; text-shadow: 0 1px 3px #000; }
.dh-mini .al-sob-dib::before { display: none; }
.al-sob.acc .al-sob-dib, .dh-mini.acc .al-sob-dib { --rz: #f5c542; --rz2: #8a6410; }
button.al-sob:hover .al-sob-dib, button.al-sob:focus-visible .al-sob-dib { transform: translateY(-9px) rotate(-1.5deg); }
.al-sob-dib, .al-sb-papel {
  background:
    linear-gradient(90deg, rgba(255,255,255,.17) 0 1px, transparent 1px) 0 0 / 4px var(--crimp) repeat-x,
    linear-gradient(90deg, rgba(255,255,255,.17) 0 1px, transparent 1px) 0 100% / 4px var(--crimp) repeat-x,
    repeating-linear-gradient(115deg, transparent 0 var(--banda), color-mix(in srgb, var(--rz) 24%, transparent) var(--banda) calc(var(--banda) + 2px)),
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--rz) 52%, #0b0f14), transparent 64%),
    linear-gradient(112deg, transparent 38%, rgba(255,255,255,.1) 46%, transparent 54%),
    linear-gradient(155deg, color-mix(in srgb, var(--rz) 78%, #0b0f14), color-mix(in srgb, var(--rz) 14%, #0b0f14) 52%, color-mix(in srgb, var(--rz2) 82%, #0b0f14));
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 0 0 / var(--dente) 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 0 100% / var(--dente) 51% repeat-x;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 0 0 / var(--dente) 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 0 100% / var(--dente) 51% repeat-x; }
.dh-mini { flex: none; width: 62px; display: grid; place-items: center; transform: rotate(-5deg); filter: drop-shadow(0 4px 8px rgba(0,0,0,.55)); }
.dh-mini .al-sob-dib { width: 56px; height: 80px; --crimp: 9px; --banda: 11px; --dente: 6px; }
.dh-mini .al-sob-dib::after { width: 24px; height: 24px; margin-left: -12px; font-size: .9rem; }

/* ── El pack: un remito ── */
.dh-pack-txt { margin: 0 0 .75rem; max-width: 70ch; }
.al-pack-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: end; gap: .6rem 1.4rem; }
.al-pack-don { display: grid; gap: .2rem; min-width: 0; font-size: .85rem; color: var(--gdt-text); }
.al-pack-don > span { display: flex; align-items: baseline; gap: .4rem; }
.al-pack-don > span::after { content: ""; order: 1; flex: 1 1 auto; border-bottom: 1px dotted var(--gdt-border-hi); }
.al-pack-don b { order: 2; font-family: var(--font-titulo), sans-serif; font-weight: 400; font-size: 1.35rem; line-height: 1.1; color: var(--gdt-text-hi); font-variant-numeric: tabular-nums; }
.al-pack-don .don b { color: var(--r-legendaria); }
.al-pack-sel { display: flex; flex-direction: column; gap: .25rem; min-width: 0; font-size: .8rem; color: var(--gdt-text-mid); }
.al-pack-sel select { width: 100%; min-width: 0; max-width: 100%; text-overflow: ellipsis; min-height: 44px; padding: 0 .6rem; border-radius: var(--gdt-r-sm); border: 1px solid var(--gdt-border-hi); background: var(--gdt-surface-2); color: var(--gdt-text-hi); font: inherit; font-size: 16px; }
.al-pack-sel select:focus-visible { outline: 2px solid var(--gdt-accent); outline-offset: 1px; }
.al-pack-ver { margin-top: .8rem; }
.al-pack-ver > p:first-child { margin: 0 0 .6rem; font-size: .9rem; color: var(--gdt-text); }
.al-pack-ver > p:first-child b { color: var(--gdt-text-hi); }
.al-pack-precio { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin: .8rem 0 .7rem; padding-top: .6rem; background: radial-gradient(circle, var(--gdt-border-hi) 1.6px, transparent 2px) 0 0 / 11px 5px repeat-x; }
.al-pack-precio b { font-family: var(--font-titulo), sans-serif; font-weight: 400; font-size: 2rem; line-height: 1; letter-spacing: .02em; color: var(--gdt-text-hi); }
.al-pack-precio s { font-size: .85rem; color: var(--gdt-text-mid); }
.al-pack-precio .ahorro { padding: .05rem .5rem; border: 1.5px solid var(--gdt-accent-hi); border-radius: 4px; color: var(--gdt-accent-hi); font-size: .85rem; font-weight: 700; transform: rotate(-2.5deg); }
.al-pack-motivo { margin: .5rem 0 0; font-size: .85rem; color: var(--gdt-warn); }
.al-fuentes { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .86rem; color: var(--gdt-text); }
.al-fuentes li { position: relative; padding-left: 1.5rem; }
.al-fuentes li b { color: var(--gdt-text-hi); }
.al-fuentes li::before { content: ""; position: absolute; left: 0; top: .15em; width: 14px; height: 19px; border-radius: 2px; border: 1.5px solid var(--gdt-accent); background: linear-gradient(155deg, color-mix(in srgb, var(--gdt-accent) 45%, transparent), transparent 62%); box-shadow: inset 0 3px 0 -1px color-mix(in srgb, var(--gdt-accent) 60%, transparent); }
.al-fuentes li:last-child::before { border-style: dashed; background: none; box-shadow: none; }

/* Plegables y aviso, impresos sobre la hoja */
.dh .al-probs { margin-top: .7rem; }
.dh .al-probs summary { font-size: .88rem; }
.dh .al-aviso-anim { margin: .3rem 0 .9rem; }
.dh-de .al-probs + .al-nota { margin-top: .5rem; }
.al-sob-info { display: none; }

/* Modo .quieto */
.al-wrap.quieto .al-dia.hoy .al-dia-ojo::after, .al-wrap.quieto .al-dia.recien::before, .al-wrap.quieto .al-cd-dibujo::after { display: none; }
.al-wrap.quieto .al-dia.recien .al-dia-ojo, .al-wrap.quieto .dh-sello.sellando, .al-wrap.quieto .al-revelar .al-card.lb-c, .al-wrap.quieto .al-cd-pts { animation: lbFundido .3s ease both; }
.al-wrap.quieto .al-cd-dibujo.lista .al-cd-tapa { animation: none; }
.al-wrap.quieto .al-cd-tapa, .al-wrap.quieto .lb-ficha, .al-wrap.quieto .al-sob-dib, .al-wrap.quieto .lb-accion { transition: none; }
.al-wrap.quieto button.al-sob:hover .al-sob-dib, .al-wrap.quieto button.al-sob:focus-visible .al-sob-dib { transform: none; }
.al-wrap.quieto .al-cd-dibujo.abierta .al-cd-tapa { transform: translate(84%, -46%) rotate(16deg); }

/* La hoja en una sola columna */
@media (max-width: 1240px) {
  .dh { grid-template-columns: minmax(0, 1fr); }
  .dh-premio, .dh-pack { padding-right: 0; }
  .dh-caja { margin-top: .9rem; padding: .95rem 0 0; background: radial-gradient(circle, var(--gdt-border-hi) 1.6px, transparent 2px) 0 0 / 11px 5px repeat-x; }
  .al-cd { grid-template-columns: 280px minmax(0, 1fr); align-items: center; }
}
@media (max-width: 999px) {
  .lb-fichero-t { display: none; }
  .lb-fichas { order: 1; flex-direction: row; align-items: stretch; gap: 3px; }
  .lb-ficha { flex: 1 1 0; min-width: 0; margin: 0; min-height: 52px; padding: .3rem .4rem .35rem 1.65rem; border: 1px solid var(--gdt-border); border-bottom: 0; border-radius: 8px 8px 0 0; background: linear-gradient(var(--gdt-surface-2), var(--gdt-surface-1)); }
  .lb-ficha.fija { padding-left: .55rem; }
  .lb-ficha-ojo { left: .4rem; }
  button.lb-ficha:hover { margin: 0; }
  .lb-ficha > b { font-size: 1.1rem; }
}
@media (max-width: 720px) {
  .dh-taco { width: 56px; height: 70px; }
  .dh-taco b { font-size: 1.7rem; }
  .dh-sello { width: auto; height: 40px; }
  .dh-sello small, .dh-sello.ok small:first-child { max-width: none; }
  .dh-sello.ok { transform: none; }
  .dh-cab .lb-accion { order: 6; flex: 1 1 100%; }
  .dh-mini { width: 52px; }
  .al-racha { grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(0, 1.18fr); }
  .al-dia { --s: 5px; gap: .25rem; padding: .45rem .05rem; }
  .al-dia-lg { display: none; }
  .al-dia small { min-height: 0; font-size: .75rem; }
  .al-dia:not(.d7) small { display: none; }
  .al-dia-ojo { width: 36px; height: 36px; border-width: 1.5px; }
  .al-dia-ojo b { font-size: 1.15rem; }
  .al-dia-t { font-size: .75rem; letter-spacing: 0; }
  .dh .al-acc .lb-accion { width: 100%; }
  .al-cd { grid-template-columns: minmax(0, 1fr); }
  .al-cd-txt .lb-accion { width: 100%; }
  .lb-tira.al-grilla:not(.corre) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .lb-tira:not(.corre) .al-card.lb-c { width: auto; }
  .lb-tira.corre .al-card.lb-c { width: 108px; }
  .al-revelar { padding: .6rem; gap: .6rem; }
  .al-revelar .al-card.lb-c { width: 132px; }
  .lb-tira-vacia span { width: 48px; height: 64px; }
  .al-pack-nada .lb-tira-vacia span { width: auto; height: auto; }
  .lb-tira-vacia { gap: 6px; }
  .al-sob { flex-basis: 132px; }
  .al-sob.vacio { flex-basis: 92px; }
  button.al-sob ~ .al-sob.vacio { display: none; }
  .al-sob-dib, .al-sob-sil { width: 92px; height: 130px; }
  .al-sob-dib::after { width: 38px; height: 38px; margin-left: -19px; font-size: 1.35rem; }
  .al-sob-rot { min-height: 96px; margin-top: -34px; padding-top: 42px; }
  .al-sob-dib::before { top: 50%; }
  .al-sob-dib::after { top: 15%; }
  .al-pack-form { grid-template-columns: minmax(0, 1fr); }
}
@media (hover: none) {
  button.lb-ficha:hover { margin-right: 12px; }
  button.al-sob:hover .al-sob-dib { transform: none; }
}
@media (hover: none) and (max-width: 999px) { button.lb-ficha:hover { margin-right: 0; } }
/* ══ fin del carpetón ══ */

/* ══ Apertura de sobre estilo FIFA (album-sobre.js) ══════════════════════════
   Solo se animan transform y opacity. El color --rz sale de la rareza: el
   sobre ya brilla con el color de la mejor cartita que trae. */
.al-sb { --rz: #a7b0ba; --rz2: #5b6570; position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column;
         align-items: center; justify-content: center; gap: 1rem; padding: 16px; overflow: hidden; color: var(--gdt-text-hi);
         background: radial-gradient(circle at 18px 48px, var(--gdt-bg) 0 6px, var(--gdt-border-hi) 6.5px 7.5px, rgba(0,0,0,0) 8px) 0 0 / 36px 120px repeat-y, linear-gradient(90deg, rgba(0,0,0,.3), rgba(0,0,0,0) 56px), var(--lb-grano), var(--gdt-surface-1); animation: alSbEntra .25s ease-out both; -webkit-tap-highlight-color: transparent; user-select: none; }
.al-sb.r-rara { --rz: #4da3ff; --rz2: #1d4f8a; }
.al-sb.r-epica { --rz: #b47dff; --rz2: #55308f; }
.al-sb.r-legendaria { --rz: #f5c542; --rz2: #8a6410; }
.al-sb.r-especial { --rz: #ff5fae; --rz2: #0a8f48; }
.al-sb.cerrando { animation: alSbSale .22s ease-in both; }
@keyframes alSbEntra { from { opacity: 0; } to { opacity: 1; } }
@keyframes alSbSale { to { opacity: 0; } }
.al-sb-fondo { position: absolute; inset: -20%; background: radial-gradient(closest-side, color-mix(in srgb, var(--rz) 34%, transparent), transparent 70%);
               opacity: .55; transition: opacity .5s; pointer-events: none; }
.al-sb.abierto .al-sb-fondo { opacity: 1; }
.al-sb-rayos { position: absolute; left: 50%; top: 50%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; pointer-events: none; opacity: 0;
               background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rz) 15%, transparent) 0deg 7deg, transparent 7deg 22deg);
               -webkit-mask: radial-gradient(closest-side, #000 8%, transparent 62%); mask: radial-gradient(closest-side, #000 8%, transparent 62%);
               transition: opacity .6s; animation: alSbGira 22s linear infinite; }
.al-sb.abierto .al-sb-rayos { opacity: 1; }
.al-sb.r-comun .al-sb-rayos { display: none; }
@keyframes alSbGira { to { transform: rotate(360deg); } }
.al-sb-flash { position: absolute; inset: 0; background: radial-gradient(circle, #fff, color-mix(in srgb, var(--rz) 60%, #fff) 30%, transparent 70%);
               opacity: 0; pointer-events: none; }
.al-sb.abriendo .al-sb-flash { animation: alSbFlash 1s ease-out both; }
@keyframes alSbFlash { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: .95; } 100% { opacity: 0; transform: scale(1.6); } }

.al-sb-arriba { position: absolute; top: 12px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.al-sb-cuenta { font-family: var(--font-titulo), sans-serif; font-size: 1.3rem; letter-spacing: .03em; color: var(--gdt-text-hi); font-variant-numeric: tabular-nums; }
.al-sb-son { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gdt-border-hi); background: rgba(0,0,0,.35); color: var(--gdt-text-mid);
             display: grid; place-items: center; cursor: pointer; }
.al-sb-son svg { width: 20px; height: 20px; }
.al-sb-son .on { display: none; }
.al-sb-son[aria-pressed="true"] { color: var(--gdt-text-hi); border-color: var(--rz); }
.al-sb-son[aria-pressed="true"] .on { display: inline; }
.al-sb-son[aria-pressed="true"] .off { display: none; }
.al-sb-son:focus-visible, .al-sb .al-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.al-sb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.al-sb-escena { position: relative; z-index: 1; width: min(300px, 82vw); height: min(420px, 62vh); display: grid; place-items: center; }
.al-sb-escena > * { grid-area: 1 / 1; }

/* El sobre cerrado: foil con los bordes dentados, la tira para arrancar y el lacre */
.al-sb-sobre { position: relative; width: 206px; height: 296px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; cursor: pointer;
               filter: drop-shadow(0 0 26px color-mix(in srgb, var(--rz) 50%, transparent)) drop-shadow(0 18px 30px rgba(0,0,0,.6));
               animation: alSbFlota 1.8s ease-in-out infinite; }
.al-sb.r-legendaria .al-sb-sobre, .al-sb.r-especial .al-sb-sobre { animation: alSbTiembla .5s ease-in-out infinite; }
.al-sb-papel { --crimp: 24px; --banda: 30px; --dente: 12px; position: absolute; inset: 0; overflow: hidden; }
.al-sb-sobre > :not(.al-sb-papel):not(.al-sb-tira) { position: relative; z-index: 1; }
.al-sb-sobre b { font-family: var(--font-titulo), sans-serif; font-weight: 400; font-size: 1.75rem; line-height: 1; letter-spacing: .03em; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.75); }
.al-sb-sobre small { font-size: .8rem; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.al-sb-logo { position: relative; width: 86px; height: 86px; margin-bottom: .35rem; border-radius: 49% 51% 50% 50% / 52% 48% 52% 48%; display: grid; place-items: center; font-family: var(--font-titulo), sans-serif; font-size: 2.9rem; line-height: 1; color: #0b0f14;
              background: radial-gradient(circle at 36% 30%, color-mix(in srgb, var(--rz) 55%, #fff), var(--rz) 52%, color-mix(in srgb, var(--rz) 62%, #000)); box-shadow: 0 5px 12px rgba(0,0,0,.55), inset 0 -3px 6px rgba(0,0,0,.28), inset 0 2px 3px rgba(255,255,255,.35), inset 0 0 0 5px rgba(0,0,0,.13); }
.al-sb-logo::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; background: repeating-conic-gradient(var(--rz) 0 6deg, transparent 6deg 12deg); -webkit-mask: radial-gradient(circle, transparent 61%, #000 62%); mask: radial-gradient(circle, transparent 61%, #000 62%); }
.al-sb-tira { position: absolute; z-index: 2; inset: 0 0 auto 0; height: 34px; border-bottom: 2px dashed rgba(255,255,255,.5);
              background: linear-gradient(90deg, rgba(255,255,255,.2) 0 1px, transparent 1px) 0 0 / 4px 100%, color-mix(in srgb, var(--rz) 62%, #0b0f14);
              -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 0 0 / 12px 100%; mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 0 0 / 12px 100%; }
.al-sb.abriendo .al-sb-tira { animation: alSbTira .55s cubic-bezier(.3,.7,.4,1) both; }
@keyframes alSbTira { to { transform: translate(26px, -74px) rotate(11deg); opacity: 0; } }
.al-sb-sobre-brillo { position: absolute; inset: -40% -60%; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.28) 50%, transparent 60%);
                      animation: alSbBrillo 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes alSbFlota { 50% { transform: translateY(-8px); } }
@keyframes alSbTiembla { 0%, 100% { transform: translateY(-4px) rotate(0); } 25% { transform: translateY(-6px) rotate(-1.6deg); } 75% { transform: translateY(-6px) rotate(1.6deg); } }
@keyframes alSbBrillo { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
.al-sb.abriendo .al-sb-sobre { animation: alSbAbre .85s cubic-bezier(.5,0,.75,0) both; }
@keyframes alSbAbre { 40% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.al-sb.abierto .al-sb-sobre { display: none; }

/* Pasos: escudo → posición → carta */
.al-sb-paso { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; text-align: center;
              opacity: 0; transform: scale(.7); pointer-events: none; transition: opacity .5s ease, transform .8s cubic-bezier(.2,1.25,.4,1); }
.al-sb-paso.ve { opacity: 1; transform: none; }
.al-sb-escudo { width: min(150px, 42vw); height: min(150px, 42vw); object-fit: contain; filter: drop-shadow(0 8px 28px color-mix(in srgb, var(--rz) 55%, transparent)); }
.al-sb-escgen { display: grid; place-items: center; background: linear-gradient(160deg, color-mix(in srgb, var(--rz) 60%, #1a212b), #1a212b);
                clip-path: polygon(50% 0, 100% 14%, 92% 70%, 50% 100%, 8% 70%, 0 14%); }
.al-sb-escgen span { font-size: 3rem; font-weight: 900; color: #fff; }
.al-sb-club { font-family: var(--font-titulo), sans-serif; font-size: 1.9rem; line-height: 1.05; letter-spacing: .02em; max-width: 100%; overflow-wrap: anywhere; }
.al-sb-poscod { font-family: var(--font-titulo), sans-serif; font-size: clamp(4.4rem, 22vw, 7rem); line-height: 1; font-weight: 400; color: var(--rz); letter-spacing: .02em;
                text-shadow: 0 0 30px color-mix(in srgb, var(--rz) 55%, transparent); }
.al-sb-posnom { font-size: 1.2rem; font-weight: 700; }
.al-sb-temp { font-size: .85rem; color: var(--gdt-text); }
.al-sb-p-carta { transform: perspective(800px) rotateY(80deg) scale(.85); transition: opacity .5s ease, transform 1.2s cubic-bezier(.2,1.1,.3,1); }
.al-sb-p-carta.ve { transform: none; pointer-events: auto; }

/* Carta grande: la misma cartita del carpetón, de cuerpo entero */
.al-card.lb-c.grande { width: min(250px, 68vw); border-width: 2px; border-radius: 14px; box-shadow: 0 0 40px color-mix(in srgb, var(--rc) 45%, transparent), 0 20px 50px rgba(0,0,0,.6); }
.al-card.lb-c.grande .al-card-top { padding: 9px 12px 34px; }
.al-card.lb-c.grande .al-ovr { font-size: 3.3rem; }
.al-card.lb-c.grande .al-pos { font-size: 1.05rem; }
.al-card.lb-c.grande .al-foto { font-size: 4.4rem; background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--rc) 34%, transparent), transparent 70%), color-mix(in srgb, var(--rc) 12%, var(--gdt-surface-2)); }
.al-card.lb-c.grande .al-nom { padding: .5rem .75rem 0; font-size: 1.2rem; }
.al-card.lb-c.grande .al-rz { padding: .05rem .75rem .2rem; font-size: .88rem; }
.al-card.lb-c.grande .al-club, .al-card.lb-c.grande .al-temp { display: block; position: relative; z-index: 2; max-width: none; margin: 0; padding: 0 .75rem; font-size: .8rem; color: var(--gdt-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-card.lb-c.grande .al-club { order: 4; }
.al-card.lb-c.grande .al-temp { order: 5; padding-bottom: .6rem; }
.al-card.lb-c.grande .al-card-esc { position: absolute; z-index: 3; top: 2.6rem; right: .65rem; width: 42px; height: 42px; filter: drop-shadow(0 2px 5px rgba(0,0,0,.8)); }
.al-card.grande .al-nueva { display: none; }      /* lo dice el texto de abajo */
.al-card.lb-c.grande::after { inset: -30% -80%; width: auto; opacity: 1; transform: translateX(-70%);
                              background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.35) 50%, transparent 58%); }
.al-sb-p-carta.ve .al-card.grande::after { animation: alSbCruza 1.4s .8s ease-out both; }
@keyframes alSbCruza { to { transform: translateX(70%); } }

/* Lo que se destapa aparece en un hueco troquelado, como el de las cartitas que faltan */
.al-sb-p-esc, .al-sb-p-pos { width: min(250px, 68vw); min-height: min(340px, 54vh); padding: 1rem .8rem; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--rz) 62%, transparent);
    background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rz) 17%, transparent), transparent 70%), color-mix(in srgb, var(--rz) 6%, var(--gdt-bg));
    box-shadow: inset 0 5px 16px rgba(0,0,0,.85), inset 0 0 0 1px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.08), 0 0 26px -6px var(--rz); }

.al-sb-chispas { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.al-sb-chispas i { position: absolute; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--rz); opacity: 0;
                   box-shadow: 0 0 10px var(--rz); }
.al-sb-p-carta.ve .al-sb-chispas i { animation: alSbChispa 1.3s calc(var(--d) + .5s) cubic-bezier(.1,.8,.3,1) both; }
@keyframes alSbChispa { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.3); } }

.al-sb-msg { position: relative; z-index: 1; min-height: 3.2em; margin: 0; text-align: center; font-size: 1rem; color: var(--gdt-text); max-width: 90vw; }
.al-sb-msg b { color: var(--gdt-text-hi); }
.al-sb-toca { display: inline-block; font-weight: 700; color: var(--gdt-text-hi); animation: alSbLate 1.6s ease-in-out infinite; }
@keyframes alSbLate { 50% { opacity: .45; } }
.al-sb-extra { display: block; margin-top: .3rem; font-size: .9rem; font-weight: 700; color: var(--gdt-text); }
.al-sb-extra.nueva { color: var(--gdt-accent-hi); }
.al-sb-pie { position: relative; z-index: 1; display: flex; gap: .6rem; }
.al-sb-pie .al-btn { min-width: 140px; }
.al-sb-pie [hidden] { display: none; }

/* Reducir movimiento: los mismos pasos y tiempos, pero solo fundidos (sin
   giros, temblores, rayos que giran, destello ni chispas) */
.al-sb.quieto, .al-sb.quieto * { animation: none !important; }
.al-sb.quieto .al-sb-paso, .al-sb.quieto .al-sb-p-carta { transform: none !important; transition: opacity .45s ease !important; }
.al-sb.quieto .al-sb-flash, .al-sb.quieto .al-sb-chispas { display: none; }
.al-sb.quieto .al-sb-sobre { transition: opacity .35s ease; }
.al-sb.quieto.abriendo .al-sb-sobre { opacity: 0; }
.al-sb-der { display: flex; align-items: center; gap: 8px; }
.al-sb-anim { min-height: 36px; padding: 0 .8rem; border-radius: var(--gdt-r-pill); border: 1px solid var(--gdt-border-hi);
              background: rgba(0,0,0,.35); color: var(--gdt-text); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.al-sb-anim[aria-pressed="true"] { color: var(--gdt-text-hi); border-color: var(--rz); }
.al-sb-anim:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-height: 620px) {
  .al-sb-escena { height: 58vh; }
  .al-card.lb-c.grande { width: min(190px, 56vw); }
  .al-sb-p-esc, .al-sb-p-pos { min-height: 0; }
}

/* ── Adiviná el jugador (VIP) dentro del sobre ── */
.al-sb.jugando .al-sb-escena { height: min(300px, 40vh); }
.al-sb.jugando .al-sb-p-esc, .al-sb.jugando .al-sb-p-pos { min-height: 0; padding-block: .7rem; }
.al-sb.jugando .al-sb-escudo { width: min(130px, 34vw); height: min(130px, 34vw); }
.al-sb.jugando .al-sb-poscod { font-size: clamp(3rem, 15vw, 4.6rem); }
.al-sb-preg { color: var(--gdt-text-hi); font-size: 1.05rem; }
.al-sb-preg.bien { color: var(--gdt-accent-hi); }
.al-sb-juego { position: relative; z-index: 1; width: min(520px, 100%); display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.al-sb-juego[hidden] { display: none; }
.al-sb-ops { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.al-sb-op { min-height: 52px; padding: .5rem .7rem; border-radius: var(--gdt-r-md); border: 2px solid var(--gdt-border-hi);
            background: rgba(14,18,24,.92); color: var(--gdt-text-hi); font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
            overflow-wrap: anywhere; transition: border-color .2s, background .2s, opacity .2s; }
.al-sb-op:hover:not([disabled]) { border-color: var(--rz); }
.al-sb-op:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.al-sb-op[disabled] { cursor: default; }
.al-sb-op.elegida { border-color: var(--gdt-text-hi); }
.al-sb-op.bien { border-color: var(--gdt-accent); background: color-mix(in srgb, var(--gdt-accent) 22%, #0e1218); color: #fff; }
.al-sb-op.mal { border-color: var(--gdt-danger); background: color-mix(in srgb, var(--gdt-danger) 16%, #0e1218); color: var(--gdt-text);
                text-decoration: line-through; opacity: .75; }
.al-sb-nojugar { min-height: 40px; padding: 0 1rem; border: 0; background: none; color: var(--gdt-text-mid); font: inherit; font-size: .85rem;
                 text-decoration: underline; cursor: pointer; }
.al-sb-nojugar:hover { color: var(--gdt-text-hi); }
.al-sb-nojugar:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
@media (max-width: 380px) { .al-sb-ops { grid-template-columns: 1fr; } .al-sb-op { min-height: 46px; } }

/* ── Sobres (bloque 11) ── */
/* Envoltorio de accionista: SOLO se ve distinto (mismas cartitas y probabilidades) */
.al-sb-env { position: relative; z-index: 1; font-style: normal; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
             padding: .15rem .55rem; border-radius: var(--gdt-r-pill); background: rgba(0,0,0,.35); color: var(--gdt-text-hi); }
.al-sb.env-acc .al-sb-sobre { --rz: #f5c542; --rz2: #8a6410; }
.al-sb.env-acc .al-sb-env { background: #f5c542; color: #2a1f07; }

/* Envoltorio VIP (bloque 18, E3): cartulina negra con guilloché de billete en tinta holográfica y sello
   tornasol. Mismo papel, misma tira y mismo sello que el sobre de siempre; el halo sigue siendo el de la
   rareza. SOLO se ve distinto. La firma (barrido + sello) dura .65 s = FIRMA_MS de album-sobre.js. */
.al-sb.env-vip .al-sb-papel, .al-sob.env-vip .al-sob-dib, .dh-mini.env-vip .al-sob-dib {
  background:
    linear-gradient(90deg, rgba(255,255,255,.14) 0 1px, transparent 1px) 0 0 / 4px var(--crimp) repeat-x,
    linear-gradient(90deg, rgba(255,255,255,.14) 0 1px, transparent 1px) 0 100% / 4px var(--crimp) repeat-x,
    repeating-linear-gradient(115deg, transparent 0 var(--banda), rgba(156,196,255,.07) var(--banda) calc(var(--banda) + 2px)),
    var(--gdt-env-vip-arte); }
.al-sob.env-vip .al-sob-dib::after, .dh-mini.env-vip .al-sob-dib::after, .al-sb.env-vip .al-sb-logo { background: var(--gdt-env-vip-sello); }
.al-sb.env-vip .al-sb-logo::before { background: repeating-conic-gradient(#e3ebff 0 6deg, transparent 6deg 12deg); animation: alSbVipAro 14s linear infinite; }
.al-sb.env-vip .al-sb-logo::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--gdt-holo-3); opacity: 0; pointer-events: none; }
.al-sb.env-vip .al-sb-tira { border-bottom-color: color-mix(in srgb, var(--gdt-holo-3) 80%, transparent);
  background: linear-gradient(90deg, rgba(255,255,255,.14) 0 1px, transparent 1px) 0 0 / 4px 100%, linear-gradient(90deg, #1b1d26, #2a2d39 50%, #1b1d26); }
.al-sb.env-vip .al-sb-env { color: #0b0f14; background: linear-gradient(100deg, var(--gdt-holo-1), var(--gdt-holo-2) 45%, var(--gdt-holo-3) 75%, var(--gdt-holo-4)); padding-inline: .9rem; letter-spacing: .22em; }
.al-sb.env-vip .al-sb-sobre { filter: drop-shadow(-1px 0 0 color-mix(in srgb, var(--gdt-holo-1) 70%, transparent)) drop-shadow(1px 0 0 color-mix(in srgb, var(--gdt-holo-4) 70%, transparent)) drop-shadow(0 0 26px color-mix(in srgb, var(--rz) 50%, transparent)) drop-shadow(0 18px 30px rgba(0,0,0,.6)); }
.al-sb.env-vip .al-sb-sobre-brillo { background: linear-gradient(105deg, transparent 36%, rgba(143,240,228,.14) 43%, rgba(156,196,255,.2) 48%, rgba(255,179,218,.16) 54%, transparent 62%); animation-duration: 3.2s; }
/* La firma: se prende la tinta, un barrido de abajo arriba y el sello da la vuelta. Recién después se abre como todos */
.al-sb.env-vip .al-sb-papel::before { content: ""; position: absolute; inset: 0; background: var(--gdt-env-vip-tinta); opacity: 0; pointer-events: none; }
.al-sb.env-vip .al-sb-papel::after { content: ""; position: absolute; inset: -35% -10%; opacity: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 32%, rgba(143,240,228,.5) 43%, rgba(201,166,255,.72) 50%, rgba(255,179,218,.5) 57%, transparent 68%); }
.al-sb.env-vip.abriendo .al-sb-papel::before { animation: alSbVipTinta .65s ease-in-out both; }
.al-sb.env-vip.abriendo .al-sb-papel::after { animation: alSbVipBarre .65s cubic-bezier(.4,0,.5,1) both; }
.al-sb.env-vip.abriendo .al-sb-logo { animation: alSbVipSello .65s cubic-bezier(.3,.7,.3,1) both; }
.al-sb.env-vip.abriendo .al-sb-logo::before { animation: alSbVipVuelta .65s cubic-bezier(.3,.1,.3,1) both; }
.al-sb.env-vip.abriendo .al-sb-logo::after { animation: alSbVipOnda .55s .1s ease-out both; }
.al-sb.env-vip.abriendo .al-sb-sobre { animation: alSbVipFirma .65s ease-in-out both, alSbAbre .85s .65s cubic-bezier(.5,0,.75,0) forwards; }
.al-sb.env-vip.abriendo .al-sb-tira { animation: alSbTira .55s .65s cubic-bezier(.3,.7,.4,1) both; }
.al-sb.env-vip .al-sb-flash { background: radial-gradient(circle closest-side, #fff, var(--gdt-holo-2) 30%, color-mix(in srgb, var(--gdt-holo-4) 45%, transparent) 62%, transparent); }
.al-sb.env-vip.abriendo .al-sb-flash { animation: alSbFlash 1s .65s ease-out both; }
@keyframes alSbVipAro { to { transform: rotate(360deg); } }
@keyframes alSbVipVuelta { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes alSbVipTinta { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: .85; } }
@keyframes alSbVipBarre { 0% { opacity: 1; transform: translateY(62%); } 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(-62%); } }
@keyframes alSbVipSello { 45% { transform: scale(1.13); } 100% { transform: scale(1.04); } }
@keyframes alSbVipOnda { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.1); } }
@keyframes alSbVipFirma { 0% { transform: translateY(-4px); } 35% { transform: translateY(-6px) rotate(-1.8deg) scale(1.03); } 72% { transform: translateY(-6px) rotate(1.8deg) scale(1.05); } 100% { transform: scale(1.04); } }
/* Lo que sale después no se alarga: mismo reveal, con el brillo y las chispas tornasol */
.al-sb.env-vip .al-card.lb-c.grande::after { background: linear-gradient(105deg, transparent 38%, rgba(143,240,228,.3) 45%, rgba(201,166,255,.42) 50%, rgba(255,179,218,.3) 55%, transparent 62%); }
.al-sb.env-vip .al-sb-chispas i:nth-child(3n) { background: var(--gdt-holo-1); }
.al-sb.env-vip .al-sb-chispas i:nth-child(3n+1) { background: var(--gdt-holo-3); }
/* Quieto: el `*` de .quieto no alcanza a los ::before/::after */
.al-sb.quieto.env-vip .al-sb-logo::before, .al-sb.quieto.env-vip .al-sb-logo::after, .al-sb.quieto.env-vip .al-sb-papel::before, .al-sb.quieto.env-vip .al-sb-papel::after { animation: none !important; }

.al-gracias { display: inline-flex; align-items: center; gap: .45rem; margin: .35rem 0 0; padding: .35rem .8rem; border-radius: var(--gdt-r-pill);
              background: color-mix(in srgb, var(--r-legendaria) 16%, transparent); border: 1px solid color-mix(in srgb, var(--r-legendaria) 55%, transparent);
              color: var(--gdt-text-hi); font-size: .85rem; font-weight: 700; }
.al-gracias[hidden] { display: none; }
.al-gracias a { color: inherit; text-underline-offset: 2px; }

/* ══ Vitrina, «Qué me falta» y valor de la colección (bloque 18, E2): el mismo carpetón ══ */
.lb-llave { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb.aparte .al-temp-b[aria-pressed="true"] { margin-right: 12px; background: linear-gradient(90deg, var(--gdt-surface-2), var(--gdt-surface-1)); }

/* El botón de la barra: una etiqueta con filo de foil */
.lb-barra { flex-basis: 470px; }
.lb-falta { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 .85rem; border-radius: var(--gdt-r-sm); font: inherit; font-weight: 700; font-size: .88rem; white-space: nowrap; cursor: pointer; color: var(--gdt-text-hi);
            border: 1px solid color-mix(in srgb, var(--r-legendaria) 60%, var(--gdt-border-hi)); background: linear-gradient(115deg, color-mix(in srgb, var(--r-legendaria) 16%, var(--gdt-surface-2)), var(--gdt-surface-2) 55%, color-mix(in srgb, var(--r-legendaria) 9%, var(--gdt-surface-2))); }
.lb-falta[hidden] { display: none; }
.lb-falta:hover { border-color: var(--r-legendaria); }
.lb-falta[aria-pressed="true"] { background: color-mix(in srgb, var(--r-legendaria) 26%, var(--gdt-surface-2)); border-color: var(--r-legendaria); }
.lb-falta:focus-visible { outline: 2px solid var(--gdt-accent); outline-offset: 1px; }

/* La vitrina en el estante: una ficha de plástico con el abanico adentro */
@media (min-width: 1000px) {
  .lb-estante:has(.lb-vit:not([hidden])) { overflow: hidden auto; scrollbar-width: thin; scrollbar-color: var(--gdt-border-hi) transparent; }
  .lb-estante:has(.lb-vit:not([hidden])) .al-temps { min-height: 176px; }
}
.lb-libro { scroll-margin-top: calc(var(--gdt-nav-h) + 8px); }
.lb-vit { flex: none; margin-right: 12px; }
.lb-vit[hidden] { display: none; }
.lb-vit-b { position: relative; width: 100%; display: block; padding: .42rem .5rem .1rem; border-radius: 10px; font: inherit; color: var(--gdt-text-hi); text-align: left; cursor: pointer; overflow: hidden;
            border: 1px solid var(--gdt-border-hi); background: linear-gradient(115deg, rgba(255,255,255,.07), rgba(255,255,255,.012) 34%, rgba(255,255,255,.05) 52%, rgba(255,255,255,.012) 70%), var(--lb-grano), color-mix(in srgb, var(--gdt-bg) 62%, var(--gdt-surface-1)); box-shadow: inset 0 6px 12px rgba(0,0,0,.35); transition: border-color .15s; }
.lb-vit-b:hover, .lb-vit-b[aria-pressed="true"] { border-color: var(--r-legendaria); }
.lb-vit-b:focus-visible { outline: 2px solid var(--gdt-accent); outline-offset: 1px; }
.lb-vit-cab { display: flex; align-items: baseline; justify-content: space-between; gap: .3rem; }
.lb-vit-cab b { font-family: var(--font-titulo), sans-serif; font-weight: 400; font-size: 1.12rem; line-height: 1.1; letter-spacing: .03em; }
.lb-vit-cab small { font-size: .75rem; font-weight: 600; color: var(--gdt-text); white-space: nowrap; }
.lb-vit-b.cerrada { display: flex; align-items: center; gap: .4rem; padding: .5rem .55rem; color: var(--gdt-text); }
.lb-abanico { position: relative; display: block; height: 78px; margin-top: .3rem; }
.lb-abanico .gdt-vc-c { position: absolute; left: 50%; top: 5px; width: 50px; margin-left: -25px; transform-origin: 50% 100%; pointer-events: none; }
.lb-abanico .gdt-vc-c:nth-child(1) { transform: translate(-37px, 8px) rotate(-9deg); z-index: 1; }
.lb-abanico .gdt-vc-c:nth-child(2) { transform: translate(-19px, 3px) rotate(-4.5deg); z-index: 2; }
.lb-abanico .gdt-vc-c:nth-child(3) { transform: none; z-index: 3; }
.lb-abanico .gdt-vc-c:nth-child(4) { transform: translate(19px, 3px) rotate(4.5deg); z-index: 4; }
.lb-abanico .gdt-vc-c:nth-child(5) { transform: translate(37px, 8px) rotate(9deg); z-index: 5; }
.lb-abanico .gdt-vc-nom, .lb-abanico .gdt-vc-rz, .lb-abanico .gdt-vc-t, .lb-abanico .gdt-vc-top i { display: none; }
.lb-abanico .gdt-vc-top { padding: 1px 3px 8px; }
.lb-abanico .gdt-vc-top b { font-size: .95rem; }
.lb-abanico .gdt-vc-c.libre { height: 70px; background: rgba(0,0,0,.62); border: 1px dashed var(--gdt-border-hi); box-shadow: none; }

/* El valor en .lb-colec */
.lb-valor { display: grid; gap: .28rem; padding-top: .45rem; border-top: 1px dashed var(--gdt-border-hi); }
.lb-valor[hidden] { display: none; }
.lb-valor-t { font-size: .75rem; line-height: 1.2; font-weight: 600; color: var(--gdt-text); }
.lb-valor-n { font-family: var(--font-titulo), sans-serif; font-weight: 400; font-size: 1.75rem; line-height: 1; letter-spacing: .02em; color: var(--r-legendaria); font-variant-numeric: tabular-nums; }
.lb-valor-n span { font-size: .95rem; }
.lb-valor-barra { display: flex; gap: 1px; height: 7px; border-radius: 2px; overflow: hidden; background: var(--gdt-surface-3); }
.lb-valor-barra i { flex: 1 1 0; min-width: 3px; background: var(--r-comun); }
.lb-valor-barra i.vacia { background: none; }
.lb-valor-barra .r-rara { background: var(--r-rara); } .lb-valor-barra .r-epica { background: var(--r-epica); } .lb-valor-barra .r-legendaria { background: var(--r-legendaria); } .lb-valor-barra .r-especial { background: var(--r-especial); }
.lb-valor-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.lb-valor-lista li { --rc: var(--r-comun); display: flex; justify-content: space-between; gap: .3rem; align-items: baseline; font-size: .75rem; line-height: 1.3; color: var(--gdt-text); }
.lb-valor-lista li.r-rara { --rc: var(--r-rara); } .lb-valor-lista li.r-epica { --rc: var(--r-epica); } .lb-valor-lista li.r-legendaria { --rc: var(--r-legendaria); } .lb-valor-lista li.r-especial { --rc: var(--r-especial); }
.lb-valor-lista span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 2px; background: var(--rc); }
.lb-valor-lista b { color: var(--gdt-text-hi); font-variant-numeric: tabular-nums; }
.lb-valor-pct { margin: 0; font-size: .75rem; line-height: 1.25; color: var(--gdt-text); }
.lb-valor-pct b { color: var(--gdt-text-hi); }
.lb-valor-b { display: flex; align-items: center; gap: .35rem; width: 100%; min-height: 40px; padding: .2rem 0; border: 0; background: none; color: var(--gdt-text); font: inherit; font-size: .75rem; font-weight: 600; line-height: 1.2; text-align: left; cursor: pointer; }
.lb-valor-b:hover { color: var(--gdt-text-hi); }
.lb-valor-b:focus-visible { outline: 2px solid var(--gdt-accent); outline-offset: 1px; border-radius: 4px; }

/* Cabecera de las hojas aparte */
.lb-ico { width: 64px; height: 64px; border-radius: 50%; color: var(--r-legendaria); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--r-legendaria) 70%, transparent); background: color-mix(in srgb, var(--r-legendaria) 8%, var(--gdt-surface-1)); }
.lb-ico svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lb-cerrar { align-self: flex-start; }
.lb-cab-aparte { margin-top: .55rem; }
.cf-hoja .al-pag-prem b, .vt-hoja .al-pag-prem b { font-size: 1.55rem; }
.cf-sec { margin-top: .8rem; padding-top: .55rem; border-top: 1px dashed color-mix(in srgb, var(--gdt-border-hi) 85%, transparent); }
.cf-sec .al-cab { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-bottom: .45rem; }
.cf-sec .al-cab span { font-size: .78rem; color: var(--gdt-text-mid); }

/* Las 10 páginas: una planilla con filas troqueladas */
.cf-cerca { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(5, auto); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 1.1rem; }
.cf-fila { position: relative; width: 100%; display: flex; align-items: center; gap: .55rem; min-height: 52px; padding: .3rem .45rem .3rem .2rem; border: 0; background: none; color: var(--gdt-text-hi); font: inherit; text-align: left; border-bottom: 1px dashed var(--gdt-border-hi); }
button.cf-fila { cursor: pointer; transition: background-color .14s; border-radius: 6px 6px 0 0; }
button.cf-fila:hover { background: color-mix(in srgb, var(--gdt-accent) 9%, transparent); }
button.cf-fila:focus-visible { outline: 2px solid var(--gdt-accent); outline-offset: -2px; }
.cf-n { flex: none; width: 1.35rem; text-align: right; font-family: var(--font-titulo), sans-serif; font-size: 1.15rem; color: var(--gdt-text-mid); font-variant-numeric: tabular-nums; }
.cf-esc { flex: none; width: 34px; height: 34px; display: grid; place-items: center; font-size: .75rem; font-weight: 800; color: var(--gdt-text-hi); }
.cf-esc img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cf-tx { flex: 1 1 auto; min-width: 0; display: grid; gap: 4px; }
.cf-tx b { font-size: .88rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.cf-tx .lb-muescas { max-width: 100%; }
.cf-tx .lb-muescas i { flex: 0 1 14px; width: 14px; height: 6px; }
.cf-prem { flex: none; display: grid; justify-items: end; gap: 1px; line-height: 1.1; white-space: nowrap; }
.cf-prem small { font-size: .75rem; font-weight: 600; color: var(--gdt-text); }
.cf-prem b { font-family: var(--font-titulo), sans-serif; font-weight: 400; font-size: 1.12rem; letter-spacing: .02em; color: var(--r-legendaria); }
.cf-ir { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--gdt-text-mid); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Filtros de rareza: chips con su color */
.cf-filtros { display: flex; flex-wrap: wrap; gap: .45rem .6rem; align-items: flex-end; margin-bottom: .55rem; }
.cf-filtros .al-f { flex: 0 1 236px; }
.cf-chips { flex: 1 1 560px; display: flex; flex-wrap: wrap; gap: 5px; align-self: center; }
.cf-chip { --rc: var(--gdt-accent); display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 .65rem; border-radius: 18px; border: 1px solid var(--gdt-border-hi); background: var(--gdt-surface-2); color: var(--gdt-text-hi); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.cf-chip small { font-size: .75rem; font-weight: 600; color: var(--gdt-text); font-variant-numeric: tabular-nums; }
.cf-chip i { width: 9px; height: 9px; border-radius: 2px; background: var(--rc); }
.cf-chip.r-comun { --rc: var(--r-comun); } .cf-chip.r-rara { --rc: var(--r-rara); } .cf-chip.r-epica { --rc: var(--r-epica); } .cf-chip.r-legendaria { --rc: var(--r-legendaria); } .cf-chip.r-especial { --rc: var(--r-especial); }
.cf-chip:hover:not([disabled]) { border-color: var(--rc); }
.cf-chip[aria-pressed="true"] { border-color: var(--rc); box-shadow: inset 0 0 0 1px var(--rc); background: color-mix(in srgb, var(--rc) 18%, var(--gdt-surface-2)); }
.cf-chip:focus-visible { outline: 2px solid var(--gdt-accent); outline-offset: 1px; }
.cf-chip[disabled] { cursor: default; color: var(--gdt-text-mid); opacity: .75; }
.cf-chip[disabled] i { opacity: .4; }
.cf-hay { margin: 0 0 .4rem; font-size: .85rem; font-weight: 600; color: var(--gdt-text); }
.cf-mas { display: flex; align-items: center; justify-content: center; gap: .7rem; margin-top: .8rem; }
.cf-mas small { font-size: .78rem; color: var(--gdt-text-mid); }

/* La hoja de la vitrina: cinco bolsillos de plástico */
.vt-funda { flex-wrap: nowrap; }
.vt-bol { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: .75rem .4rem 0; }
.vt-bol + .vt-bol::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 0; border-left: 1px dashed var(--gdt-border-hi); }
.vt-bol .al-card.lb-c { width: min(100%, 136px); flex: 1 1 auto; }
.vt-hueco { display: block; flex: 1 1 auto; width: min(100%, 136px); min-height: 120px; border: 1px dashed var(--gdt-border-hi); border-radius: 10px; background: rgba(0,0,0,.28); }
.vt-lab { flex: none; align-self: stretch; margin: .4rem -.4rem 0; min-height: 46px; padding: .3rem; display: flex; align-items: center; justify-content: center; gap: 3px; font-size: .78rem; color: var(--gdt-text); text-align: center;
          border-top: 1px dashed rgba(255,255,255,.28); background: linear-gradient(115deg, rgba(255,255,255,.1), rgba(255,255,255,.025) 40%, rgba(255,255,255,.07) 60%); }
.vt-b { min-width: 32px; min-height: 34px; padding: 0 .35rem; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--gdt-border-hi); background: var(--gdt-surface-2); color: var(--gdt-text-hi); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.vt-b svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.vt-b:hover:not([disabled]) { border-color: var(--gdt-accent); }
.vt-b:focus-visible { outline: 2px solid var(--gdt-accent); outline-offset: 1px; }
.vt-b[disabled] { opacity: .4; cursor: default; }
.vt-sacar { flex: 1 1 auto; min-width: 0; }
.vt-nota { margin: .4rem 0; font-size: .82rem; line-height: 1.4; color: var(--gdt-text-mid); }
.vt-q { flex: 1 1 240px !important; }
/* La que ya está en la vitrina: troquelada con su estrella */
.al-card.lb-c.en-vitrina { outline: 2px solid var(--r-legendaria); outline-offset: 2px; }
.al-card.lb-c.en-vitrina .al-card-top::after { content: ""; position: absolute; right: 5px; top: 26px; width: 22px; height: 22px; border-radius: 50%; background: var(--r-legendaria) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23201500' d='M12 4l2.5 5.2 5.7.8-4.1 4 1 5.7-5.1-2.7-5.1 2.7 1-5.7-4.1-4 5.7-.8z'/%3E%3C/svg%3E") center / 15px no-repeat; box-shadow: 0 1px 4px rgba(0,0,0,.6); }

/* Sin VIP: la maqueta */
.mu-hoja .vip-candado { margin: .3rem 0 .5rem; }
.mu-ejemplo { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: .5rem 1.4rem; margin-top: .6rem; padding: .7rem .8rem .8rem; border-radius: 10px; border: 1px dashed var(--gdt-border-hi); pointer-events: none; user-select: none; }
.mu-ejemplo .al-cab { margin-bottom: .3rem; }
.mu-ejemplo .al-card.lb-c { flex: 0 1 112px !important; width: auto !important; min-width: 0; }
.mu-ejemplo .al-grilla { flex-wrap: nowrap !important; }
.cf-cerca.solo1 { grid-template-rows: none; grid-auto-flow: row; }
.mu-valor { display: grid; gap: .28rem; margin-top: .6rem; max-width: 220px; }
.mu-sello { position: absolute; z-index: 2; right: .6rem; top: .55rem; padding: .1rem .55rem; border: 2px solid var(--gdt-warn); border-radius: 6px; font-family: var(--font-titulo), sans-serif; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gdt-warn); background: var(--gdt-surface-1); transform: rotate(4deg); }

@media (max-width: 1250px) {
  .cf-cerca { grid-template-rows: none; grid-auto-flow: row; }
}
@media (max-width: 999px) {
  .lb-vit { order: 0; margin: 0 0 .5rem; }
  .lb-vit-b { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .6rem; padding: .35rem .6rem; min-height: 44px; }
  .lb-vit-b.cerrada { display: flex; }
  .lb-vit-cab { flex-direction: column; gap: 0; }
  .lb-abanico { display: grid; grid-template-columns: repeat(5, minmax(0, 54px)); justify-content: end; gap: 4px; height: auto; margin: 0; }
  .lb-abanico .gdt-vc-c { position: relative; left: auto; bottom: auto; width: auto; margin: 0; transform: none !important; }
  .lb-abanico .gdt-vc-c.libre { height: auto; aspect-ratio: 54 / 62; }
  .lb-valor { grid-column: 1 / -1; }
  .lb.aparte .al-temp-b[aria-pressed="true"] { margin: 6px 0 0; }
}
@media (max-width: 720px) {
  .lb-barra { flex-wrap: wrap; }
  .lb-falta { flex: 1 1 100%; justify-content: center; min-height: 44px; }
  .lb-cab-aparte .lb-ico { order: 1; width: 48px; height: 48px; }
  .lb-cab-aparte .lb-ico svg { width: 26px; height: 26px; }
  .lb-cab-aparte .lb-tit { order: 2; }
  .lb-cab-aparte .lb-cerrar { order: 3; }
  .cf-fila { min-height: 56px; }
  .cf-tx .lb-muescas i { flex: 0 1 10px; width: 10px; }
  .cf-chip { min-height: 40px; }
  .cf-filtros .al-f { flex: 1 1 100%; }
  .vt-funda { flex-wrap: wrap; justify-content: flex-start; }
  .vt-bol { flex: 0 0 50%; }
  .vt-bol:nth-child(odd)::before { display: none; }
  .vt-bol .al-card.lb-c, .vt-hueco { width: min(100%, 124px); }
  .vt-b { min-height: 40px; min-width: 38px; }
  .mu-ejemplo { grid-template-columns: minmax(0, 1fr); padding-top: 2.4rem; }
  .mu-ejemplo .al-grilla { display: flex !important; }
}
@media (prefers-reduced-motion: reduce) { .lb-vit-b { transition: none; } }
.al-wrap.quieto .lb-vit-b { transition: none; }
.al-wrap.quieto .gdt-vc-c::after { animation: none; opacity: 0; }
/* ══ fin de vitrina y Qué me falta ══ */
