/* Recargá Pilas 2026 · Álbum de figuritas (mobile first) */
html, body.al { background: var(--night); min-height: 100%; }
body.al { margin: 0; font-family: var(--sans); color: #fff; -webkit-tap-highlight-color: transparent; }
.al [hidden] { display: none !important; }
.al button { font-family: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.al a { color: var(--charge); }

/* ---------- Botones ---------- */
.al-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; border-radius: 14px; border: 0; background: var(--charge); color: var(--night) !important; font-weight: 800; font-size: 15px; cursor: pointer; padding: 0 18px; text-decoration: none; }
.al-btn.ghost { background: transparent; color: #fff !important; border: 1.5px solid rgb(255 255 255 / .28); }
.al-btn.sm { min-height: 38px; font-size: 13.5px; padding: 0 14px; border-radius: 12px; }
.al-btn.gold { background: #F9E547; }
.al-btn:disabled { opacity: .5; cursor: default; }
.al-btn.wide { width: 100%; }
.al-link { font-size: 14px; }
.al-hint { font-size: 13px; color: #b8c7e0; margin: 0; line-height: 1.45; }
.al-chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 800; background: rgb(255 255 255 / .1); color: #fff; border: 0; cursor: pointer; white-space: nowrap; }
.al-chip.on { background: var(--charge); color: var(--night); }
.al-chip.gold { background: #F9E547; color: var(--night); }

/* ---------- ¿Quién sos? ---------- */
.al-who { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); background: radial-gradient(120% 80% at 50% 0%, var(--deep) 0%, var(--night) 60%); }
.al-who-card { width: min(720px, 100%); display: grid; gap: 14px; justify-items: center; text-align: center; }
.al-who-card img { width: 110px; height: 110px; }
.al-who h1 { font-family: var(--display); font-size: 30px; margin: 0; line-height: 1.05; }
.al-who-card > p { margin: 0; color: #cfdbef; max-width: 46ch; line-height: 1.5; }
.al-who-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; margin-top: 6px; }
.al-who-box { background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); border-radius: 18px; padding: 16px; display: grid; gap: 10px; text-align: left; align-content: start; }
.al-who-box b { font-size: 16px; }
.al-who-box label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #cfdbef; }
.al-who-box .input { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .18); color: #fff; font-size: 17px; }
.al-who-box .input.code { letter-spacing: .3em; text-transform: uppercase; font-weight: 700; text-align: center; }
@media (max-width: 620px) { .al-who-opts { grid-template-columns: 1fr; } }

/* ---------- Encabezado ---------- */
.al-app { min-height: 100dvh; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.al-top { position: sticky; top: 0; z-index: 20; background: rgb(var(--night-rgb) / .94); backdrop-filter: blur(10px); padding: calc(10px + env(safe-area-inset-top)) 16px 10px; border-bottom: 1px solid rgb(255 255 255 / .08); }
.al-top-in { max-width: 980px; margin: 0 auto; display: grid; gap: 8px; }
.al-top-row { display: flex; align-items: center; gap: 10px; }
.al-top-row img { width: 40px; height: 40px; flex: none; }
.al-title { flex: 1; min-width: 0; display: grid; }
.al-title b { font-family: var(--display); font-size: 21px; line-height: 1.05; letter-spacing: .01em; }
.al-title small { color: #a9bbd8; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-prog { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: #cfdbef; }
.al-bar { flex: 1; height: 9px; border-radius: 99px; background: rgb(255 255 255 / .12); overflow: hidden; }
.al-bar i { display: block; height: 100%; background: var(--charge); border-radius: 99px; transition: width .6s ease; }

/* ---------- Navegación ---------- */
.al-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: #081636; border-top: 1px solid rgb(255 255 255 / .1); padding-bottom: env(safe-area-inset-bottom); }
.al-nav button { flex: 1; border: 0; background: none; display: grid; justify-items: center; gap: 3px; padding: 9px 0 8px; font-size: 11.5px; font-weight: 700; color: #8fa3cc; cursor: pointer; position: relative; min-height: 56px; }
.al-nav svg { width: 23px; height: 23px; }
.al-nav button.active { color: var(--charge); }
.al-dot { position: absolute; top: 6px; left: calc(50% + 8px); min-width: 18px; height: 18px; border-radius: 9px; background: #F9E547; color: var(--night); font-style: normal; font-size: 11px; font-weight: 900; display: grid; place-items: center; padding: 0 5px; }

/* ---------- Vistas ---------- */
.al-view { max-width: 980px; margin: 0 auto; padding: 14px 14px 24px; display: grid; gap: 16px; }
.al-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 6px 2px 0; }
.al-sec-h h2 { font-family: var(--display); font-size: 22px; margin: 0; letter-spacing: .01em; }
.al-sec-h span { font-size: 12.5px; color: #a9bbd8; font-weight: 700; }
.al-card { background: #0e2348; border: 1px solid rgb(255 255 255 / .07); border-radius: 18px; padding: 14px; display: grid; gap: 10px; }
.al-empty { text-align: center; color: #a9bbd8; font-size: 14px; padding: 18px 8px; }
.al-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px; }
.al-tabs::-webkit-scrollbar { display: none; }
.al-banner { border-radius: 16px; padding: 14px; background: linear-gradient(120deg, var(--blue), var(--deep)); display: flex; gap: 12px; align-items: center; }
.al-banner b { font-size: 15px; }
.al-banner p { margin: 2px 0 0; font-size: 13px; color: #d7e0f2; }
.al-banner.gold { background: linear-gradient(120deg, #6b5a00, #23366F); }

/* ---------- Página de equipo ---------- */
.al-page { background: #ECEEEF; color: var(--deep); border-radius: 18px; padding: 12px 12px 14px; display: grid; gap: 10px; }
.al-page-h { display: flex; align-items: center; gap: 10px; }
.al-page-h img { width: 40px; height: 40px; object-fit: contain; }
.al-page-h div { flex: 1; min-width: 0; }
.al-page-h small { display: block; font-size: 10.5px; font-weight: 900; letter-spacing: .12em; color: var(--blue); text-transform: uppercase; }
.al-page-h b { font-family: var(--display); font-size: 21px; line-height: 1.05; display: block; overflow-wrap: anywhere; }
.al-page-h .al-cnt { flex: none; font-size: 12px; font-weight: 800; background: var(--deep); color: #fff; padding: 4px 8px; border-radius: 8px; }
.al-page-h .al-cnt.full { background: #1f9d55; }
.al-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.al-page.dark { background: #122a5c; color: #fff; }
.al-page.dark .al-page-h small { color: var(--charge); }

/* Casillero vacío */
.al-slot { aspect-ratio: 5 / 7; border: 2px dashed #a9b7d2; border-radius: 10px; background: #dfe5ee; display: grid; place-items: center; align-content: center; gap: 3px; padding: 6px; cursor: pointer; text-align: center; color: #5b6b8c; }
.al-slot b { font-family: var(--display); font-size: 20px; line-height: 1; }
.al-slot small { font-size: 10px; font-weight: 700; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.al-slot .qr { font-size: 9px; font-weight: 900; letter-spacing: .06em; color: var(--blue); }
.al-page.dark .al-slot { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .25); color: #b8c7e0; }

/* Figurita chica */
.al-st { --p: #2167AE; --s: #fff; position: relative; aspect-ratio: 5 / 7; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, var(--p) 0 58%, var(--s) 58% 64%, var(--p) 64%); border: 0; padding: 0; cursor: pointer; display: block; width: 100%; box-shadow: 0 3px 8px rgb(0 0 0 / .22); color: #fff; text-align: left; }
.al-st .ph { position: absolute; left: 8%; right: 8%; top: 7%; bottom: 30%; border-radius: 8px; background: rgb(255 255 255 / .18); overflow: hidden; display: grid; place-items: end center; }
.al-st .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-st .ph svg { width: 70%; height: 80%; opacity: .5; }
.al-st .nb { position: absolute; top: 4%; right: 6%; font-family: var(--display); font-size: 17px; line-height: 1; text-shadow: 0 1px 3px rgb(0 0 0 / .5); font-style: normal; }
.al-st .pl { position: absolute; left: 0; right: 0; bottom: 0; background: var(--deep); padding: 5px 6px 6px; display: grid; gap: 1px; }
.al-st .pl b { font-size: 11px; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.15; }
.al-st .pl small { font-size: 8.5px; font-weight: 700; color: #a9bbd8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-st .lb { position: absolute; top: 4%; left: 6%; font-size: 8.5px; font-weight: 900; background: rgb(0 0 0 / .35); padding: 2px 5px; border-radius: 6px; }
.al-st .qty { position: absolute; right: 5px; bottom: 34%; background: #F9E547; color: var(--night); font-size: 10.5px; font-weight: 900; border-radius: 999px; padding: 2px 6px; font-style: normal; }
.al-st.kit { background: linear-gradient(135deg, #5bc2e7, #ffffff 42%, #91BFE3 68%, #2167ae); padding: 3px; }
.al-st.kit .in { position: absolute; inset: 3px; border-radius: 8px; background: var(--deep); display: grid; place-items: center; align-content: center; gap: 4px; }
.al-st.kit .in img { width: 84%; height: auto; }
.al-st.kit .in b { font-size: 9.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 0 4px; }
.al-st.mvp { background: linear-gradient(135deg, #F9E547, #fff6b0 40%, #c9a000 75%, #F9E547); padding: 3px; }
.al-st.mvp .in { position: absolute; inset: 3px; border-radius: 8px; overflow: hidden; background: linear-gradient(160deg, #23366F, #06122e); }
.al-st.mvp .ph { top: 8%; }
.al-st.mvp .pl { background: #b38d00; }
.al-st.sp { background: linear-gradient(160deg, var(--blue), var(--deep)); }
.al-st.sp .ic { position: absolute; left: 0; right: 0; top: 10%; bottom: 30%; display: grid; place-items: center; }
.al-st.sp .ic svg { width: 50%; height: 50%; color: #fff; opacity: .85; }
.al-st.sp.rrhh { background: linear-gradient(160deg, #C44692, #23366F); }
.al-st.fan .ph { top: 6%; bottom: 30%; }
.al-st.new::after { content: "NUEVA"; position: absolute; top: 4%; left: 6%; background: var(--charge); color: var(--night); font-size: 8.5px; font-weight: 900; padding: 2px 5px; border-radius: 6px; }

/* ---------- Sobres ---------- */
.al-sobre { width: 200px; aspect-ratio: 5 / 7; margin: 0 auto; border-radius: 16px; background: linear-gradient(160deg, var(--blue), var(--deep) 60%, var(--night)); box-shadow: 0 20px 40px rgb(0 0 0 / .45); position: relative; display: grid; place-items: center; align-content: center; gap: 8px; overflow: hidden; border: 0; cursor: pointer; color: #fff; }
.al-sobre::before { content: ""; position: absolute; top: 24px; left: 0; right: 0; border-top: 2px dashed rgb(255 255 255 / .55); }
.al-sobre .tear { position: absolute; top: 6px; left: 0; right: 0; text-align: center; font-size: 9px; font-weight: 900; letter-spacing: .24em; color: #91BFE3; }
.al-sobre img { width: 104px; height: 104px; }
.al-sobre b { font-family: var(--display); font-size: 28px; line-height: 1; }
.al-sobre small { font-size: 11px; font-weight: 800; color: #F9E547; letter-spacing: .18em; }
.al-sobre .n { position: absolute; top: 34px; right: 10px; background: #F9E547; color: var(--night); font-weight: 900; font-size: 14px; border-radius: 999px; padding: 3px 9px; }
.al-code { display: flex; gap: 8px; }
.al-code .input { flex: 1; text-transform: uppercase; letter-spacing: .18em; font-weight: 800; background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .18); color: #fff; }

/* Apertura del sobre */
.al-pack { position: fixed; inset: 0; z-index: 60; background: radial-gradient(100% 70% at 50% 30%, #173a7a, var(--night) 70%); display: grid; align-content: center; justify-items: center; gap: 22px; padding: 24px 14px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; }
.al-pack h2 { font-family: var(--display); font-size: 26px; margin: 0; text-align: center; }
.al-pack .al-sobre { width: 230px; animation: al-wiggle 1.8s ease-in-out infinite; }
.al-pack .al-sobre.tear-open { animation: al-tear .6s ease-out forwards; }
.al-reveal { display: grid; grid-template-columns: repeat(5, minmax(0, 150px)); gap: 12px; width: min(820px, 100%); justify-content: center; }
.al-flip { perspective: 900px; position: relative; }
.al-flip .fi { position: relative; width: 100%; aspect-ratio: 5 / 7; transform-style: preserve-3d; transition: transform .45s ease; transform: rotateY(180deg); }
.al-flip.show .fi { transform: rotateY(0); }
.al-flip .fr, .al-flip .bk { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.al-flip .bk { transform: rotateY(180deg); border-radius: 10px; background: linear-gradient(160deg, var(--blue), var(--deep)); display: grid; place-items: center; }
.al-flip .bk img { width: 60%; opacity: .9; }
.al-flip .tag { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 10px; font-weight: 900; padding: 3px 8px; border-radius: 999px; opacity: 0; transition: opacity .2s .35s; white-space: nowrap; }
.al-flip.show .tag { opacity: 1; }
.al-flip .tag.new { background: var(--charge); color: var(--night); }
.al-flip .tag.rep { background: #8fa3cc; color: var(--night); }
.al-flip .tag.xtra { background: #F9E547; color: var(--night); }
.al-flip.shine .fr::after { content: ""; position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .75) 48%, transparent 66%); background-size: 250% 100%; animation: al-shine .9s .45s ease-out 1 both; pointer-events: none; }
@media (max-width: 620px) { .al-reveal { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 380px; } }
@keyframes al-wiggle { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg) translateY(-4px); } }
@keyframes al-tear { to { transform: translateY(-40px) scale(.9); opacity: 0; } }
@keyframes al-shine { from { background-position: 150% 0; } to { background-position: -60% 0; } }
@media (prefers-reduced-motion: reduce) { .al-flip .fi { transition: opacity .15s; } .al-pack .al-sobre, .al-pack .al-sobre.tear-open { animation: none; } .al-flip.shine .fr::after { animation: none; } .al-bar i { transition: none; } }

/* ---------- Cambios ---------- */
.al-me-code { display: flex; gap: 14px; align-items: center; }
.al-me-code .qr { width: 104px; height: 104px; background: #fff; border-radius: 12px; padding: 6px; flex: none; }
.al-me-code .qr svg { width: 100%; height: 100%; display: block; }
.al-me-code b.code { font-family: var(--display); font-size: 30px; letter-spacing: .12em; }
.al-row { display: flex; gap: 10px; align-items: center; }
.al-row > div { flex: 1; min-width: 0; }
.al-av { width: 42px; height: 42px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; font-weight: 900; flex: none; font-size: 14px; }
.al-row b { font-size: 14.5px; }
.al-row small { display: block; font-size: 12px; color: #a9bbd8; }
.al-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; }
.al-pick { position: relative; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 12px; }
.al-pick.on { outline: 3px solid var(--charge); outline-offset: 2px; }
.al-pick .al-st { pointer-events: none; }
.al-trade { display: grid; gap: 8px; }
.al-trade .side { font-size: 11px; font-weight: 900; letter-spacing: .12em; color: #91BFE3; }
.al-trade .al-mini { grid-template-columns: repeat(5, minmax(0, 64px)); }

/* ---------- Misiones ---------- */
.al-mis { display: flex; align-items: center; gap: 12px; background: #12295a; border-radius: 14px; padding: 12px 14px; }
.al-mis .ck { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #3b5690; flex: none; display: grid; place-items: center; }
.al-mis.done { opacity: .6; }
.al-mis.done .ck { background: var(--charge); border-color: var(--charge); }
.al-mis .tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.al-mis .tx b { font-size: 14.5px; }
.al-mis .tx small { font-size: 12px; color: #a9bbd8; line-height: 1.35; }
.al-mis .rw { font-family: var(--display); font-size: 19px; color: #F9E547; white-space: nowrap; }
.al-rank { display: grid; gap: 6px; }
.al-rank .it { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.al-rank .it i { font-style: normal; width: 26px; text-align: right; font-weight: 900; color: #91BFE3; }
.al-rank .it span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-rank .it small { color: #a9bbd8; }

/* ---------- Hoja inferior ---------- */
.al-sheet { position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / .55); display: flex; align-items: flex-end; justify-content: center; }
.al-sheet-card { width: min(560px, 100%); max-height: 92dvh; overflow-y: auto; background: #0e2348; border-radius: 22px 22px 0 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.al-grab { width: 44px; height: 5px; border-radius: 3px; background: rgb(255 255 255 / .25); margin: 4px auto 2px; }
.al-sheet h3 { margin: 0; font-family: var(--display); font-size: 22px; }
.al-big { display: grid; justify-items: center; gap: 8px; }
.al-big canvas, .al-big img.card { width: min(300px, 80vw); height: auto; border-radius: 14px; box-shadow: 0 16px 34px rgb(0 0 0 / .4); }
.al-big .al-st { width: min(240px, 64vw); }
.al-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.al-actions .al-btn { flex: 1; }
.al-search { width: 100%; background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .18); color: #fff; }

body .toast, body .demo-badge { pointer-events: none; }
body .demo-badge { top: auto; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); opacity: .75; }
/* Recorte sin fondo: la cabeza "sale" del recuadro, sobre los colores del equipo */
.al-st .ph img.cut { object-fit: cover; object-position: 50% 18%; transform: scale(1.18); transform-origin: 50% 30%; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .35)); }
