/* MyMasterSet — collector's-vault design system */
:root {
  --bg: #07060e;
  --bg-2: #0d0b19;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .075);
  --surface-3: rgba(255, 255, 255, .11);
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f5f3ff;
  --muted: #aaa6c6;
  --dim: #716c90;
  --ok: #3ee0a1;
  --ok-ink: #04140d;
  --warn: #fbbf24;
  --bad: #fb7185;
  --accent: #9b7bff;
  --accent-2: #3dd6f5;
  --gold: #ffd166;
  --g1: #7c3aed;
  --g2: #06b6d4;
  --g3: #ec4899;
  --holo: linear-gradient(115deg, #ff7ad9 0%, #a78bfa 18%, #60a5fa 34%, #34d399 50%, #fde047 66%, #fb923c 82%, #ff7ad9 100%);
  --holo-soft: linear-gradient(115deg, rgba(255, 122, 217, .9), rgba(167, 139, 250, .9), rgba(96, 165, 250, .9), rgba(52, 211, 153, .9), rgba(253, 224, 71, .9));
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 68px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Unbounded', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 10px 30px -10px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* clip (unlike hidden) doesn't turn <body> into a scroll container, so sticky header + scroll-lock for dialogs behave */
@supports (overflow: clip) { body { overflow-x: clip; } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: rgba(155, 123, 255, .45); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1320px, 100% - 40px); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 32px); } }

/* ------------------------------------------------------------------ ambient background */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora i {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(90px); opacity: .32; mix-blend-mode: screen;
  transition: background 1.2s ease;
  will-change: transform;
}
.aurora i:nth-child(1) { background: radial-gradient(circle, var(--g1), transparent 65%); top: -25vmax; left: -15vmax; animation: drift1 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { background: radial-gradient(circle, var(--g2), transparent 65%); top: 10vmax; right: -25vmax; animation: drift2 32s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { background: radial-gradient(circle, var(--g3), transparent 65%); bottom: -35vmax; left: 20vmax; opacity: .22; animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vmax, 12vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vmax, 14vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(-10vmax, -18vmax) scale(1.2); } }
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.gridlines {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ------------------------------------------------------------------ type */
h1, h2, h3, .display { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(34px, 5.4vw, 72px); }
h2 { font-size: clamp(24px, 3vw, 40px); }
h3 { font-size: 18px; letter-spacing: -.01em; }
p { margin: 0; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); }
.eyebrow { font: 600 12px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--holo); }
.holo-text {
  background: var(--holo); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: holoShift 7s linear infinite;
}
@keyframes holoShift { to { background-position: 200% center; } }

/* ------------------------------------------------------------------ buttons & inputs */
.btn {
  --b: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--b); border: 1px solid var(--line-2);
  font-weight: 600; font-size: 14.5px; white-space: nowrap;
  transition: transform .25s var(--ease-spring), background .2s, border-color .2s, box-shadow .3s;
  position: relative; isolation: isolate;
}
.btn:hover { transform: translateY(-2px); background: var(--surface-3); border-color: rgba(255,255,255,.26); }
.btn:active { transform: translateY(0) scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn-xs { height: 30px; padding: 0 11px; font-size: 12.5px; gap: 6px; }
.btn-xs svg { width: 15px; height: 15px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn-primary {
  background: var(--holo); background-size: 220% 100%; color: #0b0718; border-color: transparent;
  animation: holoShift 8s linear infinite;
  box-shadow: 0 10px 40px -10px rgba(167, 139, 250, .7), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-primary:hover { background: var(--holo); background-size: 220% 100%; box-shadow: 0 16px 50px -8px rgba(167, 139, 250, .9), inset 0 1px 0 rgba(255,255,255,.6); border-color: transparent; }
.btn-ok { background: var(--ok); color: var(--ok-ink); border-color: transparent; }
.btn-ok:hover { background: #5cf0b6; border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line); }
.btn-danger { color: var(--bad); }
.btn.is-on { background: rgba(255, 209, 102, .14); border-color: rgba(255, 209, 102, .5); color: var(--gold); }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; color: var(--muted); transition: background .2s, color .2s, transform .2s var(--ease-spring); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 20px; height: 20px; }

.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, .select {
  height: 46px; width: 100%; padding: 0 16px; border-radius: 14px;
  background: rgba(0, 0, 0, .28); border: 1px solid var(--line-2);
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
}
.input::placeholder { color: var(--dim); }
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(155, 123, 255, .18); background: rgba(0,0,0,.4); }
.select { appearance: none; padding-right: 38px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23aaa6c6' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.select option { background: #14112a; }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 15px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--dim); pointer-events: none; }
.search-box .input { padding-left: 44px; }
.kbd { font: 600 11px/1 var(--mono); padding: 4px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--dim); }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.3); border: 1px solid var(--line); position: relative; }
.seg button { position: relative; z-index: 1; height: 34px; padding: 0 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: color .25s; white-space: nowrap; }
.seg button.on { color: #0b0718; }
.seg .seg-pill { position: absolute; top: 4px; bottom: 4px; border-radius: 999px; background: var(--text); transition: left .35s var(--ease-out), width .35s var(--ease-out); z-index: 0; }
.seg button .n { font: 600 11px var(--mono); opacity: .7; margin-left: 5px; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pill b { color: var(--text); font-weight: 700; }
.pill-accent { background: rgba(155, 123, 255, .15); border-color: rgba(155, 123, 255, .35); color: #cfc2ff; }
.pill-ok { background: rgba(62, 224, 161, .13); border-color: rgba(62, 224, 161, .4); color: var(--ok); }
.pill-gold { background: rgba(255, 209, 102, .12); border-color: rgba(255, 209, 102, .35); color: var(--gold); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.glass { background: rgba(14, 12, 28, .62); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border: 1px solid var(--line); }

/* ------------------------------------------------------------------ header */
.hdr { position: sticky; top: 0; z-index: 50; height: var(--header-h); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.hdr.scrolled { background: rgba(7, 6, 14, .72); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); border-color: var(--line); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font: 700 19px/1 var(--display); letter-spacing: -.03em; flex: none; }
.logo-mark { width: 34px; height: 34px; position: relative; flex: none; }
.logo-mark span { position: absolute; inset: 3px 7px; border-radius: 5px; border: 2px solid rgba(255,255,255,.85); background: rgba(10,8,22,.8); transition: transform .45s var(--ease-spring); }
.logo-mark span:nth-child(1) { transform: rotate(-16deg) translateX(-5px); border-color: rgba(255,255,255,.35); }
.logo-mark span:nth-child(2) { transform: rotate(-4deg) translateX(-1px); border-color: rgba(255,255,255,.6); }
.logo-mark span:nth-child(3) { transform: rotate(10deg) translateX(4px); background: var(--holo); background-size: 200% 200%; animation: holoShift 5s linear infinite; border-color: rgba(255,255,255,.95); }
.logo:hover .logo-mark span:nth-child(1) { transform: rotate(-26deg) translateX(-9px); }
.logo:hover .logo-mark span:nth-child(3) { transform: rotate(18deg) translateX(8px); }
.logo em { font-style: normal; }
.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav a { height: 38px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.on { color: var(--text); background: var(--surface-2); }
.nav a svg { width: 17px; height: 17px; }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sync { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dim); font-weight: 600; padding: 0 6px; }
.sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); box-shadow: 0 0 0 3px rgba(255,255,255,.05); }
.sync[data-s="ok"] i { background: var(--ok); box-shadow: 0 0 0 3px rgba(62,224,161,.15), 0 0 12px var(--ok); }
.sync[data-s="saving"] i { background: var(--warn); animation: blink 1s infinite; }
.sync[data-s="error"] i { background: var(--bad); }
@keyframes blink { 50% { opacity: .3; } }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 700 14px var(--display); color: #0b0718; background: var(--holo); background-size: 200%; animation: holoShift 6s linear infinite; box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px; border-radius: 16px; z-index: 80;
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: opacity .2s, transform .25s var(--ease-out);
  box-shadow: var(--shadow-lg);
}
.menu.open { opacity: 1; transform: none; pointer-events: auto; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--muted); text-align: left; }
.menu a:hover, .menu button:hover { background: var(--surface-2); color: var(--text); }
.menu svg { width: 17px; height: 17px; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.menu .menu-head { padding: 8px 12px 10px; font-size: 13px; color: var(--dim); }
.menu .menu-head b { display: block; color: var(--text); font-size: 15px; }
.burger { display: none; }
@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: inline-grid; }
  .sync span { display: none; }
  .nav.open { display: flex; position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; padding: 12px 16px 20px; background: rgba(7,6,14,.96); border-bottom: 1px solid var(--line); margin: 0; }
  .nav.open a { height: 48px; font-size: 16px; }
}
@media (max-width: 520px) {
  .hdr-in { gap: 10px; }
  .logo { font-size: 17px; gap: 9px; }
  .logo-mark { width: 30px; height: 30px; }
  .hdr [data-login] { display: none; }
  .hdr-right { gap: 4px; }
  .hdr [data-signup] { padding: 0 12px; }
}
@media (max-width: 380px) { .sync { display: none; } }

/* ------------------------------------------------------------------ page transitions */
#view { min-height: calc(100vh - var(--header-h)); }
.view-enter { animation: viewIn .55s var(--ease-out) both; }
.view-leave { animation: viewOut .18s ease-in both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes viewOut { to { opacity: 0; transform: translateY(-6px); } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ home hero */
.hero { position: relative; padding: 56px 0 40px; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; min-height: min(640px, calc(100vh - 140px)); }
.hero h1 { font-size: clamp(32px, 4.7vw, 74px); letter-spacing: -.035em; line-height: 1.05; }
.hero h1 .line { display: block; overflow: hidden; padding: .02em 0 .08em; margin-bottom: -.04em; white-space: nowrap; }
.hero h1 .line > span { display: inline-block; animation: rise .9s var(--ease-out) both; animation-delay: calc(var(--l) * 110ms + 100ms); }
@keyframes rise { from { transform: translateY(110%); opacity: 0; } }
.hero-sub { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 560px; margin: 24px 0 34px; animation: fadeUp .9s .45s var(--ease-out) both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; animation: fadeUp .9s .6s var(--ease-out) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; animation: fadeUp .9s .75s var(--ease-out) both; }
.hero-stats div b { display: block; font: 700 clamp(22px, 2.4vw, 30px)/1 var(--display); letter-spacing: -.02em; }
.hero-stats div span { font-size: 13px; color: var(--dim); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

.fan { position: relative; height: min(560px, 62vw); perspective: 1400px; transform-style: preserve-3d; }
.fan-card {
  position: absolute; left: 50%; top: 50%; width: min(270px, 26vw); aspect-ratio: 63 / 88; margin: calc(min(270px, 26vw) * -88 / 63 / 2) 0 0 calc(min(270px, 26vw) / -2);
  border-radius: 4.5% / 3.3%; transform-style: preserve-3d;
  transform: translate3d(var(--x), var(--y), var(--z)) rotateZ(var(--r)) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform .9s var(--ease-out);
  animation: dealIn 1.1s var(--ease-out) both, bob 7s ease-in-out infinite;
  animation-delay: calc(var(--k) * 120ms + 250ms), calc(var(--k) * -1.3s);
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.55));
}
@keyframes dealIn { from { opacity: 0; transform: translate3d(0, 120px, -200px) rotateZ(0deg) rotateY(-60deg); } }
@keyframes bob { 50% { translate: 0 -14px; } }
.fan-card .holo-card { width: 100%; height: 100%; }
.floater {
  position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 14px;
  font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-lg);
  animation: fadeUp .8s var(--ease-out) both, bob 6s ease-in-out infinite; animation-delay: var(--d), calc(var(--d) * -3);
}
.floater .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: var(--ok-ink); }
.floater .dot svg { width: 14px; height: 14px; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; min-height: 0; }
  .fan { height: 420px; order: -1; margin-top: -10px; }
  .fan-card { width: 190px; margin: calc(190px * -88 / 63 / 2) 0 0 -95px; }
  .floater { display: none; }
}

/* ------------------------------------------------------------------ holographic card (tilt) */
.holo-card {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg; --o: 0;
  position: relative; border-radius: 4.5% / 3.3%; overflow: hidden; transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease-out), box-shadow .5s;
  background: #16132a;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 20px 50px -12px rgba(0,0,0,.7);
}
.holo-card.live { transition: transform .08s linear, box-shadow .3s; }
.holo-card img { width: 100%; height: 100%; object-fit: cover; }
.holo-card .foil, .holo-card .glare { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.holo-card .foil {
  background:
    repeating-linear-gradient(110deg, rgba(255,0,132,.5) 0%, rgba(252,164,0,.45) 5%, rgba(255,255,0,.4) 10%, rgba(0,255,138,.4) 15%, rgba(0,207,255,.45) 20%, rgba(204,76,250,.5) 25%, rgba(255,0,132,.5) 30%);
  background-size: 400% 400%;
  background-position: calc(var(--mx) * 1.2) calc(var(--my) * 1.2);
  mix-blend-mode: color-dodge; opacity: calc(var(--o) * .42); filter: brightness(.9) contrast(1.3) saturate(1.2);
  transition: opacity .4s;
}
.holo-card .glare {
  background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255,255,255,.75) 0%, rgba(255,255,255,.25) 22%, rgba(0,0,0,.35) 90%);
  mix-blend-mode: overlay; opacity: calc(var(--o) * .8); transition: opacity .4s;
}
.holo-card.always { --o: .55; }
.holo-card.idle { animation: idleTilt 9s ease-in-out infinite; }
@keyframes idleTilt { 0%, 100% { --rx: 4deg; --ry: -8deg; --mx: 30%; --my: 25%; } 50% { --rx: -3deg; --ry: 9deg; --mx: 70%; --my: 75%; } }
@property --rx { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@property --ry { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@property --mx { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --my { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
.card-ph {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 14%;
  background: radial-gradient(circle at 30% 20%, rgba(155,123,255,.35), transparent 60%), radial-gradient(circle at 80% 90%, rgba(61,214,245,.25), transparent 55%), #15122a;
  font: 700 13px/1.25 var(--display); color: rgba(255,255,255,.75); letter-spacing: -.01em;
}
.card-ph small { display: block; font: 600 10px var(--mono); color: var(--dim); margin-top: 6px; }

/* ------------------------------------------------------------------ marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee a { font: 700 clamp(18px, 2vw, 26px)/1 var(--display); color: rgba(255,255,255,.28); white-space: nowrap; letter-spacing: -.02em; transition: color .3s; display: inline-flex; align-items: center; gap: 46px; }
.marquee a::after { content: '✦'; font-size: .6em; color: rgba(255,255,255,.18); }
.marquee a:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ sections */
.section { padding: 90px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { max-width: 520px; margin-top: 12px; }

/* game tiles */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.game-tile {
  --c1: #9b7bff; --c2: #3dd6f5;
  position: relative; display: block; height: 250px; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c1) 30%, #0c0a18) 0%, #0c0a18 58%, color-mix(in srgb, var(--c2) 26%, #0c0a18) 100%);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), border-color .3s, box-shadow .5s;
}
.game-tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px circle at var(--px, 80%) var(--py, 20%), color-mix(in srgb, var(--c1) 35%, transparent), transparent 45%); opacity: .7; transition: opacity .4s; }
.game-tile:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c1) 55%, transparent); box-shadow: 0 30px 60px -25px color-mix(in srgb, var(--c1) 70%, transparent); }
.game-tile:hover::before { opacity: 1; }
.game-tile .gt-text { position: absolute; left: 24px; bottom: 22px; right: 24px; z-index: 3; }
.game-tile h3 { font-size: 22px; line-height: 1.12; max-width: 62%; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.game-tile .gt-meta { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.game-tile .gt-meta span { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.72); background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1); padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(6px); }
.game-tile .gt-icon { position: absolute; top: 20px; left: 22px; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--c1) 22%, rgba(0,0,0,.4)); border: 1px solid color-mix(in srgb, var(--c1) 45%, transparent); color: var(--c1); z-index: 3; }
.game-tile .gt-icon svg { width: 22px; height: 22px; }
.gt-fan { position: absolute; right: -8px; top: 18px; width: 58%; height: 100%; z-index: 1; }
.gt-fan img, .gt-fan .card-ph {
  position: absolute; top: 0; right: 16%; width: 46%; aspect-ratio: 63/88; height: auto; border-radius: 7px; object-fit: cover;
  box-shadow: 0 16px 30px -8px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.12);
  transform-origin: 50% 120%; transition: transform .6s var(--ease-spring);
}
.gt-fan > :nth-child(1) { transform: rotate(-14deg) translateX(-36%); z-index: 1; }
.gt-fan > :nth-child(2) { transform: rotate(0deg) translateY(-4%); z-index: 3; }
.gt-fan > :nth-child(3) { transform: rotate(14deg) translateX(36%); z-index: 2; }
.game-tile:hover .gt-fan > :nth-child(1) { transform: rotate(-24deg) translateX(-52%) translateY(-4%); }
.game-tile:hover .gt-fan > :nth-child(2) { transform: rotate(0deg) translateY(-12%) scale(1.06); }
.game-tile:hover .gt-fan > :nth-child(3) { transform: rotate(24deg) translateX(52%) translateY(-4%); }
.game-tile .gt-shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(0deg, rgba(8,6,18,.94) 8%, rgba(8,6,18,.35) 50%, transparent 75%); pointer-events: none; }
.games-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.game-chip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: background .2s, border-color .2s, transform .3s var(--ease-spring); }
.game-chip:hover { background: var(--surface-2); border-color: var(--line-2); transform: translateY(-2px); }
.game-chip i { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; font: 700 12px var(--display); color: #0b0718; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.game-chip b { font-size: 14px; font-weight: 600; display: block; line-height: 1.25; }
.game-chip span { font-size: 12px; color: var(--dim); }

/* steps + features */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 30px; border-radius: 24px; overflow: hidden; }
.step::before { counter-increment: step; content: '0' counter(step); font: 800 64px/1 var(--display); letter-spacing: -.05em; background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; display: block; margin-bottom: 18px; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 28px; border-radius: 24px; transition: transform .4s var(--ease-out), border-color .3s; }
.feature:hover { transform: translateY(-4px); border-color: var(--line-2); }
.feature .f-ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(135deg, rgba(155,123,255,.25), rgba(61,214,245,.18)); border: 1px solid rgba(155,123,255,.35); color: #d9ceff; }
.feature .f-ico svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .steps, .features { grid-template-columns: 1fr; } }

.demo { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; padding: 40px; border-radius: 30px; overflow: hidden; }
.demo .grid { --tile: 150px; }
.demo-bar { margin-top: 26px; }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; padding: 24px; } }

.cta-band { text-align: center; padding: 90px 30px; border-radius: 34px; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: -2px; z-index: -1; background: var(--holo); background-size: 200% 200%; animation: holoShift 10s linear infinite; opacity: .25; filter: blur(40px); }
.cta-band h2 { font-size: clamp(30px, 4.5vw, 58px); margin-bottom: 18px; }

/* footer */
.ftr { border-top: 1px solid var(--line); padding: 48px 0 60px; margin-top: 60px; color: var(--dim); font-size: 13.5px; }
.ftr-in { display: flex; gap: 30px; justify-content: space-between; flex-wrap: wrap; }
.ftr p { max-width: 560px; }
.ftr a:hover { color: var(--text); }
.ftr nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ page heads (game / collection / search) */
.page-head { padding: 46px 0 28px; position: relative; }
.page-head h1 { font-size: clamp(32px, 4.6vw, 60px); }
.page-head .lede { font-size: 17px; color: var(--muted); margin-top: 14px; max-width: 640px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--dim); margin-bottom: 18px; font-weight: 500; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.crumbs svg { width: 14px; height: 14px; }
.game-hero { position: relative; padding: 54px 0 34px; overflow: hidden; }
.game-hero .gh-in { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.game-hero .gh-in > div:first-child { min-width: 0; }
.game-hero h1 { overflow-wrap: anywhere; }
.game-hero .gh-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.game-hero .gh-fan { position: relative; width: 300px; height: 190px; flex: none; }
.game-hero .gh-fan .gt-fan { width: 100%; right: 0; top: 0; }
@media (max-width: 760px) { .game-hero .gh-fan { display: none; } }

.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px; border-radius: 20px; margin-bottom: 28px; position: sticky; top: calc(var(--header-h) + 8px); z-index: 30; }
.filters .search-box { flex: 1 1 260px; }
.filters .select { width: auto; min-width: 150px; height: 42px; }
.filters .input { height: 42px; }

/* set tiles */
.year { margin: 38px 0 16px; display: flex; align-items: center; gap: 16px; }
.year h2 { font-size: 26px; }
.year::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.year .n { font: 600 12px var(--mono); color: var(--dim); }
.sets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.set-tile {
  position: relative; display: flex; min-height: 150px; padding: 18px 18px 16px; border-radius: 20px; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.015)); border: 1px solid var(--line);
  transition: transform .4s var(--ease-out), border-color .3s, box-shadow .4s;
  animation: tileIn .6s var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 18) * 30ms);
}
.set-tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c1, #9b7bff) 50%, transparent); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--c1, #9b7bff) 80%, transparent); }
.set-tile .st-body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 6px; width: 64%; }
.set-tile h3 { font: 700 16px/1.22 var(--display); letter-spacing: -.015em; }
.set-tile .st-meta { font-size: 12.5px; color: var(--dim); font-weight: 500; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.set-tile .st-meta b { color: var(--muted); font-weight: 600; }
.set-tile .st-abbr { font: 600 11px var(--mono); padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,.07); color: var(--muted); }
.set-tile .st-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 10px; }
.set-tile .st-bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.set-tile .st-bar i { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: var(--holo); background-size: 300% 100%; animation: holoShift 6s linear infinite; transition: width 1s var(--ease-out); }
.set-tile .st-pct { font: 700 12px var(--mono); color: var(--muted); }
.set-tile .st-art { position: absolute; right: -14px; top: 14px; width: 118px; z-index: 1; transform: rotate(9deg); transition: transform .6s var(--ease-spring); }
.set-tile .st-art img, .set-tile .st-art .card-ph { width: 100%; aspect-ratio: 63/88; border-radius: 7px; object-fit: cover; box-shadow: 0 14px 30px -6px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.1); }
.set-tile .st-art .card-ph { font-size: 10px; }
.set-tile:hover .st-art { transform: rotate(3deg) translate(-10px, -6px) scale(1.05); }
.set-tile .st-art::after { content: ''; position: absolute; inset: 0; border-radius: 7px; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 46%, transparent 60%); background-size: 250% 100%; background-position: 120% 0; mix-blend-mode: overlay; transition: background-position .9s ease; }
.set-tile:hover .st-art::after { background-position: -40% 0; }
.set-tile .st-star { position: absolute; top: 10px; right: 10px; z-index: 3; }
.set-tile.done { border-color: rgba(255, 209, 102, .45); }
.set-tile.done::after { content: 'MASTER SET ✦'; position: absolute; left: 18px; top: -1px; z-index: 3; font: 700 9.5px/1 var(--display); letter-spacing: .12em; color: #1b1300; background: linear-gradient(90deg, #ffd166, #fff1b8, #ffd166); padding: 5px 9px; border-radius: 0 0 8px 8px; }
.upcoming { font: 700 10px/1 var(--display); letter-spacing: .1em; color: #0b0718; background: var(--accent-2); padding: 4px 7px; border-radius: 6px; }
@keyframes tileIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }

/* ------------------------------------------------------------------ set hero */
.set-hero { position: relative; padding: 40px 0 34px; isolation: isolate; overflow: hidden; }
.set-hero-bg { position: absolute; inset: -20% -10%; z-index: -1; background-image: var(--bgimg); background-size: cover; background-position: center 30%; filter: blur(70px) saturate(1.8); opacity: .42; transform: scale(1.2); }
.set-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,6,14,.2), var(--bg) 96%); }
.set-hero-in { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; }
.set-hero h1 { font-size: clamp(28px, 4.2vw, 56px); margin-bottom: 16px; }
.set-hero .pills { display: flex; gap: 8px; flex-wrap: wrap; }
.set-hero .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.set-hero .hero-right { display: flex; align-items: center; gap: 26px; }
.mini-fan { position: relative; width: 190px; height: 190px; }
.mini-fan > * { position: absolute; left: 50%; top: 50%; width: 104px; margin: -73px 0 0 -52px; aspect-ratio: 63/88; border-radius: 7px; overflow: hidden; box-shadow: 0 18px 40px -8px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.12); transition: transform .6s var(--ease-spring); }
.mini-fan > * img { width: 100%; height: 100%; object-fit: cover; }
.mini-fan > :nth-child(1) { transform: rotate(-16deg) translate(-40px, 8px); }
.mini-fan > :nth-child(2) { transform: rotate(14deg) translate(40px, 8px); }
.mini-fan > :nth-child(3) { transform: translateY(-6px); z-index: 2; }
.mini-fan:hover > :nth-child(1) { transform: rotate(-24deg) translate(-58px, 4px); }
.mini-fan:hover > :nth-child(2) { transform: rotate(22deg) translate(58px, 4px); }
.mini-fan:hover > :nth-child(3) { transform: translateY(-14px) scale(1.06); }
.set-hero-in > * { min-width: 0; }
.set-hero h1 { overflow-wrap: anywhere; }
@media (max-width: 980px) { .set-hero-in { grid-template-columns: 1fr; } .mini-fan { display: none; } }
@media (max-width: 640px) {
  .set-hero { padding-top: 26px; }
  .set-hero .hero-right { gap: 16px; }
  .set-hero .ring { width: 128px; height: 128px; }
  .set-hero .ring .ring-label b { font-size: 28px; }
  .stat-stack { min-width: 0; flex: 1; }
  .stat-stack div { padding: 10px 12px; }
  .stat-stack b { font-size: 17px; }
  .set-hero .actions .btn { height: 40px; padding: 0 15px; font-size: 14px; }
}

.ring { position: relative; width: 172px; height: 172px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring .track { stroke: rgba(255,255,255,.08); }
.ring .bar { transition: stroke-dashoffset 1.3s var(--ease-out); filter: drop-shadow(0 0 10px rgba(167,139,250,.55)); }
.ring .ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .ring-label b { font: 800 38px/1 var(--display); letter-spacing: -.04em; }
.ring .ring-label b small { font-size: .5em; opacity: .7; }
.ring .ring-label span { font: 600 12px var(--mono); color: var(--muted); margin-top: 6px; }
.ring.small { width: 54px; height: 54px; }
.ring.small .ring-label b { font-size: 10.5px; letter-spacing: -.03em; }
.ring.done .bar { filter: drop-shadow(0 0 14px rgba(255,209,102,.8)); }
.stat-stack { display: grid; gap: 12px; min-width: 190px; }
.stat-stack div { padding: 12px 16px; border-radius: 16px; }
.stat-stack span { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); }
.stat-stack b { font: 700 20px/1.2 var(--display); letter-spacing: -.02em; }
.stat-stack .ok b { color: var(--ok); }
.stat-stack .miss b { color: var(--gold); }

.rarity-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: none; }
.rarity-strip::-webkit-scrollbar { display: none; }
.rar-chip { flex: none; display: grid; gap: 7px; min-width: 132px; padding: 11px 13px; border-radius: 14px; text-align: left; transition: transform .3s var(--ease-spring), border-color .2s, background .2s; }
.rar-chip:hover { transform: translateY(-2px); border-color: var(--line-2); }
.rar-chip.on { border-color: var(--rc); background: color-mix(in srgb, var(--rc) 14%, transparent); }
.rar-chip .rc-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 600; }
.rar-chip .rc-top span { font: 600 11.5px var(--mono); color: var(--muted); }
.rar-chip .rc-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.rar-chip .rc-bar i { display: block; height: 100%; width: var(--p); background: var(--rc); border-radius: inherit; transition: width .8s var(--ease-out); }
.rdot { width: 9px; height: 9px; border-radius: 50%; background: var(--rc, #888); flex: none; box-shadow: 0 0 8px color-mix(in srgb, var(--rc, #888) 60%, transparent); display: inline-block; }

/* ------------------------------------------------------------------ checklist toolbar */
.toolbar { position: sticky; top: calc(var(--header-h) + 6px); z-index: 30; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px; border-radius: 20px; margin: 6px 0 22px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.8); }
.toolbar .search-box { flex: 1 1 220px; min-width: 180px; }
.toolbar .input, .toolbar .select { height: 42px; }
.toolbar .select { width: auto; }
.toolbar .tb-group { display: flex; gap: 6px; align-items: center; }
.toolbar input[type=range] { width: 90px; accent-color: var(--accent); }
.tb-count { font: 600 12.5px var(--mono); color: var(--dim); padding: 0 6px; white-space: nowrap; }
@media (max-width: 760px) {
  .toolbar { top: calc(var(--header-h) + 4px); gap: 8px; }
  .toolbar .search-box { flex-basis: 100%; }
  .toolbar .seg { flex: 1 1 100%; justify-content: space-between; }
  .toolbar .select { flex: 1 1 130px; min-width: 120px; }
  .toolbar .hide-sm { display: none; }
}

/* ------------------------------------------------------------------ checklist grid */
.cgrid { --tile: 172px; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tile), 1fr)); gap: 16px; }
@media (max-width: 640px) { .cgrid { --tile: 140px !important; gap: 10px; } }
.tile {
  position: relative; padding: 7px 7px 9px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--line);
  transition: transform .35s var(--ease-out), border-color .3s, box-shadow .4s, background .3s;
  content-visibility: auto; contain-intrinsic-size: auto 340px;
  animation: tileIn .5s var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 36) * 16ms);
}
.tile:hover { transform: translateY(-4px); border-color: var(--line-2); background: rgba(255,255,255,.055); }
.tile-art { position: relative; display: block; width: 100%; aspect-ratio: 63 / 88; border-radius: 10px; overflow: hidden; background: #14112a; isolation: isolate; }
.tile-art img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.5) contrast(.95); transition: filter .6s ease, transform .6s var(--ease-out), opacity .4s; opacity: 0; }
.tile-art img.ld { opacity: 1; }
.tile:hover .tile-art img { transform: scale(1.035); filter: grayscale(.6) brightness(.72); }
.tile.is-part .tile-art img { filter: grayscale(.35) brightness(.82); }
.tile.is-own .tile-art img, .tile.is-own:hover .tile-art img { filter: none; }
.tile-art::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.55) 42%, rgba(160,220,255,.35) 48%, rgba(255,160,240,.3) 54%, transparent 70%);
  background-size: 280% 100%; background-position: 130% 0; mix-blend-mode: overlay; opacity: 0;
}
.tile.is-own:hover .tile-art::after, .tile.flash .tile-art::after { opacity: 1; animation: sheen 1.1s ease forwards; }
@keyframes sheen { from { background-position: 130% 0; } to { background-position: -40% 0; } }
.tile.is-own { border-color: rgba(62,224,161,.42); box-shadow: 0 0 0 1px rgba(62,224,161,.12), 0 18px 34px -20px rgba(62,224,161,.55); }
.tile.is-part { border-color: rgba(255,209,102,.3); }
.tile.flash { animation: tileFlash .7s var(--ease-spring); }
@keyframes tileFlash { 40% { transform: scale(1.045) translateY(-4px); } }
.tile-no { position: absolute; left: 7px; top: 7px; z-index: 3; font: 600 10.5px var(--mono); padding: 3px 6px; border-radius: 6px; background: rgba(7,6,14,.72); color: rgba(255,255,255,.85); backdrop-filter: blur(4px); }
.tile-price { position: absolute; right: 7px; top: 7px; z-index: 3; font: 700 10.5px var(--mono); padding: 3px 6px; border-radius: 6px; background: rgba(7,6,14,.72); color: var(--gold); backdrop-filter: blur(4px); }
.tile-check { position: absolute; right: 8px; bottom: 8px; z-index: 3; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: var(--ok-ink); transform: scale(0) rotate(-90deg); transition: transform .45s var(--ease-spring); box-shadow: 0 6px 16px rgba(0,0,0,.4), 0 0 18px rgba(62,224,161,.6); }
.tile-check svg { width: 16px; height: 16px; stroke-width: 3; }
.tile.is-own .tile-check { transform: scale(1) rotate(0); }
.tile-frac { position: absolute; right: 8px; bottom: 8px; z-index: 3; font: 700 10.5px var(--mono); padding: 4px 7px; border-radius: 999px; background: rgba(255,209,102,.92); color: #1b1300; transform: scale(0); transition: transform .35s var(--ease-spring); }
.tile.is-part .tile-frac { transform: scale(1); }
.tile-meta { padding: 9px 3px 0; min-height: 50px; }
.tile-name { font-weight: 600; font-size: 13.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-sub { margin-top: 4px; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--dim); font-weight: 500; white-space: nowrap; overflow: hidden; }
.tile-sub span { overflow: hidden; text-overflow: ellipsis; }
.tile-rm { position: absolute; left: -8px; top: -8px; z-index: 5; width: 26px; height: 26px; border-radius: 50%; background: var(--bad); color: #22060b; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.4); animation: pop .3s var(--ease-spring); }
.tile-rm svg { width: 14px; height: 14px; stroke-width: 3; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px 0 6px; border-radius: 999px;
  font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; letter-spacing: -.005em;
  background: rgba(255,255,255,.035); border: 1px solid var(--line-2);
  transition: background .25s, color .25s, border-color .25s, transform .2s;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.chip::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 1.6px solid currentColor; flex: none; transition: background .2s, box-shadow .2s; opacity: .8; }
.chip:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.chip:active { transform: scale(.92); }
.chip.on { color: var(--ok-ink); background: var(--ok); border-color: transparent; }
.chip.on::before { background: currentColor; box-shadow: inset 0 0 0 2px var(--ok); opacity: 1; }
.chip.foil.on { background: var(--holo); background-size: 250% 100%; animation: holoShift 5s linear infinite; color: #0b0718; }
.chip.foil.on::before { box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.chip .q { font: 700 10px var(--mono); padding: 1px 5px; border-radius: 6px; background: rgba(0,0,0,.2); }
.chip.pop { animation: pop .45s var(--ease-spring); }
.chip[disabled] { cursor: default; }
.chip[disabled]:active { transform: none; }
@keyframes pop { 0% { transform: scale(.8); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* list view */
.clist { display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: 44px 84px 1fr auto; gap: 14px; align-items: center; padding: 7px 12px 7px 7px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); transition: background .2s, border-color .3s; animation: tileIn .4s var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 30) * 10ms); content-visibility: auto; contain-intrinsic-size: auto 70px; }
.row:hover { background: rgba(255,255,255,.055); }
.row.is-own { border-color: rgba(62,224,161,.35); background: rgba(62,224,161,.05); }
.row.is-part { border-color: rgba(255,209,102,.25); }
.row .r-img { width: 44px; aspect-ratio: 63/88; border-radius: 5px; overflow: hidden; background: #14112a; }
.row .r-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.6); transition: filter .5s; }
.row.is-own .r-img img, .row.is-part .r-img img { filter: none; }
.row .r-no { font: 600 12.5px var(--mono); color: var(--muted); }
.row .r-name { min-width: 0; }
.row .r-name b { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .r-name small { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 12px; }
.row .chips { margin: 0; justify-content: flex-end; }
.row .chip .pr { font: 600 10.5px var(--mono); opacity: .75; }
@media (max-width: 700px) { .row { grid-template-columns: 40px 1fr; } .row .r-no { display: none; } .row .chips { grid-column: 1 / -1; justify-content: flex-start; } }

.set-group-head { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 14px; }
.set-group-head:first-child { margin-top: 4px; }
.set-group-head a { font: 700 18px var(--display); letter-spacing: -.015em; }
.set-group-head a:hover { text-decoration: underline; text-underline-offset: 4px; }
.set-group-head span { font: 600 12px var(--mono); color: var(--dim); }

/* ------------------------------------------------------------------ empty / loading */
.empty { text-align: center; padding: 70px 20px; border-radius: 24px; }
.empty .e-art { width: 150px; height: 120px; margin: 0 auto 24px; position: relative; }
.empty .e-art i { position: absolute; left: 50%; top: 50%; width: 64px; height: 90px; margin: -45px 0 0 -32px; border-radius: 8px; border: 2px dashed rgba(255,255,255,.2); background: rgba(255,255,255,.03); }
.empty .e-art i:nth-child(1) { transform: rotate(-16deg) translateX(-38px); }
.empty .e-art i:nth-child(2) { transform: rotate(16deg) translateX(38px); }
.empty .e-art i:nth-child(3) { border-style: solid; border-color: transparent; background: var(--holo); background-size: 200% 200%; animation: holoShift 5s linear infinite, bob 4s ease-in-out infinite; opacity: .9; }
.empty h3 { font-size: 22px; margin-bottom: 10px; }
.empty p { color: var(--muted); max-width: 440px; margin: 0 auto 24px; }
.skeleton { background: linear-gradient(100deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; border-radius: 16px; }
@keyframes shimmer { to { background-position: -150% 0; } }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 16px; }
.sk-grid .skeleton { aspect-ratio: 63 / 100; }
.loader { display: grid; place-items: center; gap: 18px; padding: 90px 0; color: var(--muted); font-weight: 500; }
.loader .deck { width: 60px; height: 84px; position: relative; }
.loader .deck i { position: absolute; inset: 0; border-radius: 8px; border: 2px solid rgba(255,255,255,.4); background: rgba(20,17,42,.9); animation: shuffle 1.4s var(--ease-out) infinite; }
.loader .deck i:nth-child(2) { animation-delay: .2s; }
.loader .deck i:nth-child(3) { animation-delay: .4s; background: var(--holo); background-size: 200%; border-color: rgba(255,255,255,.8); }
@keyframes shuffle { 0% { transform: translateX(0) rotate(0); } 30% { transform: translateX(34px) rotate(12deg); } 60% { transform: translateX(0) rotate(0); z-index: 3; } }

/* ------------------------------------------------------------------ modal */
.modal-root { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,3,10,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fadeIn .3s ease both; }
.modal { position: relative; width: min(460px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 32px; border-radius: 28px; animation: modalIn .45s var(--ease-spring) both; box-shadow: var(--shadow-lg); overscroll-behavior: contain; }
.modal.wide { width: min(980px, 100%); padding: 0; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 5; }
.modal-root.closing .modal { animation: modalOut .22s ease-in both; }
.modal-root.closing .modal-backdrop { animation: fadeOut .22s ease-in both; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(12px) scale(.97); } }
.modal h2 { font-size: 26px; margin-bottom: 8px; }
.modal .sub { color: var(--muted); margin-bottom: 24px; }
.form { display: grid; gap: 16px; }
.form .err { color: var(--bad); font-size: 13.5px; font-weight: 500; min-height: 1em; }
.tabs { display: flex; gap: 6px; margin-bottom: 24px; }
.linkish { color: var(--accent-2); font-weight: 600; font-size: 13.5px; }
.linkish:hover { text-decoration: underline; }

/* card detail modal */
.cm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 560px; }
.cm-stage { position: relative; display: grid; place-items: center; padding: 44px 36px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c1, #9b7bff) 30%, transparent), transparent 70%); border-right: 1px solid var(--line); overflow: hidden; }
.cm-stage .holo-card { width: min(330px, 100%); aspect-ratio: 63/88; cursor: grab; }
.cm-stage .nav-arrows { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.cm-info { padding: 36px 34px 30px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.cm-info h2 { font-size: clamp(22px, 2.6vw, 32px); margin: 0; }
.cm-info .cm-set { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cm-info .cm-set a:hover { color: var(--text); text-decoration: underline; }
.prt-list { display: grid; gap: 8px; }
.prt { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 12px 12px 12px 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.prt.on { border-color: rgba(62,224,161,.5); background: rgba(62,224,161,.07); }
.prt.on.foil { border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--holo) border-box; border: 1px solid transparent; }
.prt b { font-weight: 600; display: block; }
.prt small { font-size: 12px; color: var(--dim); }
.prt .price { font: 700 14px var(--mono); color: var(--gold); }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid var(--line); }
.stepper button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background .2s, color .2s; }
.stepper button:hover { background: var(--surface-3); color: var(--text); }
.stepper button svg { width: 15px; height: 15px; }
.stepper output { min-width: 26px; text-align: center; font: 700 14px var(--mono); }
.prt.on .stepper output { color: var(--ok); }
.info-list { display: grid; gap: 10px; font-size: 13.5px; }
.info-list div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.info-list dt { color: var(--dim); font-weight: 600; }
.info-list dd { margin: 0; color: var(--muted); white-space: pre-line; }
.cm-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
@media (max-width: 800px) {
  .cm { grid-template-columns: 1fr; }
  .cm-stage { border-right: 0; border-bottom: 1px solid var(--line); padding: 30px 20px 64px; }
  .cm-stage .holo-card { width: min(250px, 70vw); }
  .cm-info { padding: 24px 20px; }
  .modal.wide { max-height: calc(100vh - 20px); }
  .modal-root { padding: 10px; }
}

/* ------------------------------------------------------------------ toasts + fx */
.toasts { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 300; display: grid; gap: 10px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 16px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: toastIn .5s var(--ease-spring) both; max-width: min(560px, calc(100vw - 32px)); }
.toast.out { animation: toastOut .3s ease-in both; }
.toast .t-ico { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--surface-3); }
.toast .t-ico svg { width: 16px; height: 16px; }
.toast.ok .t-ico { background: var(--ok); color: var(--ok-ink); }
.toast.err .t-ico { background: var(--bad); color: #22060b; }
.toast.gold .t-ico { background: var(--gold); color: #1b1300; }
.toast button { margin-left: 6px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.95); } }
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 400; }
.spark { position: fixed; width: 7px; height: 7px; border-radius: 50%; pointer-events: none; z-index: 400; animation: spark .75s var(--ease-out) forwards; background: var(--c); box-shadow: 0 0 8px var(--c); }
.spark.star { width: 12px; height: 12px; border-radius: 0; background: none; box-shadow: none; }
.spark.star::before { content: '✦'; position: absolute; inset: -4px; font-size: 14px; color: var(--c); text-shadow: 0 0 8px var(--c); }
@keyframes spark { from { transform: translate(-50%, -50%) scale(1); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.2) rotate(180deg); opacity: 0; } }
.ring-burst { position: fixed; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--c, var(--ok)); pointer-events: none; z-index: 400; animation: ringBurst .6s var(--ease-out) forwards; translate: -50% -50%; }
@keyframes ringBurst { to { transform: scale(4); opacity: 0; } }

.complete-card { text-align: center; }
.complete-card .trophy { width: 110px; height: 110px; margin: 0 auto 20px; border-radius: 32px; display: grid; place-items: center; background: linear-gradient(135deg, #ffd166, #fff1b8 45%, #f59e0b); color: #3a2400; box-shadow: 0 20px 60px -10px rgba(255,209,102,.7); animation: trophy 1s var(--ease-spring) both, bob 4s 1s ease-in-out infinite; }
.complete-card .trophy svg { width: 58px; height: 58px; }
@keyframes trophy { from { transform: scale(0) rotate(-40deg); } }

/* ------------------------------------------------------------------ collection dashboard */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 40px; }
.kpi { padding: 22px 22px 20px; border-radius: 22px; overflow: hidden; }
.kpi span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.kpi b { display: block; font: 800 clamp(26px, 3vw, 38px)/1.1 var(--display); letter-spacing: -.03em; margin-top: 8px; }
.kpi small { color: var(--muted); font-size: 13px; }
.kpi::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, var(--kc, rgba(155,123,255,.35)), transparent 70%); }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.progress-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.prog-card { display: flex; gap: 16px; align-items: center; padding: 16px; border-radius: 20px; transition: transform .35s var(--ease-out), border-color .3s; animation: tileIn .5s var(--ease-out) both; animation-delay: calc(min(var(--i, 0), 20) * 30ms); }
.prog-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.prog-card .pc-img { width: 54px; aspect-ratio: 63/88; border-radius: 6px; overflow: hidden; flex: none; box-shadow: 0 8px 20px -6px rgba(0,0,0,.6); background: #14112a; }
.prog-card .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.prog-card .pc-body { flex: 1; min-width: 0; }
.prog-card .pc-body b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog-card .pc-body small { color: var(--dim); font-size: 12.5px; display: block; margin-top: 2px; }
.prog-card .st-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 10px; }
.prog-card .st-bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--holo); background-size: 300% 100%; animation: holoShift 6s linear infinite; border-radius: inherit; }
.activity { display: grid; gap: 4px; }
.act { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; font-size: 13.5px; }
.act:hover { background: var(--surface); }
.act img, .act .card-ph { width: 30px; aspect-ratio: 63/88; border-radius: 4px; object-fit: cover; flex: none; font-size: 6px; padding: 0; }
.act .when { margin-left: auto; font: 500 11.5px var(--mono); color: var(--dim); white-space: nowrap; }
.two-col { display: grid; grid-template-columns: 1.7fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 1000px) { .two-col { grid-template-columns: 1fr; } }

.binder-tile { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 22px; min-height: 180px; position: relative; overflow: hidden; transition: transform .35s var(--ease-out), border-color .3s; }
.binder-tile:hover { transform: translateY(-4px); border-color: var(--line-2); }
.binder-tile .bt-fan { display: flex; height: 70px; }
.binder-tile .bt-fan > * { width: 50px; aspect-ratio: 63/88; border-radius: 5px; object-fit: cover; margin-right: -18px; box-shadow: 0 8px 20px -6px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.1); transform: rotate(calc((var(--k) - 2) * 6deg)); transition: transform .4s var(--ease-spring); background: #14112a; }
.binder-tile:hover .bt-fan > * { transform: rotate(calc((var(--k) - 2) * 10deg)) translateY(-4px); margin-right: -10px; }
.binder-tile h3 { font-size: 17px; }
.new-binder { display: grid; place-items: center; text-align: center; border: 1.5px dashed var(--line-2); background: transparent; color: var(--muted); gap: 10px; }
.new-binder:hover { color: var(--text); border-color: var(--accent); }
.new-binder svg { width: 32px; height: 32px; }

/* search page */
.search-hero .search-box .input { height: 64px; font-size: 19px; border-radius: 20px; padding-left: 56px; }
.search-hero .search-box svg { width: 22px; height: 22px; left: 20px; }
.game-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 0; }
.game-pill { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: all .2s; }
.game-pill i { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.game-pill:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.game-pill.on { background: var(--text); color: #0b0718; border-color: transparent; }
.suggest { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.suggest button { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); transition: all .2s; }
.suggest button:hover { color: var(--text); border-color: var(--line-2); }

/* profile */
.profile-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.profile-head .avatar { width: 84px; height: 84px; font-size: 32px; border-radius: 28px; }

/* ------------------------------------------------------------------ phones */
a, button, label { -webkit-tap-highlight-color: transparent; }
.tabbar { display: none; }
.mini-prog { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .burger { display: none !important; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
    height: 64px; padding: 6px; border-radius: 24px;
    background: rgba(14, 12, 28, .8); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid var(--line-2); box-shadow: 0 24px 50px -12px rgba(0,0,0,.85);
  }
  .tabbar a { position: relative; display: grid; place-content: center; justify-items: center; gap: 3px; border-radius: 18px; font-size: 10.5px; font-weight: 600; color: var(--dim); transition: color .25s, background .25s; }
  .tabbar a svg { width: 22px; height: 22px; transition: transform .35s var(--ease-spring); }
  .tabbar a.on { color: var(--text); background: rgba(255,255,255,.08); }
  .tabbar a.on svg { transform: translateY(-1px) scale(1.08); color: #d9ceff; }
  .tabbar a.on::after { content: ''; position: absolute; bottom: 5px; width: 16px; height: 3px; border-radius: 3px; background: var(--holo); background-size: 200% 100%; animation: holoShift 4s linear infinite; }
  .tabbar a:active svg { transform: scale(.88); }
  .toasts { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .ftr { margin-top: 30px; padding: 34px 0 20px; }

  .toolbar, .filters { position: static; }
  .toolbar { box-shadow: none; }
  .mini-prog {
    display: flex; align-items: center; gap: 10px; position: fixed; z-index: 45; left: 10px; right: 10px; top: calc(var(--header-h) + 6px);
    height: 42px; padding: 0 14px; border-radius: 14px; font-size: 12.5px;
    transform: translateY(-160%); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s;
    box-shadow: 0 16px 30px -12px rgba(0,0,0,.7);
  }
  .mini-prog.show { transform: none; opacity: 1; }
  .mini-prog b { font: 700 14px var(--display); letter-spacing: -.02em; }
  .mini-prog em { font-style: normal; flex: 0 1 auto; min-width: 0; max-width: 34%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-weight: 600; }
  .mini-prog .mp-bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; }
  .mini-prog .mp-bar i { display: block; height: 100%; border-radius: inherit; background: var(--holo); background-size: 300% 100%; animation: holoShift 6s linear infinite; transition: width .6s var(--ease-out); }
  .mini-prog span { font: 600 11.5px var(--mono); color: var(--muted); white-space: nowrap; }

  /* dialogs become bottom sheets */
  .modal-root { place-items: end stretch; padding: 0; }
  .modal { width: 100%; max-height: 92vh; border-radius: 28px 28px 0 0; padding: 30px 20px calc(24px + env(safe-area-inset-bottom)); animation: sheetIn .5s var(--ease-out) both; border-bottom: 0; }
  .modal.wide { width: 100%; max-height: 94vh; }
  .modal::before { content: ''; position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 42px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.22); z-index: 6; }
  .modal-root.closing .modal { animation: sheetOut .25s ease-in both; }
  .cm-stage { padding: 34px 20px 70px; }
  .cm-stage .holo-card { width: min(230px, 62vw); }
  .cm-info { padding: 22px 18px 10px; }
  .prt { padding: 10px 10px 10px 14px; gap: 10px; }
  .info-list div { grid-template-columns: 92px 1fr; }

  .hero { padding: 18px 0 20px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-stats { gap: 22px; margin-top: 32px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 24px; }
  .demo { padding: 22px 16px; border-radius: 24px; }
  .cta-band { padding: 60px 20px; border-radius: 26px; }
  .step, .feature { padding: 22px; }
  .step::before { font-size: 48px; margin-bottom: 12px; }
  .game-pills { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 8px; scrollbar-width: none; }
  .game-pills::-webkit-scrollbar { display: none; }
  .game-pill { flex: none; }
  .search-hero .search-box .input { height: 56px; font-size: 17px; }
  .kpi { padding: 16px; }
  .kpi b { font-size: 26px; }
  .progress-list { grid-template-columns: 1fr; }
  .rarity-strip { margin-inline: -16px; padding-inline: 16px; }
  .rar-chip { min-width: 118px; }
}
@media (max-width: 640px) {
  .games-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .game-tile { height: 196px; border-radius: 18px; }
  .game-tile h3 { font-size: 15px; max-width: 100%; }
  .game-tile .gt-text { left: 13px; right: 13px; bottom: 13px; }
  .game-tile .gt-meta { gap: 5px; margin-top: 7px; }
  .game-tile .gt-meta span { font-size: 10.5px; padding: 3px 7px; }
  .game-tile .gt-icon { top: 12px; left: 12px; width: 32px; height: 32px; border-radius: 10px; }
  .game-tile .gt-icon svg { width: 17px; height: 17px; }
  .gt-fan { width: 78%; right: -16px; top: 12px; }
  .sets-grid { gap: 10px; }
  .set-tile { min-height: 132px; padding: 15px; }
  .set-tile .st-art { width: 96px; }
  .year { margin: 28px 0 12px; }
  .year h2 { font-size: 22px; }
  .game-hero { padding: 28px 0 22px; }
  .game-hero h1 { font-size: 34px; }
  .page-head { padding: 26px 0 20px; }
}
@keyframes sheetIn { from { transform: translateY(100%); } }
@keyframes sheetOut { to { transform: translateY(100%); } }
@media (hover: none) {
  .tile:hover, .set-tile:hover, .game-tile:hover, .prog-card:hover, .binder-tile:hover, .feature:hover, .btn:hover, .game-chip:hover, .rar-chip:hover { transform: none; }
  .tile:hover .tile-art img { transform: none; }
  .tile:not(.is-own):not(.is-part):hover .tile-art img { filter: grayscale(1) brightness(.5) contrast(.95); }
  .set-tile:hover .st-art { transform: rotate(9deg); }
}

/* print */
.print-sheet { display: none; }
@media print {
  @page { margin: 12mm; }
  body { background: #fff; color: #000; font-size: 10pt; }
  body > *:not(.print-sheet) { display: none !important; }
  .print-sheet { display: block !important; }
  .print-sheet h1 { font: 700 18pt/1.2 var(--display); margin: 0 0 4pt; color: #000; }
  .print-sheet p { margin: 0 0 10pt; color: #444; font-size: 9pt; }
  .print-sheet table { width: 100%; border-collapse: collapse; }
  .print-sheet th { text-align: left; font-size: 8pt; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1.5pt solid #000; padding: 3pt 4pt; }
  .print-sheet td { border-bottom: .5pt solid #ccc; padding: 3pt 4pt; vertical-align: middle; font-size: 9pt; }
  .print-sheet .bx { display: inline-flex; align-items: center; gap: 3pt; margin-right: 8pt; white-space: nowrap; }
  .print-sheet .bx i { width: 9pt; height: 9pt; border: 1pt solid #000; display: inline-block; border-radius: 2pt; text-align: center; line-height: 8pt; font-style: normal; font-size: 8pt; }
  .print-sheet tr { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
