/* Layout: narrow quiz column; results as stacked white cards on a cool hall-grey ground.
   Identity: sports-catalogue energy. Cobalt for the racket, signal orange for "you", upright condensed caps like shirt names (Barlow Condensed, the web stand-in for Bahnschrift). */
:root {
  --bg: #eef1f6;
  --surface: #ffffff;
  --surface-2: #e6eaf2;
  --ink: #0f1530;
  --muted: #4b5470;
  --dim: #7a829b;
  --line: #d5dbe7;
  --brand: #2341e0;
  --brand-2: #5a74ff;
  --brand-ink: #1c33b5;
  --on-brand: #ffffff;
  --hot: #ff5a1f;
  --track: #e2e6ef;
  --ring: #c3cbef;
  --disc: #f4f6ff;
  --dot: #bcc4da;
  --teal: #0b8f80;
  --plum: #b0307a;
  --amber: #b97a00;
  --ok: #128a5a;
  --warn: #c2410c;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f22; --surface: #111836; --surface-2: #18214a; --ink: #e8ebf8; --muted: #a8b0cf; --dim: #7880a3;
    --line: #252f60; --brand: #5470ff; --brand-2: #8a9dff; --brand-ink: #a5b4ff; --hot: #ff7b47;
    --track: #1b2450; --ring: #34417f; --disc: #141d42; --dot: #34406e; --teal: #3fcfbb; --plum: #e46fb4; --amber: #f2b531; --ok: #4fd39a; --warn: #ff9a6b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f22; --surface: #111836; --surface-2: #18214a; --ink: #e8ebf8; --muted: #a8b0cf; --dim: #7880a3;
  --line: #252f60; --brand: #5470ff; --brand-2: #8a9dff; --brand-ink: #a5b4ff; --hot: #ff7b47;
  --track: #1b2450; --ring: #34417f; --disc: #141d42; --dot: #34406e; --teal: #3fcfbb; --plum: #e46fb4; --amber: #f2b531; --ok: #4fd39a; --warn: #ff9a6b; color-scheme: dark;
}

html, body { background: var(--bg); color: var(--ink); }
body { font: 16px/1.55 var(--body); }
* { box-sizing: border-box; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--hot); outline-offset: 2px; }

.wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 56px; max-width: 1140px; margin: 0 auto; }

h1, h2, h3 { font-family: var(--display); font-style: normal; font-weight: 800; text-wrap: balance; margin: 0; }
.eyebrow { font: 600 13px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); }

/* Header: a cobalt racing stripe with an orange lead-in */
.top { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-block: 18px; margin-bottom: 30px; border-bottom: 3px solid var(--brand); }
.top::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 56px; height: 3px; background: var(--hot); }
.brand { font: 800 clamp(19px, 5vw, 24px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; }
.brand b { color: var(--brand); font-weight: 800; }
.meta { color: var(--dim); font-size: 13px; flex: 1 1 200px; }
.btn { border: 2px solid var(--ink); background: transparent; border-radius: 8px; padding: 7px 16px; cursor: pointer; font: 700 14px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.primary:hover { filter: brightness(1.1); }
.btn:disabled { opacity: .35; cursor: default; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 0; }

/* Quiz */
.quiz { max-width: 660px; margin: 0 auto; display: grid; gap: 18px; }
.progress { display: flex; gap: 4px; }
.progress span { flex: 1; height: 6px; background: var(--track); transform: skewX(-20deg); }
.progress span.on { background: var(--brand); }
.quiz h1, .quiz h2 { font-size: clamp(26px, 5.5vw, 38px); line-height: 1.08; }
.why { color: var(--muted); margin: 0; }
.opts { display: grid; gap: 8px; }
.opt { text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px 12px 48px; cursor: pointer; display: grid; gap: 1px; position: relative; }
.opt::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 6px; border: 2px solid var(--line); background: var(--surface); }
.opt:hover { border-color: var(--brand-2); }
.opt.sel { border-color: var(--brand); background: var(--disc); }
.opt.sel::before { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 4px var(--surface); }
.opt b { font-weight: 700; }
.opt small { color: var(--dim); font-size: 14px; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.search { width: 100%; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 2px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 14px; font-weight: 600; }
.chip.sel { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.tag-core { color: var(--dim); }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.mode { text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 18px; cursor: pointer; display: grid; gap: 6px; align-content: start; }
.mode:hover { border-color: var(--brand); }
.mode-k { font: 800 20px var(--display); text-transform: uppercase; color: var(--brand-ink); }
.mode b { font-weight: 700; }
.mode small { color: var(--muted); font-size: 14px; line-height: 1.45; }
.upsell { margin-bottom: 18px; }

/* Results */
.results { display: grid; gap: 40px; }
.banner { background: var(--surface); border-left: 4px solid var(--hot); border-radius: 10px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.banner p { margin: 0; color: var(--muted); }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-h h2 { font-size: clamp(26px, 4vw, 32px); text-transform: uppercase; letter-spacing: .01em; }
.section-h p { margin: 0; color: var(--dim); font-size: 14px; }

.profile { display: grid; gap: 22px; background: var(--surface); border-radius: 16px; padding: 24px; }
.reasons { margin: 4px 0 0; padding: 0; list-style: none; color: var(--muted); display: grid; gap: 8px; font-size: 15px; }
.reasons li { padding-left: 20px; position: relative; }
.reasons li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 6px; background: var(--hot); transform: skewX(-20deg); }

/* Headline stats: balance / flex / weight */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; }
.stat { display: grid; gap: 2px; align-content: start; min-width: 0; }
.stat .cap, .cap { font: 600 12px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 6px; }
.stat .big { font: 800 clamp(28px, 5vw, 42px)/1.05 var(--display); overflow-wrap: break-word; }
.stat .big small { font-size: .45em; font-style: normal; font-weight: 600; color: var(--muted); margin-left: 4px; }
.stat .sub { color: var(--muted); font-size: 14px; }
.stats .tip { grid-column: 1 / -1; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { background: var(--disc); border-radius: 999px; padding: 5px 14px; font-size: 14px; }
.badge b { color: var(--brand-ink); font-weight: 600; margin-right: 6px; }
.brandbar { display: grid; gap: 10px; margin-bottom: 22px; }
.brandbar-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.brandbar-h .sub { color: var(--muted); font-size: 14px; }
.chip .n { font-weight: 500; color: var(--dim); margin-left: 4px; font-variant-numeric: tabular-nums; }
.chip.sel .n { color: var(--on-brand); opacity: .8; }
.chip.none { opacity: .55; }
.info { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; background: none; font: 700 11px/1 var(--display); cursor: pointer; padding: 0; color: var(--brand-ink); letter-spacing: 0; }
.tip { background: var(--disc); border-radius: 10px; padding: 10px 12px; color: var(--muted); font-size: 14px; }

/* Field map (every racket by balance and flex) and dials */
.map { display: grid; gap: 8px; min-width: 0; }
.field { width: 100%; height: auto; display: block; }
.field text { font: 600 11px var(--display); letter-spacing: .12em; fill: var(--muted); }
.field .pick-n { font: 800 12px var(--display); letter-spacing: 0; fill: var(--on-brand); }
.dials { display: grid; gap: 10px; align-content: center; }
.dial { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 12px; align-items: center; }
.dial svg { width: 100%; height: auto; display: block; }
.dial .dial-v { font: 800 20px var(--display); fill: var(--ink); }
.dial-k { display: grid; gap: 2px; }
.dial-k b { font-weight: 600; }
.legend { display: flex; gap: 16px; justify-content: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.legend .k-r { background: var(--brand); }
.legend .k-y { border: 3px solid var(--hot); }
.legend .k-d { width: 8px; height: 8px; background: var(--dot); }

/* Racket card */
.top3 { display: grid; gap: 22px; }
.rk { background: var(--surface); border-radius: 18px; padding: 24px; display: grid; gap: 22px; }
.rk-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: end; }
.rank { justify-self: start; font: 800 15px/1 var(--display); color: var(--on-brand); background: var(--brand); padding: 5px 16px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.rk-head h3 { font-size: clamp(24px, 4vw, 32px); line-height: 1.05; grid-column: 1; }
.price { color: var(--muted); font-variant-numeric: tabular-nums; grid-column: 1; }
.match { grid-column: 2; grid-row: 1 / span 3; text-align: right; line-height: 1; }
.match b { display: block; font: 800 48px/1 var(--display); color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.match span { font: 600 12px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.price b { color: var(--ink); }
.rrp { color: var(--dim); font-size: 13px; margin-left: 6px; }
.buy { margin-top: 18px; }
.buy h4 { font: 600 13px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 4px; }
.buy th a { color: var(--ink); font-weight: 600; }
.buy s { color: var(--dim); margin-left: 4px; }
.buy .in { color: var(--ok); }
.buy .out { color: var(--dim); }
.buy th small { color: var(--dim); font-weight: 400; }
.stock { font-weight: 600; }
.stock.out, .stock.none { color: var(--warn); }

.bd { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.profile-side { display: grid; gap: 18px; align-content: start; }

.detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.detail p { margin: 0 0 12px; }
.pros, .cons { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.pros li, .cons li { padding-left: 22px; position: relative; }
.pros li::before, .cons li::before { position: absolute; left: 0; font: 800 15px var(--display); }
.pros li::before { content: "+"; color: var(--ok); }
.cons li::before { content: "\2212"; color: var(--warn); }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.specs th { text-align: left; color: var(--dim); font-weight: 500; padding: 6px 10px 6px 0; vertical-align: top; width: 40%; }
.specs td { padding: 6px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.est { color: var(--warn); font-size: 12px; }
.src { font-size: 13px; color: var(--dim); overflow-wrap: anywhere; margin: 10px 0 0; }
.src a { color: var(--brand-ink); }

/* Kit */
.kit { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.kit > div { background: var(--surface); border-radius: 14px; padding: 18px; display: grid; gap: 8px; align-content: start; }
.kit h3 { font: 600 13px var(--display); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); }
.kit .big { font: 800 26px var(--display); }
.kit ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; display: grid; gap: 6px; }
.kit p { margin: 0; color: var(--muted); font-size: 15px; }
.kit b { color: var(--ink); }

/* All matches */
.list { display: grid; gap: 6px; }
.row { background: var(--surface); border-radius: 10px; }
.row > button { width: 100%; background: none; border: 0; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; gap: 14px; align-items: center; padding: 12px 16px; text-align: left; }
.row > button:hover .nm b { color: var(--brand-ink); }
.row .nm { min-width: 0; }
.row .nm b { font-weight: 700; }
.row .nm small { display: block; color: var(--dim); font-size: 13px; }
.row .pc { font: 800 20px var(--display); color: var(--brand-ink); font-variant-numeric: tabular-nums; text-align: right; }
.row .pr { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.row .open { padding: 4px 16px 20px; display: grid; gap: 18px; }
.empty { color: var(--muted); }

@media (max-width: 760px) {
  .stats { gap: 10px; }
  .stat .big { font-size: 24px; }
  .stat .sub { font-size: 13px; }
  .bd, .detail { grid-template-columns: minmax(0, 1fr); }
  .rk, .profile { padding: 18px 16px; }
  .match b { font-size: 38px; }
  .row > button { grid-template-columns: minmax(0, 1fr) 56px; }
  .row .pr { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .dial path { transition: d .5s ease-out; }
}

/* Navigation */
.sitenav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: -16px 0 26px; }
.navlink { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; cursor: pointer; font: 600 13px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.navlink:hover { background: var(--surface-2); color: var(--ink); }
.navlink.on { background: var(--ink); color: var(--bg); }
.navlink .count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--hot); color: #fff; font-size: 12px; text-align: center; margin-left: 4px; letter-spacing: 0; }

/* Card actions */
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.act { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 14px; font: 600 13px var(--body); cursor: pointer; color: var(--ink); }
.act:hover { border-color: var(--brand); }
.act.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* Player type */
.typecard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 20px; align-items: center; background: var(--surface); border-radius: 18px; padding: 20px 22px; }
.typecard-t h2 { font-size: clamp(26px, 5vw, 38px); text-transform: uppercase; line-height: 1.05; }
.typecard-t p { margin: 6px 0 0; color: var(--muted); }
.typechip { display: flex; gap: 12px; align-items: center; }
.typechip div { display: grid; gap: 1px; }
.typechip b { font: 800 20px var(--display); }
.typechip small { color: var(--muted); font-size: 14px; }

/* Share */
.share { background: var(--surface); border-radius: 18px; padding: 18px; }
.share-in { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 20px; align-items: start; }
.share-img { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }
.share-side { display: grid; gap: 10px; }
.share-side h3 { font-size: 22px; }
.share-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.mono { font-family: ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }

/* Browse */
.filters { display: grid; gap: 10px; margin-bottom: 14px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dropdown { padding: 8px 10px; border-radius: 10px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; max-width: 100%; }
.tick { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--muted); }

/* Compare */
.cmp-head { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.cmp-col { background: var(--surface); border-radius: 14px; padding: 14px; display: grid; gap: 6px; align-content: start; justify-items: start; }
.cmp-dot { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font: 800 14px var(--display); }
.cmp-dot.sm { width: 22px; height: 22px; font-size: 12px; }
.cmp-name { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: 800 18px/1.15 var(--display); color: var(--ink); }
.cmp-name:hover { color: var(--brand-ink); }
.cmp-table-wrap { overflow-x: auto; background: var(--surface); border-radius: 14px; padding: 8px 16px; margin: 18px 0; }
.cmp-table th:first-child { width: 24%; }
.cmp-table td { padding-right: 10px; vertical-align: top; }

/* Pros */
.pros { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pro { background: var(--surface); border-radius: 16px; padding: 18px; display: grid; gap: 10px; align-content: start; }
.pro h3 { font-size: 22px; }
.pro-h small, .pro-r small { color: var(--dim); display: block; font-size: 13px; }
.pro-r b { font-weight: 700; display: block; }
.pro p { margin: 0; color: var(--muted); font-size: 15px; }
.pro-fit b { color: var(--brand-ink); font: 800 20px var(--display); }
.pro .act { justify-self: start; }

/* Ratings */
.ratings { display: grid; gap: 12px; }
.ratings:empty { display: none; }
.meterline { height: 6px; border-radius: 3px; background: var(--track); }
.meterline span { display: block; height: 100%; border-radius: 3px; background: var(--brand); }
.kit .big small { font-size: 14px; color: var(--muted); font-style: normal; }
.rateform { display: grid; gap: 12px; background: var(--surface); border-radius: 14px; padding: 16px; margin-top: 10px; }
.rate-row { display: grid; gap: 6px; }
.rate-row > span { font: 600 13px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

/* Learn, watchlist, how we pick */
.learn .rk { gap: 12px; }
.learn .rk p { margin: 0; }
.learn input[type=range] { width: 100%; accent-color: var(--brand); }
.good { color: var(--ok); }
.how .rk { gap: 8px; }
.how .rk p { margin: 0; color: var(--muted); }

@media (max-width: 760px) {
  .typecard { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
  .typecard .btn { grid-column: 1 / -1; justify-self: start; }
  .share-in { grid-template-columns: minmax(0, 1fr); }
  .cmp-name { font-size: 15px; }
  .cmp-col { padding: 10px; }
}
.results > .link { justify-self: start; }
.cmp-table { table-layout: fixed; }

/* Compare boxes (under "+ Compare" and on the compare page) and the weight-class switch */
.cmp-inline { background: var(--disc); border-radius: 14px; padding: 14px; display: grid; gap: 12px; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: start; }
.slot { position: relative; min-width: 0; }
.slot.filled { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 9px 10px; }
.slot-name { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.slot-x { border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; }
.slot-in { padding: 10px 12px; font-size: 14px; }
.slot-list { display: grid; gap: 4px; margin-top: 4px; }
.slot-opt { text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; padding: 7px 10px; cursor: pointer; display: grid; color: var(--ink); }
.slot-opt:hover { border-color: var(--brand); }
.slot-opt b { font-weight: 600; font-size: 14px; }
.slot-opt small { color: var(--dim); font-size: 12px; }
.slot-go { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.cmp-top { margin-bottom: 18px; }
.cmp-class { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 16px; }
.seg { display: inline-flex; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg-b { border: 0; background: var(--surface); padding: 7px 14px; cursor: pointer; font: 700 15px var(--display); letter-spacing: .04em; color: var(--ink); }
.seg-b small { font: 500 12px var(--body); color: var(--dim); margin-left: 4px; }
.seg-b.on { background: var(--brand); color: var(--on-brand); }
.seg-b.on small { color: var(--on-brand); }
.seg-b + .seg-b { border-left: 2px solid var(--line); }
@media (max-width: 760px) { .slots { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Map dots: hover name and tap preview */
.map { position: relative; }
.maphint { margin: -2px 0 0; text-align: center; font-size: 12px; color: var(--dim); }
.dottip { position: absolute; transform: translate(-50%, -100%); background: var(--ink); color: var(--bg); font: 600 12px var(--body); padding: 4px 9px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 4; }
.dotpop { position: absolute; z-index: 5; width: min(270px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.pop-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.pop-name { font: 700 19px/1.1 var(--display); padding-right: 20px; }
.dotpop small { color: var(--dim); font-size: 13px; }
.pop-specs { display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.pop-match { font-size: 13px; color: var(--muted); }
.pop-match b { font: 800 22px var(--display); color: var(--brand-ink); margin-right: 4px; }
.pop-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pop-acts .btn { padding: 5px 12px; font-size: 13px; }
.pop-note { font-size: 13px; color: var(--muted); }
.pop-note:empty { display: none; }

/* Links styled as the buttons and tabs they replace */
a.navlink, a.act, a.btn, a.tile, a.gamecard, .row > a { text-decoration: none; color: inherit; }
a.navlink, a.act, a.btn { display: inline-block; }
a.btn.primary { color: var(--on-brand); }
a.link { color: var(--muted); }
.row > a { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; gap: 14px; align-items: center; padding: 12px 16px; }
.row > a:hover .nm b { color: var(--brand-ink); }
@media (max-width: 760px) { .row > a { grid-template-columns: minmax(0, 1fr) 56px; } }
.section-h h1 { font-size: clamp(30px, 5vw, 42px); text-transform: uppercase; letter-spacing: .01em; line-height: 1.05; }
.rk-head h1 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.05; grid-column: 1; }
.lede { margin: 0; color: var(--muted); font-size: 17px; max-width: 760px; }
.panel { background: var(--surface); border-radius: 16px; padding: 18px; }
.typechip.panel { padding: 16px 18px; }

/* Home introduction */
.hero { background: var(--surface); border-radius: 18px; padding: 26px 24px; display: grid; gap: 12px; border-top: 4px solid var(--brand); }
.hero h1 { font-size: clamp(32px, 6vw, 52px); text-transform: uppercase; line-height: 1; }
.hero p { margin: 0; color: var(--muted); max-width: 760px; }
.hero .src { margin: 0; }

/* Best-for lists and link tiles */
.blist { display: grid; gap: 12px; }
.bitem { background: var(--surface); border-radius: 16px; padding: 18px 20px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 16px; align-items: start; }
.bitem h3 { font-size: clamp(21px, 3vw, 26px); line-height: 1.1; }
.bitem h3 a { color: var(--ink); text-decoration: none; }
.bitem h3 a:hover { color: var(--brand-ink); }
.bitem-t { display: grid; gap: 6px; min-width: 0; }
.bitem-t > small { color: var(--dim); font-size: 13px; }
.bitem-t p { margin: 0; color: var(--muted); font-size: 15px; }
.bitem .match { grid-column: 3; grid-row: 1; }
@media (max-width: 760px) { .bitem { grid-template-columns: minmax(0, 1fr) auto; } .bitem .rank { grid-column: 1; } .bitem-t { grid-column: 1 / -1; grid-row: 2; } .bitem .match { grid-column: 2; } }
.linkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.tile { background: var(--surface); border: 2px solid transparent; border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; }
.tile:hover { border-color: var(--brand); }
.tile b { font: 700 18px/1.15 var(--display); }
.tile small { color: var(--dim); font-size: 13px; }

/* Upgrade from the current racket */
.upgrade { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 12px; }
.up { background: var(--surface); border-radius: 14px; padding: 16px; display: grid; gap: 6px; align-content: start; }
.up b a { font: 800 20px/1.1 var(--display); color: var(--ink); text-decoration: none; }
.up ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }

/* Price trend and other countries */
.trend { margin-top: 10px; }
.spark { width: 240px; max-width: 100%; height: 44px; display: block; background: var(--disc); border-radius: 8px; }
.trend .src { margin-top: 6px; }
.market { border-top: 1px solid var(--line); padding-top: 12px; }

/* Badders */
.gamecard { display: grid; gap: 4px; background: var(--ink); color: var(--bg); border-radius: 16px; padding: 18px 20px; }
.gamecard .cap { color: var(--hot); }
.gamecard b { font: 800 24px var(--display); text-transform: uppercase; }
.gamecard small { opacity: .8; }
.game { aspect-ratio: 16 / 9; background: #17130f; border-radius: 16px; overflow: hidden; display: grid; }
.game iframe { width: 100%; height: 100%; border: 0; display: block; }
.game-start { border: 0; background: radial-gradient(circle at 50% 40%, #2b2318, #17130f 70%); color: #f3e7cf; cursor: pointer; display: grid; place-content: center; justify-items: center; gap: 14px; }
.game-logo { font: 800 clamp(40px, 9vw, 84px)/1 var(--display); color: #e0a33a; letter-spacing: .06em; }
.game-start small { color: #9c8b70; }

/* Footer */
.foot { margin-top: 56px; padding-top: 22px; border-top: 3px solid var(--brand); display: grid; gap: 14px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.foot-cols div { display: grid; gap: 6px; align-content: start; }
.foot-cols h2 { font: 600 13px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.foot-cols a { color: var(--muted); font-size: 14px; text-decoration: none; }
.foot-cols a:hover { color: var(--brand-ink); text-decoration: underline; }

/* Fake checker, junior form, coach board */
.fakecheck { display: grid; gap: 12px; }
.fakecheck h2 { font-size: 24px; text-transform: uppercase; }
.fc-row { display: grid; gap: 6px; position: relative; }
.fc-row.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.fc-row label, .kidform label { display: grid; gap: 4px; }
.verdict { border-radius: 12px; padding: 14px 16px; border-left: 5px solid var(--dim); background: var(--disc); }
.verdict > b { font: 800 22px var(--display); text-transform: uppercase; }
.verdict p { margin: 4px 0 0; }
.verdict.bad { border-color: #d42a2a; } .verdict.bad > b { color: #d42a2a; }
.verdict.warn { border-color: var(--warn); } .verdict.warn > b { color: var(--warn); }
.verdict.ok { border-color: var(--ok); } .verdict.ok > b { color: var(--ok); }
.signs { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.signs b { color: var(--ink); }
.src-a { font-size: 12px; color: var(--brand-ink); }
.risk-high { color: #d42a2a; font-weight: 700; } .risk-medium { color: var(--warn); font-weight: 700; } .risk-low { color: var(--ok); font-weight: 700; }
.kidform { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.kidform .dropdown, .kidform .search { width: 100%; }
/* Every box in a form row the same height and top edge: drop-downs padded like text boxes, labels packed to the top,
   and a cell may shrink below its contents' natural width rather than spill into the next one. */
.kidform label { align-content: start; min-width: 0; }
.kidform .dropdown { padding: 0 10px; font-size: inherit; border-radius: 12px; }
.kidform select, .kidform input { height: 50px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; }
textarea.search { font: 14px/1.5 ui-monospace, Consolas, monospace; resize: vertical; }
.coach-table td { vertical-align: top; padding-right: 10px; }
.coach-table small { color: var(--dim); }
@media (max-width: 560px) { .fc-row.two { grid-template-columns: minmax(0, 1fr); } }
@media print {
  .top, .sitenav, .foot, .acts, .panel, .maphint { display: none !important; }
  body, html { background: #fff; }
}
.upgrade ~ .btn { margin-bottom: 34px; }
details summary { cursor: pointer; color: var(--brand-ink); font-size: 14px; margin-top: 6px; }
details .signs { margin-top: 8px; font-size: 14px; }

/* Shoe ratings: five skewed blocks per rating, like the quiz progress bar */
.bars { display: grid; gap: 8px; align-content: start; }
.bar-row { display: grid; grid-template-columns: 112px auto 28px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 14px; }
.bar-k { color: var(--muted); font-weight: 600; }
.bar { display: inline-flex; gap: 3px; }
.bar i { width: 22px; height: 10px; border-radius: 2px; background: var(--track); transform: skewX(-20deg); }
.bar i.on { background: var(--brand); }
.bar i.half { background: linear-gradient(90deg, var(--brand) 50%, var(--track) 50%); }
.bar-v { font: 800 16px var(--display); }
.bar-from { color: var(--dim); font-size: 12px; }
.shoe-bd { align-items: start; }
.shoefind { display: grid; gap: 14px; }
.bitem .bars { margin: 4px 0; }
@media (max-width: 560px) { .bar-row { grid-template-columns: 96px auto 24px; } .bar-from { grid-column: 1 / -1; margin-top: -6px; } .bar i { width: 16px; } }

/* What's in your bag? */
.bag-top { display: grid; gap: 10px; }
.bag-top label { display: grid; gap: 4px; max-width: 360px; }
.bag-list { display: grid; gap: 8px; }
.bag-item { background: var(--surface); border-radius: 12px; padding: 12px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; }
.bag-item .acts, .bag-edit { grid-column: 1 / -1; }
.bag-t { display: grid; gap: 2px; min-width: 0; }
.bag-t b a { color: var(--ink); text-decoration: none; }
.bag-t b a:hover { color: var(--brand-ink); }
.bag-t small { color: var(--dim); font-size: 13px; }
.bag-setup { margin: 0; font-size: 14px; color: var(--muted); }
.bag-pct { font-size: 12px; color: var(--muted); text-align: right; }
.bag-pct b { display: block; font: 800 24px/1 var(--display); color: var(--brand-ink); }
.bag-add { max-width: 520px; }
.kitbuy { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.adtag { font: 700 10px var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--dim); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin-left: 4px; vertical-align: 1px; }
.how .rk h2 { font-size: 24px; text-transform: uppercase; }
.adline { margin: -14px 0 22px; font-size: 13px; color: var(--muted); }
.adline a { color: var(--brand-ink); }
.disclose { margin: 0 0 6px; }

/* Guides */
.guide { background: var(--surface); border-radius: 18px; padding: clamp(20px, 4vw, 40px); max-width: 780px; display: grid; gap: 4px; }
.guide h1 { font-size: clamp(32px, 5vw, 46px); text-transform: uppercase; line-height: 1.02; margin: 6px 0 8px; }
.guide h2 { font-size: clamp(22px, 3.2vw, 28px); text-transform: uppercase; margin: 22px 0 4px; }
.guide h3 { font-size: 20px; margin: 14px 0 2px; }
.guide p, .guide li { font-size: 17px; line-height: 1.65; }
.guide p { margin: 6px 0; }
.guide ul, .guide ol { margin: 4px 0 8px; padding-left: 22px; display: grid; gap: 4px; }
.guide a { color: var(--brand-ink); }
.guide .lede { font-size: 19px; }
.tipbox { background: var(--disc); border-left: 4px solid var(--hot); border-radius: 8px; padding: 12px 16px; }
.why-match { margin: 0; color: var(--muted); font-size: 14px; }
small.why-match { color: var(--brand-ink); }
.bag-rate { margin: 2px 0 0; font-size: 14px; color: var(--ink); }
.bag-rate b { font-weight: 600; color: var(--brand-ink); }
.bag-others { color: var(--dim); font-size: 13px; }
.bag-others:empty { display: none; }
.act.primary-ish { border-color: var(--brand); color: var(--brand-ink); }

/* Rackets you own: the quiz list and the bag's enjoyment row */
.owned { display: grid; gap: 8px; }
.owned-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 12px; align-items: center; background: var(--surface); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.owned-t { display: grid; gap: 1px; min-width: 0; }
.owned-t small { color: var(--dim); font-size: 13px; }
.chips.enjoy { gap: 4px; flex-wrap: nowrap; }
.chips.enjoy .chip { min-width: 34px; padding: 5px 8px; text-align: center; }
.enjoy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 4px 0; }
.enjoy-row small { color: var(--muted); font-size: 13px; }
.owned-tag { color: var(--ok); font-weight: 700; }
@media (max-width: 560px) { .owned-row { grid-template-columns: minmax(0, 1fr) auto; } .owned-row .chips.enjoy { grid-column: 1 / -1; grid-row: 2; } }
.sale-price { display: flex; gap: 6px; }
/* The currency is a three-letter code: a narrow box, leaving the row to the amount (beats .kidform's width: 100%). */
.kidform .sale-price .dropdown { flex: 0 0 auto; width: 5.6em; padding-right: 4px; }
.kidform .sale-price .search { flex: 1 1 0; width: 0; min-width: 0; }
.sold-note { color: var(--warn); }
.sold-note:empty { display: none; }
.sold-item .bag-t small:first-of-type { color: var(--muted); }
