/* Product mocks: everything is sized in em against the window width (1200px = 75em), so they scale as one piece. */
.mk { container-type: inline-size; color: #f3eef0; font-family: Barlow, system-ui, sans-serif; line-height: 1.2; }
.mk-in { --us: var(--m-us); --opp: var(--m-opp); --surface: var(--m-surface); --line: var(--m-line); --muted: var(--m-muted); --accent: var(--m-dot);
  font-size: calc(100cqw / 75); width: 100%; aspect-ratio: 5 / 3; display: grid; background: var(--m-bg); overflow: hidden; }
.mk-in * { box-sizing: border-box; }
.mk-in i, .mk-in em { font-style: normal; }
.chrome { display: flex; align-items: center; gap: .5em; padding: 0 1em; background: var(--m-chrome); border-bottom: 1px solid var(--line); }
.chrome i { width: .8em; height: .8em; border-radius: 50%; background: #ff5f57; } .chrome i:nth-child(2) { background: #febc2e; } .chrome i:nth-child(3) { background: #28c840; }
.chrome span { margin: 0 auto; padding: .25em 3em; border-radius: .6em; background: var(--m-bg); color: var(--muted); font-size: .8em; }

/* ---------- live tracker ---------- */
.tracker { grid-template-rows: 2.4em 5.4em 1fr 4.8em 2.5em; }
.t-head { display: grid; grid-template-columns: 8em 1fr 11em 9em 12em 7em; align-items: center; gap: .9em; padding: 0 1em; border-bottom: 1px solid var(--line); }
.t-back { padding: .5em .7em; border: 1px solid var(--line); border-radius: .5em; font-size: .85em; text-align: center; }
.t-id small { display: block; color: var(--muted); font-size: .62em; letter-spacing: .1em; }
.t-id strong { display: block; font-size: .92em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-ask { position: relative; margin-top: .3em; padding-left: .7em; border-left: .25em solid var(--us); }
.t-ask b { display: block; font-size: .8em; } .t-ask span { display: block; font-size: .64em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-ask u { position: absolute; left: .7em; right: 0; bottom: -.4em; height: .18em; background: linear-gradient(90deg, var(--us) 70%, var(--m-btn) 70%); border-radius: 1em; }
.t-score { display: flex; align-items: center; justify-content: center; gap: .8em; }
.t-score small { display: block; font-size: .56em; letter-spacing: .1em; color: var(--muted); text-align: center; }
.t-score b { font: 700 2.6em/1 "Barlow Condensed", sans-serif; display: block; text-align: center; } .t-score b.us { color: var(--us); } .t-score b.opp { color: var(--opp); }
.t-score em { color: var(--muted); }
.t-ctx { display: grid; gap: .3em; justify-items: center; font-size: .72em; color: var(--muted); }
.t-chip { padding: .3em .9em; border-radius: 999px; border: 1px solid var(--us); color: var(--us); font-weight: 700; letter-spacing: .06em; }
.t-seg { display: flex; border: 1px solid var(--line); border-radius: .5em; overflow: hidden; font-size: .72em; }
.t-seg span { flex: 1; padding: .55em 0; text-align: center; border-right: 1px solid var(--line); } .t-seg span:last-child { border: 0; } .t-seg .on { background: var(--m-hi-d); }
.t-tools { display: flex; gap: .5em; font-size: .72em; } .t-tools span { flex: 1; padding: .55em; border: 1px solid var(--line); border-radius: .5em; text-align: center; }
.t-body { display: grid; grid-template-columns: 8.4em 10em 1fr 9.6em; gap: .8em; padding: .8em; min-height: 0; }
.t-rail { display: flex; flex-direction: column; gap: .5em; min-height: 0; }
.t-rail h4 { font: 600 .62em/1 Barlow, sans-serif; letter-spacing: .14em; color: var(--muted); padding: .2em 0 .3em; }
.t-tile { position: relative; flex: 1; display: grid; align-content: center; justify-items: center; gap: .1em; border-radius: .7em; background: var(--surface); border: 1px solid var(--line); text-align: center; overflow: hidden; }
.t-tile b { font: 700 2em/1 "Barlow Condensed", sans-serif; } .t-tile span { font-size: .72em; color: var(--muted); }
.t-tile.is-bench { opacity: .38; } .t-tile.is-bench b { font-size: 1.4em; }
.t-tile.is-shooter { border-style: dashed; opacity: .6; } .t-tile.is-shooter small { font-size: .55em; letter-spacing: .1em; text-transform: uppercase; }
.t-tile.is-ask { background: linear-gradient(180deg, var(--m-hi), var(--m-hi-d)); border-color: var(--m-hi-line); }
.t-q { display: flex; align-items: center; justify-content: center; gap: .5em; margin-top: .35em; padding: .25em .7em; border-radius: .4em; background: rgb(0 0 0 / .3); }
.t-q strong { font: 700 .72em/1 "Barlow Condensed", sans-serif; letter-spacing: .06em; } .t-q em { font-size: .52em; text-transform: uppercase; letter-spacing: .08em; padding: .2em .6em; border: 1px solid currentColor; border-radius: 999px; }
.t-court { display: grid; place-items: center; min-width: 0; min-height: 0; }
.t-courtbox { position: relative; height: 100%; aspect-ratio: 500 / 470; max-width: 100%; color: #e0d3c4; background: radial-gradient(ellipse at 50% 12%, var(--m-court1), var(--m-court2) 70%); border: 1px solid var(--line); border-radius: .6em; }
.t-courtbox svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.t-spot { position: absolute; left: 19%; top: 50.5%; width: 1.6em; height: 1.6em; margin: -.8em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 .35em rgb(255 157 134 / .3), 0 0 1.6em rgb(255 157 134 / .8); }
.t-result { position: absolute; left: 7%; top: 58%; display: flex; gap: .4em; } .t-result b { padding: .5em 1.1em; border-radius: .6em; background: var(--m-btn); border: 1px solid var(--m-btn-line); font-size: .78em; } .t-result b.on { background: #1f6b43; border-color: #4cc38a; }
.t-fan span, .t-fan small { display: block; }
.t-fan { position: absolute; display: flex; flex-wrap: wrap; gap: .4em; font-size: .72em; }
.t-fan small { width: 100%; font-size: .72em; letter-spacing: .1em; color: var(--muted); }
.t-fan span { padding: .55em 1em; border-radius: .6em; background: var(--m-btn); border: 1px solid var(--m-btn-line); }
.t-fan-l { left: 30%; top: 16%; width: 30%; } .t-fan-r { left: 44%; top: 48%; width: 24%; } .t-fan-r span.on { background: var(--m-btn-hi); border-color: var(--m-hi-line); }
.t-fan-b { left: 22%; top: 78%; } .t-fan-b .skip { border-radius: 999px; } .t-fan-b .save { background: var(--m-hi-d); border-color: var(--m-hi-line); border-radius: 999px; font-weight: 600; } .t-fan kbd { font: inherit; font-size: .8em; opacity: .7; margin-left: .3em; }
.t-actions { padding-left: 0; } .t-act { flex: 1; display: grid; place-content: center; text-align: center; border-radius: .7em; background: var(--surface); border: 1px solid var(--line); padding: 0 .4em; }
.t-act b { font: 700 .95em/1.1 "Barlow Condensed", sans-serif; letter-spacing: .04em; } .t-act small { font-size: .56em; color: var(--muted); }
.t-act.dash { border-style: dashed; background: none; }
.t-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6em; padding: .6em .8em; border-top: 1px solid var(--line); }
.t-play { display: grid; align-content: center; gap: .1em; padding: .4em .8em; border-radius: .6em; background: var(--surface); border: 1px solid var(--line); border-left: .3em solid var(--m-btn-line); }
.t-play.make { border-left-color: #4cc38a; } .t-play.miss { border-left-color: var(--us); }
.t-play b { font-size: .8em; font-weight: 600; } .t-play span { font-size: .68em; color: var(--muted); } .t-play small { font-size: .56em; color: var(--muted); }
.t-foot { display: flex; align-items: center; gap: 1.5em; padding: 0 1em; border-top: 1px solid var(--line); font-size: .72em; color: var(--muted); }
.t-foot span:nth-child(2) { margin-left: auto; } .t-btn { padding: .4em 1em; border: 1px solid var(--line); border-radius: .5em; color: #f3eef0; } .t-btn.is-primary { background: var(--m-hi-d); border-color: var(--m-hi-line); }

/* ---------- dashboard ---------- */
.dashboard { grid-template-rows: 2.4em 1fr; }
.d-wrap { display: grid; grid-template-columns: 11em 1fr; min-height: 0; }
.d-nav { display: flex; flex-direction: column; gap: .3em; padding: 1.1em .8em; border-right: 1px solid var(--line); background: var(--m-nav); }
.d-logo { padding: 0 .6em .9em; font: 700 1.5em/1 "Barlow Condensed", sans-serif; letter-spacing: .08em; }
.d-nav b { padding: .7em .8em; border-radius: .5em; font-size: .85em; font-weight: 500; color: var(--muted); } .d-nav b.on { background: var(--m-nav-on); color: #fff; }
.d-main { display: grid; grid-template-rows: auto auto 1fr auto; gap: .9em; padding: 1em 1.2em 1em; min-width: 0; min-height: 0; }
.d-top { display: flex; align-items: center; gap: .9em; } .d-top h4 { font: 700 1.5em/1 "Barlow Condensed", sans-serif; letter-spacing: .02em; margin-right: .4em; }
.d-pick, .d-btn, .d-filters span { padding: .55em 1em; border: 1px solid var(--line); border-radius: .5em; font-size: .78em; background: var(--m-chip); }
.d-btn { margin-left: auto; } .d-tog { display: flex; border: 1px solid var(--line); border-radius: .5em; overflow: hidden; font-size: .72em; font-weight: 700; letter-spacing: .06em; } .d-tog b { padding: .65em 1.4em; color: var(--muted); } .d-tog b.on { background: var(--m-hi-d); color: #fff; }
.d-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8em; }
.d-kpi { padding: .8em 1em; border-radius: .7em; background: var(--surface); border: 1px solid var(--line); }
.d-kpi small { display: block; font-size: .58em; letter-spacing: .12em; color: var(--muted); } .d-kpi b { display: block; margin-top: .15em; font: 700 2.5em/1 "Barlow Condensed", sans-serif; } .d-kpi b i { font-size: .55em; color: var(--muted); } .d-kpi span { font-size: .7em; color: var(--accent); }
.d-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: .8em; min-height: 0; }
.d-card { display: flex; flex-direction: column; min-height: 0; padding: .8em 1em; border-radius: .7em; background: var(--surface); border: 1px solid var(--line); }
.d-ct { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5em; } .d-ct h5 { font: 600 .9em/1 Barlow, sans-serif; } .d-ct span { display: flex; align-items: center; gap: .5em; font-size: .64em; color: var(--muted); }
.d-ct u { display: inline-block; width: .9em; height: .9em; } .d-ct u.mk { border-radius: 50%; background: var(--accent); } .d-ct u.ms { background: linear-gradient(45deg, transparent 43%, var(--m-ms) 43% 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, var(--m-ms) 43% 57%, transparent 57%); }
.d-chart svg { flex: 1; min-height: 0; width: 100%; color: #e0d3c4; }
.d-chart .mk { fill: var(--accent); stroke: var(--m-surface); stroke-width: 2; } .d-chart .ms { fill: none; stroke: var(--m-ms); stroke-width: 2.6; stroke-linecap: round; }
.d-table table { width: 100%; border-collapse: collapse; font-size: .72em; font-variant-numeric: tabular-nums; }
.d-table th, .d-table td { padding: .5em .3em; text-align: right; border-bottom: 1px solid var(--m-line); white-space: nowrap; }
.d-table thead th { font-size: .78em; letter-spacing: .08em; color: var(--muted); font-weight: 600; } .d-table thead th:first-child, .d-table tbody th { text-align: left; }
.d-table tbody th { font-weight: 500; } .d-table tbody th i { display: inline-block; width: 2em; color: var(--muted); } .d-table td.p { font-weight: 700; color: #fff; }
.d-table tr.tot th, .d-table tr.tot td { border-bottom: 0; border-top: 1px solid var(--m-btn-line); font-weight: 700; color: #fff; }
.d-filters { display: flex; align-items: center; gap: .6em; } .d-filters em { margin-left: auto; font-size: .72em; color: var(--muted); }

/* ---------- interactive demo (hero tracker) ---------- */
.tracker [hidden] { display: none !important; }
button.t-tile { font: inherit; color: inherit; cursor: default; padding: 0; }
.t-tile .t-q { display: none; }
.t-tile.is-ask .t-q { display: flex; }
.t-tile.is-live.is-ask { cursor: pointer; }
.t-tile.is-live.is-ask:hover { filter: brightness(1.15); }
.t-tile.is-live:focus-visible, .t-result button:focus-visible, .t-courtbox:focus-visible { outline: .2em solid #fff; outline-offset: .15em; }
.t-courtbox { cursor: crosshair; }
.t-result { position: absolute; z-index: 3; display: flex; gap: .5em; transform: translate(-50%, 0); }
.t-result button { font: inherit; font-weight: 700; font-size: .95em; padding: .55em 1.3em; border-radius: .7em; border: .14em solid; color: #fff; cursor: pointer; box-shadow: 0 .4em 1.2em rgb(0 0 0 / .45); }
.t-result .is-make { background: #1f7a4a; border-color: #4cc38a; }
.t-result .is-miss { background: #8a2a2a; border-color: #f06363; }
.t-result button:hover { filter: brightness(1.15); }
.t-spot { z-index: 2; transition: left .12s ease, top .12s ease; }
.t-score b { display: inline-block; transition: transform .25s ease; }
.t-score b.bump { transform: scale(1.35); }
.t-play.is-new { animation: t-in .35s ease-out; }
@keyframes t-in { from { opacity: 0; transform: translateX(1.2em); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  [data-step="result"] .t-result button { animation: t-pulse 1.8s ease-in-out infinite; }
  [data-step="player"] .t-tile.is-ask { animation: t-pulse 1.8s ease-in-out infinite; }
}
@keyframes t-pulse { 0%, 100% { box-shadow: 0 .4em 1.2em rgb(0 0 0 / .45), 0 0 0 0 rgb(255 255 255 / .4); } 50% { box-shadow: 0 .4em 1.2em rgb(0 0 0 / .45), 0 0 0 .55em rgb(255 255 255 / 0); } }
@media (prefers-reduced-motion: reduce) { .t-spot, .t-score b, .t-play.is-new { transition: none; animation: none; } }
