/* Pick & Pass - album screen (album.html). Uses the play.css variables. */
.al-body { min-height: 100%; }
.al-hdr { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--pl-line); background: rgba(10, 12, 22, .85); position: sticky; top: 0; z-index: 20; flex-wrap: wrap; }
.al-title { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: .02em; color: var(--pl-gold); }
.al-grow { flex: 1; }
.al-wallet { display: flex; gap: 14px; align-items: center; }
.al-wal { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; }
.al-main { max-width: 1180px; margin: 0 auto; padding: 18px; display: grid; gap: 18px; }
.al-dim { color: var(--pl-dim); font-size: 13px; }
.al-card { padding: 16px 18px; border-radius: 16px; background: linear-gradient(180deg, rgba(26, 31, 52, .92), rgba(13, 16, 29, .94)); border: 1px solid #343a5c; display: grid; gap: 10px; align-content: start; }
.al-card h2 { margin: 0; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; color: #cfd6ee; }
.al-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.al-bar { position: relative; height: 12px; border-radius: 8px; background: #0b0e1a; border: 1px solid #2c3350; overflow: hidden; min-width: 80px; flex: 1; }
.al-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2fa66a, #6fe0a0); }
.al-bar.done i { background: linear-gradient(90deg, #d29a1c, #fff0a8); }
.al-bar.big { height: 18px; }
.al-lab { display: flex; justify-content: space-between; font-size: 13px; gap: 10px; }
.al-prog { display: grid; gap: 4px; }
.al-prog b { font-weight: 800; }

.al-hero { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.al-buy { padding: 12px 20px; font-size: 16px; }
.al-leagues { display: grid; gap: 14px; }
.al-lg { display: grid; gap: 10px; }
.al-lghead { display: flex; align-items: center; gap: 10px; }
.al-lghead .al-prog { flex: 1; }
.al-clubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.al-club { display: grid; grid-template-columns: 34px 1fr; gap: 4px 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: #12162a; border: 1px solid #2c3350; cursor: pointer; color: inherit; font: inherit; text-align: left; }
.al-club:hover { border-color: var(--pl-gold); }
.al-club.done { border-color: #d29a1c; background: #1d1a10; }
.al-club span { font-size: 12px; font-weight: 700; line-height: 1.2; }
.al-club .al-bar { grid-column: 1 / -1; height: 7px; }
.al-grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 18px; }
.al-tick { color: #ffd86b; font-weight: 900; }

/* club view */
.al-clubhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.al-clubhead h2 { font-size: 22px; text-transform: none; letter-spacing: 0; color: #fff; margin: 0; }
.al-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.al-filters label { display: grid; gap: 2px; font-size: 11px; color: var(--pl-dim); text-transform: uppercase; letter-spacing: .06em; }
.al-filters select { background: #0f1322; color: var(--pl-text); border: 1px solid var(--pl-line); border-radius: 8px; padding: 6px 8px; font: inherit; }
.al-cards { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.al-slot { cursor: pointer; }
.al-sil { position: relative; width: calc(190px * var(--sc)); height: calc(270px * var(--sc)); border-radius: 12px; background: linear-gradient(180deg, #151826, #0b0d15); border: 2px dashed #2f3550; display: grid; place-items: center; overflow: hidden; cursor: default; }
.al-sil svg { position: absolute; left: 50%; bottom: 14%; width: 62%; transform: translateX(-50%); opacity: .5; }
.al-sil b { position: absolute; top: 10px; left: 12px; font-size: calc(26px * var(--sc)); color: #5a6286; font-weight: 900; }
.al-sil small { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #4c5476; }
.al-sil.r-Rare { border-color: #5a4a1c; } .al-sil.r-Mythic { border-color: #5a2f8a; } .al-sil.r-Uncommon { border-color: #4a525e; }
.al-stars { position: absolute; top: 6px; right: 6px; z-index: 9; font-size: 11px; font-weight: 800; color: #3b1a00; background: #fff0a8; border-radius: 8px; padding: 0 6px; }
.al-slotw { position: relative; }

/* detail */
.al-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(4, 5, 10, .86); display: grid; place-items: center; padding: 16px; overflow: auto; }
.al-overlay[hidden] { display: none; }
.al-detailbox { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; justify-content: center; background: #11152a; border: 1px solid var(--pl-gold); border-radius: 16px; padding: 18px; max-width: 640px; }
.al-career { display: grid; gap: 4px; min-width: 220px; }
.al-career div { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); padding: 2px 0; }

/* pack opening */
.al-packbox { width: min(980px, 100%); text-align: center; display: grid; gap: 14px; }
.al-packbox h2 { margin: 0; color: var(--pl-gold); font-size: 24px; }
.al-reveal { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; perspective: 1200px; }
.al-flip { position: relative; width: calc(190px * var(--sc)); height: calc(270px * var(--sc)); transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.2, .4, 1); cursor: pointer; }
.al-flip.up { transform: rotateY(180deg); }
.al-face, .al-back { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 12px; }
.al-face { transform: rotateY(180deg); }
.al-back { background: repeating-linear-gradient(45deg, #1d2750 0 10px, #17203f 10px 20px); border: 3px solid var(--pl-gold); display: grid; place-items: center; font-size: calc(54px * var(--sc)); font-weight: 900; color: var(--pl-gold); box-shadow: 0 6px 24px rgba(0, 0, 0, .6); }
.al-tag { position: absolute; left: 0; right: 0; bottom: -26px; text-align: center; font-size: 12px; font-weight: 800; opacity: 0; transition: opacity .4s .5s; }
.al-flip.up .al-tag { opacity: 1; }
.al-tag.new { color: #6fe0a0; } .al-tag.dup { color: #ffd86b; }
.al-cardcell { position: relative; padding-bottom: 30px; }
.al-flip.mythic.up { animation: al-mythic 1.6s ease-out 0.5s 1; }
.al-flip.mythic.up .al-face { box-shadow: 0 0 40px 10px rgba(255, 106, 213, .85), 0 0 90px 30px rgba(255, 214, 90, .6); }
@keyframes al-mythic { 0% { filter: brightness(2.6) saturate(1.8); } 100% { filter: none; } }
.al-burst { position: fixed; inset: 0; pointer-events: none; z-index: 310; background: radial-gradient(circle at 50% 50%, rgba(255, 230, 150, .85), rgba(255, 106, 213, .35) 35%, transparent 70%); animation: al-burst 1.4s ease-out forwards; }
@keyframes al-burst { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6); } }
.al-packmsg { min-height: 28px; font-size: 18px; font-weight: 800; color: #fdf3cf; }
.al-packmsg.mythic { color: #ff9bea; font-size: 24px; text-shadow: 0 0 14px rgba(255, 106, 213, .8); }
.al-packbtns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .al-flip { transition: none; } .al-flip.mythic.up, .al-burst { animation: none; } }

html.is-phone .al-hdr { padding: calc(10px + var(--ph-top, 0px)) 12px 10px; }
html.is-phone .al-main { padding: 12px; gap: 12px; }
html.is-phone .al-hero { grid-template-columns: 1fr; }
html.is-phone .al-buy { min-height: 48px; width: 100%; }
html.is-phone .al-clubs { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); }
html.is-phone .al-cards, html.is-phone .al-reveal { gap: 8px; }
html.is-phone .al-filters select { padding: 10px 8px; }
html.is-phone .al-filters { display: grid; grid-template-columns: 1fr 1fr; }
html.is-phone .al-detailbox { padding: 12px; }
