/* Tool-Lifes design system — sports encyclopedia */
:root {
  --accent: #4f46e5;
  --accent2: #312e81;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --ink2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --track: #e9eef5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Apple SD Gothic Neo", "Noto Sans KR", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16.5px;
  line-height: 1.75;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.01em; }
h2 { font-size: 1.65rem; margin: 2.6rem 0 .9rem; }
h3 { font-size: 1.2rem; margin: 1.8rem 0 .6rem; }
p { margin: 0 0 1.05em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 14px; height: 58px; }
.brand { font-weight: 800; font-size: 1.05rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--accent); }
.appname { color: var(--ink2); font-weight: 600; font-size: .95rem; }
.appname:hover { color: var(--accent); text-decoration: none; }
.spacer { flex: 1; }
.lang-select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2364748b' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center;
  padding: 6px 28px 6px 12px;
  font-size: .88rem; color: var(--ink2); cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  color: #fff;
  background:
    radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%),
    linear-gradient(135deg, #0b1220 0%, #101b33 55%, var(--accent2) 130%);
  padding: 52px 0 46px;
}
.hero .kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #cbd5e1;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); margin: 0 0 12px; font-weight: 800; }
.hero .lede { color: #dbe3ee; font-size: 1.06rem; max-width: 46em; margin: 0; }
.hero .emoji { font-size: 2.2rem; vertical-align: -4px; margin-right: 8px; }

/* breadcrumbs */
.crumbs { font-size: .84rem; color: #9fb0c7; margin-bottom: 16px; }
.crumbs a { color: #c7d4e6; }
.crumbs .sep { margin: 0 7px; opacity: .55; }

/* section pill nav */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  color: #e8eef6; font-size: .9rem; font-weight: 600;
}
.pill:hover { background: rgba(255,255,255,.18); text-decoration: none; }
.pill.active { background: var(--accent); border-color: transparent; color: #fff; }

/* ---------- main ---------- */
main { padding: 40px 0 64px; }
.section-intro { font-size: 1.04rem; color: var(--ink2); max-width: 52em; }

/* card grids */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow);
}
a.card { color: var(--ink); display: block; transition: transform .12s ease, border-color .12s ease; }
a.card:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--accent); }
.card h3 { margin: 0 0 6px; }
.card .sub { color: var(--muted); font-size: .92rem; margin: 0; }
.card .go { color: var(--accent); font-weight: 700; font-size: .9rem; }

/* sport cards on app home */
.sport-card { display: flex; flex-direction: column; gap: 8px; border-top: 4px solid var(--card-accent, var(--accent)); }
.sport-card .icon { font-size: 2rem; line-height: 1; }
.sport-card h3 { font-size: 1.25rem; }

/* quick facts */
.facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin: 8px 0 4px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.fact .v { font-weight: 800; font-size: 1.12rem; color: var(--accent2); display: block; }
.fact .k { font-size: .82rem; color: var(--muted); letter-spacing: .02em; }

/* ---------- timeline ---------- */
.timeline { position: relative; margin: 18px 0 8px; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--accent), var(--line));
  border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 20px 14px; }
.tl-item::before {
  content: ""; position: absolute; left: -26px; top: 7px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--surface); border: 3px solid var(--accent);
}
.tl-year { font-weight: 800; color: var(--accent2); font-size: .95rem; margin-right: 10px; }
.tl-title { font-weight: 700; }
.tl-detail { color: var(--ink2); font-size: .95rem; margin: 2px 0 0; }

/* eras */
.era { border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
  border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 22px; margin: 14px 0; box-shadow: var(--shadow); }
.era .period { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.era h3 { margin: 4px 0 8px; }
.era p { margin: 0; color: var(--ink2); }

/* ---------- tactics diagrams ---------- */
.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin: 18px 0; box-shadow: var(--shadow); }
.diagram h3 { margin: 2px 0 12px; }
.diagram figure { margin: 0; }
.diagram .board { border-radius: 10px; overflow: hidden; display: block; }
.diagram figcaption { color: var(--ink2); font-size: .95rem; margin-top: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.legend .chip { font-size: .8rem; background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 11px; color: var(--ink2); }
.legend .chip b { color: var(--accent2); }

/* concepts */
.concept { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; }
.concept h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--accent2); }
.concept p { margin: 0; font-size: .95rem; color: var(--ink2); }

/* ---------- GOAT ranking ---------- */
.goat { display: flex; gap: 18px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin: 14px 0; box-shadow: var(--shadow); }
.goat .rank {
  flex: 0 0 auto; font-size: 2.3rem; font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--accent);
  min-width: 52px; text-align: center; padding-top: 4px;
}
.goat.top1 .rank { color: var(--accent); -webkit-text-stroke: 0; }
.goat .body { flex: 1; min-width: 0; }
.goat .who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.goat .who h3 { margin: 0; font-size: 1.25rem; }
.goat .meta { color: var(--muted); font-size: .88rem; }
.goat .blurb { color: var(--ink2); font-size: .96rem; margin: 8px 0 14px; }
.stats { display: grid; gap: 8px; }
.stat { display: grid; grid-template-columns: minmax(110px, 170px) 1fr auto; gap: 10px; align-items: center; }
.stat .sl { font-size: .8rem; color: var(--muted); }
.stat .bar { height: 10px; background: var(--track); border-radius: 999px; overflow: hidden; }
.stat .fill { height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #0b1220)); }
.stat .sv { font-size: .85rem; font-weight: 700; color: var(--accent2); white-space: nowrap; }
.stat-note { color: var(--muted); font-size: .82rem; margin-top: 10px; }

/* trend key-number bars reuse .stats inside a card */
.numbers { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin: 16px 0; box-shadow: var(--shadow); }

/* trend items */
.trend { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin: 14px 0; }
.trend h3 { margin: 0 0 6px; }
.trend p { margin: 0; color: var(--ink2); }

/* ---------- FAQ ---------- */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 0 18px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-52%);
  color: var(--accent); font-weight: 800; font-size: 1.2rem; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 16px; color: var(--ink2); font-size: .97rem; }

/* highlight teasers on sport hub */
.teasers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: 10px; }

/* prev/next + related */
.related { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 14px; }

/* ---------- hub landing ---------- */
.hub-page main { padding-top: 40px; }
.hub-hero {
  text-align: left;
  padding: clamp(64px, 12vh, 104px) 0 clamp(52px, 8vh, 72px);
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(72vh, 620px);
  display: flex; align-items: flex-end;
}
.hub-hero .wrap { width: 100%; padding-bottom: 8px; }
.hub-brand {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0 0 22px;
}
.hub-brand .dot { color: #5eead4; }
.hub-hero h1 {
  font-size: clamp(2.35rem, 6.2vw, 4rem);
  max-width: 11em;
  margin: 0 0 18px;
  font-weight: 600;
  letter-spacing: -.04em;
}
.hub-hero .lede {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  max-width: 32em;
  color: #a8bacd;
  margin: 0 0 28px;
}
.hub-hero::after {
  content: ""; position: absolute; width: min(58vmin, 520px); height: min(58vmin, 520px);
  border-radius: 50%; right: -8%; top: 8%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 40% 40%, rgba(94, 234, 212, .22), rgba(14, 116, 144, .12) 42%, transparent 68%);
  filter: blur(2px);
}
.hub-hero > * { position: relative; z-index: 1; }
.hub-stats { display: none; } /* kept for older markup; not used on refined hub */
.hub-hint { max-width: 42em; color: var(--muted); margin: -.35rem 0 1.4rem; font-size: .98rem; }
.hub-tools { margin: 0 0 1.4rem; }
.hub-filter input {
  width: min(100%, 28rem); font: inherit; padding: .75rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.hub-filter input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.hub-group { margin: 0 0 2.6rem; }
.hub-group h2 {
  font-size: .78rem; font-family: var(--font-sans); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 1rem; padding-bottom: .65rem;
  border-bottom: 1px solid var(--line);
}
.hub-browse-empty { color: var(--muted); padding: 1rem 0 2rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.apps-strip {
  display: flex; flex-wrap: wrap; gap: .35rem .7rem; align-items: center;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
}
.apps-strip a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.apps-strip a:hover { color: var(--accent); }
.apps-strip-header {
  max-width: min(42vw, 28rem); max-height: 2.4rem; overflow: hidden; margin-left: .6rem;
}
@media (max-width: 900px) { .apps-strip-header { display: none; } }

.hub-grid {
  gap: 0;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  border-top: 1px solid var(--line);
}
.app-tile {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px 22px 26px 26px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
  transition: background .2s ease;
}
.app-tile:hover { text-decoration: none; background: var(--surface); }
.app-tile-accent {
  position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; border-radius: 2px;
  background: var(--card-accent, var(--accent));
  opacity: .85;
}
.app-tile .icons {
  font-size: 1.15rem; letter-spacing: .2em; line-height: 1;
  opacity: .72; filter: grayscale(.15);
}
.app-tile h3 {
  margin: 2px 0 0; font-size: 1.18rem; font-family: var(--font-display);
  font-weight: 600; letter-spacing: -.025em;
}
.app-tile .sub {
  color: var(--muted); font-size: .9rem; margin: 0;
  line-height: 1.55; flex: 1;
}
.app-tile .go {
  color: var(--ink); font-weight: 650; font-size: .86rem;
  letter-spacing: -.01em; margin-top: 6px;
}
.app-tile:hover .go { color: var(--accent); }
.badge-soon { display: inline-block; font-size: .78rem; color: var(--muted); border: 1px dashed var(--line);
  border-radius: 999px; padding: 3px 12px; }

.hub-featured { margin: 0 0 2.8rem; }
.hub-featured > h2 {
  font-size: .78rem; font-family: var(--font-sans); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 1rem;
}
.hub-featured-row {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.hub-featured-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .18s ease, transform .18s ease;
}
.hub-featured-card:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); transform: translateY(-1px); }
.hub-featured-card strong {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em;
}
.hub-featured-card span { color: var(--muted); font-size: .88rem; line-height: 1.45; }

.hub-search {
  display: flex; gap: 0; margin: 0; max-width: 440px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
}
.hub-search input {
  flex: 1; border: 0; border-radius: 0; padding: 14px 18px;
  font: inherit; background: transparent; color: #fff;
}
.hub-search input::placeholder { color: #8fa3b8; }
.hub-search input:focus { outline: none; }
.hub-search button {
  border: 0; border-radius: 0; padding: 14px 20px; font: inherit; font-weight: 650;
  background: #5eead4; color: #0a1628; cursor: pointer;
}
.hub-search button:hover { background: #99f6e4; }
.search-page .hub-search {
  background: var(--surface); border-color: var(--line);
}
.search-page .hub-search input { color: var(--ink); }
.search-page .hub-search button { background: var(--accent); color: #fff; }

/* ---------- footer ---------- */
.site-footer .footer-apps {
  display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 16px;
  padding-bottom: 14px; border-bottom: 1px solid rgba(148, 163, 184, .25);
}
.site-footer .footer-apps a {
  color: #e2e8f0; margin-right: 0; font-size: .82rem; font-weight: 600;
}
.site-footer .footer-apps a:hover { color: #fff; }

/* ==========================================================================
   Visual layer: depth, motion, interactive infographics
   All of it is enhancement — the page is complete and readable without JS,
   and every animation collapses under prefers-reduced-motion.
   ========================================================================== */

/* ---------- scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); }
[data-reveal].is-in { opacity: 1; transform: none;
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }

/* ---------- 3D tilt surfaces ---------- */
[data-tilt] { transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
  transform-style: preserve-3d; }
[data-tilt].is-tilting { will-change: transform; }
[data-tilt]:hover { box-shadow: 0 18px 44px -18px rgba(15,23,42,.42), 0 2px 6px rgba(15,23,42,.08); }
/* light that follows the cursor across the tilted surface */
[data-tilt]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(340px circle at var(--gx,50%) var(--gy,50%), rgba(255,255,255,.16), transparent 62%); }
[data-tilt]:hover::after { opacity: 1; }

/* ---------- hero depth ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto -10%; height: 150%;
  background: radial-gradient(60% 60% at 78% 8%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 70%);
  pointer-events: none; }
.hero > * { position: relative; }

/* ---------- podium (all-time top 3) ---------- */
.podium { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: end;
  margin: 4px 0 26px; perspective: 900px; }
.pod { background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 6px 6px;
  padding: 16px 14px 14px; text-align: center; position: relative; box-shadow: var(--shadow);
  transform-style: preserve-3d; }
.pod .pmedal { font-size: 1.6rem; line-height: 1; }
.pod .pname { font-weight: 800; font-size: 1rem; margin: 8px 0 2px; letter-spacing: -.01em; }
.pod .pmeta { font-size: .78rem; color: var(--muted); }
.pod .pbase { margin-top: 12px; border-radius: 6px; background: linear-gradient(180deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 900; font-size: 1.35rem; display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums; box-shadow: inset 0 2px 0 rgba(255,255,255,.28); }
.pod.p1 .pbase { height: 92px; } .pod.p2 .pbase { height: 66px; } .pod.p3 .pbase { height: 50px; }
.pod.p1 { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
@media (max-width: 520px) { .podium { gap: 8px; } .pod { padding: 12px 8px 10px; } .pod .pname { font-size: .86rem; } }

/* ---------- comparison lab ---------- */
.lab { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); margin: 18px 0 26px; }
.lab-hint { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.lab-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.lab-tools button { font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer;
  background: var(--track); color: var(--ink2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.lab-tools button:hover { background: var(--line); }
.lab-tools .lab-n { margin-left: auto; font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lab-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.lab-chips .chip { font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--bg); color: var(--muted); border: 1px solid var(--line);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.lab-chips .chip .cr { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px;
  border-radius: 50%; background: var(--line); color: var(--ink2); font-size: .72rem; font-weight: 800;
  font-variant-numeric: tabular-nums; }
.lab-chips .chip.on { background: color-mix(in srgb, var(--accent) 13%, var(--surface));
  color: var(--ink); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.lab-chips .chip.on .cr { background: var(--accent); color: #fff; }
.lab-chips .chip:hover { transform: translateY(-1px); }
.lab-chips .chip:focus-visible, .lab-tools button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lab-out { display: grid; gap: 20px; grid-template-columns: minmax(200px, 260px) 1fr; }
@media (max-width: 700px) { .lab-out { grid-template-columns: 1fr; } .lab { padding: 16px; } }
.lab-board h4, .lab-metric h4 { margin: 0 0 10px; font-size: .82rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); font-weight: 800; }
.lab-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lab-rank li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: 9px; background: var(--bg); font-size: .9rem; }
.lab-rank li:first-child { background: color-mix(in srgb, var(--accent) 12%, var(--bg)); font-weight: 700; }
.lab-rank .lr { font-weight: 900; color: var(--accent2); font-variant-numeric: tabular-nums; }
.lab-rank .ls { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.lab-metrics { display: grid; gap: 16px; }
.lab-metric { min-width: 0; }
.lab-row { display: grid; grid-template-columns: minmax(72px, 130px) 1fr auto; align-items: center;
  gap: 10px; margin-bottom: 5px; font-size: .86rem; }
.lab-row .lab-name { color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lab-row.is-top .lab-name { font-weight: 800; color: var(--ink); }
.lab-track { background: var(--track); border-radius: 999px; height: 11px; overflow: hidden; }
.lab-fill { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent));
  transition: width .7s cubic-bezier(.22,1,.36,1); }
.lab-row.is-top .lab-fill { background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.lab-val { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink2); font-size: .82rem; }
.lab-empty { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- radial gauges ---------- */
.gauges { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 6px 0 8px; }
.gauge { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 12px; text-align: center; box-shadow: var(--shadow); position: relative; }
.gauge svg { width: 96px; height: 96px; display: block; margin: 0 auto 10px; }
.gauge .g-track { fill: none; stroke: var(--track); stroke-width: 9; }
.gauge .g-ring { fill: none; stroke: url(#gg); stroke-width: 9; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 50% 50%; }
.gauge .g-val { font-size: 1.14rem; font-weight: 900; color: var(--ink); line-height: 1.2;
  letter-spacing: -.02em; overflow-wrap: break-word; }
.gauge .g-label { font-size: .82rem; color: var(--muted); font-weight: 600; line-height: 1.35; margin-top: 4px; }

/* ---------- era ribbon (history) ---------- */
.ribbon { display: flex; gap: 3px; margin: 2px 0 22px; border-radius: 999px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line); }
.ribbon span { flex: 1; height: 10px; background: linear-gradient(90deg,
  color-mix(in srgb, var(--accent) 22%, var(--track)), var(--accent)); }
.ribbon span:nth-child(even) { opacity: .72; }

/* ---------- expansion: clubs, matches, start, glossary ---------- */
.team-card, .match-card { display: flex; flex-direction: column; gap: 6px;
  border-top: 4px solid var(--card-accent, var(--accent)); }
.tmeta { color: var(--muted); font-size: .88rem; margin: 0; }
.tmeta b { color: var(--ink2); }
.match-card .mdate { font-size: .78rem; font-weight: 800; letter-spacing: .04em;
  color: var(--accent); font-variant-numeric: tabular-nums; }
.match-card h3 { margin: 2px 0 4px; font-size: 1.1rem; }

.gear-cost { margin: 0 0 6px; font-size: .88rem; color: var(--muted); }
.gear-cost b { color: var(--accent2); font-size: 1rem; }
.era .tip { margin: 10px 0 0; font-size: .92rem; color: var(--ink2);
  background: var(--bg); border-radius: 8px; padding: 8px 12px; }
.era .tip b { color: var(--accent2); }

/* glossary — a definition list that stays scannable at forty entries */
dl.glossary { margin: 0; display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
dl.glossary .term { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); }
dl.glossary dt { font-weight: 800; color: var(--accent2); margin: 0 0 4px; }
dl.glossary dt .ten { font-weight: 600; font-size: .8rem; color: var(--muted); margin-left: 6px; }
dl.glossary dd { margin: 0; font-size: .93rem; color: var(--ink2); }

/* ---------- next fixture ----------
   Injected by app.js only when the API returns a match; absent otherwise. */
.fixtures { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fixtures li { display: grid; grid-template-columns: minmax(96px, auto) 1fr auto; gap: 12px;
  align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 16px; box-shadow: var(--shadow); }
.fx-when { font-size: .82rem; font-weight: 700; color: var(--accent2); font-variant-numeric: tabular-nums; }
.fx-teams { font-size: .95rem; }
.fx-teams i { font-style: normal; color: var(--muted); margin: 0 6px; font-size: .85rem; }
.fx-venue { font-size: .8rem; color: var(--muted); text-align: right; }
/* shown per row only when several competitions are merged into one list */
.fx-league { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: var(--accent2); background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 999px; padding: 2px 8px; margin-left: 8px; white-space: nowrap; }
@media (max-width: 620px) {
  .fixtures li { grid-template-columns: 1fr; gap: 4px; }
  .fx-venue { text-align: left; }
}
.live-league { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  color: #fff; background: var(--accent); padding: 3px 10px; border-radius: 999px;
  vertical-align: middle; margin-left: 8px; }
/* ---------- head-to-head (VS) pages ---------- */
.duel-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin: 6px 0 24px; }
.duelist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; text-align: center; box-shadow: var(--shadow); }
.duelist.a { border-top: 4px solid var(--accent); }
.duelist.b { border-top: 4px solid var(--accent2); }
.duelist h2 { margin: 4px 0 2px; font-size: 1.25rem; letter-spacing: -.01em; }
.duelist .drank { font-weight: 900; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.duelist .dmeta { margin: 0; color: var(--muted); font-size: .85rem; }
.dvs { font-weight: 900; font-size: 1.3rem; color: var(--muted); letter-spacing: .04em; }
.duel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); }
.duel-row { display: grid; grid-template-columns: auto 1fr minmax(90px, auto) 1fr auto;
  gap: 10px; align-items: center; margin-bottom: 9px; }
.duel-row .dlabel { text-align: center; font-size: .8rem; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; }
.duel-row .dv { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem; color: var(--ink2); min-width: 3.2em; }
.duel-row .dv.a { text-align: right; } .duel-row .dv.b { text-align: left; }
.duel-row .dv.win { font-weight: 900; color: var(--ink); }
.duel-row .dbar { background: var(--track); border-radius: 999px; height: 11px; overflow: hidden; }
.duel-row .dbar.a { transform: scaleX(-1); }  /* bar grows toward the centre from the left side */
.duel-row .dfill { display: block; height: 100%; border-radius: 999px; width: 0;
  transition: width .7s cubic-bezier(.22,1,.36,1); }
.duel-row .dbar.a .dfill { background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff)); }
.duel-row .dbar.b .dfill { background: linear-gradient(90deg, var(--accent2), color-mix(in srgb, var(--accent2) 55%, #fff)); }
@media (max-width: 560px) {
  /* stack: label, then A's value+bar, then B's value+bar (both left-to-right) */
  .duel-row { grid-template-columns: auto 1fr;
    grid-template-areas: "lbl lbl" "va ba" "vb bb"; margin-bottom: 14px; }
  .duel-row .dlabel { grid-area: lbl; text-align: left; }
  .duel-row .dv.a { grid-area: va; text-align: left; }
  .duel-row .dbar.a { grid-area: ba; transform: none; }
  .duel-row .dbar.a .dfill { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, #fff), var(--accent)); }
  .duel-row .dv.b { grid-area: vb; text-align: left; }
  .duel-row .dbar.b { grid-area: bb; }
  .duel { padding: 14px; }
}

/* ---------- share row ---------- */
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.share-label { font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.share-btn { font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px;
  background: var(--surface); color: var(--ink2); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; transition: transform .15s ease, background .15s ease; }
.share-btn:hover { transform: translateY(-1px); background: var(--track); }
.share-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.share-done { font-size: .82rem; font-weight: 700; color: var(--accent); }

/* ---------- embed box ---------- */
.embed-box { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin: 8px 0 24px; }
.embed-box h2 { margin-top: 0; }
.embed-code { width: 100%; font: 12px/1.5 ui-monospace, 'Cascadia Code', Consolas, monospace;
  color: var(--ink2); background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; resize: vertical; margin-bottom: 10px; }

/* ---------- rules: foul cards ---------- */
.concept.foul { border-left: 4px solid #dc2626; }
.concept.foul h3 { color: #b91c1c; }
@media (prefers-color-scheme: dark) { .concept.foul h3 { color: #f87171; } }

/* ---------- records ---------- */
.records { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.record { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); border-top: 4px solid var(--accent); }
.record .mark { font-size: 1.9rem; font-weight: 900; color: var(--accent2); line-height: 1.05;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.record h3 { margin: 6px 0 8px; font-size: 1.02rem; }
.record .rmeta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.record .rholder { font-weight: 700; color: var(--ink2); font-size: .92rem; }
.record .ryear { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.record .rnote { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- competitions ---------- */
.comps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.comp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow); }
.comphead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.comp h3 { margin: 0; font-size: 1.1rem; }
.comp .tier { font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--accent); padding: 3px 10px; border-radius: 999px; }
.comp .compmeta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 10px; }
.comp .compmeta span { font-size: .82rem; color: var(--muted); }
.comp p { margin: 0; color: var(--ink2); font-size: .95rem; }

/* prose page (legal) */
.prose { max-width: 46em; }
.prose h1 { font-size: 1.9rem; }
.prose h2 { font-size: 1.25rem; margin-top: 2rem; }
.prose li { margin: .3em 0; }

/* ---------- global search button ---------- */
.tl-search-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink2);
  border-radius: 10px; padding: 6px 10px; cursor: pointer; font: inherit; font-size: .84rem;
}
.tl-search-btn:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); color: var(--accent); }
.tl-search-kbd {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px;
}
@media (max-width: 720px) { .tl-search-kbd { display: none; } }

/* ---------- app switcher ---------- */
.tl-apps { position: relative; }
.tl-apps > summary {
  list-style: none; cursor: pointer; font: inherit; font-size: .84rem; font-weight: 700;
  color: var(--ink2); border: 1px solid var(--line); background: var(--surface);
  border-radius: 10px; padding: 6px 12px; user-select: none;
}
.tl-apps > summary::-webkit-details-marker { display: none; }
.tl-apps > summary:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.tl-apps-panel {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50;
  min-width: 220px; max-height: min(70vh, 420px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, .45); padding: 6px;
  display: flex; flex-direction: column; gap: 2px;
}
.tl-apps-panel a {
  display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-size: .88rem; font-weight: 600;
}
.tl-apps-panel a:hover { text-decoration: none; background: color-mix(in srgb, #0d9488 10%, transparent); }
.tl-apps-panel a[aria-current="page"] { color: #0f766e; background: color-mix(in srgb, #0d9488 12%, transparent); }

/* ---------- hub search + intent ---------- */
.hub-search {
  display: flex; gap: 8px; margin: 18px 0 8px; max-width: 520px;
}
.hub-search input {
  flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font: inherit; background: var(--surface); color: var(--ink);
}
.hub-search button {
  border: 0; border-radius: 12px; padding: 12px 16px; font: inherit; font-weight: 700;
  background: #0f766e; color: #fff; cursor: pointer;
}
.hub-search button:hover { background: #0d9488; }
.hub-intent { margin: 36px 0 8px; }
.hub-intent > h2 { font-size: 1.35rem; margin: 0 0 14px; letter-spacing: -.02em; }
.hub-featured { margin: 8px 0 28px; }
.hub-featured h2 { margin: 0 0 12px; font-size: 1.15rem; }
.hub-featured-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px;
}
.hub-featured-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit;
  background: linear-gradient(160deg, color-mix(in srgb, #0d9488 8%, #fff), #fff);
}
.hub-featured-card:hover { border-color: #0d9488; text-decoration: none; }
.hub-featured-card strong { font-size: 1rem; }
.hub-featured-card span { color: var(--muted); font-size: .9rem; line-height: 1.35; }
.tl-nav-link {
  color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 600; margin-right: 6px;
}
.tl-nav-link:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 720px) { .tl-nav-link { display: none; } }
.tl-search-results { list-style: none; margin: 0; padding: 0; }
.tl-search-hit a {
  display: flex; gap: 12px; align-items: baseline; padding: 12px 4px;
  border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.tl-search-hit a:hover { background: color-mix(in srgb, #0d9488 6%, transparent); }
.hub-quiz-cta { margin: 0 0 18px; }
.sr-only, .visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.tl-cross-pair { display: inline-flex; align-items: center; gap: 6px; }
.tl-cross-amp { color: var(--muted); font-weight: 700; }

/* ---------- reading progress ---------- */
.tl-read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  pointer-events: none; opacity: 0; transition: opacity .2s ease;
  background: transparent;
}
.tl-read-progress.is-on { opacity: 1; }
.tl-read-progress i {
  display: block; height: 100%; width: 100%; transform-origin: left center; transform: scaleX(0);
  background: linear-gradient(90deg, #0d9488, #0369a1);
}

/* ---------- command palette ---------- */
body.tl-palette-open { overflow: hidden; }
.tl-palette { position: fixed; inset: 0; z-index: 100; }
.tl-palette-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); backdrop-filter: blur(4px); }
.tl-palette-panel {
  position: relative; width: min(640px, calc(100% - 28px)); margin: 12vh auto 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 64px -24px rgba(15, 23, 42, .45); overflow: hidden;
}
.tl-palette-input {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 18px 20px;
  font: inherit; font-size: 1.05rem; outline: none; background: transparent; color: var(--ink);
}
.tl-palette-hint { padding: 8px 20px; font-size: .78rem; color: var(--muted); }
.tl-palette-list { list-style: none; margin: 0; padding: 0 0 10px; max-height: min(52vh, 420px); overflow: auto; }
.tl-palette-item {
  display: flex; gap: 12px; align-items: baseline; padding: 10px 20px; cursor: pointer;
}
.tl-palette-item:hover, .tl-palette-item.is-active { background: color-mix(in srgb, #0d9488 10%, transparent); }
.tl-palette-app {
  flex: 0 0 auto; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #0f766e; min-width: 4.5rem;
}
.tl-palette-title { color: var(--ink); font-weight: 600; }
.tl-palette-empty { padding: 18px 20px; color: var(--muted); }

/* ---------- share FAB ---------- */
.tl-share-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.tl-share-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink2);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .82rem; font-weight: 600;
  box-shadow: var(--shadow); cursor: pointer;
}
.tl-share-btn:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.tl-share-toast {
  font-size: .78rem; font-weight: 700; color: #fff; background: #0f172a;
  padding: 6px 10px; border-radius: 8px;
}

/* ---------- cross-app rail ---------- */
.tl-cross { margin: 48px auto 28px; padding-top: 8px; }
.tl-cross-title { font-size: 1.15rem; margin: 0 0 14px; }
.tl-cross-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tl-cross-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: .88rem; font-weight: 600;
  box-shadow: var(--shadow);
}
.tl-cross-chip:hover { text-decoration: none; border-color: #0d9488; color: #0f766e; }
.tl-cross-app {
  font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .tl-read-progress i { transition: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 34px; }
  .goat { padding: 16px; gap: 12px; }
  .goat .rank { min-width: 40px; font-size: 1.8rem; }
  .stat { grid-template-columns: 92px 1fr auto; gap: 8px; }
  .appname { display: none; }
  .tl-share-fab { right: 10px; bottom: 10px; }
}
