/* 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-hero { text-align: left; padding: 72px 0 64px; }
.app-tile { display: flex; flex-direction: column; gap: 10px; }
.app-tile .icons { font-size: 1.7rem; letter-spacing: .18em; }
.badge-soon { display: inline-block; font-size: .78rem; color: var(--muted); border: 1px dashed var(--line);
  border-radius: 999px; padding: 3px 12px; }

/* ---------- footer ---------- */
.site-footer { background: #0b1220; color: #94a3b8; padding: 34px 0 40px; font-size: .88rem; }
.site-footer a { color: #cbd5e1; margin-right: 18px; }
.site-footer .links { margin-bottom: 12px; }
.site-footer .copy { opacity: .75; }

/* 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; }

@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; }
}
