:root {
  --bg: #0a1022; --bg2: #101a33; --panel: #131e3b; --panel2: #18254a; --line: #26365f;
  --text: #e8eefc; --mute: #8fa2cd; --gold: #f5c451; --gold2: #ffdf8a; --accent: #5b8cff;
  --ok: #3ddc97; --danger: #ff6b81; --r: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --leather: #1a1f3a; --leather2: #0f1329; --sleeve: rgba(255, 255, 255, .05);
  font-family: 'Heebo', system-ui, sans-serif;
}
:root[data-theme="light"] {
  --bg: #eef2fb; --bg2: #e3e9f7; --panel: #ffffff; --panel2: #f3f6fd; --line: #d3dcf0;
  --text: #121a33; --mute: #5b6a90; --gold: #c58a00; --gold2: #e0a72a; --accent: #2f62e8;
  --shadow: 0 10px 28px rgba(30, 50, 100, .14);
  --leather: #2b3358; --leather2: #1d2342; --sleeve: rgba(255, 255, 255, .55);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); min-height: 100vh; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.bg-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 500px at 15% -10%, rgba(91, 140, 255, .22), transparent 60%), radial-gradient(800px 500px at 90% 0%, rgba(245, 196, 81, .13), transparent 60%); }
:root[data-theme="light"] .bg-glow { opacity: .5; }

/* topbar */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 10px clamp(14px, 3vw, 32px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--gold); font-family: 'Sora', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: -.3px; }
.brand span { color: var(--text); } .brand b { color: var(--gold); font-weight: 800; }
.games { display: flex; gap: 6px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.game { border: 1px solid transparent; background: none; padding: 7px 14px; border-radius: 999px; color: var(--mute); font-weight: 500; white-space: nowrap; transition: .2s; }
.game:hover { color: var(--text); background: var(--panel); }
.game.on { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1b1400; font-weight: 700; }
.game i { font-style: normal; font-size: 10px; margin-inline-start: 6px; padding: 2px 6px; border-radius: 6px; background: var(--panel2); color: var(--mute); }
.tools { display: flex; gap: 6px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); font-weight: 700; font-size: 14px; transition: .2s; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 22px clamp(14px, 3vw, 32px) 70px; }
.state { text-align: center; color: var(--mute); padding: 60px 10px; grid-column: 1/-1; }
.state.big { font-size: 22px; color: var(--gold); font-weight: 700; }
.state .btn { margin-top: 14px; }

/* buttons / segments */
.btn { border: 0; border-radius: 12px; padding: 11px 20px; font-weight: 700; background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1b1400; transition: .2s; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn.ghost { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--gold); }
.btn.sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.seg { display: inline-flex; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 9px; color: var(--mute); font-weight: 500; transition: .15s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--panel2); color: var(--gold); font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }
.seg.sm button { padding: 6px 12px; font-size: 14px; }
.seg .lbl { padding: 0 10px; color: var(--mute); font-size: 13px; }
input[type=search], input[type=password], select { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; outline: none; transition: .15s; }
input:focus, select:focus { border-color: var(--gold); }
select option { background: var(--panel); }
.grow { flex: 1; }

/* hero */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 7vw, 80px) clamp(16px, 4vw, 40px); text-align: center; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(91, 140, 255, .06)); }
.hero-in { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; margin: 0 0 10px; }
.hero h1 { font-size: clamp(30px, 5.2vw, 56px); line-height: 1.12; margin: 0 0 14px; font-weight: 800; letter-spacing: -.02em; }
.sub { color: var(--mute); font-size: clamp(15px, 1.6vw, 18px); max-width: 600px; margin: 0 auto; }
.hero-cards { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5; }
.hero-cards i { position: absolute; width: 150px; aspect-ratio: 5/7; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(245, 196, 81, .25), rgba(91, 140, 255, .18)); box-shadow: var(--shadow); }
.hero-cards i:nth-child(1) { left: 4%; top: 20%; transform: rotate(-14deg); }
.hero-cards i:nth-child(2) { right: 5%; top: 12%; transform: rotate(11deg); }
.hero-cards i:nth-child(3) { right: 20%; bottom: -60px; transform: rotate(-5deg); width: 120px; }
@media (max-width: 800px) { .hero-cards { display: none; } }

.summary { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.summary div { flex: 1; min-width: 130px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
.summary b { display: block; font-size: 28px; color: var(--gold); font-family: 'Sora', sans-serif; line-height: 1.1; }
.summary span { color: var(--mute); font-size: 13px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.filters input { flex: 1; min-width: 220px; }

/* set cards */
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.set-card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; transition: .25s; overflow: hidden; }
.set-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow); }
.set-card .logo { height: 78px; display: grid; place-items: center; margin-bottom: 12px; font-weight: 800; text-align: center; }
.set-card .logo img { max-height: 78px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }
.set-card .logo.cv { height: 170px; }
.set-card .logo img.cover { max-height: 170px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); transition: transform .3s; }
.set-card:hover .logo img.cover { transform: scale(1.06) rotate(-2deg); }
.set-cover { height: 96px; max-width: 160px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.set-card h3 { margin: 0; font-size: 16px; }
.meta { color: var(--mute); font-size: 13px; margin: 2px 0 12px; }
.bar { height: 7px; background: var(--panel2); border-radius: 9px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 9px; transition: width .5s; }
.count { display: flex; justify-content: space-between; margin: 7px 0 0; font-size: 13px; color: var(--mute); }
.count b { color: var(--text); }
.set-card.done { border-color: var(--gold); }
.set-card.done::after { content: '\2605'; position: absolute; top: 10px; inset-inline-end: 12px; color: var(--gold); font-size: 20px; }

/* set page */
.back { display: inline-block; color: var(--mute); margin-bottom: 14px; font-weight: 500; }
.back:hover { color: var(--gold); }
.set-head { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; padding: 20px 24px; border-radius: 20px; background: linear-gradient(135deg, var(--panel), var(--panel2)); border: 1px solid var(--line); }
.set-title { display: flex; align-items: center; gap: 20px; }
.set-logo { height: 70px; max-width: 200px; object-fit: contain; }
.set-title h2 { margin: 0; font-size: clamp(22px, 3vw, 32px); }
.set-title .meta { margin: 2px 0 0; }
.stats { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); flex-wrap: wrap; }
.stat b { display: block; font-family: 'Sora', sans-serif; font-size: 24px; line-height: 1.1; }
.stat span { color: var(--mute); font-size: 12.5px; }
.ring { position: relative; width: 96px; height: 96px; }
.ring svg { width: 100%; height: 100%; } .ring circle { fill: none; stroke-width: 9; }
.ring .trk { stroke: var(--panel); } .ring .val { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .6s; }
.ring.gold .val { stroke: var(--gold); filter: drop-shadow(0 0 6px var(--gold)); }
.ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring b { font-family: 'Sora', sans-serif; font-size: 22px; }
.ring small { font-size: 9px; color: var(--gold); font-weight: 800; letter-spacing: .06em; }

.controls, .toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar { padding: 10px 0 4px; }
.toolbar input[type=search] { min-width: 200px; flex: 1; max-width: 340px; }
.jump { color: var(--mute); font-size: 14px; display: flex; align-items: center; gap: 8px; }

/* binder */
.binder-wrap { display: flex; align-items: center; gap: 12px; direction: ltr; }
.nav { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-size: 28px; line-height: 1; transition: .2s; }
.nav:hover:not(:disabled) { background: var(--gold); color: #1b1400; border-color: var(--gold); }
.nav:disabled { opacity: .25; cursor: default; }
.binder { position: relative; flex: 1; min-width: 0; display: flex; gap: 0; padding: 22px; border-radius: 22px; direction: ltr;
  background: linear-gradient(145deg, var(--leather), var(--leather2)); border: 1px solid #2b3560;
  box-shadow: var(--shadow), inset 0 0 0 3px rgba(0, 0, 0, .25), inset 0 2px 0 rgba(255, 255, 255, .06); }
.binder::before { content: ''; position: absolute; inset: 9px; border: 1.5px dashed rgba(245, 196, 81, .28); border-radius: 15px; pointer-events: none; }
.binder.fnext { animation: slideN .38s ease; } .binder.fprev { animation: slideP .38s ease; }
@keyframes slideN { from { opacity: .2; transform: translateX(34px) rotateY(-6deg); } to { opacity: 1; transform: none; } }
@keyframes slideP { from { opacity: .2; transform: translateX(-34px) rotateY(6deg); } to { opacity: 1; transform: none; } }
.rings { display: none; position: absolute; top: 0; bottom: 0; left: 50%; width: 26px; margin-left: -13px; z-index: 3; flex-direction: column; justify-content: space-evenly; align-items: center; pointer-events: none; }
.binder.two .rings { display: flex; }
.rings i { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #b9c3dd 40%, #5d6a8f); box-shadow: 0 3px 6px rgba(0, 0, 0, .5); }
.bpage { flex: 1; min-width: 0; padding: 12px 16px 6px; background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .18)); border-radius: 10px; }
.binder.two .bpage:first-of-type { border-radius: 10px 0 0 10px; margin-right: 0; border-right: 1px solid rgba(0, 0, 0, .35); }
.binder.two .bpage:last-of-type { border-radius: 0 10px 10px 0; }
.grid { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: clamp(6px, 1vw, 12px); }
.pfoot { display: flex; justify-content: space-between; color: var(--mute); font-size: 12px; padding: 8px 4px 2px; }
.pfoot .ok { color: var(--ok); font-weight: 700; }
.binder-hint { text-align: center; color: var(--mute); font-size: 13px; margin-top: 12px; }

.pocket { position: relative; border-radius: 8px; padding: 4px; background: var(--sleeve); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.pocket.empty { opacity: .35; aspect-ratio: 5/7; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); background: none; }
.slot { position: relative; aspect-ratio: 5/7; border-radius: 6px; overflow: hidden; cursor: pointer; transform-style: preserve-3d; transform: perspective(700px) rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform .15s ease-out, filter .25s; background: #0b1020; }
.slot img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; transition: filter .3s; }
.pocket.missing .slot img { filter: grayscale(1) brightness(.4) contrast(.95); }
.pocket.missing:hover .slot img { filter: grayscale(.5) brightness(.7); }
.pocket.partial .slot img { filter: grayscale(.6) brightness(.7); }
.pocket.partial { box-shadow: inset 0 0 0 1.5px rgba(245, 196, 81, .55); }
/* "SAMPLE" placeholder stamp, like the proxy cards collectors slip into empty pockets */
.sample { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; pointer-events: none; }
.sample b { width: 150%; text-align: center; transform: rotate(-32deg); padding: .32em 0; font: 800 clamp(11px, 1.5vw, 20px)/1 'Sora', sans-serif; letter-spacing: .24em; color: #fff;
  background: rgba(8, 12, 28, .55); border-block: 1.5px solid rgba(255, 255, 255, .55); text-shadow: 0 1px 3px #000; }
.g4 .sample b { font-size: clamp(9px, 1.1vw, 15px); letter-spacing: .18em; }
.pocket.missing:hover .sample b { opacity: .55; }
.shine { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; mix-blend-mode: color-dodge;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .55), transparent 45%), linear-gradient(115deg, transparent 20%, rgba(255, 0, 150, .18) 40%, rgba(0, 220, 255, .18) 55%, transparent 75%); }
.pocket.owned .slot:hover .shine { opacity: .85; }
.pocket.owned .slot:hover { box-shadow: 0 12px 24px rgba(0, 0, 0, .5); z-index: 2; }
.pocket.owned::after { content: '\2713'; position: absolute; top: 7px; inset-inline-start: 7px; width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: #05281a; font-size: 12px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); pointer-events: none; }
.num { position: absolute; left: 7px; bottom: 7px; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: rgba(5, 8, 20, .78); color: #dbe5ff; pointer-events: none; }
.vtag { position: absolute; right: 7px; bottom: 7px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 1px 7px; border-radius: 6px; background: rgba(5, 8, 20, .85); color: #aebfe6; pointer-events: none; }
.pocket.owned .vtag { background: var(--gold); color: #1b1400; }
.g4 .vtag { font-size: 8.5px; padding: 0 5px; }
/* foil pockets get a faint rainbow sheen once owned */
.pocket.v-F.owned .slot::after { content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color-dodge; opacity: .35;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 0, 150, .35) 40%, rgba(0, 220, 255, .35) 55%, transparent 75%); }
.num .alt { font-style: normal; font-size: .85em; color: var(--gold); margin-inline-start: 3px; }
.pocket.missing .num { color: var(--gold2); }
.zoom { position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; border-radius: 6px; border: 0; background: rgba(5, 8, 20, .75); color: #fff; font-size: 12px; opacity: 0; transition: .2s; display: grid; place-items: center; padding: 0; }
.pocket:hover .zoom, .zoom:focus { opacity: 1; }
.chips { position: absolute; right: 7px; bottom: 7px; display: flex; gap: 3px; }
.chip { border: 0; min-width: 22px; height: 20px; padding: 0 4px; border-radius: 6px; font-size: 10px; font-weight: 800; background: rgba(5, 8, 20, .85); color: #8fa2cd; }
.chip.on { background: var(--gold); color: #1b1400; }
.g4 .chip { min-width: 18px; height: 17px; font-size: 9px; } .g4 .num { font-size: 9px; } .g4 .zoom { display: none; }

/* list */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.tbl { width: 100%; border-collapse: collapse; min-width: 600px; }
.tbl th { text-align: start; font-size: 12px; color: var(--mute); font-weight: 500; padding: 10px 14px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .06em; position: sticky; top: 0; background: var(--panel); }
.tbl td { padding: 8px 14px; border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); vertical-align: middle; }
.tbl tr:hover td { background: var(--panel2); }
.tbl tr.own .nm { color: var(--mute); }
.thumb { width: 38px; border-radius: 4px; cursor: zoom-in; display: block; }
.mono { font-variant-numeric: tabular-nums; color: var(--mute); }
.nm { font-weight: 500; }
.vcell { white-space: nowrap; }
.vbtn { position: relative; width: 34px; height: 34px; margin-inline-end: 4px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--panel2); color: var(--ok); font-weight: 800; font-size: 14px; }
.vbtn small { position: absolute; bottom: -1px; inset-inline-end: 3px; font-size: 8.5px; color: var(--mute); }
.vbtn.on { background: color-mix(in srgb, var(--ok) 22%, var(--panel)); border-color: var(--ok); }
.rar { font-size: 12px; padding: 3px 9px; border-radius: 99px; background: var(--panel2); color: var(--mute); white-space: nowrap; }
.rar.r-rare { color: #8fb7ff; } .rar.r-ultra { color: #c79bff; background: rgba(160, 100, 255, .13); }
.rar.r-secret { color: var(--gold); background: rgba(245, 196, 81, .14); font-weight: 700; }

/* missing gallery */
.miss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 18px; }
.miss { position: relative; margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px; transition: .2s; }
.miss:hover { border-color: var(--gold); transform: translateY(-3px); }
.miss img { width: 100%; border-radius: 8px; display: block; cursor: zoom-in; aspect-ratio: 5/7; object-fit: cover; background: #0b1020; }
.miss figcaption { font-size: 13px; padding: 8px 2px 0; line-height: 1.35; }
.miss figcaption b { color: var(--gold); }
.miss figcaption em { display: block; font-style: normal; color: var(--mute); font-size: 12px; }
.miss figcaption span { display: block; color: var(--ok); font-weight: 700; margin-top: 2px; }
.miss .got { position: absolute; top: 16px; inset-inline-end: 16px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(5, 8, 20, .8); color: var(--ok); font-weight: 800; opacity: 0; transition: .2s; }
.miss:hover .got { opacity: 1; } .miss .got:hover { background: var(--ok); color: #05281a; }
.print-title { display: none; }

/* modal */
dialog { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 20px; padding: 0; max-width: min(860px, 94vw); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
dialog::backdrop { background: rgba(3, 6, 18, .75); backdrop-filter: blur(5px); }
.x { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel2); }
.zoom-box { position: relative; display: flex; gap: 28px; padding: 28px; align-items: flex-start; }
.zoom-box img { width: min(360px, 44vw); border-radius: 14px; box-shadow: var(--shadow); flex: none; }
.zinfo { flex: 1; min-width: 200px; } .zinfo h3 { margin: 0; font-size: 26px; } .zinfo h4 { margin: 22px 0 8px; color: var(--mute); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.vrow { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--panel2); text-align: start; transition: .15s; }
.vrow em { margin-inline-start: auto; font-style: normal; color: var(--ok); font-weight: 700; }
.vrow .tick { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--mute); display: grid; place-items: center; color: #05281a; font-weight: 800; }
.vrow.on { border-color: var(--ok); } .vrow.on .tick { background: var(--ok); border-color: var(--ok); }
.settings { position: relative; padding: 28px; width: min(520px, 90vw); } .settings h3 { margin: 0 0 16px; }
.fld { display: block; color: var(--mute); font-size: 14px; margin-bottom: 16px; } .fld input { display: block; width: 100%; margin-top: 6px; color: var(--text); }
.row { display: flex; gap: 8px; flex-wrap: wrap; } .note { color: var(--mute); font-size: 13px; margin-bottom: 0; }
@media (max-width: 640px) { .zoom-box { flex-direction: column; align-items: center; } .zoom-box img { width: 70vw; } }

.toast { position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 30px); background: var(--gold); color: #1b1400; font-weight: 700; padding: 11px 22px; border-radius: 99px; opacity: 0; pointer-events: none; transition: .3s; z-index: 100; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 979px) { .nav { width: 38px; height: 38px; font-size: 22px; } .binder { padding: 14px; } .bpage { padding: 8px 8px 4px; } .rings i { width: 20px; height: 20px; } .rings { width: 20px; margin-left: -10px; } }
@media (max-width: 600px) {
  .binder-wrap { gap: 4px; } .nav { position: absolute; z-index: 5; } .nav.prev { left: 0; } .nav.next { right: 0; }
  .binder-wrap { position: relative; } .binder { padding: 10px; } .bpage { padding: 8px 6px 4px; }
  .topbar { gap: 8px; } .brand span { display: none; }
}

/* print: only the missing list */
@media print {
  body.print-missing { background: #fff; color: #000; }
  body.print-missing .topbar, body.print-missing .bg-glow, body.print-missing .back, body.print-missing .set-head,
  body.print-missing .controls, body.print-missing #toolbar, body.print-missing .got, body.print-missing .toast { display: none !important; }
  body.print-missing .print-title { display: block; } body.print-missing .print-title h2 { color: #000; }
  body.print-missing .miss { background: #fff; border-color: #ccc; break-inside: avoid; }
  body.print-missing .miss figcaption, body.print-missing .miss figcaption em { color: #222; }
  body.print-missing .miss-grid { grid-template-columns: repeat(5, 1fr); gap: 10px; }
  body.print-missing .wrap { padding: 0; }
}

/* accounts / report / footer / notice */
.btn.wide { width: 100%; justify-content: center; margin-top: 6px; }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn.danger:hover { background: var(--danger); color: #fff; }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--accent); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--gold); }
.icon-btn.avatar { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1b1400; border: 0; }
.col { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.auth .agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--mute); margin: 14px 0; }
.auth .agree input { margin-top: 3px; accent-color: var(--gold); }
.auth .agree a, .notice a { color: var(--accent); }
.gbtn { width: 100%; justify-content: center; }
.gbtn b { font-family: 'Sora', sans-serif; color: #4285f4; }
.or { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 12px; margin: 16px 0 6px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.err { min-height: 1.3em; color: var(--danger); font-size: 13px; margin: 4px 0; }
.links2 { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.settings textarea, .settings input[type=email], .settings input[type=password] { display: block; width: 100%; margin-top: 6px; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; color: var(--text); outline: none; resize: vertical; }
.settings select { display: block; width: 100%; margin-top: 6px; }
.settings textarea:focus, .settings input:focus { border-color: var(--gold); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.footer { border-top: 1px solid var(--line); padding: 28px clamp(14px, 3vw, 32px) 90px; text-align: center; color: var(--mute); font-size: 12.5px; }
.footer .fan { max-width: 820px; margin: 0 auto 12px; line-height: 1.6; }
.footer .links a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer .links .linkbtn { color: var(--text); font-size: inherit; }
.footer .copy { margin: 10px 0 0; opacity: .7; }
.fab { position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 40; border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 9px 16px; border-radius: 99px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow); transition: .2s; }
.fab:hover { border-color: var(--gold); color: var(--gold); }
.notice { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 14px 18px; background: var(--panel); border-top: 1px solid var(--gold); font-size: 13.5px; box-shadow: 0 -10px 30px rgba(0, 0, 0, .35); }
.notice span { max-width: 780px; }
@media (max-width: 600px) { .fab { bottom: 12px; padding: 7px 12px; } }

/* legal pages */
.legal { max-width: 780px; margin: 0 auto; padding: 40px 18px 80px; line-height: 1.7; }
.legal h1 { font-size: 34px; margin: 0 0 4px; } .legal h2 { margin: 32px 0 8px; font-size: 20px; color: var(--gold); }
.legal .meta { margin: 0 0 24px; } .legal ul { padding-inline-start: 22px; } .legal a { color: var(--accent); }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; } .legal td, .legal th { border: 1px solid var(--line); padding: 8px 10px; text-align: start; vertical-align: top; }
.legal .todo { background: rgba(245, 196, 81, .12); border: 1px solid var(--gold); border-radius: 10px; padding: 10px 14px; font-size: 14px; }

/* jump to card */
.jumpsearch { position: relative; min-width: 240px; }
.jumpsearch input { width: 100%; }
.jres { position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 25; max-height: 380px; overflow-y: auto; background: var(--panel); border: 1px solid var(--gold); border-radius: 12px; box-shadow: var(--shadow); padding: 4px; min-width: 280px; }
.jr { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 10px; border: 0; border-radius: 8px; background: none; text-align: start; }
.jr:hover { background: var(--panel2); }
.jr img { height: 46px; border-radius: 4px; flex: none; }
.jr b { color: var(--gold); } .jr small { display: block; color: var(--mute); font-size: 12px; }
.jr .alt { font-style: normal; font-size: 11px; color: var(--gold); }
.jr.none { color: var(--mute); padding: 12px; }
.pocket.flash { animation: flash 2.2s ease; z-index: 3; }
@keyframes flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 196, 81, 0); } 15%, 60% { box-shadow: 0 0 0 4px var(--gold), 0 0 30px 6px rgba(245, 196, 81, .6); } }

/* static SEO pages */
.seo .h1, .seo h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.15; margin: 8px 0 14px; }
.seo .h2, .seo h2 { font-size: 20px; margin: 28px 0 12px; }
.seo h3 { margin: 18px 0 6px; } .seo ul { padding-inline-start: 20px; columns: 2 280px; } .seo li { margin: 3px 0; } .seo a:not(.btn):not(.set-card):not(.game) { color: var(--accent); }
.crumbs { font-size: 13px; color: var(--mute); margin-bottom: 10px; } .crumbs i { font-style: normal; margin: 0 4px; opacity: .5; } .crumbs a { color: var(--mute) !important; } .crumbs a:hover { color: var(--gold) !important; }
.prose { max-width: 820px; color: var(--text); } .prose p { margin: 0 0 12px; color: var(--mute); line-height: 1.7; } .prose b { color: var(--text); }
.seo-head .btn { flex: none; } .cta-row { margin: 24px 0; text-align: center; }
.seo .set-grid { margin-top: 18px; }

/* ================= mobile ================= */
button, a, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
dialog { max-height: 92vh; overflow-y: auto; }
@media (hover: none) { .zoom { opacity: .85; } .miss .got { opacity: 1; } }
@media (max-width: 600px) {
  body { font-size: 15px; }
  .topbar { flex-wrap: wrap; gap: 6px 8px; padding: 8px 12px; }
  .topbar .games { order: 3; flex: 1 1 100%; margin: 0 -12px; padding: 0 12px 2px; }
  .topbar .tools { margin-inline-start: auto; }
  .brand span { display: none; }
  .icon-btn { width: 36px; height: 36px; }
  .game { padding: 6px 12px; font-size: 14px; }
  .wrap { padding: 14px 12px 50px; }

  .hero { padding: 26px 14px; } .hero h1 { font-size: 27px; } .sub { font-size: 14.5px; }
  .summary { gap: 8px; margin-bottom: 14px; } .summary div { min-width: 0; padding: 10px 12px; border-radius: 12px; } .summary b { font-size: 21px; } .summary span { font-size: 11.5px; }
  .filters { gap: 8px; margin-bottom: 14px; } .filters input { min-width: 0; flex: 1 1 100%; }
  .set-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .set-card { padding: 12px; } .set-card .logo.cv { height: 118px; } .set-card .logo img.cover { max-height: 118px; } .set-card h3 { font-size: 14px; } .meta { font-size: 12px; } .count { font-size: 12px; }

  .set-head { padding: 14px; gap: 12px; border-radius: 16px; margin-bottom: 12px; }
  .set-title { gap: 12px; } .set-cover { height: 64px; } .set-title h2 { font-size: 20px; }
  .stats { gap: 10px 16px; width: 100%; } .ring { width: 70px; height: 70px; } .ring b { font-size: 17px; } .stat b { font-size: 19px; } .stat span { font-size: 11.5px; }
  .controls { gap: 8px; margin-bottom: 8px; } .controls .grow { display: none; }
  .seg button { padding: 7px 12px; font-size: 14px; } .seg.sm button { padding: 6px 10px; font-size: 13px; } .seg .lbl { display: none; }
  .btn.sm { padding: 7px 12px; font-size: 13px; }
  .toolbar { gap: 8px; padding: 4px 0 0; margin-bottom: 8px; }
  .toolbar .pages-seg { display: none; }
  .toolbar .jumpsearch { flex: 1 1 100%; } .toolbar .grow { display: none; }
  
  .toolbar input[type=search] { max-width: none; flex: 1 1 100%; }
  .jres { min-width: 0; }

  /* binder: arrows move below the pages instead of covering cards */
  .binder-wrap { flex-wrap: wrap; justify-content: space-between; gap: 10px 0; position: static; }
  .binder { order: 1; flex: 1 1 100%; padding: 12px; }
  .nav, .nav.prev, .nav.next { position: static; order: 2; width: 60px; height: 44px; border-radius: 12px; font-size: 26px; }
  .nav.next { order: 3; }
  .binder-hint { display: none; }
  .grid { gap: 6px; } .pocket { padding: 3px; }
  .num { font-size: 10px; left: 5px; bottom: 5px; } .vtag { font-size: 9px; right: 5px; bottom: 5px; padding: 0 5px; } .g4 .vtag { display: none; }
  .zoom { width: 26px; height: 26px; font-size: 13px; }

  .miss-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .miss { padding: 8px; }
  .tbl { min-width: 0; } .tbl th, .tbl td { padding: 7px 8px; } .thumb { width: 30px; } .vbtn { width: 30px; height: 30px; margin-inline-end: 3px; }
  .tbl th:nth-child(5), .tbl td:nth-child(5) { display: none; }   /* rarity column on phones */

  .notice { padding: 10px 14px; gap: 10px; font-size: 12.5px; justify-content: space-between; flex-wrap: nowrap; } .notice .btn { flex: none; padding: 7px 14px; }
  .fab { bottom: 12px; inset-inline-start: auto; inset-inline-end: 12px; width: 42px; height: 42px; padding: 0; display: grid; place-items: center; font-size: 17px; } .fab .fab-t { display: none; }
  .footer { padding: 22px 14px 70px; }
  .zoom-box { padding: 18px; gap: 16px; } .zoom-box img { width: 62vw; } .zinfo h3 { font-size: 21px; }
  .settings { padding: 20px; }
  .legal { padding: 24px 14px 60px; } .legal h1 { font-size: 27px; }
}
@media (max-width: 600px) {
  .topbar { position: relative; }
  .toolbar .jumpsearch { order: 3; }
  .toolbar .jump { order: 2; flex: 1 1 130px; font-size: 0; } .toolbar .jump select { font-size: 14px; width: 100%; }
  .vtag { max-width: 72%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .set-head { margin-top: 4px; }
}

.vtag .vs { display: none; }
@media (max-width: 600px) { .vtag .vl { display: none; } .vtag .vs { display: inline; } .vtag { font-size: 10px; padding: 1px 6px; } }
@media (max-width: 600px) { .tbl .mono { white-space: nowrap; font-size: 12.5px; } .tbl .nm { font-size: 14px; } .thumb { width: 34px; min-height: 47px; background: var(--panel2); } }

/* series chips + grouped sets + logos */
.chips-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.schip { border: 1px solid var(--line); background: var(--panel); color: var(--mute); padding: 7px 16px; border-radius: 99px; font-weight: 500; font-size: 14px; transition: .15s; white-space: nowrap; }
.schip:hover { color: var(--text); border-color: var(--gold); }
.schip.on { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1b1400; border-color: transparent; font-weight: 700; }
.series-h { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 14px; font-size: 22px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.series-h:first-child { margin-top: 10px; } .series-h small { color: var(--mute); font-size: 13px; font-weight: 400; }
.set-card .logo.cv.lg { height: 112px; }
.set-card .logo img.cover.logo-img { max-height: 96px; max-width: 100%; width: auto; object-fit: contain; background: transparent; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .55)); }
.set-card:hover .logo img.cover.logo-img { transform: scale(1.06); }
.set-cover.logo-img { height: 76px; max-width: 220px; width: auto; object-fit: contain; background: transparent; }
@media (max-width: 600px) {
  .chips-row { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px 6px; padding: 0 12px 4px; scrollbar-width: none; }
  .series-h { font-size: 18px; margin: 22px 0 10px; }
  .set-card .logo.cv.lg { height: 76px; } .set-card .logo img.cover.logo-img { max-height: 64px; }
  .set-cover.logo-img { height: 50px; max-width: 130px; }
}

/* favorites, My Binder, wanted list */
.set-card { position: relative; }
.fav { position: absolute; top: 8px; inset-inline-end: 10px; z-index: 3; font-size: 22px; line-height: 1; color: var(--mute); cursor: pointer; padding: 2px 4px; border-radius: 8px; user-select: none; transition: .15s; }
.fav:hover { color: var(--gold); transform: scale(1.2); } .fav.on { color: var(--gold); text-shadow: 0 0 10px rgba(245, 196, 81, .6); }
.fav.big { position: static; display: inline-block; font-size: 26px; vertical-align: middle; margin-inline-start: 6px; }
.set-card.done::after { inset-inline-end: auto; inset-inline-start: 12px; }
.me-btn { display: inline-flex; align-items: center; gap: 6px; } .me-i { color: var(--gold); } .me .h1 { margin: 6px 0 14px; font-size: clamp(26px, 4vw, 38px); }
.note.guest { background: rgba(91, 140, 255, .1); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; color: var(--text); font-size: 14px; }
.empty { color: var(--mute); font-size: 14px; margin: 4px 0 8px; }
.pro-badge, .free-badge { font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 2px 9px; border-radius: 99px; margin-inline-start: auto; }
.pro-badge { background: var(--gold); color: #1b1400; } .free-badge { border: 1px solid var(--line); color: var(--mute); font-weight: 500; }
.wsearch { position: relative; max-width: 560px; margin-bottom: 14px; } .wsearch input { width: 100%; }
.jr.ws { cursor: default; } .jr.ws span { flex: 1; min-width: 0; } .jr.ws .btn { flex: none; }
.wanted { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.want { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.want img { width: 64px; border-radius: 6px; flex: none; } .want.owned { border-color: var(--ok); }
.want .wi { flex: 1; min-width: 0; line-height: 1.35; } .want .wi small { display: block; color: var(--mute); font-size: 12.5px; }
.want .wp { color: var(--ok); font-weight: 700; font-size: 14px; } .want .wp em { font-style: normal; color: var(--ok); margin-inline-start: 6px; }
.want .wa { display: flex; flex-direction: column; gap: 6px; flex: none; }
@media (max-width: 600px) {
  .me-btn { padding: 0; width: 36px; height: 36px; justify-content: center; border-radius: 10px; } .me-l { display: none; }
  .fav { font-size: 19px; top: 5px; inset-inline-end: 6px; }
  .wanted { grid-template-columns: 1fr; } .want img { width: 52px; }
  .want { flex-wrap: wrap; } .want .wa { flex-direction: row; width: 100%; }
}

.note.guest { margin: 0 0 14px; }
.me .summary { margin-bottom: 8px; }

/* wanted list: poster-style tiles + share dialog */
.wbar { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.wbar .wsearch { flex: 1 1 320px; margin: 0; max-width: 560px; } .wbar .btn { flex: none; height: 44px; }
.wbar .btn[disabled] { opacity: .4; cursor: default; transform: none; }
.wanted { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px; }
.wt { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 10px 10px 12px; transition: .2s; }
.wt:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow); }
.wt.owned { border-color: var(--ok); }
.wt-img { position: relative; border-radius: 10px; overflow: hidden; background: #0b1020; aspect-ratio: 5 / 7; }
.wt-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wt-act { position: absolute; top: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(5, 8, 20, .78); color: #fff; font-size: 14px; line-height: 1; padding: 0; text-decoration: none; opacity: 0; transition: .2s; cursor: pointer; }
.wt-act.open { inset-inline-start: 8px; } .wt-act.rm { inset-inline-end: 8px; }
.wt:hover .wt-act, .wt:focus-within .wt-act { opacity: 1; } .wt-act:hover { background: var(--gold); color: #1b1400; } .wt-act.rm:hover { background: var(--danger); color: #fff; }
@media (hover: none) { .wt-act { opacity: .9; } }
.wt-own { position: absolute; bottom: 8px; inset-inline-start: 8px; background: var(--ok); color: #05281a; font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 99px; }
.wt-body { padding: 10px 4px 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.wt-body b { font-size: 15px; } .wt-meta { color: var(--gold); font-size: 13px; font-weight: 700; } .wt-body small { color: var(--mute); font-size: 12.5px; }
.wt-body .wp { color: var(--ok); font-weight: 800; font-size: 15px; margin-top: 3px; }
.share-prev { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 10px 0 14px; max-height: 46vh; overflow: auto; text-align: center; min-height: 80px; }
.share-prev img { max-width: 100%; border-radius: 8px; display: block; margin: 0 auto; }
.settings.share { width: min(560px, 92vw); } .settings.share .agree { display: flex; gap: 10px; align-items: center; margin: 4px 0 12px; color: var(--text); font-size: 14px; } .settings.share .agree input { accent-color: var(--gold); }
.settings.share input[type=text] { display: block; width: 100%; margin-top: 6px; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; color: var(--text); outline: none; }
@media (max-width: 600px) { .wanted { grid-template-columns: repeat(2, 1fr); gap: 10px; } .wt { padding: 8px 8px 10px; } .wt-body b { font-size: 14px; } .wbar .btn { width: 100%; } }

/* approximate prices + TCGplayer links + manual wanted price */
.tcg { color: var(--accent); font-size: 12.5px; text-decoration: none; white-space: nowrap; } .tcg:hover { color: var(--gold); text-decoration: underline; }
.tcg.ic { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); font-size: 14px; } .tcg.ic:hover { border-color: var(--gold); text-decoration: none; }
.tcg-cell { width: 44px; } .miss figcaption .tcg { display: inline-block; margin-top: 2px; }
.tcg.wide { display: block; text-align: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; } .zlinks { margin: 14px 0 6px; }
.wt-price { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--mute); }
.wt-price input { flex: 1; min-width: 0; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; color: var(--ok); font-weight: 700; font-size: 14px; outline: none; }
.wt-price input:focus { border-color: var(--gold); } .wt-links { margin-top: 6px; }
