:root {
  --bg: #0a0a0b;
  --panel: #131315;
  --panel-2: #1b1b1e;
  --line: #2a2a2f;
  --ink: #f4f1ea;
  --mute: #9b978e;
  --red: #ef2637;
  --red-deep: #9c0f1e;
  --bone: #f4f1ea;
  --tile: #ffffff;
  --ok: #55d98a;
  --r: 22px;
  --display: 'Archivo', system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --dock-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--display); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.mode-bar { position: relative; z-index: 41; padding: 8px 16px; text-align: center; background: #f5c542; color: #111; font: 600 12px var(--mono); letter-spacing: .04em; }
@keyframes rise { from { opacity: 0; transform: translateY(.35em); } }

/* ── Top bar ─────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 20px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.mark { height: 44px; width: auto; display: block; }
.mark.big { height: 96px; }
.steps { display: none; gap: 4px; margin-inline: auto; }
.steps a {
  text-decoration: none; padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--mute);
  transition: color .2s, background .2s;
}
.steps a i { font: 600 10px var(--mono); font-style: normal; margin-right: 6px; opacity: .7; }
.steps a.on { color: var(--ink); background: var(--panel-2); }
.steps a.on i { color: var(--red); opacity: 1; }
.bag-btn {
  margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px;
  border: 1px solid var(--line); border-radius: 99px; font-weight: 700; font-size: 13px;
}
.bag-count { min-width: 24px; height: 24px; padding: 0 7px; display: grid; place-items: center; border-radius: 99px; background: var(--red); font: 600 12px var(--mono); }
.bag-count.bump { animation: bump .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 40% { transform: scale(1.45); } }

/* ── Hero ────────────────────────────────── */
.hero { padding: clamp(28px, 5vw, 64px) clamp(16px, 4vw, 40px) 0; max-width: 1500px; margin-inline: auto; }
.eyebrow { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
h1 {
  margin-top: 14px; font-weight: 900; font-stretch: 112%; text-transform: uppercase;
  font-size: clamp(34px, 6.4vw, 92px); line-height: .96; letter-spacing: -.01em; text-wrap: balance;
}
h1 .amp { color: var(--red); }
.hero-foot { display: grid; gap: 16px; margin-top: clamp(18px, 2.4vw, 30px); }
.lede { max-width: 52ch; font-size: clamp(16px, 1.4vw, 18px); color: #cfcbc3; }
.deadline { font: 600 13px/1.5 var(--mono); letter-spacing: .02em; color: var(--mute); padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; justify-self: start; }
.deadline b { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 99px; border: 1px solid var(--line); font-weight: 800; font-stretch: 112%; font-size: 15px; letter-spacing: .02em;
  text-decoration: none; text-transform: uppercase; transition: transform .2s, background .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 10px 40px -12px var(--red); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ── Layout ──────────────────────────────── */
.shell { display: grid; gap: 40px; padding: 0 clamp(16px, 4vw, 40px) calc(var(--dock-h) + 40px); max-width: 1500px; margin-inline: auto; }
.flow { min-width: 0; }
.step { padding-top: clamp(40px, 5vw, 72px); }
.step-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.num { font: 600 12px var(--mono); color: var(--red); padding: 6px 10px; border: 1px solid color-mix(in srgb, var(--red) 50%, transparent); border-radius: 99px; margin-top: 6px; }
.step-head h2 { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: clamp(30px, 5vw, 60px); line-height: .95; letter-spacing: -.02em; }
.step-head p { margin-top: 8px; color: var(--mute); }
.meter { margin-left: auto; align-self: center; font: 600 12px var(--mono); padding: 8px 12px; border-radius: 99px; background: var(--panel-2); white-space: nowrap; }
.meter.full { background: color-mix(in srgb, var(--ok) 18%, var(--panel)); color: var(--ok); }

.fields { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .fields { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field.wide { grid-column: 1 / -1; }
.field small { color: var(--mute); font-size: 13px; }
.fields + .fields { margin-top: 28px; }
.field span, .block h3 { font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.req, .opt { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 99px; font: 600 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; vertical-align: 1px; }
.req { background: var(--red); color: #fff; }
.opt { border: 1px solid var(--line); color: var(--mute); }
.step-head p .opt { margin: 0 8px 0 0; }
.card.done .req { display: none; }
.locked { display: none !important; }
.unlock { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; }
.steps a.off { opacity: .35; pointer-events: none; }
.field input::placeholder { color: #55555c; font-weight: 500; }
.field input {
  width: 100%; height: 58px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel);
  color: var(--ink); font: 700 18px var(--display); transition: border-color .2s, background .2s;
}
.field input:focus { outline: none; border-color: var(--ink); background: var(--panel-2); }

.status { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.status-card {
  position: relative; text-align: left; display: grid; gap: 6px; padding: 22px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--panel); overflow: hidden; transition: border-color .25s, transform .25s, background .25s;
}
.status-card::after {
  content: ''; position: absolute; inset: auto -30% -70% auto; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--red), transparent); opacity: 0; transition: opacity .35s;
}
.status-card[aria-checked='true'] { border-color: var(--red); background: color-mix(in srgb, var(--red) 9%, var(--panel)); }
.status-card[aria-checked='true']::after { opacity: .5; }
.status-card .tag { font: 600 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.status-card strong { font-weight: 900; font-stretch: 125%; font-size: clamp(34px, 5vw, 54px); line-height: 1; letter-spacing: -.02em; }
.status-card strong small { font: 600 12px var(--mono); letter-spacing: .04em; color: var(--mute); margin-right: 8px; vertical-align: middle; }
.status-card .sub { color: color-mix(in srgb, var(--ink) 75%, transparent); font-size: 14px; position: relative; z-index: 1; }

.block { margin-top: 28px; display: grid; gap: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel);
  font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.pill:active { transform: scale(.94); }
.pill[aria-checked='true'] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pill.keep { border-style: dashed; }
.pill.keep[aria-checked='true'] { background: var(--ok); border-color: var(--ok); border-style: solid; }
.pill[disabled] { opacity: .32; text-decoration: line-through; cursor: not-allowed; }

.invalid > h3, .invalid > span, .invalid .card-name { color: var(--red) !important; }
.field.invalid input, .card.invalid, .status.invalid .status-card { border-color: var(--red); }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ── Cards ───────────────────────────────── */
.kit, .grid { display: grid; gap: 14px; }
.grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card {
  display: grid; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); overflow: hidden;
  transition: border-color .25s, opacity .6s, transform .6s cubic-bezier(.2, .8, .2, 1);
}
.card.pre { opacity: 0; transform: translateY(24px); }
.card.done { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.kit .card { grid-template-columns: 112px 1fr; }
.shot { position: relative; background: var(--tile); display: grid; place-items: center; overflow: hidden; }
.kit .shot { align-self: start; aspect-ratio: 1; margin: 14px 0 14px 14px; border-radius: 14px; }
.grid .card { grid-template-rows: auto 1fr; }
.grid .shot { aspect-ratio: 1; }
.grid .body { display: flex; flex-direction: column; }
.grid .body .add { margin-top: auto; }
.grid .body .opt-label { margin-bottom: -4px; }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.shot img.bleed { object-fit: cover; padding: 0; }
.shot .jersey-ph { font: 900 44px var(--display); font-stretch: 125%; color: var(--bg); letter-spacing: -.04em; }
.shot .jersey-ph small { display: block; font: 600 9px var(--mono); letter-spacing: .14em; text-align: center; margin-top: 2px; }
.price-tag { position: absolute; left: 10px; top: 10px; padding: 5px 10px; border-radius: 99px; background: var(--bg); color: var(--ink); font: 600 12px var(--mono); }
.body { padding: 16px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.card-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.card-name { font-weight: 800; font-stretch: 112%; font-size: 17px; line-height: 1.15; }
.card-meta { font: 400 12px var(--mono); color: var(--mute); }
.check { margin-left: auto; font: 600 11px var(--mono); color: var(--ok); opacity: 0; transition: opacity .2s; }
.card.done .check { opacity: 1; }
.card-note { font-size: 13px; color: var(--mute); }
.sold { justify-self: start; align-self: flex-start; padding: 5px 10px; border-radius: 8px; font: 600 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--line); color: var(--ink); }
.sold.single { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.card-delta { font: 600 11px var(--mono); color: var(--mute); }
.card-delta b { color: var(--ok); font-weight: 600; }
.opt-label { font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: -4px; }
.grid .pill { min-height: 38px; padding: 0 12px; font-size: 13px; }
.add {
  min-height: 46px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); font-weight: 800; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.add:active { transform: scale(.97); }
.add.added { background: var(--ok); border-color: var(--ok); color: var(--bg); }

.notice { margin-top: 16px; padding: 18px 20px; border-radius: var(--r); border: 1px dashed #45454c; color: color-mix(in srgb, var(--ink) 80%, transparent); font-size: 14px; }
.notice b { color: var(--ink); }
.empty { padding: 36px 20px; border: 1px dashed var(--line); border-radius: var(--r); text-align: center; color: var(--mute); }

.filters { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * clamp(16px, 4vw, 40px)) 16px; padding: 0 clamp(16px, 4vw, 40px); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }

.foot { margin-top: 90px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--mute); font-size: 14px; display: grid; gap: 6px; }
.fine { font: 400 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* ── Bag ─────────────────────────────────── */
.bag {
  position: fixed; inset: auto 0 0 0; z-index: 60; max-height: 88vh; max-height: 88dvh; display: flex; transform: translateY(105%);
  transition: transform .45s cubic-bezier(.2, .9, .2, 1); border-radius: 28px 28px 0 0; background: var(--panel);
  border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 -30px 80px rgba(0, 0, 0, .6);
}
.bag.open { transform: none; }
.bag-inner { width: 100%; display: flex; flex-direction: column; gap: 16px; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); overflow: auto; }
.bag-head { display: flex; align-items: center; justify-content: space-between; }
.bag-head h2 { font-weight: 900; font-stretch: 125%; text-transform: uppercase; font-size: 22px; letter-spacing: -.01em; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); }
.bag-lines { display: grid; gap: 2px; }
.bl { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bl-name { font-weight: 700; font-size: 14px; line-height: 1.25; }
.bl-amt { font: 600 13px var(--mono); }
.bl-detail { grid-column: 1 / -1; font-size: 12px; color: var(--mute); line-height: 1.4; }
.bl-ctl { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 6px; font: 600 12px var(--mono); }
.bl-ctl button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); }
.bl-ctl .rm { width: auto; border: 0; color: var(--mute); margin-left: auto; text-decoration: underline; }
.todo { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--mute); text-align: left; width: 100%; }
.todo::before { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--red); flex: none; }
.bag-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 6px; }
.bag-total span { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.bag-total strong { font-weight: 900; font-stretch: 125%; font-size: 38px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bag-note { font-size: 12px; color: var(--mute); line-height: 1.45; }
.secure { text-align: center; font: 400 11px var(--mono); color: var(--mute); }

.dock {
  position: fixed; inset: auto 0 0 0; z-index: 50; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); min-height: var(--dock-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(20px); border-top: 1px solid var(--line);
}
.dock-info { flex: 1; display: grid; text-align: left; }
.dock-info span { font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.dock-info strong { font-weight: 900; font-stretch: 125%; font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--dock-h) + 20px); z-index: 90; translate: -50% 0; max-width: min(92vw, 460px);
  padding: 14px 18px; border-radius: 16px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5); animation: rise .35s both;
}

.paid { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: grid; align-content: center; gap: 20px; justify-items: start; padding: clamp(24px, 6vw, 80px); overflow: auto; }

/* ── Desktop ─────────────────────────────── */
@media (min-width: 720px) {
  .kit { grid-template-columns: repeat(2, 1fr); }
  .kit .card { grid-template-columns: 132px 1fr; }
  .hero-foot { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 1080px) {
  :root { --dock-h: 0px; }
  .steps { display: flex; }
  .bag-btn, .dock, .x { display: none; }
  .shell { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; padding-bottom: 80px; }
  .bag {
    position: sticky; inset: auto; top: 84px; align-self: start; transform: none; max-height: calc(100dvh - 104px);
    margin-top: clamp(56px, 8vw, 110px); border-radius: var(--r); border: 1px solid var(--line); box-shadow: none; z-index: 1;
  }
  .scrim { display: none !important; }
  .toast { bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .card.pre { opacity: 1; transform: none; }
}

/* Older phones (before iOS 16.2) don't understand color-mix: give them plain colours. */
@supports not (color: color-mix(in srgb, red, blue)) {
  .top, .dock { background: rgba(10, 10, 11, .92); border-color: var(--line); }
  .lede, .status-card .sub, .notice { color: #cfcbc3; }
  .status-card[aria-checked='true'] { background: #1f1315; }
  .card.done { border-color: #2f6b47; }
  .meter.full { background: #16281d; }
}

/* Quantity steppers */
.stepper { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 99px; padding: 3px; background: var(--panel); }
.stepper button { width: 34px; height: 34px; border-radius: 50%; font-size: 18px; font-weight: 700; }
.stepper output { min-width: 26px; text-align: center; font: 600 14px var(--mono); }
.more { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.more b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.buy { display: flex; gap: 8px; margin-top: auto; align-items: stretch; }
.buy .add { flex: 1; margin-top: 0; }
.views { position: absolute; right: 10px; bottom: 10px; display: inline-flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--bg); }
.views button { padding: 5px 12px; border-radius: 99px; font: 600 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.views button[aria-pressed='true'] { background: var(--ink); color: var(--bg); }

/* What's in each package, on the new / returning choice */
.contents { position: relative; z-index: 1; margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.contents span { padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); font-size: 12px; color: #cfcbc3; background: rgba(10, 10, 11, .35); }
.shot.plain { background: var(--panel-2); color: var(--mute); font: 600 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-align: center; }

/* Hover effects only where there is a real pointer. On phones a tap would otherwise
   leave the hover look stuck on the last thing touched. */
@media (hover: hover) {
  .steps a:hover { color: var(--ink); background: var(--panel-2); }
  .btn:hover { transform: translateY(-2px); border-color: var(--ink); }
  .btn.primary:hover { background: #ff3a4b; border-color: #ff3a4b; }
  .status-card:not([aria-checked='true']):hover { transform: translateY(-3px); border-color: #45454c; }
  .pill:not([aria-checked='true']):hover { border-color: #55555d; }
  .card:hover .shot img { transform: scale(1.06) rotate(-1.5deg); }
  .add:not(.added):hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .stepper button:hover { background: var(--panel-2); }
}

/* Group labels inside the uniform list */
.kit-group { grid-column: 1 / -1; margin: 18px 0 0; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.kit-group:first-child { margin-top: 0; }

/* Fit of each product */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fit { justify-self: start; align-self: flex-start; padding: 5px 10px; border-radius: 8px; font: 600 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--line); color: var(--ink); }

/* Player height on the jump rope card, and the delivery notes */
.height { display: grid; gap: 6px; justify-items: start; font-size: 13px; }
.height[hidden] { display: none; }
.height select { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font: inherit; font-size: 16px; }
.height select:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.card.invalid .height select { border-color: var(--red); }
.height small { color: var(--mute); }
.notice p { margin: 0; }
.notice p + p { margin-top: 10px; }
.notice a { color: inherit; }
.card.done .height .req { display: inline-block; }
