/* Slop Shots — Slopographic. Black, bone, one acid accent, and a lot of foil. */
:root {
  --ink: #0a0a0a;
  --ink-2: #121212;
  --ink-3: #1b1b1b;
  --bone: #f1ede4;
  --bone-dim: rgba(241, 237, 228, 0.66);
  --bone-faint: rgba(241, 237, 228, 0.4);
  --line: rgba(241, 237, 228, 0.13);
  --slop: #d4ff3a;
  --slop-deep: #9fcc00;
  --gold: #f5c451;
  --shrimp: #ff8fb4;
  --cond: "Archivo", "Arial Narrow", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter Tight", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --barH: 64px;
  --tapeH: 28px;
  --dockH: 0px;
  --rainbow: #ff6fa5, #ffb057, #fff36b, #7dffb0, #6fd8ff, #b18cff, #ff6fa5;
  --goldfoil: #fff7d6, #e2b23c, #6b4a12, #f8e08e, #ffffff, #b98a2a, #5c3d0c, #fff7d6;
  color-scheme: dark;
}
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --cut { syntax: "<number>"; inherits: true; initial-value: 0; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -4%); } 75% { transform: translate(-1%, 3%); } }
body.is-locked { overflow: hidden; }
::selection { background: var(--slop); color: var(--ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--slop); outline-offset: 3px; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--line);
  background: transparent; cursor: pointer;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--slop { background: var(--slop); color: var(--ink); border-color: var(--slop); box-shadow: 0 0 0 0 rgba(212, 255, 58, 0.5); }
.btn--slop:hover { box-shadow: 0 0 28px -4px rgba(212, 255, 58, 0.7); }
.btn--slop:disabled { background: var(--ink-3); color: var(--bone-faint); border-color: var(--line); box-shadow: none; cursor: not-allowed; }
.btn--ghost { color: var(--bone); background: rgba(241, 237, 228, 0.04); }
.btn--ghost:hover { border-color: var(--bone-faint); background: rgba(241, 237, 228, 0.08); }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 10.5px; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 40;
  height: var(--barH);
  display: flex; align-items: center; gap: 18px;
  padding: 0 20px;
  background: rgba(10, 10, 10, 0.84);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.bar__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wordmark { display: flex; align-items: center; gap: 7px; color: var(--bone); text-decoration: none; }
.wordmark svg { width: 18px; height: 18px; flex: none; }
.wordmark svg path { fill: var(--slop); }
.wordmark svg .sh { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; opacity: 0.8; }
.wordmark span { font-family: var(--cond); font-stretch: 62%; font-weight: 800; font-size: 17px; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; }
.wordmark:hover span { color: var(--slop); }
.bar__sep { color: var(--bone-faint); font-family: var(--mono); font-size: 13px; }
.bar__title { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 23px; line-height: 1; white-space: nowrap; }

.bar__chips { display: flex; gap: 6px; margin-left: auto; }
.chip {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; align-items: baseline;
  padding: 6px 12px 7px; min-width: 86px;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(241, 237, 228, 0.03);
  text-align: left; cursor: pointer;
  font-variant-numeric: tabular-nums;
}
div.chip { cursor: default; }
.chip:hover { border-color: rgba(241, 237, 228, 0.28); }
.chip__k { grid-column: 1 / -1; font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-faint); line-height: 1.2; }
.chip b { font-family: var(--cond); font-stretch: 62%; font-weight: 800; font-size: 20px; line-height: 1; letter-spacing: 0.01em; }
.chip__sub { font-family: var(--mono); font-size: 10px; color: var(--bone-dim); }
.chip__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--slop); box-shadow: 0 0 8px var(--slop); transition: width 0.25s linear; }
.chip--packs.is-ready b { color: var(--slop); }
.chip--slop .up { color: var(--slop); }
.chip--slop .down { color: #ff7a7a; }
.chip.is-bump { animation: bump 0.5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes bump { 40% { transform: scale(1.08); border-color: var(--slop); } }

.bar__nav { display: flex; gap: 4px; }
.navbtn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent;
  background: none; cursor: pointer;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bone-dim); white-space: nowrap;
}
.navbtn svg { width: 14px; height: 14px; fill: currentColor; }
.navbtn:hover { color: var(--bone); border-color: var(--line); }
.navbtn[aria-current="page"] { color: var(--bone); border-color: rgba(241, 237, 228, 0.3); }
.navbtn--primary { background: var(--slop); color: var(--ink); }
.navbtn--primary:hover { color: var(--ink); box-shadow: 0 0 22px -4px rgba(212, 255, 58, 0.75); }
.navbtn--primary[aria-current="page"] { color: var(--ink); border-color: var(--slop); }
.navbtn .badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: var(--slop); font-size: 10px; display: inline-grid; place-items: center; letter-spacing: 0; }

.iconbtn { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; display: grid; place-items: center; color: var(--bone-dim); }
.iconbtn svg { width: 18px; height: 18px; fill: currentColor; }
.iconbtn .ic-on { display: none; }
.iconbtn[aria-pressed="true"] { color: var(--slop); border-color: rgba(212, 255, 58, 0.4); }
.iconbtn[aria-pressed="true"] .ic-on { display: block; }
.iconbtn[aria-pressed="true"] .ic-off { display: none; }

/* ---------- ticker tape ---------- */
.tape { height: var(--tapeH); overflow: hidden; border-bottom: 1px solid var(--line); background: #070707; position: relative; z-index: 2; }
.tape::before, .tape::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 1; pointer-events: none; }
.tape::before { left: 0; background: linear-gradient(90deg, #070707, transparent); }
.tape::after { right: 0; background: linear-gradient(-90deg, #070707, transparent); }
.tape__track { display: flex; width: max-content; height: 100%; align-items: center; animation: tape 70s linear infinite; }
.tape__group { display: flex; }
.tape__item { display: inline-flex; gap: 8px; padding: 0 18px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--bone-dim); white-space: nowrap; border-right: 1px solid var(--line); }
.tape__item b { color: var(--bone); font-weight: 600; }
.tape__item .up { color: var(--slop); }
.tape__item .down { color: #ff7a7a; }
.tape__item--news { color: var(--slop); }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- views ---------- */
.view { display: none; }
.view.is-active { display: block; }
main { min-height: calc(100svh - var(--barH) - var(--tapeH)); }

/* ---------- pack stage ---------- */
.stage {
  position: relative;
  height: calc(100svh - var(--barH) - var(--tapeH) - var(--dockH));
  min-height: 560px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 46%, rgba(212, 255, 58, 0.07), transparent 70%),
    radial-gradient(120% 80% at 50% 120%, #161a0c 0%, transparent 60%),
    var(--ink);
}
.stage__type {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--cond); font-stretch: 62%; font-weight: 900; text-transform: uppercase;
  font-size: min(34vw, 40vh); line-height: 0.78; letter-spacing: -0.01em;
  color: transparent; -webkit-text-stroke: 1px rgba(241, 237, 228, 0.07);
  pointer-events: none; user-select: none;
}
.stage__glow { position: absolute; left: 50%; top: 46%; width: 70vmin; height: 70vmin; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(212, 255, 58, 0.16), transparent 62%); filter: blur(10px); pointer-events: none; animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.55; scale: 0.92; } }
.stage.is-revealing .stage__glow { opacity: 0.4; }

.packzone { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 20px; }
.packzone.is-gone { pointer-events: none; }
.packzone__info { text-align: center; max-width: 420px; transition: opacity 0.3s; }
.packzone.is-gone .packzone__info { opacity: 0; }
.packzone__cta { margin: 0 0 6px; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.25; color: var(--bone); }
.packzone__meta { margin: 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-faint); }
.packzone__meta #pityMeta { color: var(--shrimp); }

/* ---------- the pack ---------- */
.pack {
  --packW: clamp(190px, min(30vh, 56vw), 290px);
  --rx: 0deg; --ry: 0deg;
  position: relative; width: var(--packW); aspect-ratio: 0.64;
  perspective: 1100px; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  animation: float 4.6s ease-in-out infinite;
  outline: none;
}
.pack:focus-visible .pack__body { outline: 2px solid var(--slop); outline-offset: 4px; }
.pack:active { cursor: grabbing; }
@keyframes float { 50% { translate: 0 -8px; } }
.pack__tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(var(--rx)) rotateX(var(--ry)); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 40px rgba(212, 255, 58, 0.12)); }
.pack__body, .pack__top { position: absolute; left: 0; right: 0; overflow: hidden; background: #0c0c0c; isolation: isolate; }
.pack__body { top: 14%; bottom: 0; border-radius: 0 0 6px 6px; }
.pack__top { top: 0; height: 14%; transform-origin: 0% 100%; border-radius: 6px 6px 0 0; }
.pack__art { position: absolute; left: 0; right: 0; background: var(--pack-art, linear-gradient(160deg, #1d2410, #050505)) center / cover; filter: saturate(1.05) brightness(0.62) contrast(1.15); }
.pack__body .pack__art { top: calc(-14% / 0.86); height: calc(100% / 0.86); }
.pack__top .pack__art { top: 0; height: calc(100% / 0.14); }
.pack__body::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(5, 5, 5, 0.1), rgba(5, 5, 5, 0.25) 30%, rgba(5, 5, 5, 0.7) 75%, rgba(5, 5, 5, 0.92)); }
.pack__foil {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: var(--glitter), repeating-linear-gradient(120deg, var(--rainbow));
  background-size: 160px 160px, 400% 400%;
  background-position: calc(var(--px, 50) * 0.6px) calc(var(--py, 50) * 0.6px), var(--bgx, 50%) var(--bgy, 50%);
  background-blend-mode: multiply;
  mix-blend-mode: color-dodge;
  opacity: 0.9;
}
.pack__top .pack__foil { background-position: calc(var(--px, 50) * 0.6px) calc(var(--py, 50) * 0.6px), var(--bgx, 50%) var(--bgy, 50%); }
.pack__glare { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: radial-gradient(farthest-corner circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08) 35%, rgba(0, 0, 0, 0.35) 90%); mix-blend-mode: overlay; }
.pack__content { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 0 9% 13%; text-align: center; gap: 0; }
.pack__house { position: absolute; top: 6%; left: 0; right: 0; font-family: var(--mono); font-size: calc(var(--packW) * 0.032); letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone-dim); }
.pack__logo { display: flex; flex-direction: column; font-family: var(--cond); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: calc(var(--packW) * 0.37); line-height: 0.8; letter-spacing: -0.005em;
  background: linear-gradient(180deg, #ffffff 0%, #e9eef2 26%, #7d8288 47%, #fbfbfb 58%, #b8bcc2 78%, #ffffff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.6)) drop-shadow(0 0 18px rgba(212, 255, 58, 0.25));
}
.pack__series { margin-top: 7%; font-family: var(--mono); font-size: calc(var(--packW) * 0.036); letter-spacing: 0.2em; text-transform: uppercase; color: var(--slop); }
.pack__tag { margin-top: 3%; font-size: calc(var(--packW) * 0.062); color: var(--bone); }
.pack__seal { margin-top: 6%; padding: 4px 10px; border: 1px solid rgba(241, 237, 228, 0.25); border-radius: 999px; font-family: var(--mono); font-size: calc(var(--packW) * 0.028); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-dim); }
.pack__seal b { color: var(--gold); font-weight: 400; }
.pack__crimp { position: absolute; left: 0; right: 0; height: 12px; z-index: 5; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 1px, rgba(0, 0, 0, 0.35) 1px 3px), linear-gradient(180deg, #8e939a, #e9ecef 45%, #5f646b);
  opacity: 0.85;
}
.pack__crimp--top { top: 0; -webkit-mask: conic-gradient(from 135deg at top, #000 90deg, #0000 0) top / 10px 5px repeat-x, linear-gradient(#000 0 0) bottom / 100% calc(100% - 5px) no-repeat; mask: conic-gradient(from 135deg at top, #000 90deg, #0000 0) top / 10px 5px repeat-x, linear-gradient(#000 0 0) bottom / 100% calc(100% - 5px) no-repeat; }
.pack__crimp--bottom { bottom: 0; -webkit-mask: conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) bottom / 10px 5px repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 5px) no-repeat; mask: conic-gradient(from -45deg at bottom, #000 90deg, #0000 0) bottom / 10px 5px repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - 5px) no-repeat; }
.pack__tearhint { position: absolute; left: 7%; right: 0; bottom: 14%; z-index: 4; font-family: var(--mono); font-size: calc(var(--packW) * 0.03); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(241, 237, 228, 0.85); white-space: nowrap; overflow: hidden; text-shadow: 0 1px 2px #000; }
.pack__cut { position: absolute; left: 0; right: 0; top: 14%; height: 0; z-index: 6; }
.pack__cut i { position: absolute; left: 0; top: -1px; height: 2px; width: calc(var(--cut, 0) * 100%); background: #fff; box-shadow: 0 0 6px #fff, 0 0 18px var(--slop), 0 0 40px var(--slop); border-radius: 2px; }
.pack__light { position: absolute; left: -30%; right: -30%; top: -20%; height: 70%; z-index: 7; pointer-events: none; opacity: 0; background: radial-gradient(50% 40% at 50% 34%, rgba(255, 255, 255, 0.95), rgba(212, 255, 58, 0.55) 35%, transparent 70%); mix-blend-mode: screen; }
.pack.is-empty { animation: none; cursor: not-allowed; }
.pack.is-empty .pack__tilt { filter: grayscale(0.85) brightness(0.45) drop-shadow(0 30px 40px rgba(0, 0, 0, 0.7)); }

/* ---------- fan + reveal ---------- */
.fan { position: absolute; inset: 0; pointer-events: none; }
.fan .card { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; will-change: transform; }
.fan .card.is-down:hover .card__tilt { scale: 1.03; }
.fan .card.is-up { cursor: zoom-in; }
.revealbar { position: absolute; top: 14px; right: 16px; z-index: 5; }
.fan .card .newtag {
  position: absolute; left: 50%; top: -12px; z-index: 9; translate: -50% 0;
  padding: 3px 9px; border-radius: 999px; background: var(--slop); color: var(--ink);
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 4px 18px rgba(212, 255, 58, 0.45);
  animation: pop 0.5s cubic-bezier(.2, 1.8, .4, 1) both;
}
.fan .card .newtag--dupe { background: var(--ink-3); color: var(--bone-dim); border: 1px solid var(--line); box-shadow: none; }
@keyframes pop { from { scale: 0.2; opacity: 0; } }
.floater { position: fixed; z-index: 70; pointer-events: none; font-family: var(--cond); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: 30px; letter-spacing: 0.02em; white-space: nowrap; color: var(--acc, var(--slop)); text-shadow: 0 0 20px currentColor, 0 2px 0 #000; translate: -50% -50%; }
.ring { position: fixed; z-index: 69; pointer-events: none; border-radius: 50%; border: 2px solid var(--acc, #fff); box-shadow: 0 0 30px var(--acc, #fff), inset 0 0 30px var(--acc, #fff); translate: -50% -50%; }

.recap {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0; z-index: 6;
  display: flex; align-items: center; gap: 22px; width: min(720px, calc(100% - 32px));
  padding: 12px 12px 12px 22px; border-radius: 18px; border: 1px solid var(--line);
  background: rgba(14, 14, 14, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: rise 0.5s cubic-bezier(.2, .9, .2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.recap__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.recap__k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-faint); }
.recap__line { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.25; }
.recap__line b { font-family: var(--cond); font-stretch: 62%; font-style: normal; font-weight: 800; font-size: 19px; text-transform: uppercase; color: var(--slop); }
.recap__btns { display: flex; gap: 8px; flex: none; }

/* ======================================================================
   CARDS
   ====================================================================== */
.card {
  --w: 240px;
  --acc: #e9e4d8;
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --px: 50; --py: 50; --hover: 0; --hyp: 0;
  position: relative;
  width: var(--w);
  aspect-ratio: 5 / 7;
  perspective: 1100px;
  container-type: inline-size;
  user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.r-uncommon { --acc: #d4ff3a; }
.r-rare { --acc: #cfe2ff; }
.r-legendary { --acc: #ff8fb4; }
.r-mythic { --acc: #f5c451; }

.card__tilt, .card__flip { position: absolute; inset: 0; transform-style: preserve-3d; }
.card__tilt { transform: rotateY(var(--rx)) rotateX(var(--ry)); }
.card__flip { transform: rotateY(0deg); }
.card.is-down .card__flip { transform: rotateY(180deg); }
.card__face {
  position: absolute; inset: 0;
  border-radius: 4.6cqw; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  isolation: isolate;
  background: #0b0b0b;
  box-shadow: 0 1.5cqw 5cqw rgba(0, 0, 0, 0.55), 0 0 0 0.3cqw rgba(0, 0, 0, 0.6);
  transform: translateZ(0.1px);
}
.card__back { transform: rotateY(180deg) translateZ(0.1px); }
.r-rare .card__front { box-shadow: 0 1.5cqw 5cqw rgba(0, 0, 0, 0.55), 0 0 7cqw -2cqw rgba(207, 226, 255, 0.35); }
.r-legendary .card__front { box-shadow: 0 1.5cqw 5cqw rgba(0, 0, 0, 0.55), 0 0 9cqw -1cqw rgba(255, 111, 165, 0.45); }
.r-mythic .card__front { box-shadow: 0 1.5cqw 5cqw rgba(0, 0, 0, 0.55), 0 0 11cqw -1cqw rgba(245, 196, 81, 0.55); }

/* art + parallax */
.card__art { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(120% 80% at 50% 30%, #1c1c1c, #090909); }
.card__art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(241, 237, 228, 0.06) 50%, transparent 70%) 0 0 / 250% 100%; animation: shimmer 1.4s linear infinite; }
.card.has-art .card__art::before { display: none; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.card__art img, .card__art canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  transform: translate(calc((var(--px) - 50) * -0.07cqw), calc((var(--py) - 50) * -0.07cqw)) scale(1.08);
  opacity: 0; transition: opacity 0.5s;
}
.card.has-art .card__art img { opacity: 1; }
.card__art canvas.is-live { opacity: 1; }
.card__scrim { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(6, 6, 6, 0.55) 0%, rgba(6, 6, 6, 0) 13%, rgba(6, 6, 6, 0) 36%, rgba(6, 6, 6, 0.74) 52%, rgba(6, 6, 6, 0.93) 66%, rgba(6, 6, 6, 0.97) 100%); }

/* edge (rarity frame) */
.card__edge {
  position: absolute; inset: 0; z-index: 8; pointer-events: none; border-radius: inherit;
  padding: 1.7cqw;
  background: linear-gradient(160deg, #6d6b64, #1b1b1a 30%, #55534d 60%, #151514 80%, #77756e);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.r-uncommon .card__edge { background: linear-gradient(160deg, #eaff9c, #3d4b0f 26%, #c0f22a 52%, #1b2306 76%, #d4ff3a); }
.r-rare .card__edge { background: linear-gradient(160deg, #fff, #7d838e 20%, #f3f5f9 40%, #4b4f57 62%, #e4e8ee 82%, #8b919c); background-size: 200% 200%; background-position: var(--mx) var(--my); }
.r-legendary .card__edge { background: conic-gradient(from var(--ang), var(--rainbow)); animation: ang 7s linear infinite; }
.r-mythic .card__edge { padding: 2cqw; background: conic-gradient(from var(--ang), var(--goldfoil)); animation: ang 4s linear infinite; }
@keyframes ang { to { --ang: 360deg; } }

/* foil layers */
.card__foil, .card__shine, .card__glare { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.card__foil { z-index: 2; opacity: 0; }
.card__shine { z-index: 7; opacity: 0; }
.card__glare {
  z-index: 9;
  background: radial-gradient(farthest-corner circle at var(--mx) var(--my), rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.28) 22%, rgba(0, 0, 0, 0.4) 95%);
  mix-blend-mode: overlay;
  opacity: calc(var(--hover) * 0.7);
}

.r-uncommon .card__foil {
  opacity: calc(0.4 + var(--hover) * 0.5);
  background: linear-gradient(115deg, transparent 28%, rgba(212, 255, 58, 0.3) 42%, rgba(255, 255, 255, 0.55) 50%, rgba(212, 255, 58, 0.3) 58%, transparent 72%) var(--mx) var(--my) / 300% 300%;
  mix-blend-mode: overlay;
}
.r-rare .card__foil {
  opacity: calc(0.55 + var(--hover) * 0.45);
  background-image:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.0) 0 1.2cqw, rgba(0, 0, 0, 0.2) 1.2cqw 1.5cqw),
    repeating-linear-gradient(105deg, #ff5f8f 0%, #ffcf5c 6%, #74ffb2 12%, #59d4ff 18%, #a77bff 24%, #ff5f8f 30%);
  background-size: 100% 100%, 400% 400%;
  background-position: 0 0, var(--bgx, 50%) var(--bgy, 50%);
  mix-blend-mode: color-dodge;
  filter: brightness(0.62) contrast(1.5) saturate(1.1);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 46%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, #000 46%, transparent 70%);
}
.r-legendary .card__foil {
  opacity: calc(0.6 + var(--hover) * 0.4);
  background-image: repeating-linear-gradient(125deg, var(--rainbow));
  background-size: 500% 500%;
  background-position: var(--bgx, 50%) var(--bgy, 50%);
  mix-blend-mode: color-dodge;
  filter: brightness(0.55) contrast(1.6);
}
.r-legendary .card__shine, .r-mythic .card__shine {
  opacity: calc(0.75 + var(--hover) * 0.25);
  background-image: var(--glitter), repeating-linear-gradient(125deg, var(--rainbow));
  background-size: 34cqw 34cqw, 600% 600%;
  background-position: calc(var(--px) * 0.25cqw) calc(var(--py) * 0.25cqw), var(--bgy, 50%) var(--bgx, 50%);
  background-blend-mode: multiply;
  mix-blend-mode: color-dodge;
  -webkit-mask-image: radial-gradient(farthest-corner circle at var(--mx) var(--my), #000 10%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.3) 100%);
  mask-image: radial-gradient(farthest-corner circle at var(--mx) var(--my), #000 10%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.3) 100%);
}
.r-mythic .card__foil {
  opacity: calc(0.55 + var(--hover) * 0.4);
  background-image: repeating-linear-gradient(100deg, rgba(255, 236, 180, 0) 0%, rgba(255, 236, 180, 0) 8%, rgba(255, 244, 210, 0.9) 10.5%, rgba(255, 236, 180, 0) 13%, rgba(255, 236, 180, 0) 22%), linear-gradient(135deg, #3b2606, #f7d27a 40%, #6b4710 60%, #ffe9a8);
  background-size: 300% 300%, 100% 100%;
  background-position: var(--bgx, 50%) 50%, 0 0;
  mix-blend-mode: soft-light;
  animation: chromeslide 5s linear infinite;
}
@keyframes chromeslide { from { background-position: 0% 50%, 0 0; } to { background-position: 300% 50%, 0 0; } }
.r-mythic .card__shine { background-image: var(--glitter), linear-gradient(135deg, var(--goldfoil)); opacity: calc(0.5 + var(--hover) * 0.35); }

/* sparkles + motes */
.card__sparkles { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.card__sparkles i {
  position: absolute; width: calc(7cqw * var(--s, 1)); aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(circle, #fff 0 6%, transparent 12%), linear-gradient(transparent 48%, #fff 50%, transparent 52%), linear-gradient(90deg, transparent 48%, #fff 50%, transparent 52%);
  -webkit-mask: radial-gradient(circle, #000 15%, transparent 65%); mask: radial-gradient(circle, #000 15%, transparent 65%);
  filter: drop-shadow(0 0 1cqw var(--acc));
  animation: twinkle 2.8s var(--d, 0s) ease-in-out infinite;
  opacity: 0;
}
@keyframes twinkle { 0%, 100% { opacity: 0; scale: 0.2; rotate: 0deg; } 45% { opacity: 1; scale: 1; rotate: 45deg; } 70% { opacity: 0; scale: 0.4; } }
.card__motes { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; border-radius: inherit; }
.card__motes i { position: absolute; bottom: -3%; width: 1.1cqw; aspect-ratio: 1; border-radius: 50%; background: #fff2c8; box-shadow: 0 0 2cqw 0.4cqw rgba(245, 196, 81, 0.9); opacity: 0; animation: mote var(--t, 6s) var(--d, 0s) linear infinite; }
@keyframes mote { 0% { transform: translate(0, 0); opacity: 0; } 12% { opacity: 1; } 80% { opacity: 0.9; } 100% { transform: translate(var(--x, 0), -150cqw); opacity: 0; } }

/* frame typography */
.card__frame { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; justify-content: space-between; padding: 5.6cqw 6.6cqw 5.4cqw; pointer-events: none; }
.card__frame::before { content: ""; position: absolute; inset: 3.4cqw; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 2.6cqw; pointer-events: none; }
.card__top { display: flex; justify-content: space-between; align-items: center; gap: 2cqw; }
.card__no, .card__badge {
  display: inline-flex; align-items: center; gap: 1.2cqw;
  height: 5.2cqw; padding: 0 2.2cqw; border-radius: 3cqw;
  font-family: var(--mono); font-size: 2.6cqw; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; line-height: 1;
}
.card__no { background: rgba(8, 8, 8, 0.62); color: var(--bone); border: 1px solid rgba(255, 255, 255, 0.12); }
.card__badge { background: var(--acc); color: #0a0a0a; box-shadow: 0 0 4cqw -1cqw var(--acc); }
.card__badge b { font-weight: 400; }
.r-common .card__badge { background: rgba(8, 8, 8, 0.62); color: var(--bone); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: none; }
.r-rare .card__badge { background: linear-gradient(135deg, #fff, #aab3c2 40%, #f4f6fa 60%, #8e96a4); }
.r-legendary .card__badge { background: linear-gradient(100deg, var(--rainbow)); }
.r-mythic .card__badge { background: linear-gradient(100deg, #fff3c4, #e2b23c 35%, #fff 55%, #b98a2a 80%, #fff3c4); background-size: 200% 100%; animation: chromeslide 3s linear infinite; }

.card__bottom { display: flex; flex-direction: column; }
.card__rarity { font-family: var(--mono); font-size: 2.4cqw; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--acc); margin-bottom: 1.4cqw; text-shadow: 0 0 3cqw rgba(0, 0, 0, 0.9); }
.card__name { margin: 0; display: flex; flex-direction: column; }
.card__name span {
  font-family: var(--cond); font-stretch: 62%; font-weight: 900; text-transform: uppercase;
  font-size: 10.6cqw; line-height: 0.86; letter-spacing: 0.002em; color: var(--bone);
  text-shadow: 0 0.4cqw 2cqw rgba(0, 0, 0, 0.6);
  text-wrap: balance;
}
.card__name em { font-size: 7.2cqw; line-height: 1.02; color: var(--acc); margin-top: 0.6cqw; }
.r-mythic .card__name span, .r-mythic .card__name em {
  background: linear-gradient(100deg, #fff6d6 0%, #f5c451 30%, #fffbe9 48%, #c8921f 70%, #fff6d6 100%) 0 0 / 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: chromeslide 6s linear infinite; text-shadow: none;
  filter: drop-shadow(0 0.4cqw 1.2cqw rgba(0, 0, 0, 0.6));
}
.r-legendary .card__name em { background: linear-gradient(90deg, #ff8fb4, #ffc07a, #fff38a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card__missing-name { display: none; font-family: var(--cond); font-stretch: 62%; font-weight: 900; font-size: 12cqw; line-height: 0.9; color: rgba(241, 237, 228, 0.28); letter-spacing: 0.08em; }
.card__serial { margin-top: 2cqw; font-family: var(--mono); font-size: 2.35cqw; letter-spacing: 0.06em; color: var(--bone-dim); }
.card__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.2cqw; margin-top: 3.2cqw; }
.st { display: flex; flex-direction: column; min-width: 0; }
.st__k { font-family: var(--mono); font-size: 1.75cqw; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st__v { font-family: var(--cond); font-stretch: 62%; font-weight: 800; font-size: 6.4cqw; line-height: 1; margin-top: 0.4cqw; color: var(--bone); }
.st i { display: block; height: 0.55cqw; margin-top: 1cqw; border-radius: 1cqw; background: linear-gradient(90deg, var(--acc) calc(var(--v) * 100%), rgba(241, 237, 228, 0.13) 0); }
.r-common .st i { background: linear-gradient(90deg, rgba(241, 237, 228, 0.7) calc(var(--v) * 100%), rgba(241, 237, 228, 0.13) 0); }
.card__flavour { margin: 3cqw 0 0; font-family: var(--serif); font-style: italic; font-size: 3.6cqw; line-height: 1.18; color: rgba(241, 237, 228, 0.78); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { display: flex; justify-content: space-between; margin-top: 3cqw; padding-top: 2cqw; border-top: 1px solid rgba(241, 237, 228, 0.14); font-family: var(--mono); font-size: 1.8cqw; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-faint); }

/* mini (grid) cards */
.card.is-mini .card__serial, .card.is-mini .card__stats, .card.is-mini .card__flavour, .card.is-mini .card__foot { display: none; }
.card.is-mini .card__frame { padding: 6.4cqw 7cqw 7.4cqw; }
.card.is-mini .card__no, .card.is-mini .card__badge { height: 8cqw; font-size: 4cqw; padding: 0 3cqw; border-radius: 4cqw; letter-spacing: 0.06em; }
.card.is-mini .card__no { display: none; }
.card.is-mini .card__top { justify-content: flex-end; }
.card.is-mini .card__rarity { font-size: 4.2cqw; letter-spacing: 0.1em; margin-bottom: 2cqw; }
.card.is-mini .card__name span { font-size: 13.5cqw; }
.card.is-mini .card__name em { font-size: 10cqw; }
.card.is-mini .card__scrim { background: linear-gradient(180deg, rgba(6, 6, 6, 0) 0%, rgba(6, 6, 6, 0) 45%, rgba(6, 6, 6, 0.8) 70%, rgba(6, 6, 6, 0.95) 100%); }
.card.is-mini .card__frame::before { inset: 3.6cqw; }

/* silhouettes */
.card.is-missing .card__art img { filter: grayscale(1) brightness(0.2) contrast(1.8); }
.card.is-missing .card__foil, .card.is-missing .card__shine, .card.is-missing .card__sparkles, .card.is-missing .card__motes, .card.is-missing .card__name, .card.is-missing .card__serial, .card.is-missing .card__stats, .card.is-missing .card__flavour { display: none; }
.card.is-missing .card__missing-name { display: block; }
.card.is-missing .card__edge { background: rgba(241, 237, 228, 0.12) !important; animation: none; }
.card.is-missing .card__badge { background: rgba(8, 8, 8, 0.6); color: var(--acc); border: 1px solid rgba(241, 237, 228, 0.2); box-shadow: none; animation: none; }
.card.is-missing .card__front { box-shadow: 0 1.5cqw 5cqw rgba(0, 0, 0, 0.55); }
.card.is-missing .card__front::after { content: "?"; position: absolute; left: 50%; top: 34%; translate: -50% -50%; z-index: 4; font-family: var(--serif); font-style: italic; font-size: 40cqw; color: rgba(241, 237, 228, 0.08); }

/* back */
.card__back { background: #0a0a0a; }
.back__guilloche {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 46%, rgba(212, 255, 58, 0.22), transparent 42%),
    repeating-radial-gradient(circle at 50% 46%, rgba(212, 255, 58, 0.11) 0 0.35cqw, transparent 0.35cqw 2.2cqw),
    repeating-conic-gradient(from 0deg at 50% 46%, rgba(241, 237, 228, 0.05) 0 1.5deg, transparent 1.5deg 6deg),
    linear-gradient(160deg, #141414, #070707);
}
.back__inner { position: absolute; inset: 4.4cqw; border: 1px solid rgba(212, 255, 58, 0.25); border-radius: 3cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2.4cqw; }
.back__top, .back__bottom { position: absolute; left: 0; right: 0; font-family: var(--mono); font-size: 2.3cqw; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(241, 237, 228, 0.55); }
.back__top { top: 5cqw; }
.back__bottom { bottom: 5cqw; font-size: 1.9cqw; }
.back__drop { width: 17cqw; height: 17cqw; filter: drop-shadow(0 0 4cqw rgba(212, 255, 58, 0.6)); }
.back__drop path { fill: var(--slop); }
.back__drop .sh { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; opacity: 0.85; }
.back__logo { font-family: var(--cond); font-stretch: 62%; font-weight: 900; font-size: 15cqw; line-height: 0.8; text-transform: uppercase; background: linear-gradient(180deg, #fff, #c9cdd2 45%, #6d7279 55%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.back__tag { font-family: var(--serif); font-style: italic; font-size: 4.6cqw; color: var(--slop); }
.card__back .card__edge { background: linear-gradient(160deg, #d4ff3a, #2a330a 30%, #9fcc00 60%, #12160a 85%, #d4ff3a); }
.card__back .card__glare { opacity: calc(0.25 + var(--hover) * 0.5); }
.card.hint-rare .card__back { box-shadow: 0 0 0 0.4cqw rgba(207, 226, 255, 0.0), 0 0 8cqw -2cqw rgba(207, 226, 255, 0.5); }
.card.hint-legendary .card__back { animation: hintpulse 1.4s ease-in-out infinite; --hc: rgba(255, 111, 165, 0.75); }
.card.hint-mythic .card__back { animation: hintpulse 1s ease-in-out infinite; --hc: rgba(245, 196, 81, 0.9); }
@keyframes hintpulse { 50% { box-shadow: 0 0 10cqw 0 var(--hc), 0 0 0 0.6cqw var(--hc); } }

/* ---------- collection / craft ---------- */
.sect { padding: 44px 24px 10px; max-width: 1240px; margin: 0 auto; }
.sect__k { margin: 0 0 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slop); }
.sect__h { margin: 0; font-family: var(--cond); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(46px, 8vw, 96px); line-height: 0.86; letter-spacing: -0.005em; }
.sect__h em { text-transform: none; color: var(--slop); font-size: 0.86em; letter-spacing: 0; }
.sect__h--sm { font-size: clamp(32px, 4.6vw, 52px); }
.sect__p { max-width: 560px; margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.3; color: var(--bone-dim); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; margin-top: 28px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line); }
.kpi { padding: 14px 16px; background: var(--ink); }
.kpi span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-faint); }
.kpi b { font-family: var(--cond); font-stretch: 62%; font-weight: 800; font-size: 32px; line-height: 1.05; }
.kpi b small { font-size: 0.55em; color: var(--bone-faint); font-weight: 600; }

.filters { max-width: 1240px; margin: 22px auto 0; padding: 0 24px; display: flex; gap: 6px; flex-wrap: wrap; }
.pill { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-dim); }
.pill:hover { color: var(--bone); }
.pill.is-on { background: var(--bone); color: var(--ink); border-color: var(--bone); }

.setblock { max-width: 1240px; margin: 34px auto 0; padding: 0 24px; }
.sethead { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.sethead h3 { margin: 0; font-family: var(--cond); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 4vw, 44px); line-height: 0.9; }
.sethead h3 small { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.16em; color: var(--bone-faint); vertical-align: middle; margin-right: 8px; }
.sethead p { margin: 4px 0 0; font-family: var(--serif); font-style: italic; color: var(--bone-dim); font-size: 17px; }
.setpct { text-align: right; }
.setpct b { font-family: var(--cond); font-stretch: 62%; font-weight: 900; font-size: 44px; line-height: 0.9; color: var(--slop); }
.setpct span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-faint); }
.setbar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(241, 237, 228, 0.1); overflow: hidden; }
.setbar i { display: block; height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(90deg, var(--slop-deep), var(--slop)); box-shadow: 0 0 12px var(--slop); }
.setblock.is-complete .setbar i { background: linear-gradient(90deg, var(--rainbow)); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 22px 18px; }
.slot { position: relative; display: flex; flex-direction: column; gap: 8px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: inherit; }
.slot .card { --w: 100%; width: 100%; transition: translate 0.25s; }
.slot:hover .card { translate: 0 -4px; }
.slot__cap { display: flex; justify-content: space-between; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-faint); }
.slot__cap b { color: var(--bone); font-weight: 600; }
.slot__new { position: absolute; top: -8px; left: -6px; z-index: 3; padding: 2px 7px; border-radius: 999px; background: var(--slop); color: var(--ink); font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: 0.14em; }
.slot.is-hidden { display: none; }

.trophies { max-width: 1240px; margin: 60px auto 0; padding: 0 24px 40px; }
.trophies__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 18px; }
.trophy { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(241, 237, 228, 0.02); }
.trophy__i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: var(--ink-3); color: var(--bone-faint); }
.trophy.is-on .trophy__i { background: radial-gradient(circle at 35% 30%, #f4ffc8, var(--slop) 45%, var(--slop-deep)); color: var(--ink); box-shadow: 0 0 18px -4px var(--slop); }
.trophy b { display: block; font-family: var(--cond); font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: 19px; line-height: 1; }
.trophy span { font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--bone-dim); line-height: 1.2; }
.trophy:not(.is-on) { opacity: 0.55; }

.dustbig { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; margin-top: 22px; padding: 14px 20px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(120deg, rgba(212, 255, 58, 0.06), transparent); }
.dustbig__k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-faint); }
.dustbig b { font-family: var(--cond); font-stretch: 62%; font-weight: 900; font-size: 46px; line-height: 0.9; color: var(--slop); }
.dustbig__rates { font-family: var(--mono); font-size: 10.5px; color: var(--bone-faint); letter-spacing: 0.06em; }
.craftgrid { max-width: 1240px; margin: 28px auto 0; padding: 0 24px 60px; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 26px 18px; }
.crafttile { display: flex; flex-direction: column; gap: 8px; }
.crafttile .slot { gap: 6px; }
.crafttile__name { font-family: var(--cond); font-stretch: 62%; font-weight: 800; font-size: 18px; line-height: 1; text-transform: uppercase; }
.crafttile__name small { display: block; margin-top: 3px; font-family: var(--mono); font-size: 9.5px; font-weight: 400; letter-spacing: 0.14em; color: var(--bone-faint); }
.crafttile .btn { width: 100%; min-height: 38px; font-size: 10.5px; margin-top: auto; }
.crafttile.is-owned { opacity: 0.6; }

.foot { max-width: 1240px; margin: 0 auto; padding: 28px 24px calc(28px + var(--dockH)); border-top: 1px solid var(--line); color: var(--bone-faint); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.foot p { margin: 0; }
.foot em { color: var(--bone); font-size: 16px; }
.foot__k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.foot a { color: var(--slop); }
body.on-packs .foot { display: none; }

/* ---------- cinematic ---------- */
.cine { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; overflow: hidden; --cacc: #ff8fb4; }
.cine.r-mythic { --cacc: #f5c451; }
.cine.r-rare { --cacc: #cfe2ff; }
.cine__dim { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(20, 16, 18, 0.88), rgba(0, 0, 0, 0.97)); opacity: 0; transition: opacity 0.4s; }
.cine.is-on .cine__dim { opacity: 1; }
.cine__rays {
  position: absolute; left: 50%; top: 41%; width: 220vmax; height: 220vmax; translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--cacc) 40%, transparent) 0 4deg, transparent 4deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.6) 12%, transparent 36%); mask: radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.6) 12%, transparent 36%);
  opacity: 0; transition: opacity 0.8s; animation: spin 18s linear infinite;
}
.cine.is-charging .cine__rays { opacity: 0.45; }
.cine.is-revealed .cine__rays { opacity: 1; }
@keyframes spin { to { rotate: 360deg; } }
.cine__glow { position: absolute; left: 50%; top: 41%; width: 90vmin; height: 90vmin; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--cacc) 70%, transparent), transparent 60%); opacity: 0; transition: opacity 1.2s, scale 1.2s; scale: 0.4; filter: blur(8px); }
.cine.is-charging .cine__glow { opacity: 0.55; scale: 0.8; }
.cine.is-revealed .cine__glow { opacity: 0.8; scale: 1.1; }
.cine__slot { position: absolute; left: 50%; top: 41%; translate: -50% -50%; z-index: 3; }
.cine__slot .card { --w: min(72vw, 340px, calc((100svh - 330px) / 1.4)); }
.cine__title { position: absolute; left: 0; right: 0; bottom: max(58px, 5vh); z-index: 4; display: flex; flex-direction: column; align-items: center; text-align: center; pointer-events: none; opacity: 0; }
.cine__kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--bone-dim); }
.cine__title b { font-family: var(--cond); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(56px, 10vw, 128px); line-height: 0.84; letter-spacing: 0.01em; color: var(--cacc); text-shadow: 0 0 40px var(--cacc), 0 0 2px #fff; }
.cine.r-legendary .cine__title b { background: linear-gradient(90deg, var(--rainbow)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 22px rgba(255, 111, 165, 0.7)); }
.cine.r-mythic .cine__title b { background: linear-gradient(180deg, #fffbe9, #f5c451 45%, #8a5d12 55%, #fff1c2); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 26px rgba(245, 196, 81, 0.8)); }
.cine__title em { font-size: clamp(20px, 2.6vw, 30px); color: var(--bone); margin-top: 6px; }
.cine.is-revealed .cine__title { animation: slam 0.7s cubic-bezier(.2, 1.4, .3, 1) both; }
@keyframes slam { 0% { opacity: 0; transform: scale(2.6); } 60% { opacity: 1; transform: scale(0.96); } 100% { opacity: 1; transform: scale(1); } }
.cine__flash { position: absolute; inset: 0; z-index: 5; background: #fff; opacity: 0; pointer-events: none; }
.cine__hint { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; z-index: 6; border: 0; background: none; cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bone-faint); opacity: 0; transition: opacity 0.4s; padding: 12px 20px; }
.cine.is-done .cine__hint { opacity: 1; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.4; } }
.cine.is-done { cursor: pointer; }
.shake { animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes shake { 10%, 90% { translate: -2px 0; } 20%, 80% { translate: 4px 1px; } 30%, 50%, 70% { translate: -7px -2px; } 40%, 60% { translate: 7px 2px; } }

canvas.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 65; pointer-events: none; }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.modal__scrim { position: fixed; inset: 0; background: rgba(4, 4, 4, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade 0.3s both; }
@keyframes fade { from { opacity: 0; } }
.modal__x { position: absolute; top: 10px; right: 10px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10, 10, 10, 0.8); cursor: pointer; font-size: 24px; line-height: 1; color: var(--bone); }
.modal__x:hover { border-color: var(--bone-faint); }
.detail__wrap:focus, .portfolio__wrap:focus { outline: none; }

.detail__wrap { position: relative; display: grid; grid-template-columns: auto minmax(280px, 400px); gap: 48px; align-items: center; max-width: 1000px; width: 100%; padding: 40px; animation: rise 0.45s cubic-bezier(.2, .9, .2, 1) both; }
.detail__stage { display: grid; place-items: center; }
.detail__stage .card { --w: min(400px, 42vw, calc((100svh - 120px) / 1.4)); touch-action: none; }
.detail__k { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--acc, var(--slop)); }
.detail__name { margin: 8px 0 0; font-family: var(--cond); font-stretch: 62%; font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 5vw, 62px); line-height: 0.86; }
.detail__name em { display: block; text-transform: none; font-size: 0.72em; color: var(--acc, var(--slop)); line-height: 1.05; }
.detail__flav { margin: 14px 0 0; font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.28; color: var(--bone-dim); }
.detail__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-top: 22px; }
.dstat span { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-faint); }
.dstat span b { font-family: var(--cond); font-stretch: 62%; font-size: 22px; color: var(--bone); letter-spacing: 0; line-height: 1; }
.dstat i { display: block; height: 4px; margin-top: 6px; border-radius: 4px; background: rgba(241, 237, 228, 0.1); overflow: hidden; }
.dstat i::after { content: ""; display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--acc, var(--slop)); box-shadow: 0 0 10px var(--acc, var(--slop)); }
.detail__facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.detail__facts dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-faint); padding-top: 2px; }
.detail__facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.detail__market { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.detail__mk { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-faint); }
.detail__market b { font-family: var(--cond); font-stretch: 62%; font-weight: 800; font-size: 26px; margin-right: 8px; }
#dDelta { font-family: var(--mono); font-size: 11px; }
#dSpark { width: 100%; height: 44px; }
.up { color: var(--slop); }
.down { color: #ff7a7a; }
.detail__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.detail__fine { margin: 14px 0 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; color: var(--bone-faint); line-height: 1.6; }
.detail__owned { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--bone-faint); font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-dim); }

.portfolio__wrap { position: relative; width: min(680px, 100%); padding: 34px 30px 26px; border-radius: 20px; border: 1px solid var(--line); background: #0d0d0d; animation: rise 0.4s cubic-bezier(.2, .9, .2, 1) both; }
.portfolio__v { margin: 6px 0 0; font-family: var(--cond); font-stretch: 62%; font-weight: 900; font-size: clamp(52px, 9vw, 84px); line-height: 0.9; }
.portfolio__v small { font-size: 0.32em; color: var(--bone-faint); font-weight: 600; letter-spacing: 0.06em; }
.portfolio__d { margin: 6px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }
.portfolio__chart { width: 100%; height: 200px; margin-top: 16px; border-bottom: 1px solid var(--line); }
.portfolio__news { margin: 12px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slop); min-height: 1.5em; }
.portfolio__h { margin: 20px 0 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-faint); font-weight: 400; }
.portfolio__top { margin: 0; padding: 0; list-style: none; }
.portfolio__top li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.portfolio__top li b { font-family: var(--cond); font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: 18px; }
.portfolio__top li span { font-family: var(--mono); font-size: 12px; color: var(--bone-dim); white-space: nowrap; }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 18px; top: calc(var(--barH) + var(--tapeH) + 62px); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast {
  display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center;
  width: min(340px, calc(100vw - 36px)); padding: 12px 16px 12px 12px;
  border-radius: 14px; border: 1px solid rgba(212, 255, 58, 0.35);
  background: rgba(14, 14, 14, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px -10px rgba(212, 255, 58, 0.5);
  animation: toastin 0.5s cubic-bezier(.2, 1.3, .4, 1) both;
  pointer-events: auto;
}
.toast.is-out { animation: toastout 0.35s ease-in both; }
@keyframes toastin { from { opacity: 0; transform: translateX(40px) scale(0.9); } }
@keyframes toastout { to { opacity: 0; transform: translateX(40px); } }
.toast__i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #f4ffc8, var(--slop) 45%, var(--slop-deep)); color: var(--ink); font-size: 17px; }
.toast__k { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slop); }
.toast b { display: block; font-family: var(--cond); font-stretch: 62%; font-weight: 800; font-size: 20px; line-height: 1.05; text-transform: uppercase; }
.toast span:last-child { font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--bone-dim); line-height: 1.2; }

/* ---------- debug (only with ?debug=1) ---------- */
.debug { position: fixed; left: 10px; bottom: calc(10px + var(--dockH)); z-index: 85; display: flex; flex-wrap: wrap; gap: 4px; max-width: 300px; padding: 8px; border: 1px dashed #ff7a7a; border-radius: 10px; background: rgba(10, 10, 10, 0.9); font-family: var(--mono); font-size: 10px; }
.debug b { width: 100%; color: #ff7a7a; letter-spacing: 0.14em; }
.debug button { padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; background: none; cursor: pointer; font-size: 10px; }
.debug button.is-on { background: #ff7a7a; color: #000; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .bar { gap: 12px; padding: 0 14px; }
  .navbtn { padding: 0 11px; }
  .bar__sep, .wordmark span { display: none; }
}
@media (max-width: 860px) {
  :root { --barH: 104px; --dockH: calc(64px + env(safe-area-inset-bottom)); }
  .bar { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 48px 48px; row-gap: 0; padding: 0 14px; align-content: center; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ink); }
  .bar__brand { grid-column: 1; grid-row: 1; }
  .wordmark span, .bar__sep { display: inline; }
  .iconbtn { grid-column: 2; grid-row: 1; width: 34px; height: 34px; }
  .bar__chips { grid-column: 1 / -1; grid-row: 2; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-bottom: 6px; }
  .chip { min-width: 0; padding: 5px 9px 6px; }
  .chip b { font-size: 19px; }
  .bar__nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    height: var(--dockH); padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 6px;
    background: rgba(10, 10, 10, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }
  .navbtn { height: 48px; justify-content: center; padding: 0 8px; font-size: 10.5px; letter-spacing: 0.08em; border-color: var(--line); }
  .stage { min-height: 520px; }
  .sect { padding: 32px 16px 6px; }
  .filters, .setblock, .trophies, .craftgrid { padding-left: 16px; padding-right: 16px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; }
  .craftgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .slot__cap { font-size: 8.5px; letter-spacing: 0.04em; }
  .crafttile__name { font-size: 14px; }
  .crafttile .btn { padding: 0 6px; font-size: 9.5px; letter-spacing: 0.06em; min-height: 40px; white-space: normal; }
  .recap { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; bottom: 12px; text-align: center; }
  .recap__btns .btn { flex: 1; }
  .revealbar { top: 10px; right: 10px; }
  .detail__wrap { grid-template-columns: 1fr; gap: 26px; padding: 56px 4px 30px; }
  .detail__stage .card { --w: min(82vw, 360px, calc((100svh - 190px) / 1.4)); }
  .modal { place-items: start center; padding: 12px; }
  .portfolio__wrap { padding: 30px 18px 20px; margin-top: 30px; }
  .toasts { right: 50%; translate: 50% 0; align-items: center; top: calc(var(--barH) + var(--tapeH) + 8px); }
  .toast { padding: 9px 14px 9px 10px; }
  .toast b { font-size: 18px; }
  .foot { flex-direction: column; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi b { font-size: 26px; }
  .sethead { grid-template-columns: 1fr auto; }
  .setpct b { font-size: 34px; }
}
@media (max-width: 420px) {
  .bar__title { font-size: 20px; }
  .chip__k { font-size: 8px; letter-spacing: 0.12em; }
  .chip__sub { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  body::after, .pack, .stage__glow, .tape__track, .cine__rays { animation: none !important; }
  .card__motes, .card__sparkles i { animation-duration: 8s !important; }
  .shake { animation: none !important; }
  .cine.is-revealed .cine__title { animation: fade 0.4s both; }
}
