:root {
  --bg: #0b0817; --panel: #110d25; --panel-2: #181335; --panel-3: #211a47; --line: #2b2457; --line-2: #3a3170;
  --text: #efeaff; --muted: #8c84b8; --violet: #7c5cff; --violet-2: #a48bff; --blue: #3d6bff; --hot: #ff4d6d; --gold: #e8b84a; --silver: #c4cbdc; --bronze: #cf8a52;
  --r: 6px; --r-s: 3px;
  --r-trouvaille: #877b98; --r-commune: #d3cde2; --r-rare: #46b6ff; --r-épique: #b783ff; --r-légendaire: #e8b84a; --r-mythique: #ff5468;
  --display: "Bricolage Grotesque", system-ui, sans-serif; --body: "Figtree", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code { font: 600 .92em ui-monospace, Consolas, monospace; background: var(--panel-3); border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 1px 6px; color: #cbbcff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 2px; }
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; flex: none; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(11, 8, 23, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; padding: 0 clamp(16px, 2.4vw, 40px); height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-s); background: var(--violet); color: #fff; font-size: 20px; }
.brand-name { font: 800 16px/1 var(--display); letter-spacing: -.01em; }
.top-nav { display: flex; align-items: center; gap: 2px; font-weight: 500; font-size: 14.5px; }
.top-nav a { white-space: nowrap; padding: 7px 12px; border-radius: var(--r-s); color: #b3abdd; text-decoration: none; transition: color .2s, background .2s; }
.top-nav a:hover, .top-nav a.on { color: #fff; background: var(--panel-2); }
.ev { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: var(--r-s); color: #fff; font-size: 13.5px; font-weight: 500; }
.ev .ic { color: var(--gold); }
.ev b { font: 700 10px/1 var(--body); letter-spacing: .08em; padding: 3px 5px; border-radius: 2px; background: var(--hot); color: #fff; }
.top-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.pill-live { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: var(--r-s); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4ee0a0; flex: none; }
.dot.off { background: #ff7a7a; }
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--r-s); padding: 11px 18px; font: 600 14px/1 var(--body); color: #fff; cursor: pointer; text-decoration: none; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-hot { background: var(--hot); }
.btn-hot:hover { background: #ff6682; }
.btn-blue { background: var(--blue); }
.btn-blue:hover { background: #5680ff; }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--panel-2); }
.burger { display: none; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--panel); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 3 columns ---------- */
.app { display: grid; grid-template-columns: 280px minmax(0, 1fr) 280px; gap: 18px; padding: 18px clamp(16px, 2.4vw, 40px) 0; align-items: start; }
.side { position: sticky; top: 72px; max-height: calc(100vh - 88px); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.card-h { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; }
.chip { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 2px; background: var(--hot); font: 700 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; }
.chip-b { background: var(--blue); }
.live-n { display: inline-flex; align-items: center; gap: 7px; font: 700 13px var(--body); }
.feed { display: flex; flex-direction: column; max-height: calc(100vh - 88px); }
.feed-list { list-style: none; margin: 0; padding: 0 10px 12px; display: grid; gap: 6px; overflow: auto; }
.feed-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 9px; border-radius: var(--r-s); background: var(--panel-2); border: 1px solid transparent; cursor: pointer; transition: border-color .2s, transform .25s; }
.feed-list li:hover { border-color: var(--line-2); transform: translateX(3px); }
.feed-list b { display: block; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-list small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-list time { color: #6b6399; font-size: 11px; white-space: nowrap; }
.av { --h: 270; position: relative; overflow: hidden; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-s); background: hsl(var(--h) 45% 32%); font: 800 14px/1 var(--display); color: #fff; text-transform: uppercase; flex: none; }
.av.sm { width: 34px; height: 34px; font-size: 13px; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.q-list { list-style: none; margin: 0; padding: 0 10px 12px; display: grid; gap: 6px; }
.q { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; width: 100%; padding: 10px; border-radius: var(--r-s); background: var(--panel-2); border: 1px solid transparent; text-decoration: none; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s; }
.q:hover { border-color: var(--line-2); transform: translateX(-2px); }
.qi { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-s); background: var(--bg); border: 1px solid var(--line); color: var(--violet-2); font-size: 20px; }
.qt b { display: block; font-size: 14px; font-weight: 600; }
.qt small { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qt small.hot { color: var(--hot); font-weight: 600; }

/* ---------- leaderboard hero ---------- */
.center { min-width: 0; display: grid; gap: 16px; }
section { scroll-margin-top: 72px; }
.lb { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px 26px; background: radial-gradient(560px 300px at 50% 46%, rgba(124, 92, 255, .30), transparent 72%), var(--panel); }
.lb-h { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lb-h h1 { margin: 0; font: 800 clamp(22px, 2.6vw, 28px)/1.1 var(--display); letter-spacing: -.02em; }
.info { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 6px; border: 1px solid #5f5698; border-radius: 2px; font: 600 11px var(--body); color: #9b92d6; vertical-align: middle; cursor: help; }
.reset { padding: 8px 12px; border-radius: var(--r-s); background: var(--blue); font: 600 12.5px/1 var(--body); white-space: nowrap; }

.podium { position: relative; display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: end; gap: 14px; max-width: 1040px; margin: 8px auto 0; min-height: 460px; }
.pod { color: inherit; text-decoration: none; display: flex; flex-direction: column; align-items: center; min-width: 0; cursor: pointer; }
.pod .frame { position: relative; display: grid; place-items: center; width: clamp(76px, 7vw, 108px); height: clamp(76px, 7vw, 108px); border-radius: var(--r-s); padding: 3px; background: var(--silver); }
.pod.p1 .frame { width: clamp(100px, 9.4vw, 144px); height: clamp(100px, 9.4vw, 144px); border-radius: 0; clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%); background: var(--gold); padding: 4px; }
.pod.p3 .frame { background: var(--bronze); }
.pod .frame .av { width: 100%; height: 100%; font-size: 26px; border-radius: 1px; }
.pod.p1 .frame .av { clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%); border-radius: 0; font-size: 32px; }
.stars { margin-top: 8px; color: #3b3375; font-size: 11px; letter-spacing: 3px; }
.stars b { color: var(--gold); font-weight: 400; }
.pod .nm { max-width: 100%; margin-top: 3px; font: 700 clamp(14px, 1.2vw, 18px)/1.2 var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .pt { margin-top: 3px; color: var(--hot); font: 700 13px var(--body); font-variant-numeric: tabular-nums; }
.stand { position: relative; width: 100%; margin-top: 40px; border-radius: var(--r-s) var(--r-s) 0 0; background: var(--panel-3); border: 1px solid var(--line-2); border-bottom: 0; }
.pod.p1 .stand { margin-top: 56px; height: clamp(130px, 11vw, 170px); background: #2a2060; border-color: #5a4bb0; }
.pod.p2 .stand, .pod.p3 .stand { height: clamp(84px, 7.2vw, 112px); }
.stand::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--violet); }
.pod.p1 .stand::before { background: var(--gold); }
.stand .coin { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-s); font: 800 18px var(--display); color: #161026; background: var(--silver); }
.pod.p1 .coin { top: -28px; width: 50px; height: 50px; font-size: 24px; background: var(--gold); }
.pod.p3 .coin { background: var(--bronze); }
.podium .none { grid-column: 1 / -1; align-self: center; text-align: center; color: var(--muted); padding: 40px 0; }
.lb-cta { position: relative; text-align: center; margin-top: 20px; }
.hot-t { margin: 0; font: 800 clamp(15px, 2vw, 19px)/1.25 var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--hot); }
.sub { margin: 8px auto 0; max-width: 62ch; color: var(--muted); font-size: 14px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; }
.kpis > div { padding: 14px 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--violet); }
.kpis dt { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.kpis dd { margin: 4px 0 0; white-space: nowrap; font: 800 clamp(22px, 2.2vw, 28px)/1.1 var(--display); font-variant-numeric: tabular-nums; }

/* ---------- table ---------- */
.tbl, .binder, .how, .rarity { padding: 18px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.tbl-h, .sec-h { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 14px 4px; }
h2 { display: flex; align-items: center; gap: 10px; margin: 0; font: 800 clamp(18px, 2vw, 21px)/1.15 var(--display); letter-spacing: -.01em; }
h2 .ic { color: var(--violet-2); font-size: 20px; }
.search input { width: min(250px, 100%); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 9px 12px; color: var(--text); font: 500 14px var(--body); }
.search input::placeholder { color: var(--muted); }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rx { color: inherit; text-decoration: none; position: relative; overflow: hidden; display: grid; grid-template-columns: 38px minmax(0, 1.5fr) 1fr 1fr 1fr; align-items: center; gap: 12px; width: 100%; padding: 8px 16px 8px 8px; border: 1px solid transparent; border-radius: var(--r-s); background: var(--panel-2); text-align: left; cursor: pointer; transition: border-color .2s, background .2s, transform .25s cubic-bezier(.2, .8, .2, 1); }
.rx:hover { border-color: var(--line-2); background: var(--panel-3); transform: translateX(4px); }
.rx[aria-pressed="true"] { border-color: var(--violet); }
.rc { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 2px; font: 800 13px var(--display); color: var(--muted); background: var(--bg); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.rn { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rn b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell b { display: block; font: 700 14px var(--body); font-variant-numeric: tabular-nums; }
.cell small { display: block; color: var(--muted); font-size: 11.5px; }
.cell.pts b { color: var(--hot); }
.mini { display: block; height: 3px; margin-top: 6px; background: var(--bg); overflow: hidden; }
.mini i { display: block; height: 100%; background: var(--violet); transform-origin: left; }
.empty { padding: 26px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r-s); }
.more { margin: 16px auto 0; display: flex; padding-inline: 34px; }

/* ---------- binder / how / rarity ---------- */
.empty-b { margin: 4px 4px 0; color: var(--muted); }
.b-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px 4px; }
.b-sum span { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-s); padding: 5px 11px; font-size: 13px; color: var(--muted); }
.b-sum b { color: var(--text); font-weight: 600; }
.grp { margin-top: 22px; }
.grp-h { display: flex; align-items: baseline; gap: 12px; margin: 0 4px 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.grp-h h3 { margin: 0; font: 700 16px/1 var(--display); text-transform: capitalize; }
.grp-h small { color: var(--muted); font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.card-c { --c: var(--r-commune); position: relative; display: flex; flex-direction: column; min-height: 164px; border-radius: var(--r-s); padding: 6px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--c) 50%, var(--line)); overflow: hidden; }
.art { flex: 1; display: grid; place-items: center; border-radius: 2px; color: color-mix(in srgb, var(--c) 85%, #fff); font-size: 40px; background: color-mix(in srgb, var(--c) 16%, var(--bg)); background-image: repeating-linear-gradient(135deg, transparent 0 9px, color-mix(in srgb, var(--c) 10%, transparent) 9px 10px); }
.art .ic { stroke-width: 1.5; }
.card-c .nm { margin: 8px 2px 2px; font-size: 12.5px; font-weight: 600; line-height: 1.25; min-height: 2.5em; }
.qty { position: absolute; top: 10px; right: 10px; min-width: 22px; padding: 2px 6px; border-radius: 2px; background: var(--bg); font: 700 12px/1.3 var(--body); text-align: center; border: 1px solid var(--line-2); }
.card-c.off { background: transparent; border: 1px dashed var(--line); min-height: 108px; }
.card-c.off .art { background: transparent; background-image: none; color: #473f85; font: 800 22px var(--display); }
.card-c.off .nm { color: #564e92; }
.card-c.l-mythique:not(.off) .art { background: linear-gradient(115deg, #3a1020, #5a1830, #2a1050); color: #ff9aa8; }
.card-c.l-légendaire:not(.off) { box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent); }

.cmds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.cmds li { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-s); padding: 14px 16px; }
.cmds code { font-size: 1.02em; }
.cmds p { margin: 9px 0 0; color: var(--muted); font-size: 14px; }
.rar-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.rar-list li { display: flex; align-items: center; gap: 13px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; }
.rar-list .sw { width: 4px; height: 34px; border-radius: 1px; flex: none; }
.rar-list b { display: block; text-transform: capitalize; font-weight: 600; }
.rar-list small { color: var(--muted); }
.fine { margin: 14px 4px 0; color: var(--muted); font-size: 13.5px; max-width: 70ch; }

/* ---------- footer ---------- */
.foot { margin: 18px 0 0; padding: 0 clamp(16px, 2.4vw, 40px) 24px; }
.foot-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.foot-in { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 36px; padding: 32px 32px 24px; }
.foot-brand p { margin: 14px 0 0; max-width: 40ch; color: var(--muted); font-size: 14px; }
.foot-col { display: grid; align-content: start; gap: 9px; }
.foot-col h3 { margin: 0 0 4px; font: 700 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.foot-col a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot-col a:hover { color: #fff; }
.foot-bar { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; margin: 0 32px; padding: 16px 0 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.foot-bar p { margin: 0; }
.foot-bar a { color: var(--text); }

/* ---------- motion (kept short and functional) ---------- */
.top { animation: slide-down .6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes slide-down { from { transform: translateY(-100%); opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-26px); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-14px); } }
.side-l { animation: fade-up .6s .1s cubic-bezier(.2, .8, .2, 1) both; }
.side-r { animation: fade-up .6s .2s cubic-bezier(.2, .8, .2, 1) both; }
.lb { animation: fade-up .7s cubic-bezier(.2, .8, .2, 1) both; }
.lb-cta { animation: fade-up .7s 1.4s cubic-bezier(.2, .8, .2, 1) both; }
.feed-list li.a-in { animation: slide-in .45s calc(.3s + var(--i, 0) * 50ms) cubic-bezier(.2, .8, .2, 1) both; }
.q-list li.a-in { animation: fade-up .45s calc(.3s + var(--i, 0) * 50ms) cubic-bezier(.2, .8, .2, 1) both; }
.rows li.a-in { animation: slide-in .45s calc(1.2s + var(--i, 0) * 40ms) cubic-bezier(.2, .8, .2, 1) both; }
.a-in .mini i { animation: grow 1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(1.3s + var(--i, 0) * 40ms); }
@keyframes grow { from { transform: scaleX(0); } }
.pod.a-in .stand { animation: stand-up .8s cubic-bezier(.2, .9, .3, 1) both; animation-delay: var(--d, .2s); }
@keyframes stand-up { from { height: 0; } }
.pod.a-in .frame, .pod.a-in .stars, .pod.a-in .nm, .pod.a-in .pt { animation: drop-in .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d, .2s) + .5s); }
.pod.a-in .stars { animation-delay: calc(var(--d, .2s) + .6s); }
.pod.a-in .nm { animation-delay: calc(var(--d, .2s) + .68s); }
.pod.a-in .pt { animation-delay: calc(var(--d, .2s) + .76s); }
.pod.a-in .coin { animation: coin-in .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d, .2s) + .35s); }
@keyframes coin-in { from { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(.6); } }
.pod.p3 { --d: .15s; } .pod.p2 { --d: .3s; } .pod.p1 { --d: .5s; }
.pod .frame { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.pod:hover .frame, .pod:focus-visible .frame { transform: translateY(-4px); }
.q:hover .qi { color: #fff; background: var(--violet); border-color: var(--violet); }
.qi { transition: background .2s, color .2s, border-color .2s; }
.kpis > div { transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .25s; }
.kpis > div:hover { transform: translateY(-3px); border-color: var(--line-2); }

.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .rv.rv-in { opacity: 1; transform: none; }
.js .kpis.rv { opacity: 1; transform: none; }
.js .kpis.rv > div { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s cubic-bezier(.2, .8, .2, 1), border-color .25s; }
.js .kpis.rv.rv-in > div { opacity: 1; transform: none; }
.js .kpis.rv.rv-in > div:nth-child(2) { transition-delay: .07s; } .js .kpis.rv.rv-in > div:nth-child(3) { transition-delay: .14s; } .js .kpis.rv.rv-in > div:nth-child(4) { transition-delay: .21s; }

.card-c.a-card { animation: card-in .45s calc(var(--i, 0) * 22ms) cubic-bezier(.2, .8, .2, 1) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.cards { perspective: 900px; }
.card-c:not(.off) { transition: transform .2s ease-out, box-shadow .25s; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.card-c:not(.off)::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .18), transparent 55%); }
.card-c:not(.off):hover { box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .9); }
.card-c:not(.off):hover::after { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .pill-live { display: none; } }
@media (max-width: 1280px) {
  .app { grid-template-columns: 230px minmax(0, 1fr); }
  .side-l { position: static; max-height: none; }
  .feed, .feed-list { max-height: 640px; }
  .side-r { grid-column: 1 / -1; position: static; max-height: none; order: 3; }
  .side-r .q-list { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
  .side-r .q:hover { transform: none; }
  .top-nav .ev { display: none; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side-l { order: 2; }
  .side-r { order: 3; }
  .feed, .feed-list { max-height: 360px; }
  .pill-live { display: none; }
  .burger { display: flex; }
  .top-nav { position: absolute; left: 0; right: 0; top: 56px; flex-direction: column; align-items: stretch; padding: 8px 16px 14px; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .top-nav.open { display: flex; }
  .top-nav a { padding: 14px 12px; font-size: 16px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: 1fr 1fr; padding: 24px 20px 18px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-bar { margin: 0 20px; }
}
@media (max-width: 640px) {
  .app, .foot, .top-in { padding-left: 12px; padding-right: 12px; }
  .lb { padding: 16px 12px 22px; }
  .podium { grid-template-columns: 1fr 1.15fr 1fr; gap: 6px; min-height: 290px; }
  .pod .frame { width: 56px; height: 56px; }
  .pod.p1 .frame { width: 78px; height: 78px; }
  .pod .frame .av { font-size: 20px; }
  .pod .nm { font-size: 12.5px; }
  .pod .stand { margin-top: 32px; } .pod.p1 .stand { margin-top: 38px; height: 96px; } .pod.p2 .stand, .pod.p3 .stand { height: 64px; }
  .stand .coin { width: 34px; height: 34px; font-size: 15px; top: -18px; } .pod.p1 .coin { width: 44px; height: 44px; font-size: 20px; top: -24px; }
  .rx { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; padding-right: 12px; }
  .rx .cell.sp, .rx .cell.rt { display: none; }
  .reset { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv, .js .kpis.rv > div { opacity: 1 !important; transform: none !important; }
}

/* ---------- player page ---------- */
.wrap { display: grid; gap: 18px; padding: 18px clamp(16px, 2.4vw, 40px) 0; }
.pf-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; padding: 8px 0; }
.back .ic { transform: scaleX(-1); }
.back:hover { color: #fff; }
.pf-find { position: relative; }
.res { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 260px; margin: 0; padding: 4px; list-style: none; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-s); box-shadow: 0 18px 40px -16px #000; }
.res:empty { display: none; }
.res a { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 2px; text-decoration: none; }
.res a:hover { background: var(--panel-2); }
.res b { font-weight: 600; font-size: 14px; }
.res small { color: var(--muted); font-size: 12px; }
.none-r { display: block; padding: 10px; color: var(--muted); font-size: 13px; }
.miss { padding: 22px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); margin: 0; }
.miss a { color: var(--violet-2); }
#pf { display: grid; gap: 16px; }
.pf-head { display: flex; align-items: center; gap: 20px; padding: 22px; border: 1px solid var(--line); border-top: 2px solid var(--violet); border-radius: var(--r); background: var(--panel); animation: fade-up .6s cubic-bezier(.2, .8, .2, 1) both; }
.pf-av { width: 92px; height: 92px; font-size: 32px; border-radius: var(--r-s); }
.pf-t { min-width: 0; }
.pf-k { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.pf-t h1 { margin: 2px 0 12px; font: 800 clamp(26px, 4vw, 38px)/1.05 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.pf-head .b-sum { margin: 0; }
.wrap .binder { animation: fade-up .6s .1s cubic-bezier(.2, .8, .2, 1) both; }
.pf-nav { display: flex; justify-content: space-between; gap: 12px; }
.pf-nav a { display: flex; align-items: center; gap: 14px; flex: 0 1 320px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); text-decoration: none; transition: border-color .2s, transform .25s; }
.pf-nav a:hover { border-color: var(--violet); transform: translateY(-2px); }
.pf-nav a:last-child { margin-left: auto; text-align: right; }
.pf-nav small { display: block; color: var(--muted); font-size: 12px; }
.pf-nav b { font: 700 15px var(--display); overflow-wrap: anywhere; }
.pf-nav .ic { font-size: 20px; color: var(--violet-2); }
.pf-nav .flip { transform: scaleX(-1); }
@media (max-width: 640px) {
  .wrap { padding-left: 12px; padding-right: 12px; }
  .pf-head { flex-direction: column; align-items: flex-start; padding: 16px; }
  .pf-av { width: 72px; height: 72px; font-size: 26px; }
  .res { left: 0; right: auto; min-width: min(300px, 86vw); }
  .pf-nav { flex-direction: column; }
  .pf-nav a { flex-basis: auto; }
}

/* ---------- account, boosters, cards ---------- */
.acct { display: inline-flex; }
.chip-u { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid var(--line-2); border-radius: var(--r-s); text-decoration: none; font-size: 13px; font-weight: 600; transition: border-color .2s; }
.chip-u:hover { border-color: var(--violet); }
.chip-u .av { width: 26px; height: 26px; font-size: 11px; }
.chip-u b { background: var(--violet); border-radius: 2px; padding: 2px 6px; font-size: 12px; }
.top-nav .nav-b { color: #fff; background: var(--panel-3); }
.btn-twitch { background: #9146ff; gap: 10px; }
.btn-twitch:hover { background: #a566ff; }
.btn-twitch .ic { font-size: 18px; }
.link-btn { justify-self: center; background: none; border: 0; padding: 8px; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: #fff; }
.sub-l { margin: 8px 0 0; color: var(--muted); max-width: 62ch; }
.bst-head { padding: 8px 0 0; animation: fade-up .6s cubic-bezier(.2, .8, .2, 1) both; }
.bst-head h1 { margin: 2px 0 0; font: 800 clamp(30px, 5vw, 46px)/1.05 var(--display); letter-spacing: -.02em; }
.bst-login > div { padding: 28px; border: 1px solid var(--line); border-top: 2px solid var(--violet); border-radius: var(--r); background: var(--panel); max-width: 640px; }
.bst-login h2 { margin: 0 0 14px; }
.bst-rules { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.bst-rules li { padding: 10px 14px; border-left: 3px solid var(--violet); background: var(--panel-2); border-radius: 0 var(--r-s) var(--r-s) 0; color: var(--muted); }
.bst-rules b { color: var(--text); }
.bst-login .fine { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.bst-play { display: grid; gap: 14px; }
.bst-stock { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.bst-stock > div { flex: 1 1 150px; padding: 12px 16px; border: 1px solid var(--line); border-top: 2px solid var(--violet); border-radius: var(--r); background: var(--panel); }
.bst-stock .k { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.bst-stock b { display: block; font: 800 28px/1.1 var(--display); font-variant-numeric: tabular-nums; margin-top: 2px; }
.bst-stock small { color: var(--muted); font-size: 12px; }
.bst-stock .btn { align-self: center; }
.stage { --cw: min(250px, calc((min(1180px, 100vw - 80px) - 28px) / 3)); position: relative; display: grid; place-items: center; min-height: calc(var(--cw) * 2.8 + 300px); padding: 30px 12px; border: 1px solid var(--line); border-radius: var(--r); background: radial-gradient(600px 320px at 50% 55%, rgba(124, 92, 255, .22), transparent 72%), var(--panel); overflow: hidden; }
.pack-zone { display: grid; justify-items: center; gap: 16px; }
.pack { position: relative; width: clamp(160px, 21vw, 210px); cursor: pointer; transition: transform .25s cubic-bezier(.2, .8, .2, 1), filter .3s; }
.pack.off { filter: grayscale(.7) brightness(.55); pointer-events: none; }
.pack.shake { animation: shake .65s linear both; }
@keyframes shake { 0%, 100% { transform: none; } 10% { transform: translate(-4px, 1px) rotate(-3deg); } 25% { transform: translate(5px, -2px) rotate(3deg); } 40% { transform: translate(-6px, 1px) rotate(-4deg); } 55% { transform: translate(6px, 0) rotate(4deg); } 75% { transform: translate(-3px, 1px) rotate(-2deg); } }
.pack.burst { pointer-events: none; animation: pack-burst .45s ease-in forwards; }
@keyframes pack-burst { 40% { transform: scale(1.06); filter: brightness(1.5); } to { transform: scale(1.3); opacity: 0; filter: brightness(2.4); } }
.pk-face .pk-title { position: absolute; left: 6cqw; right: 6cqw; top: 70%; text-align: center; font: 800 10.5cqw/1.05 var(--display); letter-spacing: -.01em; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
.pk-face .pk-sub { position: absolute; left: 6cqw; right: 6cqw; top: 79.5%; text-align: center; font: 600 3.9cqw/1.2 var(--body); letter-spacing: .18em; text-transform: uppercase; color: #c9bdff; }
.hint { margin: 0; color: var(--muted); font-size: 13.5px; min-height: 1.5em; }
.pack-wrap { position: relative; animation: idle 4.2s ease-in-out infinite; }
.pack-wrap::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -22px; height: 18px; border-radius: 50%; background: rgba(124, 92, 255, .4); filter: blur(12px); z-index: -1; animation: idle-shadow 4.2s ease-in-out infinite; }
@keyframes idle { 50% { transform: translateY(-9px) rotate(-.7deg); } }
@keyframes idle-shadow { 50% { transform: scaleX(.82); opacity: .6; } }
.pack { width: clamp(180px, 20vw, 280px); background: transparent; border: 0; padding: 0; outline: none; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.pack:active { cursor: grabbing; }
.tear { position: absolute; left: 0; top: 11.5%; height: 3px; width: calc(var(--tear, 0) * 100%); max-width: 100%; background: #fff; box-shadow: 0 0 14px 2px rgba(255, 255, 255, .85), 0 0 30px 6px rgba(143, 124, 255, .7); opacity: calc(var(--tear, 0) * 6); pointer-events: none; z-index: 5; }
.pack-wrap:has(.pack.burst) { animation: none; }

.bst-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.bst-tabs a { padding: 10px 16px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.bst-tabs a:hover { color: #fff; }
.bst-tabs a.on { color: #fff; border-bottom-color: var(--hot); }
.stage { overflow: hidden; }
.ghost { position: absolute; width: clamp(120px, 15vw, 190px); aspect-ratio: .718; border-radius: 6px; border: 1px solid rgba(124, 92, 255, .35); background: repeating-linear-gradient(135deg, #1a1440 0 10px, #211a52 10px 11px); opacity: .35; filter: blur(5px); pointer-events: none; }
.ghost.g1 { left: 6%; top: 8%; transform: rotate(-14deg); }
.ghost.g2 { right: 5%; top: 14%; transform: rotate(11deg); filter: blur(7px); opacity: .28; }
.ghost.g3 { right: 14%; bottom: -6%; transform: rotate(-8deg); filter: blur(9px); opacity: .25; }
.pack-zone, .reveal, .after { position: relative; z-index: 1; }
.counter { font: 800 clamp(34px, 5vw, 48px)/1 var(--display); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.counter span { color: var(--muted); }
.counter-s { margin: 0; color: var(--muted); font-size: 13.5px; min-height: 1.4em; }
.counter-s b { color: var(--text); font-variant-numeric: tabular-nums; }
.pack-wrap { animation: idle 4.2s ease-in-out infinite; margin: 10px 0 6px; }
.odds { width: min(420px, 100%); margin-top: 4px; text-align: center; }
.odds summary { display: inline-block; cursor: pointer; color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; list-style: none; }
.odds summary::-webkit-details-marker { display: none; }
.odds summary:hover { color: #fff; }
.odds ul { list-style: none; margin: 12px 0 8px; padding: 0; display: grid; gap: 6px; text-align: left; }
.odds li { display: grid; grid-template-columns: 6px 1fr auto auto; gap: 12px; align-items: center; padding: 8px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-s); font-size: 13.5px; }
.odds li i { height: 22px; border-radius: 1px; }
.odds li b { text-transform: capitalize; font-weight: 600; }
.odds li span { color: var(--text); font-variant-numeric: tabular-nums; }
.odds li small { color: var(--muted); }
.odds p { margin: 0; color: var(--muted); font-size: 12.5px; }

.reveal { display: grid; justify-items: center; gap: 22px; width: 100%; }
.grid5 { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; width: min(1240px, 100%); }
.rvc { position: relative; align-self: flex-start; flex: 0 0 calc((100% - 28px) / 3); max-width: 250px; aspect-ratio: .718; opacity: 0; transform: translateY(28px) scale(.92); }
.rvc.in { animation: slot-in .5s calc(var(--i, 0) * 90ms) cubic-bezier(.2, .8, .2, 1) both; }
@keyframes slot-in { to { opacity: 1; transform: none; } }
.rvc .rface { position: absolute; inset: 0; opacity: 0; transform: rotateY(-90deg); }
.rvc .rback { position: absolute; inset: 0; display: grid; place-items: center; padding: 0; border-radius: 5px; border: 1px solid var(--line-2); background: repeating-linear-gradient(135deg, #1a1440 0 10px, #211a52 10px 11px); color: var(--violet-2); font-size: 46px; cursor: pointer; transition: transform .26s ease-in, box-shadow .2s; }
.rvc .rback .ic { stroke-width: 1.3; }
.rvc .rback:hover { box-shadow: 0 0 0 2px var(--violet), 0 0 26px -6px var(--violet); transform: translateY(-4px); }
.rvc.flipped .rback { transform: rotateY(90deg); pointer-events: none; }
.rvc.flipped .rface { opacity: 1; transform: none; transition: transform .3s .24s cubic-bezier(.2, .8, .2, 1), opacity 0s .24s; }
.rvc.flipped::before { content: ""; position: absolute; inset: -20px; z-index: -1; opacity: 0; border-radius: 14px; background: radial-gradient(circle, var(--burst, transparent), transparent 68%); animation: burst 1.2s .3s ease-out; }
.rvc.r-rare { --burst: rgba(70, 182, 255, .55); } .rvc.r-épique { --burst: rgba(183, 131, 255, .6); } .rvc.r-légendaire { --burst: rgba(232, 184, 74, .7); } .rvc.r-mythique { --burst: rgba(255, 84, 104, .75); }
@keyframes burst { 20% { opacity: 1; transform: scale(1.15); } to { opacity: 0; transform: scale(1.6); } }
.btn-big { padding: 16px 34px; font-size: 16px; background: var(--hot); }
.btn-big:hover:not(:disabled) { background: #ff6682; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.opened-line { margin: 0; text-align: center; color: var(--muted); font-size: 13px; }
.opened-line b { color: var(--text); }
@media (max-width: 640px) { .rvc { flex-basis: calc((100% - 16px) / 3); } .grid5 { gap: 8px; } .ghost { display: none; } }
.after { display: grid; justify-items: center; gap: 14px; margin-top: 22px; text-align: center; }
.after p { margin: 0; color: var(--muted); max-width: 56ch; }
.after-b { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* the cards themselves (face drawn by cards.js, real text on top) */
.tcg-wrap { --ac: #d3cde2; position: relative; container-type: inline-size; width: 100%; }
.tcg-wrap.l-trouvaille { --ac: #9a8fb0; } .tcg-wrap.l-rare { --ac: #46b6ff; } .tcg-wrap.l-épique { --ac: #b783ff; } .tcg-wrap.l-légendaire { --ac: #e8b84a; } .tcg-wrap.l-mythique { --ac: #ff5468; }
.tcg-wrap .holo-card { width: 100%; }
/* cards-css forces `display:grid; width:100%; aspect-ratio` on everything inside the rotator: undo that for our text layer */
.holo-card__rotator .tcg-face, .holo-card__rotator .tcg-face * { width: auto; height: auto; aspect-ratio: auto; display: block; border-radius: 0; overflow: visible; grid-area: auto; pointer-events: none; transform-style: flat; }
.holo-card__rotator .tcg-face { position: absolute; inset: 0; width: 100%; height: 100%; color: #fff; font-family: var(--body); }
/* name plate (top) */
.tcg-face .tcg-name { position: absolute; left: 6.4cqw; right: 21cqw; top: 3.1%; height: 9.8%; display: flex; align-items: center; font: 800 6.3cqw/1.05 var(--display); letter-spacing: -.01em; text-shadow: 0 1px 0 rgba(0, 0, 0, .55); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tcg-face .tcg-name.long { font-size: 4.8cqw; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; align-content: center; }
.tcg-face .tcg-pts { position: absolute; right: 5.4cqw; top: 3.9%; width: 10.4cqw; height: 8.2%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0, 0, 0, .38); border: 1px solid var(--ac); line-height: 1; }
.tcg-face .tcg-pts b { font: 800 5.6cqw/1 var(--display); color: #fff; }
.tcg-face .tcg-pts small { font: 700 2.4cqw/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ac); margin-top: .6cqw; }
/* rarity ribbon */
.tcg-face .tcg-rar { position: absolute; left: 0; right: 0; top: 72.5%; text-align: center; font: 700 3.7cqw/1.4 var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--ac); }
/* flavour text */
.tcg-face .tcg-flav { position: absolute; left: 8cqw; right: 8cqw; top: 78.3%; height: 14.4%; display: flex; align-items: center; justify-content: center; text-align: center; font: italic 500 3.9cqw/1.32 var(--body); color: #d6cff0; }
.tcg-face .tcg-flav span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* footer */
.tcg-face .tcg-no { position: absolute; left: 6.4cqw; bottom: 2.5%; font: 700 3.3cqw/1.2 var(--body); letter-spacing: .1em; color: #b9b0d8; font-variant-numeric: tabular-nums; }
.tcg-face .tcg-pips { position: absolute; right: 6.4cqw; bottom: 2.9%; display: inline-flex; gap: .9cqw; }
.tcg-face .tcg-pips i { display: block; width: 2.2cqw; height: 2.2cqw; background: rgba(255, 255, 255, .16); }
.tcg-face .tcg-pips i.on { background: var(--ac); }
.tcg-wrap > .tcg-qty { position: absolute; right: 8cqw; top: 62%; padding: .6cqw 2cqw; background: #07041a; border: 1px solid var(--line-2); font: 700 4.6cqw/1.3 var(--body); z-index: 3; }
.tcg-wrap > .tcg-new { position: absolute; left: 8cqw; top: 16.5%; padding: .8cqw 2.4cqw; background: var(--hot); color: #fff; font: 700 3.4cqw/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; z-index: 3; }
.card-c.off { aspect-ratio: .718; min-height: 0; }
.cards { grid-template-columns: repeat(auto-fill, minmax(clamp(160px, 14vw, 230px), 1fr)); gap: 14px; }
.cards > .tcg-wrap.a-card { animation: card-in .45s calc(var(--i, 0) * 22ms) cubic-bezier(.2, .8, .2, 1) both; }
@media (max-width: 640px) { .cards { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; } }

/* nothing may change the height of the stage while a booster plays: what is hidden keeps its place */
.stage .after[hidden] { display: grid !important; visibility: hidden; }
.stage #revealall[hidden] { display: inline-flex !important; visibility: hidden; }
.stage { overflow-anchor: none; }

.cr { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.cr h2 { margin-bottom: 8px; }
.cr a { color: var(--violet-2); }
.cr-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.cr-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 9px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r-s); font-size: 13.5px; }
.cr-list a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-list span { color: var(--muted); text-align: right; }
@media (max-width: 640px) { .cr-list li { grid-template-columns: 1fr; } .cr-list span { text-align: left; } }

/* big view of a card */
.tcg-wrap.zoomable { cursor: zoom-in; outline-offset: 3px; }
.zoom-ov { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(6, 4, 16, .84); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: zoom-in-bg .2s ease-out both; }
.zoom-ov.out { animation: zoom-out-bg .16s ease-in both; }
@keyframes zoom-in-bg { from { opacity: 0; } }
@keyframes zoom-out-bg { to { opacity: 0; } }
.zoom-box { width: min(90vw, calc((100vh - 64px) * .718), 440px); animation: zoom-in-card .28s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes zoom-in-card { from { opacity: 0; transform: translateY(18px) scale(.94); } }
.zoom-x { position: fixed; top: 14px; right: 16px; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: var(--panel); color: #fff; font: 400 26px/1 var(--body); cursor: pointer; }
.zoom-x:hover { background: var(--panel-3); }

/* wide screens: the five booster cards sit in one row and use the room */
@media (min-width: 1280px) {
  .stage { --cw: min(310px, calc((min(1600px, 100vw - 80px) - 56px) / 5)); min-height: calc(var(--cw) * 1.4 + 400px); }
  .grid5 { width: min(1600px, 100%); }
  .rvc { flex-basis: calc((100% - 56px) / 5); max-width: 310px; }
  .pack { width: clamp(220px, 17vw, 320px); }
  .app { grid-template-columns: 300px minmax(0, 1fr) 300px; }
}

/* cards not caught yet: small placeholders under the ones that are */
.cards.miss { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; margin-top: 10px; }
.miss-c { aspect-ratio: .718; display: grid; place-items: center; border: 1px dashed var(--line-2); border-radius: 3px; color: #473f85; font: 800 14px var(--display); }
