/* Concept: the stock room. Every player is a shoebox end in their team color, with a printed
   box label (name, style line, barcode). Matte black cardboard everywhere, white labels, mono print. */
:root {
  --bg: #0b0b0b; --s1: #141413; --s2: #1c1c1a; --s3: #262624; --line: #2e2e2b;
  --text: #f1efe8; --muted: #9c9a92; --dim: #6d6b65; --hi: #ffffff;
  --label: #f3f1ea; --labelink: #141414; --tag: #ffd23f;
  --head: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 6px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  --barcode: repeating-linear-gradient(90deg, var(--labelink) 0 2px, transparent 2px 3px, var(--labelink) 3px 4px, transparent 4px 6px, var(--labelink) 6px 9px, transparent 9px 10px, var(--labelink) 10px 11px, transparent 11px 14px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg) var(--grain); color: var(--text); font: 15px/1.5 var(--body); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.mono { font-family: var(--mono); }

/* header: a strip of box tape */
.top { position: sticky; top: 0; z-index: 20; background: #0b0b0b var(--grain); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { font: 900 28px/1 var(--head); font-stretch: 62%; letter-spacing: .01em; display: flex; align-items: center; gap: 10px; }
.logo i { font: 600 10px/1 var(--mono); font-style: normal; letter-spacing: .08em; color: var(--labelink); background: var(--label); padding: 4px 6px; border-radius: 2px; }
.nav { display: flex; gap: 20px; }
.nav a { color: var(--muted); font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.nav a:hover, .nav a.on { color: var(--hi); }
.search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--s1); border: 1px solid var(--line); border-radius: 4px; padding: 0 12px; height: 40px; width: min(380px, 40vw); }
.search svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.search input { background: none; border: 0; outline: 0; width: 100%; font-family: var(--mono); font-size: 13px; }
.search:focus-within { border-color: #66645e; }
@media (max-width: 640px) {
  .top-in { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 10px 18px; }
  .search { order: 3; width: 100%; }
}

/* common */
.loading, .empty { color: var(--muted); padding: 60px 0; text-align: center; font-family: var(--mono); font-size: 13px; }
h1, h2, h3 { font-family: var(--head); margin: 0; }
.h1 { font-weight: 900; font-stretch: 62%; font-size: clamp(44px, 8vw, 104px); line-height: .86; letter-spacing: -.005em; text-transform: uppercase; }
.h2 { font-weight: 900; font-stretch: 65%; font-size: 34px; line-height: 1; text-transform: uppercase; }
.muted { color: var(--muted); }
.crumbs { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 24px 0 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--hi); }
.tag { display: inline-block; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; border-radius: 2px; background: var(--s3); color: var(--text); white-space: nowrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 3px; border: 1px solid var(--line); background: var(--s2); font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.btn:hover { border-color: #66645e; }
.btn.primary { background: var(--label); color: var(--labelink); border-color: var(--label); }
.sec { margin: 54px 0 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--text); padding-bottom: 10px; }
.sec .muted { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.sticker { display: inline-block; background: var(--tag); color: #111; font: 800 10px/1 var(--mono); letter-spacing: .08em; padding: 5px 7px; transform: rotate(-3deg); box-shadow: 0 2px 0 rgba(0,0,0,.35); }

/* ---- the box: shared by player cards and heroes ---- */
.box { --c: #444; --ink: #fff; background: var(--c); color: var(--ink); position: relative; overflow: hidden; }
.box::before { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .9; pointer-events: none; z-index: 1; mix-blend-mode: overlay; }
.box .bigname { position: absolute; left: -4px; right: -4px; top: 6%; font: 900 120px/.8 var(--head); font-stretch: 62%; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--ink) 35%, transparent); white-space: nowrap; letter-spacing: -.01em; z-index: 0; }
.box .cut { position: absolute; inset: auto 0 0 0; height: 100%; width: 100%; object-fit: contain; object-position: 50% 100%; z-index: 2; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.label { background: var(--label); color: var(--labelink); position: relative; z-index: 3; }
.barcode { height: 26px; background: var(--barcode); }

/* home hero: featured box */
.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin: 28px 0 0; border-radius: var(--r); overflow: hidden; min-height: 420px; }
.feature .shot { position: relative; background: #000; }
.feature .shot img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.feature .shot .sticker { position: absolute; left: 18px; top: 18px; z-index: 2; font-size: 12px; padding: 7px 9px; }
.feature .side { padding: 34px 34px 0; display: flex; flex-direction: column; }
.feature .side .kicker { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .8; position: relative; z-index: 3; }
.feature .side h1 { position: relative; z-index: 3; margin-top: 14px; font-size: clamp(42px, 5.6vw, 82px); }
.feature .side .cw { position: relative; z-index: 3; font: 800 22px/1.1 var(--head); font-stretch: 75%; text-transform: uppercase; margin-top: 10px; }
.feature .side .cut { position: relative; height: auto; flex: 1; min-height: 160px; max-height: 300px; margin-top: auto; width: 78%; align-self: flex-end; object-position: 100% 100%; }
.feature .side .go { position: relative; z-index: 3; margin: 18px 0 0; display: flex; gap: 10px; flex-wrap: wrap; }
.feature .side .go .btn { background: rgba(0,0,0,.25); border-color: color-mix(in srgb, var(--ink) 35%, transparent); color: var(--ink); }
.feature .side .go .btn.primary { background: var(--label); color: var(--labelink); }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature .shot { aspect-ratio: 4/3; } .feature .side .cut { max-height: 200px; } }

.intro { padding: 44px 0 6px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.intro p { margin: 12px 0 0; color: var(--muted); max-width: 560px; }
.stats { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 3px; }
.stat { padding: 12px 18px; border-right: 1px solid var(--line); } .stat:last-child { border: 0; }
.stat b { display: block; font: 900 34px/1 var(--head); font-stretch: 65%; }
.stat span { font: 500 10px/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.filters { display: flex; gap: 10px 20px; flex-wrap: wrap; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); margin-bottom: 26px; position: sticky; top: 64px; background: #0b0b0b var(--grain); z-index: 5; }
@media (max-width: 640px) { .filters { position: static; } }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 30px; padding: 0 11px; border-radius: 2px; border: 1px solid var(--line); background: transparent; font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); cursor: pointer; }
.chip:hover { color: var(--hi); border-color: #55534e; }
.chip.on { background: var(--label); color: var(--labelink); border-color: var(--label); }
.sel { height: 30px; border-radius: 2px; border: 1px solid var(--line); background: var(--s1); padding: 0 10px; font: 600 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.filters .grow { flex: 1; }

/* player cards = shoebox ends */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 18px; }
.pcard { display: block; border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 14px 30px -18px rgba(0,0,0,.9); transition: transform .18s; }
.pcard:hover { transform: translateY(-4px) rotate(-.4deg); }
.pcard .box { aspect-ratio: 1 / 1; }
.pcard .bigname { font-size: 104px; }
.pcard .shoe { position: absolute; z-index: 3; right: 10px; top: 10px; width: 40%; aspect-ratio: 4/3; background: #111; border: 3px solid var(--label); transform: rotate(3deg); box-shadow: 0 6px 14px rgba(0,0,0,.4); overflow: hidden; }
.pcard .shoe img { width: 100%; height: 100%; object-fit: cover; }
.pcard .label { padding: 10px 12px 10px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: end; }
.pcard .pn { font: 900 25px/.95 var(--head); font-stretch: 64%; text-transform: uppercase; grid-column: 1 / -1; }
.pcard .pm { font: 500 10.5px/1.35 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: #4a4945; }
.pcard .barcode { width: 64px; height: 22px; }

/* player page hero */
.phero { border-radius: var(--r); min-height: 380px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
.phero .bigname { font-size: clamp(140px, 22vw, 300px); top: auto; bottom: -4%; }
.phero .txt { position: relative; z-index: 3; padding: 34px 34px 30px; display: flex; flex-direction: column; justify-content: flex-end; }
.phero .nick { font: 600 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; opacity: .85; margin-bottom: 12px; }
.phero .label { margin-top: 22px; padding: 12px 14px; display: grid; grid-template-columns: repeat(4, auto) 1fr; gap: 4px 22px; align-items: end; border-radius: 2px; max-width: 560px; }
.phero .label b { display: block; font: 900 28px/1 var(--head); font-stretch: 65%; }
.phero .label span { font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #55534e; }
.phero .label .barcode { height: 34px; min-width: 70px; }
.phero .face { position: relative; min-height: 300px; }
.phero .face .cut { height: 112%; inset: auto 0 0 0; }
@media (max-width: 760px) { .phero { grid-template-columns: 1fr; } .phero .face { order: -1; height: 260px; min-height: 0; } .phero .label { grid-template-columns: repeat(2, auto); } .phero .label .barcode { display: none; } }

/* model cards: product shot + box-end label */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.mcard { display: block; border-radius: var(--r); overflow: hidden; background: var(--s1); transition: transform .18s; box-shadow: 0 14px 30px -20px rgba(0,0,0,.9); }
.mcard:hover { transform: translateY(-4px); }
.img43 { aspect-ratio: 4 / 3; background: var(--s2); overflow: hidden; position: relative; }
.img43 img { width: 100%; height: 100%; object-fit: cover; }
.img43 .ph-none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.mcard .label { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; padding: 0; border-top: 4px solid var(--c, #888); }
.mcard .yr { background: var(--labelink); color: var(--label); font: 900 26px/1 var(--head); font-stretch: 62%; padding: 10px 10px; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; }
.mcard .mi { padding: 10px 12px 10px 0; }
.mcard .mn { font: 900 22px/.98 var(--head); font-stretch: 66%; text-transform: uppercase; }
.mcard .mm { font: 500 10.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: #55534e; margin-top: 6px; }

/* model page */
.mhero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.mhero .big { border-radius: var(--r); }
.mhero .who { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.mhero .who .av { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--c); flex: none; }
.mhero .who .av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(1.3); transform-origin: 50% 0; }
.mhero .who a { font-weight: 700; }
.mhero .who .muted { font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.story { color: #d6d3ca; font-size: 16px; margin: 18px 0 22px; max-width: 520px; }
/* spec sheet = box-end size label */
.boxlabel { background: var(--label); color: var(--labelink); border-radius: 2px; padding: 14px 16px 12px; position: relative; }
.boxlabel .row1 { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; border-bottom: 2px solid var(--labelink); padding-bottom: 10px; margin-bottom: 4px; }
.boxlabel .row1 .n { font: 900 26px/.95 var(--head); font-stretch: 64%; text-transform: uppercase; }
.boxlabel .size { text-align: center; border: 2px solid var(--labelink); padding: 4px 8px 3px; flex: none; }
.boxlabel .size b { display: block; font: 900 30px/.9 var(--head); font-stretch: 62%; }
.boxlabel .size span { font: 600 9px/1 var(--mono); letter-spacing: .1em; }
.specs { width: 100%; border-collapse: collapse; font-size: 13px; }
.specs th { text-align: left; font: 600 10px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; width: 108px; padding: 8px 0; vertical-align: top; color: #66645e; }
.specs td { padding: 7px 0; font-family: var(--mono); font-size: 12.5px; }
.boxlabel .specs tr + tr th, .boxlabel .specs tr + tr td { border-top: 1px dashed #c9c6bc; }
.boxlabel .specs a { text-decoration: underline; }
.boxlabel .foot2 { display: flex; justify-content: space-between; align-items: end; margin-top: 8px; font: 600 10px/1 var(--mono); letter-spacing: .08em; }
.boxlabel .foot2 .barcode { width: 46%; height: 36px; }
.actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.stepper { display: flex; justify-content: space-between; gap: 10px; margin: 22px 0 0; font: 600 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.stepper a { color: var(--muted); } .stepper a:hover { color: var(--hi); }
@media (max-width: 860px) { .mhero { grid-template-columns: 1fr; } }

.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 26px 18px; }
.ccard { cursor: pointer; position: relative; }
.ccard .img43 { border-radius: var(--r); }
.ccard:hover .img43 img { transform: scale(1.04); }
.ccard .img43 img { transition: transform .3s; }
.ccard .sticker { position: absolute; top: 10px; left: 10px; z-index: 2; }
.ccard .cn { font: 900 21px/1 var(--head); font-stretch: 66%; text-transform: uppercase; margin-top: 12px; }
.ccard .cm { font: 500 11px/1.4 var(--mono); color: var(--muted); margin-top: 6px; letter-spacing: .02em; }
.ccard .cc { font: 400 11px/1.4 var(--mono); color: var(--dim); margin-top: 2px; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(6,6,6,.95); display: grid; place-items: center; padding: 24px; }
.lb[hidden] { display: none; }
.lb .box2 { max-width: 1120px; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: center; }
.lb .box2 img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--r); }
.lb .x, .lb .nv { position: fixed; background: var(--s2); border: 1px solid var(--line); width: 44px; height: 44px; border-radius: 3px; cursor: pointer; font-size: 20px; display: grid; place-items: center; z-index: 2; }
.lb .x { top: 18px; right: 18px; }
.lb .nv.p { left: 18px; top: 50%; } .lb .nv.n { right: 18px; top: 50%; }
.lb .kick { font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
@media (max-width: 820px) { .lb .box2 { grid-template-columns: 1fr; } .lb .nv { top: auto; bottom: 18px; } }

/* compare */
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; }
.cmp .pick { position: relative; }
.cmp .pick input { width: 100%; height: 46px; border-radius: 3px; border: 1px solid var(--line); background: var(--s1); padding: 0 14px; font-family: var(--mono); font-size: 13px; }
.sugg { position: absolute; left: 0; right: 0; top: 50px; background: var(--s2); border: 1px solid var(--line); border-radius: 3px; max-height: 320px; overflow: auto; z-index: 10; }
.sugg button { display: flex; width: 100%; text-align: left; background: none; border: 0; padding: 9px 14px; cursor: pointer; justify-content: space-between; gap: 10px; }
.sugg button:hover, .sugg button.act { background: var(--s3); }
.sugg small { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.cmp .side .img43 { border-radius: var(--r); margin: 14px 0 0; }
.cmp .side .label { padding: 10px 12px; border-top: 4px solid var(--c, #888); }
.cmp .side h2 { font: 900 30px/.95 var(--head); font-stretch: 64%; text-transform: uppercase; }
.cmp .side .label .muted { color: #55534e; font: 500 11px/1.3 var(--mono); text-transform: uppercase; }
.ctable { width: 100%; border-collapse: collapse; margin-top: 30px; font-size: 13px; table-layout: fixed; }
.ctable th { color: var(--muted); font: 600 10px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; text-align: center; padding: 14px 6px; border-top: 1px solid var(--line); width: 130px; }
.ctable td { padding: 14px 6px; border-top: 1px solid var(--line); vertical-align: top; font-family: var(--mono); font-size: 12.5px; }
.ctable td:first-child { text-align: right; } .ctable td:last-child { text-align: left; }
.ctable .win { color: #111; } .ctable .win span.v { background: var(--tag); padding: 2px 6px; font-weight: 700; }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.swatches img { width: 64px; height: 48px; object-fit: cover; border-radius: 3px; }
.ctable td:first-child .swatches { justify-content: flex-end; }
@media (max-width: 640px) { .cmp { gap: 12px; } .ctable th { width: 80px; } .cmp .side h2 { font-size: 21px; } }

/* search */
.sres h2 { margin: 36px 0 16px; }
.rows { display: grid; gap: 2px; }
.row { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 4px; }
.row:hover { background: var(--s1); }
.row img { width: 96px; height: 72px; object-fit: cover; border-radius: 3px; background: var(--s2); flex: none; }
.row .rn { font: 800 18px/1.05 var(--head); font-stretch: 70%; text-transform: uppercase; } .row .rm { font: 500 11px/1.4 var(--mono); color: var(--muted); }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); font: 500 11px/1.5 var(--mono); padding-top: 40px; padding-bottom: 40px; margin-top: 70px; border-top: 1px solid var(--line); }
