/* Kruze Fam Vault — site shell. Card and grid internals live in card3d.css / vault-grid.css. */

:root {
  /* shared contract with card3d.css and vault-grid.css — keep the names */
  --kz-bg: #07080d;
  --kz-surface: #11131c;
  --kz-text: #f4f1ea;
  --kz-muted: #9a9aa8;
  --kz-gold: #f5c542;
  --kz-font-display: Cinzel, "Trajan Pro", "Times New Roman", serif;   /* one display face: same as --kz-font-title */
  --kz-font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --kz-derrick: #b58ddb;
  --kz-jazz: #c99a5b;
  --kz-hayden: #f5d02f;
  --kz-haylei: #f2762e;

  /* site-only */
  --kz-font-title: Cinzel, "Trajan Pro", "Times New Roman", serif;
  --kz-metal: linear-gradient(180deg, #ffffff 0%, #f8eed4 30%, #e7cb86 60%, #bb8d38 84%, #8d6722 100%);
  --kz-font-mono: ui-monospace, "SF Mono", Menlo, monospace;   /* card numbers on stand-in faces only */
  --kz-gold-soft: #cdb37a;      /* flat accent for kickers, links, small numbers; the gradient is for the title, rank I and the main CTA */
  --kz-cream: #e9dfc6;
  --kz-navy: #141a33;
  --kz-line: rgba(244, 241, 234, .1);
  --kz-line-strong: rgba(244, 241, 234, .2);
  --kz-gold-grad: linear-gradient(180deg, #ffe9a3 0%, #f5c542 45%, #c8881a 100%);
  --who: var(--kz-gold);
  --top-h: 64px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --rail-pad: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 50% -180px, var(--kz-navy) 0, transparent 70%),
    var(--kz-bg);
  background-repeat: no-repeat;
  color: var(--kz-text);
  font: 400 16px/1.55 var(--kz-font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--kz-gold); outline-offset: 3px; border-radius: 4px; }
#app:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--kz-gold); color: #111; padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--kz-font-title); font-weight: 600; letter-spacing: .07em; line-height: 1.12; text-transform: uppercase; color: #f6f1e4; }
h2 { font-size: clamp(27px, 4.1vw, 50px); }
.kicker { font: 600 11.5px/1.2 var(--kz-font-body); letter-spacing: .24em; text-transform: uppercase; color: var(--kz-gold-soft); margin-bottom: 14px; }
.sec__sub { color: var(--kz-muted); max-width: 56ch; margin-top: 12px; }
.more { font: 600 12px/1 var(--kz-font-body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--kz-gold-soft); white-space: nowrap; padding: 10px 0; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- buttons, chips, pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font: 600 13px/1 var(--kz-font-body); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn--gold { position: relative; overflow: hidden; background: var(--kz-gold-grad); color: #17120a; box-shadow: 0 8px 30px -8px rgba(245, 197, 66, .55); }
.btn--gold::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .6) 50%, transparent 62%); }
.btn--gold:hover::after { transform: translateX(120%); transition: transform .75s ease; }
.hero__cta .btn--gold::after { animation: btnSheen 6.5s ease-in-out 2.4s infinite; }
@keyframes btnSheen { 0%, 72% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -8px rgba(245, 197, 66, .7); }
.btn--ghost { background: rgba(244, 241, 234, .04); border-color: var(--kz-line-strong); color: var(--kz-text); }
.btn--ghost:hover { border-color: var(--kz-gold-soft); color: var(--kz-cream); }

.chip { display: inline-block; font: 600 10px/1 var(--kz-font-body); letter-spacing: .12em; text-transform: uppercase; padding: 5px 7px; border-radius: 5px; border: 1px solid var(--kz-line-strong); color: var(--kz-text); white-space: nowrap; }
.chip--grade { background: transparent; color: var(--kz-cream); border-color: rgba(245, 197, 66, .4); }   /* every grader: one quiet outline */
.chip--tag { color: var(--kz-muted); }

.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--kz-line-strong); background: rgba(244, 241, 234, .04); font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; }
.pill:hover { border-color: var(--kz-gold-soft); }
.pill b { color: var(--kz-gold-soft); font-weight: 600; font-variant-numeric: tabular-nums; }

.price { font: 600 16px/1.2 var(--kz-font-title); letter-spacing: .04em; font-variant-numeric: lining-nums tabular-nums; color: var(--kz-cream); display: block; }
/* price source: one quiet line, the same whether or not it links out */
.cite { display: block; font-size: 11px; line-height: 1.35; color: var(--kz-muted); margin-top: 2px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.cite:hover { color: var(--kz-text); text-decoration: underline; text-decoration-color: var(--kz-line-strong); text-underline-offset: 2px; }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  transition: background-color .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.top.scrolled, body:not([data-view="home"]) .top {
  background: rgba(7, 8, 13, .88); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--kz-line);
}
.top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s; }
/* home: the big title is right below, so the nav wordmark waits until that has scrolled away */
body[data-view]:not([data-view="home"]) .top__brand, .top.brand-on .top__brand { opacity: 1; visibility: visible; }
.top__name { display: flex; align-items: center; gap: 12px; font: 600 15px/1 var(--kz-font-title); letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; color: #f3ead2; }
.top__name i { width: 1px; height: 16px; background: linear-gradient(180deg, transparent, var(--kz-gold-soft), transparent); }
.top__name b { font-weight: 500; color: var(--kz-gold-soft); }
.top__brand:hover .top__name { color: #fff; }
.top__nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.top__nav a { font-size: 13.5px; font-weight: 500; letter-spacing: .01em; text-decoration: none; color: var(--kz-muted); padding: 10px 0; transition: color .15s ease; }
.top__nav a:hover, .top__nav a[aria-current="page"] { color: var(--kz-text); }
.top__nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--kz-gold-soft); }
.top__nav .top__cta { color: #17120a; background: var(--kz-gold-grad); padding: 11px 18px; border-radius: 999px; font: 600 11.5px/1 var(--kz-font-body); letter-spacing: .14em; text-transform: uppercase; }
.top__nav .top__cta:hover { color: #17120a; }
.top__menu { display: none; width: 44px; height: 44px; border: 1px solid var(--kz-line-strong); border-radius: 12px; background: rgba(244, 241, 234, .04); cursor: pointer; padding: 0; }
.top__menu span { display: block; width: 18px; height: 2px; background: var(--kz-text); margin: 4px auto; border-radius: 2px; }

@media (max-width: 860px) {
  .top__menu { display: block; }
  .top__nav {
    position: absolute; top: calc(var(--top-h) + 6px); right: var(--gutter); left: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 18px 18px;
    background: #11131c; border: 1px solid var(--kz-line-strong); border-radius: 18px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .6);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .top__nav.open { visibility: visible; opacity: 1; transform: none; }
  .top__nav a { font-size: 17px; padding: 14px 0; border-bottom: 1px solid var(--kz-line); color: var(--kz-text); }
  .top__nav a[aria-current="page"] { box-shadow: none; color: var(--kz-gold-soft); }
  .top__nav .top__cta { margin-top: 14px; text-align: center; border: 0; padding: 17px 14px; font-size: 13px; }
}

/* ---------- boot / errors ---------- */
.boot { min-height: 80vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; color: var(--kz-muted); padding: 0 var(--gutter); }
.boot img { animation: breathe 2.4s ease-in-out infinite; }
.boot__sm { font: 500 12px var(--kz-font-body); }
@keyframes breathe { 0%, 100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- card slots (KZCard elements are dropped in here) ---------- */
.slot { position: relative; width: 100%; aspect-ratio: 63 / 88; }
.slot > * { width: 100% !important; max-width: none; margin: 0; --kz-card-w: 100%; }
.slot:empty { border-radius: 4.5% / 3.2%; background: linear-gradient(135deg, #171a27, #0d0f17); border: 1px solid var(--kz-line); }
.slot:not(:empty) { aspect-ratio: auto; }

/* stand-in when card3d.js is missing */
.ph-card {
  aspect-ratio: 63 / 88; border-radius: 4.5% / 3.2%; cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 10%;
  background: radial-gradient(120% 80% at 30% 0%, #2a3158 0, #141829 55%, #0b0d15 100%);
  border: 1px solid var(--kz-line-strong); box-shadow: 0 18px 40px -18px #000;
  transition: transform .2s ease, border-color .2s ease;
}
.ph-card:hover { transform: translateY(-4px); border-color: var(--kz-gold); }
.ph-card--graded { border-top: 18px solid #e23b3b; }
.ph-card--sealed { border-radius: 6px; background: linear-gradient(160deg, #3a2f18, #14110a); }
.ph-card__name { font: 600 clamp(11px, .85em, 16px)/1.15 var(--kz-font-title); letter-spacing: .05em; text-transform: uppercase; overflow-wrap: anywhere; }
.ph-card__set { font-size: 10px; color: var(--kz-muted); line-height: 1.25; }
.ph-card__grade { font: 700 10px var(--kz-font-body); color: var(--kz-gold); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--top-h) + clamp(8px, 2vh, 28px)) var(--gutter) clamp(24px, 4vh, 48px);
}
.hero__glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(46% 50% at 12% 62%, color-mix(in srgb, var(--kz-derrick) 30%, transparent), transparent 70%),
    radial-gradient(34% 36% at 30% 86%, color-mix(in srgb, var(--kz-jazz) 26%, transparent), transparent 70%),
    radial-gradient(46% 50% at 88% 62%, color-mix(in srgb, var(--kz-haylei) 30%, transparent), transparent 70%),
    radial-gradient(34% 36% at 70% 86%, color-mix(in srgb, var(--kz-hayden) 22%, transparent), transparent 70%);
}
.hero__glow::after {            /* faint speed lines, masked toward the seam */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(100deg, transparent 0 46px, rgba(244, 241, 234, .035) 46px 47px);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 60%, #000, transparent 75%); mask-image: radial-gradient(60% 60% at 50% 60%, #000, transparent 75%);
}
.hero.has-battle .hero__glow { display: none; }   /* battle scene sits on plain dark page */
.hero__top { text-align: center; position: relative; z-index: 3; }
.title { display: grid; justify-items: center; gap: clamp(8px, 1.2vw, 16px); font-family: var(--kz-font-title); line-height: 1; letter-spacing: 0; }
.title__main {
  font-size: clamp(33px, min(7.4vw, 9.5vh), 104px); font-weight: 600; letter-spacing: .16em; margin-right: -.16em; padding: .06em 0; white-space: nowrap; color: #f1e3bd;
  background-image: linear-gradient(100deg, transparent 44%, rgba(255, 255, 255, .95) 50%, transparent 56%), var(--kz-metal);
  background-size: 260% 100%, 100% 100%; background-position: 100% 0, 0 0; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .65)) drop-shadow(0 14px 34px rgba(245, 197, 66, .24));
  animation: titleIn 1.4s cubic-bezier(.2, .7, .2, 1) backwards, sheen 8s ease-in-out 1.6s infinite;
}
.title__sub { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); animation: titleIn 1.4s cubic-bezier(.2, .7, .2, 1) .25s backwards; }
.title__sub b { font-size: clamp(13px, min(1.9vw, 2.6vh), 26px); font-weight: 500; letter-spacing: .64em; margin-right: -.64em; background: var(--kz-gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.title__sub i { display: block; height: 1px; width: clamp(40px, 14vw, 220px); background: linear-gradient(90deg, transparent, rgba(245, 197, 66, .85)); transform-origin: 100% 50%; animation: ruleIn 1.6s cubic-bezier(.2, .7, .2, 1) .5s backwards; }
.title__sub i:last-child { background: linear-gradient(270deg, transparent, rgba(245, 197, 66, .85)); transform-origin: 0 50%; }
@keyframes titleIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes ruleIn { from { transform: scaleX(0); opacity: 0; } }
@keyframes sheen { 0% { background-position: 100% 0, 0 0; } 30%, 100% { background-position: 0% 0, 0 0; } }

/* the motto: wide awake on the left, nodding off on the right */
.motto { margin-top: clamp(12px, 2vh, 22px); font: 500 clamp(11px, 1.35vw, 17px)/2 var(--kz-font-body); letter-spacing: .3em; text-transform: uppercase; color: #bdb8aa; animation: titleIn 1.4s cubic-bezier(.2, .7, .2, 1) .55s backwards; }
.motto__l { display: inline-block; white-space: nowrap; }
.motto__go { font-weight: 700; background: var(--kz-gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.motto__zz { position: relative; display: inline-block; color: #a3a8c4; transform-origin: 0 100%; animation: nod 7s ease-in-out infinite; }
.motto__zz i { display: inline-block; font-style: normal; transform-origin: 50% 100%; animation: sag 7s ease-in-out infinite; }
.motto__zz i:nth-of-type(2) { animation-delay: .12s; } .motto__zz i:nth-of-type(3) { animation-delay: .24s; }
.motto__zz i:nth-of-type(4) { animation-delay: .36s; } .motto__zz i:nth-of-type(5) { animation-delay: .48s; }
@keyframes nod { 0%, 14%, 100% { transform: none; opacity: 1; } 52%, 80% { transform: rotate(4deg) translateY(.1em); opacity: .72; } 87% { transform: rotate(-1deg); opacity: 1; } }
@keyframes sag { 0%, 14%, 86%, 100% { transform: none; } 30% { transform: scaleY(1.28); } 52%, 78% { transform: translateY(.3em) scaleY(.78); } }
.motto__zs { position: absolute; left: 100%; bottom: 55%; width: 0; height: 0; }
.motto__zs em { position: absolute; left: 0; bottom: 0; font: 600 1.25em/1 var(--kz-font-title); letter-spacing: 0; color: #cfd3ea; opacity: 0; animation: zdrift 5.4s ease-in-out infinite; }
.motto__zs em:nth-child(2) { left: .5em; animation-delay: 1.8s; } .motto__zs em:nth-child(3) { left: .15em; animation-delay: 3.6s; }
@keyframes zdrift {
  0% { opacity: 0; transform: translate(0, 0) scale(.5) rotate(-12deg); }
  14% { opacity: .95; }
  50% { transform: translate(1.2em, -1.1em) scale(1) rotate(8deg); opacity: .8; }
  100% { opacity: 0; transform: translate(2em, -2.5em) scale(1.5) rotate(-8deg); }
}

.hero__arena {
  flex: 1; width: 100%; max-width: 1360px; position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(36px, 8vw, 120px) minmax(0, 1fr); align-items: center;
  padding: clamp(12px, 3vh, 36px) 0;
}
.hero__side { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; position: relative; }
.hero__arts { display: flex; justify-content: center; align-items: flex-end; width: 100%; }
.hero__art { height: clamp(220px, 50vh, 560px); width: auto; max-width: 62%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); position: relative; }
.hero__art + .hero__art { margin-left: -16%; }
.hero__art--jazz, .hero__art--hayden { z-index: 2; }
.hero__art--hayden { height: clamp(170px, 39vh, 440px); }
/* Derrick + Hayden keep their floating Pokemon, so they ship with their dark backdrop: blend it into the page */
.hero__art--derrick, .hero__art--hayden { mix-blend-mode: lighten; filter: none;
  -webkit-mask-image: radial-gradient(ellipse 62% 66% at 50% 46%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 62% 66% at 50% 46%, #000 62%, transparent 100%); }
/* full battle scene (replaces per-trainer art when present): no frame, it comes up out of the dark */
/* --hero-reserve = everything in the hero that is not the picture, so title + scene + both buttons fit one screen.
   It repeats the clamps used by .hero padding, .title__main, .title, .title__sub b, .motto, the scene margin and the CTA row: keep them in step. */
.hero { --hero-reserve: calc(var(--top-h) + clamp(8px, 2vh, 28px) + clamp(33px, min(7.4vw, 9.5vh), 104px) * 1.12 + clamp(8px, 1.2vw, 16px)
  + clamp(13px, min(1.9vw, 2.6vh), 26px) + clamp(12px, 2vh, 22px) + clamp(11px, 1.35vw, 17px) * 2 + clamp(2px, 1vh, 14px)
  + clamp(30px, 5vh, 56px) + 48px + clamp(24px, 4vh, 48px) + 8px); }
.hero__battle { position: relative; z-index: 2; flex: none; width: max(min(100vw, 560px), min(100vw, 1640px, calc((100svh - var(--hero-reserve)) * 2.357))); margin-top: clamp(2px, 1vh, 14px); transition: opacity .6s ease; container-type: inline-size; }
.hero.battle-pending .hero__battle, .hero.battle-pending .hero__arena { opacity: 0; visibility: hidden; }
.hero__battle picture { display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .1) 3%, rgba(0, 0, 0, .45) 7%, rgba(0, 0, 0, .85) 12%, #000 17%, #000 83%, rgba(0, 0, 0, .85) 88%, rgba(0, 0, 0, .45) 93%, rgba(0, 0, 0, .1) 97%, transparent 100%),
    linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .12) 3%, rgba(0, 0, 0, .5) 8%, rgba(0, 0, 0, .88) 14%, #000 20%, #000 80%, rgba(0, 0, 0, .85) 86%, rgba(0, 0, 0, .45) 92%, rgba(0, 0, 0, .1) 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .1) 3%, rgba(0, 0, 0, .45) 7%, rgba(0, 0, 0, .85) 12%, #000 17%, #000 83%, rgba(0, 0, 0, .85) 88%, rgba(0, 0, 0, .45) 93%, rgba(0, 0, 0, .1) 97%, transparent 100%),
    linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .12) 3%, rgba(0, 0, 0, .5) 8%, rgba(0, 0, 0, .88) 14%, #000 20%, #000 80%, rgba(0, 0, 0, .85) 86%, rgba(0, 0, 0, .45) 92%, rgba(0, 0, 0, .1) 97%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.hero__battle img { display: block; width: 100%; height: auto; }

/* smoke pushed back by the impact: puffs roll from near the centre out to each side, on the 3.6s impact rhythm */
.hero__smoke { position: absolute; inset: 0; container-type: size; pointer-events: none; overflow: hidden; z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); }
.smoke { position: absolute; bottom: var(--y); left: 50%; width: var(--sz); height: calc(var(--sz) * .62); margin-left: calc(var(--sz) / -2);
  border-radius: 50%; opacity: 0; filter: blur(10px); will-change: transform, opacity;
  animation: smokeL 3.6s cubic-bezier(.12, .62, .28, 1) infinite; }
.smoke--l { background: radial-gradient(closest-side, rgba(196, 178, 222, .62), rgba(120, 104, 150, .32) 55%, transparent 78%); }
.smoke--r { background: radial-gradient(closest-side, rgba(226, 196, 170, .6), rgba(150, 118, 96, .3) 55%, transparent 78%); animation-name: smokeR; }
@keyframes smokeL { 0% { transform: translateX(-4cqw) scale(.35); opacity: 0; } 5% { opacity: .85; } 70% { opacity: .5; } 100% { transform: translateX(calc(var(--dist) * -1)) scale(1.5); opacity: 0; } }
@keyframes smokeR { 0% { transform: translateX(4cqw) scale(.35); opacity: 0; } 5% { opacity: .85; } 70% { opacity: .5; } 100% { transform: translateX(var(--dist)) scale(1.5); opacity: 0; } }
.hero.fx-off .smoke { animation-play-state: paused; }

/* name tags by each character (replace the cards under the battle) */
.hero__tags { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.htag { position: absolute; bottom: 7%; translate: -50% 0; pointer-events: auto; text-decoration: none; text-align: center; white-space: nowrap;
  padding: clamp(4px, .5cqw, 7px) clamp(8px, 1cqw, 14px) clamp(5px, .55cqw, 8px); border-radius: 10px;
  background: linear-gradient(180deg, rgba(10, 11, 18, .72), rgba(10, 11, 18, .5)); border: 1px solid color-mix(in srgb, var(--who) 55%, transparent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .25s ease, box-shadow .25s ease; }
.htag::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: clamp(14px, 3vw, 34px);
  background: linear-gradient(0deg, color-mix(in srgb, var(--who) 70%, transparent), transparent); }
.htag b { display: block; font: 600 clamp(11px, 1.35cqw, 20px)/1.1 var(--kz-font-title); letter-spacing: .12em; text-transform: uppercase; color: var(--who); }
.htag span { display: block; margin-top: 3px; font: 500 clamp(8.5px, .8cqw, 12px)/1.2 var(--kz-font-body); letter-spacing: .08em; text-transform: uppercase; color: rgba(244, 241, 234, .78); }
.htag span i { font-style: normal; }
.htag:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06); }
.htag--derrick { left: 9%;  bottom: 5%; }
.htag--jazz    { left: 31%; bottom: -4%; }
.htag--hayden  { left: 70%; bottom: -4%; }
.htag--haylei  { left: 90%; bottom: 5%; }
.hero.has-battle .hero__arena { display: none; }
.hero.has-battle .hero__cta { margin-top: clamp(30px, 5vh, 56px); }

/* light thrown outward from the collision point (centre of the art) */
.hero__fx { position: absolute; inset: 0; container-type: size; pointer-events: none; mix-blend-mode: screen; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 56% 58% at 50% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 56% 58% at 50% 50%, #000 58%, transparent 100%); }
.hero__fx i { position: absolute; left: 50%; top: 50%; display: block; }
.fx-wash { width: 170cqmin; height: 110cqmin; margin: -55cqmin 0 0 -85cqmin; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 226, 170, .5), rgba(255, 180, 90, .14) 45%, transparent 78%); animation: fxWash 3.6s ease-out infinite; }
.fx-flare { width: 30cqmin; height: 30cqmin; margin: -15cqmin; border-radius: 50%;
  background: radial-gradient(closest-side, #fff, rgba(255, 238, 196, .7) 26%, rgba(255, 170, 80, .22) 55%, transparent 72%); animation: fxFlare 3.6s ease-out infinite; }
.fx-streak { width: 160cqmin; height: 2.4cqmin; margin: -1.2cqmin 0 0 -80cqmin;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .9), rgba(255, 222, 165, .35) 40%, transparent 100%); animation: fxStreak 3.6s ease-out infinite; }
.fx-ring { width: 160cqmin; height: 160cqmin; margin: -80cqmin; border-radius: 50%; opacity: 0; will-change: transform, opacity;
  background: radial-gradient(closest-side, transparent 80%, rgba(255, 236, 196, .35) 88%, rgba(255, 255, 255, .95) 95%, transparent 100%);
  animation: fxRing 3.6s cubic-bezier(.1, .6, .25, 1) infinite; }
.fx-ring--2 { animation-delay: .3s; background: radial-gradient(closest-side, transparent 82%, rgba(206, 150, 255, .85) 93%, transparent 100%); }
.fx-ring--3 { animation-delay: 1.8s; background: radial-gradient(closest-side, transparent 84%, rgba(255, 176, 92, .75) 94%, transparent 100%); }
.fx-spark { width: 5cqmin; height: max(2px, .45cqmin); margin-top: -1px; border-radius: 99px; transform-origin: 0 50%; opacity: 0;
  background: linear-gradient(90deg, transparent, #ffc766 55%, #fff); animation: fxSpark 2s cubic-bezier(.1, .55, .3, 1) infinite; }
.fx-spark--l { background: linear-gradient(90deg, transparent, #cf96ff 55%, #fff); }
@keyframes fxWash { 0%, 42%, 100% { opacity: 0; } 4% { opacity: .5; } }
@keyframes fxFlare { 0%, 100% { transform: scale(.85); opacity: .5; } 4% { transform: scale(1.55); opacity: 1; } 32% { transform: scale(1); opacity: .68; } }
@keyframes fxStreak { 0%, 100% { transform: scaleX(.45); opacity: .3; } 5% { transform: scaleX(1.1); opacity: .95; } 40% { transform: scaleX(.65); opacity: .42; } }
@keyframes fxRing { 0% { transform: scale(.04); opacity: 0; } 6% { opacity: .8; } 60% { opacity: .3; } 100% { transform: scale(1); opacity: 0; } }
@keyframes fxSpark {
  0% { transform: rotate(var(--a)) translateX(5cqmin) scaleX(.4); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: rotate(var(--a)) translateX(var(--r)) scaleX(1.7); opacity: 0; }
}
.hero.fx-off .hero__fx i, .hero.fx-off .hero__battle img { animation-play-state: paused; }

.hero .hero__vs.hero__vs--battle {
  position: absolute; left: 50%; top: auto; top: 100%; translate: -50% -20%; rotate: 0deg; margin: 0; width: auto; height: auto; border-radius: 0; box-shadow: none;
  display: flex; align-items: center; gap: clamp(10px, 1.4vw, 18px);
  font: 600 clamp(18px, 2.4vw, 32px)/1 var(--kz-font-title); letter-spacing: .34em;
  background: var(--kz-metal); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .9));
}
.hero__vs--battle i { display: block; width: clamp(28px, 6vw, 90px); height: 1px; background: linear-gradient(90deg, transparent, rgba(245, 197, 66, .8)); }
.hero__vs--battle i:first-child { margin-right: .34em; }
.hero__vs--battle i:last-child { background: linear-gradient(270deg, transparent, rgba(245, 197, 66, .8)); }
.hero.has-battle .hero__arts, .hero.has-battle .hero__seam svg { display: none; }
.hero.has-battle .hero__seam .hero__vs { display: none; }
.hero.has-battle .hero__arena { padding-top: clamp(26px, 4vh, 44px); }
.hero.has-battle .hero__cards { margin-top: 0; }
@media (max-width: 700px) {
  .hero .hero__vs.hero__vs--battle { display: none; }
  .motto__zs { bottom: 20%; }
  .motto__zs em { font-size: .85em; }
  /* phone: the tall picture gives up width on short screens so both buttons land on screen one.
     336px = everything else in the phone hero (top bar, title, motto, name row, buttons). */
  .hero__battle { width: clamp(70vw, calc((100svh - 336px) * .8056), 100vw); }
  /* names in one slim row under the picture: parents | VS | girls, the same sides they stand on */
  .hero__tags { position: static; display: grid; grid-template-columns: 1fr 1fr auto 1fr 1fr; align-items: start; gap: 0 3px; padding: 10px 0 0;
    margin: 0 calc((100% - min(100vw - 2 * var(--gutter), 420px)) / 2); }   /* the row keeps the page width even when the picture is narrower */
  .hero__tags::before { content: "VS"; grid-column: 3; grid-row: 1; align-self: center; padding: 0 4px; font: 600 10px/1 var(--kz-font-title); letter-spacing: .1em; color: var(--kz-gold); opacity: .85; }
  .htag { position: relative; left: auto; bottom: auto; translate: none; min-width: 0; padding: 9px 0 6px; border: 0; border-top: 1px solid color-mix(in srgb, var(--who) 65%, transparent); border-radius: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--who) 13%, transparent), transparent 75%); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .htag:hover { transform: none; box-shadow: none; }
  .htag--derrick { grid-column: 1; } .htag--jazz { grid-column: 2; } .htag--hayden { grid-column: 4; } .htag--haylei { grid-column: 5; }
  .htag span i { display: none; }
  .hero.has-battle .hero__cta { margin-top: 18px; }
  .hero .hero__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 420px; }
  .hero__cta .btn { min-width: 0; padding: 0 8px; font-size: 12px; letter-spacing: .1em; }
  .htag::before { display: none; }
  .htag b { font-size: min(3.4vw, 15px); letter-spacing: .08em; }
  .htag span { font-size: 9.5px; margin-top: 4px; }
  .hero__battle img { max-height: none; }
  .hero__battle picture {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .5) 3%, #000 9%, #000 91%, rgba(0, 0, 0, .5) 97%, transparent 100%),
      linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .5) 6%, #000 14%, #000 80%, rgba(0, 0, 0, .7) 88%, rgba(0, 0, 0, .25) 95%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .5) 3%, #000 9%, #000 91%, rgba(0, 0, 0, .5) 97%, transparent 100%),
      linear-gradient(180deg, transparent 0, rgba(0, 0, 0, .5) 6%, #000 14%, #000 80%, rgba(0, 0, 0, .7) 88%, rgba(0, 0, 0, .25) 95%, transparent 100%); }
  .hero__arts { width: 118%; }
  .hero__art { height: auto; width: 64%; max-width: none; }
  .hero__art--hayden { height: auto; width: 54%; }
}
.hero__cards { display: flex; justify-content: center; align-items: flex-start; }
.hero__card { width: clamp(74px, min(21vw, 25vh), 216px); position: relative; }
.hero__card .slot, .hero__empty { filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .65)) drop-shadow(0 0 34px color-mix(in srgb, var(--who) 38%, transparent)); animation: floaty 6s ease-in-out infinite; }
.hero__card--a { rotate: -7deg; z-index: 1; }
.hero__card--b { rotate: 6deg; margin-left: -9%; margin-top: 9%; z-index: 2; }
.hero__card--b .slot { animation-delay: -3s; }
.hero__side--girls .hero__card--a { rotate: -5deg; margin-top: 9%; z-index: 2; }
.hero__side--girls .hero__card--b { rotate: 8deg; margin-top: 0; z-index: 1; }
.hero__card:hover, .hero__card:focus-within { z-index: 4; }
.hero__empty { aspect-ratio: 63 / 88; border-radius: 6%; border: 1px dashed var(--kz-line-strong); }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.hero__tag { display: block; margin-top: clamp(8px, 1.4vw, 16px); text-decoration: none; rotate: 0deg; line-height: 1; }
.hero__card--a .hero__tag { rotate: 7deg; }
.hero__card--b .hero__tag { rotate: -6deg; }
.hero__side--girls .hero__card--a .hero__tag { rotate: 5deg; }
.hero__side--girls .hero__card--b .hero__tag { rotate: -8deg; }
.hero__tag b { display: block; font: 400 clamp(17px, 2.4vw, 32px)/1 var(--kz-font-display); letter-spacing: .04em; text-transform: uppercase; color: var(--who); }
.hero__tag span { font: 700 clamp(8px, 1vw, 11px)/1.6 var(--kz-font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--kz-muted); }
.hero__tag:hover b { text-decoration: underline; text-underline-offset: 4px; }

.hero__team { margin-top: clamp(14px, 2.4vh, 26px); font: 400 clamp(19px, 3.1vw, 42px)/1 var(--kz-font-display); letter-spacing: .03em; text-transform: uppercase; }
.hero__team span { display: block; font: 700 clamp(9px, 1vw, 12px)/1 var(--kz-font-body); letter-spacing: .3em; color: var(--kz-muted); margin-bottom: 6px; }
.hero__team i { font-style: normal; color: var(--kz-gold); }
.hero__tally { margin-top: 6px; font: 500 clamp(10px, 1.1vw, 13px)/1 var(--kz-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--kz-muted); }
.hero__tally b { color: var(--kz-text); }

.hero__side.has-art .hero__cards { margin-top: -14%; }
.hero__side.has-art .hero__card { width: clamp(52px, min(11vw, 14vh), 124px); }

.hero__seam { position: relative; align-self: stretch; z-index: 3; pointer-events: none; }
.hero__seam svg { position: absolute; left: 0; top: -3%; width: 100%; height: 128%; overflow: visible; }
.hero__seam polyline { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: miter; }
.seam-glow { stroke: var(--kz-gold); stroke-width: 14; opacity: .55; filter: blur(9px); animation: flicker 5s linear infinite; }
.seam-core { stroke: #fff6cf; stroke-width: 3; filter: drop-shadow(0 0 6px var(--kz-gold)); animation: flicker 5s linear infinite; }
@keyframes flicker { 0%, 43%, 47%, 86%, 90%, 100% { opacity: 1; } 45% { opacity: .35; } 88% { opacity: .6; } }
.hero__vs {
  position: absolute; left: 50%; top: 46%; translate: -50% -50%; rotate: -8deg;
  width: 1.7em; height: 1.7em; display: grid; place-items: center; border-radius: 50%;
  font: 400 clamp(26px, 5.4vw, 76px)/1 var(--kz-font-display); letter-spacing: .02em; color: #17120a;
  background: var(--kz-gold-grad); box-shadow: 0 0 0 6px var(--kz-bg), 0 0 50px rgba(245, 197, 66, .6);
}
.hero__cta .btn--ghost { background: #0c0e15; }
@media (max-width: 600px) {
  .hero__card { width: min(22.5vw, 25vh); }
  .hero__card--b { margin-left: -16%; margin-top: 7%; }
  .hero__side--girls .hero__card--a { margin-top: 7%; }
  .hero__tag { position: relative; z-index: 3; }
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; position: relative; z-index: 3; }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 10vw, 128px) 0 0; }
.sec:last-child { padding-bottom: clamp(64px, 10vw, 128px); }
#lanes + .sec { padding-top: clamp(36px, 5vw, 64px); }   /* the last rail already ends in its own padding */
.sec__head { margin-bottom: clamp(24px, 4vw, 44px); }
.reveal { opacity: 0; translate: 0 30px; transition: opacity .9s ease, translate .9s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.sec__head .kicker { display: flex; align-items: center; gap: 14px; }
.sec__head .kicker::after { content: ""; flex: none; width: 72px; height: 1px; background: linear-gradient(90deg, var(--kz-gold-soft), transparent); transform-origin: 0 50%; transition: transform 1.3s cubic-bezier(.2, .7, .2, 1) .35s; }
.sec__head.reveal:not(.in) .kicker::after { transform: scaleX(0); }
.reveal.in { opacity: 1; translate: 0 0; }
.reveal--fade { translate: none; }   /* the windowed grid: fade only, never move it */
.page__head.reveal .kicker { display: flex; align-items: center; gap: 14px; }
.page__head.reveal .kicker::after { content: ""; flex: none; width: 72px; height: 1px; background: linear-gradient(90deg, var(--kz-gold-soft), transparent); transform-origin: 0 50%; transition: transform 1.3s cubic-bezier(.2, .7, .2, 1) .35s; }
.page__head.reveal:not(.in) .kicker::after { transform: scaleX(0); }

/* ---------- rails + tiles ---------- */
.rail-wrap { position: relative; }
.rail {
  display: flex; gap: clamp(14px, 2vw, 24px); overflow-x: auto; overscroll-behavior-x: contain;
  padding: 24px var(--rail-pad) 28px; scroll-padding-inline: var(--rail-pad);
  scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - clamp(36px, 9vw, 150px)), transparent 100%);
          mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - clamp(36px, 9vw, 150px)), transparent 100%);
}
.rail.at-end { -webkit-mask-image: none; mask-image: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > li { flex: none; scroll-snap-align: start; }
.rail-btn {
  position: absolute; top: 38%; z-index: 5; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--kz-line-strong); background: rgba(17, 19, 28, .9); color: var(--kz-text);
  font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px;
  transition: border-color .15s ease, color .15s ease, opacity .25s ease;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.rail-btn:hover { border-color: var(--kz-gold-soft); color: var(--kz-cream); }
.rail-btn[disabled] { opacity: 0; pointer-events: none; }
.rail-btn--prev { left: 12px; }
.rail-btn--next { right: 12px; }
@media (hover: none), (max-width: 760px) { .rail-btn { display: none; } }

.tile { width: clamp(132px, 38vw, 172px); }
/* captions share one structure (name, set, chip row, price, source) and the price sits on the tile's floor, so rows line up across a rail */
.rail > li { display: flex; }
.tile { display: flex; flex-direction: column; }
.tile figcaption { margin-top: 12px; flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.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__set { font-size: 12px; color: var(--kz-muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__meta { display: flex; flex-wrap: wrap; gap: 4px; min-height: 22px; margin-top: 2px; }
.tile__price { margin-top: auto; padding-top: 4px; min-width: 0; }

/* Top 10 showcase */
.rail--show { gap: clamp(22px, 4vw, 56px); padding-top: 72px; padding-bottom: 40px; }   /* headroom: cards grow upward on hover */
.rail-wrap--show { margin-top: -40px; }
.rail-wrap--show .rail-btn { top: 42%; }
.show { width: clamp(212px, 62vw, 300px); position: relative; isolation: isolate; display: flex; flex-direction: column; }
.show::before { content: ""; position: absolute; inset: -6% -14% auto; aspect-ratio: 1; z-index: -1; background: radial-gradient(closest-side, rgba(205, 179, 122, .1), transparent); }
.rank { justify-self: start; display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px 6px 12px; border-radius: 999px;
  border: 1px solid rgba(205, 179, 122, .34); background: rgba(205, 179, 122, .06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.rank i { font: 600 9px/1 var(--kz-font-body); font-style: normal; letter-spacing: .3em; text-transform: uppercase; color: var(--kz-muted); }
.rank b { font: 600 14px/1 var(--kz-font-title); letter-spacing: .1em; color: var(--kz-gold-soft); }
.rank--top { background: var(--kz-gold-grad); border-color: transparent; box-shadow: 0 6px 22px -8px rgba(245, 197, 66, .7); }
.rank--top i, .rank--top b { color: #17120a; -webkit-text-fill-color: #17120a; background: none; }
.show__info { margin-top: 20px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.show__info > * { max-width: 100%; }
.show__name { font: 600 clamp(17px, 1.55vw, 21px)/1.2 var(--kz-font-title); letter-spacing: .06em; text-transform: uppercase; color: #f6f1e4; }
.show__set { color: var(--kz-muted); font-size: 14px; }
.show__meta { display: flex; flex-wrap: wrap; gap: 5px; min-height: 22px; }
.show__price { margin-top: auto; width: 100%; min-width: 0; }
.show__price .price { font-size: 22px; }

/* ---------- Meet the Fam ---------- */
.fam { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .fam { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .fam { grid-template-columns: 1fr; } }
.idcard {
  position: relative; overflow: hidden; border-radius: 22px; display: flex; flex-direction: column;
  background:
    radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--who) 26%, transparent), transparent 60%),
    linear-gradient(180deg, #161927, var(--kz-surface));
  border: 1px solid color-mix(in srgb, var(--who) 34%, var(--kz-line));
  box-shadow: 0 30px 60px -34px #000;
  transition: opacity .7s ease, translate .7s cubic-bezier(.2, .7, .2, 1), border-color .2s ease, box-shadow .2s ease;
}
.idcard.reveal { transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s; }
.idcard:hover { border-color: color-mix(in srgb, var(--who) 70%, transparent); box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--who) 50%, #000); }
.idcard__head { display: flex; justify-content: space-between; padding: 14px 18px 12px; border-top: 2px solid var(--who); background: rgba(7, 8, 13, .55); border-bottom: 1px solid var(--kz-line); color: var(--kz-cream); font: 600 10px/1 var(--kz-font-body); letter-spacing: .2em; text-transform: uppercase; }
.idcard__head span:last-child { color: var(--who); }
.idcard__name { padding: 20px 18px 0; }
.idcard__body { display: grid; grid-template-columns: minmax(0, 1fr) 108px; gap: 14px; padding: 4px 18px 18px; flex: 1; align-items: start; }
.idcard h3 { font-size: clamp(26px, 2.3vw, 32px); letter-spacing: .08em; color: var(--who); }
.idcard__role { font: 600 10px/1 var(--kz-font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--kz-muted); margin-top: 8px; }
.idcard dl { margin-top: 18px; display: grid; gap: 12px; }
.idcard dt { font: 600 10px/1 var(--kz-font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--kz-muted); margin-bottom: 4px; }
.idcard dd { font-weight: 600; font-size: 15px; line-height: 1.25; }
.idcard dd b { font: 500 26px/1 var(--kz-font-title); letter-spacing: .04em; }
.idcard__sig { margin-top: 18px; }
.idcard__line { margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: var(--kz-muted); }
.idcard__sig p { margin-top: 10px; font-size: 11px; line-height: 1.35; color: var(--kz-muted); }
.idcard__sig p b { color: var(--kz-text); font-weight: 600; }
.idcard__link { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; min-height: 48px; border-top: 1px solid var(--kz-line); text-decoration: none; font: 600 11.5px/1 var(--kz-font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--kz-cream); }
.idcard__link:hover { color: var(--who); }

/* ---------- lanes ---------- */
.lane { margin-top: clamp(20px, 3vw, 36px); }
.lane__head .kicker { margin-bottom: 8px; }
.lane__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 var(--rail-pad); }
.lane__head h3 { font-size: clamp(20px, 2.3vw, 28px); letter-spacing: .08em; }
.lane .rail { padding-top: 46px; margin-top: -26px; }   /* headroom for the hover pop without opening a gap under the heading */
.lane__head { position: relative; z-index: 1; }
.lane--sealed .slot::after {         /* the shelf the boxes stand on */
  content: ""; position: absolute; left: -16px; right: -16px; bottom: -9px; height: 8px; border-radius: 2px;
  background: linear-gradient(180deg, #5a4520, #2a1f0c); box-shadow: 0 10px 18px rgba(0, 0, 0, .7); pointer-events: none;
}
.lane--sealed .tile figcaption { margin-top: 22px; }

/* ---------- stats ---------- */
.stats__tiles { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: clamp(10px, 1.4vw, 16px); }
.stat { background: var(--kz-surface); border: 1px solid var(--kz-line); border-radius: 20px; padding: clamp(16px, 2vw, 24px); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat__n { font: 500 clamp(28px, 3.2vw, 44px)/1.05 var(--kz-font-title); letter-spacing: .03em; font-variant-numeric: lining-nums tabular-nums; }
.stat__l { font: 600 10.5px/1.2 var(--kz-font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--kz-muted); }
.stat:not(.stat--hero) { flex-direction: column-reverse; justify-content: space-between; gap: 18px; }   /* label up top, number on the floor: no empty lower half */
.stat__note { font-size: 12px; color: var(--kz-muted); line-height: 1.4; margin-top: 6px; }
.stat--hero { background: radial-gradient(120% 120% at 0% 0%, rgba(205, 179, 122, .14), transparent 60%), var(--kz-surface); border-color: rgba(205, 179, 122, .32); }
.stat--hero .stat__n { font-size: clamp(40px, 5.4vw, 72px); color: var(--kz-cream); }
@media (max-width: 980px) { .stats__tiles { grid-template-columns: repeat(2, 1fr); } .stat--hero { grid-column: 1 / -1; } }

.stats__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(10px, 1.4vw, 16px); margin-top: clamp(10px, 1.4vw, 16px); }
.panel { background: var(--kz-surface); border: 1px solid var(--kz-line); border-radius: 20px; padding: clamp(18px, 2vw, 26px); }
.panel h3 { font-size: 16px; letter-spacing: .12em; margin-bottom: 16px; }
.bars li > * { display: grid; grid-template-columns: minmax(0, 10.5em) 1fr 3.2em; align-items: center; gap: 10px; padding: 7px 0; text-decoration: none; font-size: 14px; }
.bars__label { line-height: 1.25; overflow-wrap: anywhere; }
/* a short list (graders) runs across the full width instead of leaving a tall empty column */
.panel--wide { grid-column: 1 / -1; }
.panel--wide .bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 0 clamp(16px, 2.4vw, 32px); }
@media (min-width: 700px) { .stats__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.panel--wide .bars li > * { grid-template-columns: 3.4em 1fr 2.6em; }
.bars__track { height: 6px; border-radius: 99px; background: rgba(244, 241, 234, .07); overflow: hidden; }
.bars__fill { display: block; height: 100%; border-radius: 99px; background: var(--kz-gold-soft); }
.bars__n { font: 600 13px var(--kz-font-body); font-variant-numeric: tabular-nums; text-align: right; color: var(--kz-muted); }
.bars a:hover .bars__label { color: var(--kz-gold-soft); }

/* ---------- about ---------- */
.sec--about { padding-bottom: clamp(64px, 10vw, 128px); }
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about__copy h2 { margin-bottom: 22px; }
.about__copy p { color: #cfccc4; max-width: 58ch; margin-bottom: 14px; font-size: 17px; }
.about__copy p b { color: var(--kz-text); }
.about__copy p.kicker { font-size: 11.5px; color: var(--kz-gold-soft); margin-bottom: 14px; }
.about__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.about__tags { display: grid; gap: 12px; }
.about__tags li { background: var(--kz-surface); border: 1px solid var(--kz-line); border-left: 2px solid var(--kz-gold-soft); border-radius: 14px; padding: 16px 18px; }
.about__tags b { display: block; font: 600 15px/1.2 var(--kz-font-title); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.about__tags span { color: var(--kz-muted); font-size: 14px; }

/* ---------- inner pages ---------- */
.page { padding: calc(var(--top-h) + clamp(28px, 5vw, 64px)) 0 clamp(64px, 8vw, 110px); min-height: 80vh; }
.page__head { margin-bottom: clamp(20px, 3vw, 32px); }
.page__head h1 { font-size: clamp(34px, 5.4vw, 66px); letter-spacing: .08em; }
.page__head .results__count { margin-top: 12px; }
.page__cta { margin-top: 28px; }
.wrap--grid { margin-top: 22px; }
.grid-host { min-height: 240px; }
.empty { text-align: center; color: var(--kz-muted); padding: 64px 0; font-size: 17px; }

.filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 230px); gap: 12px; align-items: end; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font: 600 10px/1 var(--kz-font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--kz-muted); }
.field input, .field select {
  width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--kz-line-strong); background: var(--kz-surface); padding: 0 14px; font-size: 15px;
  transition: border-color .15s ease;
}
.field input::placeholder { color: var(--kz-muted); }
.field input:hover, .field select:hover { border-color: rgba(244, 241, 234, .34); }
.field input:focus-visible, .field select:focus-visible { outline: none; border-color: var(--kz-gold); box-shadow: 0 0 0 3px rgba(245, 197, 66, .22); }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 36px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23cdb37a' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field--search input { height: 56px; font-size: 17px; border-radius: 16px; padding-left: 18px; }
.field--sort select { height: 56px; border-radius: 16px; }
.filters__toggle { display: none; }
.filters__more { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
@media (max-width: 760px) {
  .filters { grid-template-columns: minmax(0, 1fr) auto; }
  .field--search { grid-column: 1 / -1; }
  .field--sort > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .field--sort select, .filters__toggle { height: 48px; min-height: 48px; border-radius: 12px; }
  .filters__toggle { display: inline-flex; padding: 0 18px; }
  .filters__more { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters__more.open { display: grid; }
}
@media (max-width: 600px) {
  .page__head.reveal .kicker { letter-spacing: .16em; }
  .page__head.reveal .kicker::after { display: none; }   /* a kicker that fills the line has no room for the rule */
}
.results { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--kz-line); }
.results__count { font-size: 15px; color: var(--kz-muted); }
.results__count b { font: 600 20px/1 var(--kz-font-title); color: var(--kz-text); letter-spacing: .04em; }
.results__active { display: flex; flex-wrap: wrap; gap: 8px; }
.results__reset { background: none; border: 0; color: var(--kz-gold-soft); font-size: 13px; font-weight: 600; cursor: pointer; padding: 8px 4px; text-decoration: underline; text-underline-offset: 3px; }

.fb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px 16px; }
.fb-grid .tile { width: auto; }
.fb-more { margin: 32px auto 0; display: flex; }
.fb-more span { margin-left: .7em; font-weight: 500; letter-spacing: .06em; color: var(--kz-muted); text-transform: none; }
/* grid captions (vault-grid.css loads later, so these carry one more class) */
.kz-grid .kz-grid__price { font: 600 12px/1.2 var(--kz-font-body); font-variant-numeric: tabular-nums; color: var(--kz-gold-soft); }
.kz-grid .kz-grid__cell:hover .kz-grid__name, .kz-grid .kz-grid__cell:focus-visible .kz-grid__name { color: var(--kz-gold-soft); }

.lanetabs, .trainer__nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter); }
.lanetabs::-webkit-scrollbar, .trainer__nav::-webkit-scrollbar { display: none; }
/* more tabs off the right edge: fade them out as a hint (class set by app.js while there is more to scroll) */
.lanetabs.more-right, .trainer__nav.more-right { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent 100%); }
.lanetabs a, .trainer__nav a { flex: none; min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; border: 1px solid var(--kz-line-strong); text-decoration: none; font: 600 11.5px/1 var(--kz-font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--kz-muted); transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.lanetabs { --who: var(--kz-gold-soft); margin-top: 22px; }
.lanetabs a:hover, .trainer__nav a:hover { color: var(--kz-text); border-color: color-mix(in srgb, var(--who) 60%, transparent); }
.lanetabs a[aria-current="page"], .trainer__nav a[aria-current="page"] { background: color-mix(in srgb, var(--who) 14%, transparent); border-color: color-mix(in srgb, var(--who) 75%, transparent); color: #f6f1e4; }

/* ---------- trainer page ---------- */
.trainer { padding-top: 0; }
.trainer__hero {
  position: relative; overflow: hidden; padding: calc(var(--top-h) + clamp(36px, 6vw, 80px)) 0 clamp(28px, 4vw, 48px); margin-bottom: clamp(40px, 6vw, 72px);
  background:
    radial-gradient(70% 120% at 85% 0%, color-mix(in srgb, var(--who) 34%, transparent), transparent 65%),
    linear-gradient(180deg, color-mix(in srgb, var(--who) 10%, var(--kz-bg)), var(--kz-bg));
  border-bottom: 1px solid color-mix(in srgb, var(--who) 40%, transparent);
}
.trainer__hero .wrap { position: relative; }
.trainer__hero .kicker { color: var(--who); }
.trainer__hero .wrap > * { position: relative; z-index: 1; }
.trainer__hero h1 {
  width: fit-content; max-width: 100%; font-size: clamp(44px, 10vw, 136px); font-weight: 600; line-height: 1; letter-spacing: .08em; padding: .04em 0; color: var(--who);
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--who) 30%, #fff) 28%, var(--who) 60%, color-mix(in srgb, var(--who) 62%, #000) 88%, color-mix(in srgb, var(--who) 46%, #000) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .6)) drop-shadow(0 14px 34px color-mix(in srgb, var(--who) 26%, transparent));
  animation: titleIn 1.2s cubic-bezier(.2, .7, .2, 1) backwards;
}
.trainer__line { font-size: clamp(16px, 1.6vw, 19px); margin-top: 18px; max-width: 34ch; color: #d6d2c8; }
.trainer__hero .wrap > .trainer__art { position: absolute; z-index: 0; right: var(--gutter); bottom: calc(clamp(28px, 4vw, 48px) * -1); height: min(108%, 500px); width: auto; pointer-events: none;
  animation: artIn 1.4s ease .15s backwards;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 78%, transparent 100%); }
/* Derrick + Hayden ship on a dark backdrop: melt it into the page instead of showing the rectangle */
.trainer__hero .wrap > .trainer__art--derrick, .trainer__hero .wrap > .trainer__art--hayden { mix-blend-mode: lighten;
  -webkit-mask-image: radial-gradient(ellipse 50% 52% at 50% 48%, #000 56%, transparent 100%); mask-image: radial-gradient(ellipse 50% 52% at 50% 48%, #000 56%, transparent 100%); }
/* Haylei's cut-out is cropped at the PNG's left/right edges (Charizard's wings): fade the sides as well as the foot */
.trainer__hero .wrap > .trainer__art--haylei {
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%), linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .5) 6%, #000 15%, #000 85%, rgba(0, 0, 0, .5) 94%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 78%, transparent 100%), linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .5) 6%, #000 15%, #000 85%, rgba(0, 0, 0, .5) 94%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
/* Poké Ball clip: same slot as the portrait, wider (two characters). The clip's dark backdrop melts into the page. */
.trainer__hero .wrap > .trainer__skit { position: absolute; z-index: 0; right: 0; bottom: calc(clamp(28px, 4vw, 48px) * -1); height: min(104%, 480px, 34vw); width: auto; aspect-ratio: 4 / 3; pointer-events: none;
  mix-blend-mode: lighten; animation: artIn .9s ease backwards;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 84%, transparent 100%), linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 84%, transparent 100%), linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
@keyframes artIn { from { opacity: 0; } }
@media (max-width: 760px) {
  .trainer__hero { padding-top: calc(var(--top-h) + 6px); }
  .trainer__hero .wrap > .trainer__art { position: relative; right: auto; bottom: auto; display: block; height: auto; width: min(68vw, 280px); margin: 0 auto -22px; }
  .trainer__hero .wrap > .trainer__skit { position: relative; right: auto; bottom: auto; display: block; height: auto; width: min(100%, 440px); margin: 0 auto -14px; }
  .trainer__hero .kicker, .trainer__hero h1, .trainer__line { margin-left: auto; margin-right: auto; text-align: center; }
  .trainer__stats, .trainer__species { justify-content: center; text-align: center; }
  .trainer__stats dd.sm { margin: 0 auto; }
  .trainer__nav { justify-content: safe center; gap: 6px; }
  .trainer__nav a { padding: 0 12px; letter-spacing: .12em; }
}
.trainer__stats { display: flex; flex-wrap: wrap; gap: 12px clamp(20px, 4vw, 52px); margin-top: clamp(24px, 4vw, 40px); }
.trainer__stats dt { font: 600 10px/1 var(--kz-font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--kz-muted); margin-bottom: 6px; }
.trainer__stats dd { font: 500 clamp(26px, 3.4vw, 42px)/1 var(--kz-font-title); letter-spacing: .03em; }
.trainer__stats dd.sm { font: 600 16px/1.3 var(--kz-font-body); max-width: 22ch; padding-top: 6px; }
.trainer__species { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
@media (min-width: 761px) { .trainer__species, .trainer__stats { max-width: 56%; } }   /* wrap before the portrait on the right */
.trainer__nav { margin-top: 26px; }
.trainer .sec__head h2 { font-size: clamp(24px, 3.4vw, 42px); }
.trainer .wrap + .wrap--grid { margin-top: 0; }

.binder { display: flex; gap: clamp(14px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--rail-pad) 30px; scroll-padding-inline: var(--rail-pad); margin-bottom: clamp(40px, 6vw, 72px); scrollbar-width: thin; scrollbar-color: var(--kz-line-strong) transparent; }
.binder__page {
  flex: none; scroll-snap-align: start; position: relative; width: clamp(292px, 86vw, 560px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 1.2vw, 12px);
  padding: clamp(12px, 2vw, 22px) clamp(12px, 2vw, 22px) clamp(12px, 2vw, 22px) clamp(34px, 5vw, 52px);
  border-radius: 10px 22px 22px 10px;
  background: linear-gradient(90deg, #05060a 0, #151827 5%, #0e1019 12%, #10121b 100%);
  border: 1px solid color-mix(in srgb, var(--who) 30%, var(--kz-line));
  box-shadow: 0 34px 60px -30px #000, inset 0 0 0 1px rgba(255, 255, 255, .02);
}
.binder__rings { position: absolute; left: clamp(9px, 1.4vw, 16px); top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-around; padding: 14% 0; }
.binder__rings i { width: 14px; height: 14px; border-radius: 50%; background: var(--kz-bg); box-shadow: inset 0 2px 3px #000, 0 0 0 2px rgba(255, 255, 255, .1); }
.pocket { position: relative; padding: clamp(4px, .8vw, 8px); border-radius: 8px; background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .09); display: flex; flex-direction: column; gap: 4px; }
.pocket::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, .1) 0, transparent 22%, transparent 70%, rgba(255, 255, 255, .04) 100%); }
.pocket--empty { aspect-ratio: 63 / 96; border-style: dashed; }
.pocket__price { font: 600 clamp(9.5px, 1.1vw, 11.5px)/1 var(--kz-font-body); font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--kz-gold-soft); text-align: center; padding: 3px 0 2px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--kz-line); background: #05060a; padding: clamp(40px, 6vw, 72px) 0 calc(40px + env(safe-area-inset-bottom)); }
.foot__in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 16px; justify-items: start; }
.foot__mark { display: flex; align-items: center; gap: 14px; font: 600 20px/1 var(--kz-font-title); letter-spacing: .26em; text-transform: uppercase; color: #f3ead2; }
.foot__mark i { width: 1px; height: 20px; background: linear-gradient(180deg, transparent, var(--kz-gold), transparent); }
.foot__mark b { font-weight: 500; color: var(--kz-gold-soft); }
.foot__slogan { font: 500 12px/1.8 var(--kz-font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--kz-muted); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 6px 0 10px; }
.foot__nav a { font-size: 14px; font-weight: 500; color: var(--kz-text); text-decoration: none; padding: 8px 0; }
.foot__nav a:hover { color: var(--kz-gold-soft); }
.foot__fine { font-size: 12.5px; line-height: 1.55; color: var(--kz-muted); max-width: 78ch; }
@media (max-width: 600px) { .foot__slogan { font-size: 10.5px; letter-spacing: .1em; text-wrap: balance; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; translate: none; }
  .hero__fx { display: none; }
  .motto__zs em { opacity: .75; transform: translate(.3em, -.2em) scale(.6); }
  .motto__zs em:nth-child(2) { transform: translate(1em, -1em) scale(.85); }
  .motto__zs em:nth-child(3) { transform: translate(1.9em, -2em) scale(1.15); }
}
