:root {
  /* 낮 경기: 내야 흙빛 바탕, 상아색 카드, 잔디 초록, 전광판 남색 */
  --bg: #e9dcc8;
  --glow: rgba(255, 250, 240, 0.55);
  --surface: #fffcf6;
  --surface-2: #f2e9db;
  --head: #e4ecdf;
  --text: #1f1a14;
  --muted: #5e5446;
  --line: #e3d5bf;
  --accent: #1a6a43;
  --accent-soft: #e0eee4;
  --clay: #a64d22;
  --turf-1: #175a3a;
  --turf-2: #1c6644;
  --board: #102338;
  --board-text: #c9d3dc;
  --gold: #f3c44f;
  --up: #1a8f3c;
  --down: #c62828;
  --warn-bg: #fff4d6;
  --warn-text: #6b4a00;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(74, 48, 22, 0.08), 0 6px 18px rgba(74, 48, 22, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* 야간 경기: 짙은 흙빛 바탕, 조명 받은 잔디, 따뜻한 흙색 */
    --bg: #14100c;
    --glow: rgba(255, 205, 140, 0.06);
    --surface: #1d1814;
    --surface-2: #28211b;
    --head: #1a271e;
    --text: #ece6dc;
    --muted: #aca291;
    --line: #352c24;
    --accent: #6cc495;
    --accent-soft: #17291f;
    --clay: #e28a5c;
    --turf-1: #113d29;
    --turf-2: #154832;
    --board: #0b0907;
    --board-text: #b8ad9c;
    --gold: #f3c44f;
    --up: #4cc26e;
    --down: #ff7070;
    --warn-bg: #3a2f10;
    --warn-text: #f3d98a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  /* 야간 경기: 짙은 흙빛 바탕, 조명 받은 잔디, 따뜻한 흙색 */
  --bg: #14100c;
  --glow: rgba(255, 205, 140, 0.06);
  --surface: #1d1814;
  --surface-2: #28211b;
  --head: #1a271e;
  --text: #ece6dc;
  --muted: #aca291;
  --line: #352c24;
  --accent: #6cc495;
  --accent-soft: #17291f;
  --clay: #e28a5c;
  --turf-1: #113d29;
  --turf-2: #154832;
  --board: #0b0907;
  --board-text: #b8ad9c;
  --gold: #f3c44f;
  --up: #4cc26e;
  --down: #ff7070;
  --warn-bg: #3a2f10;
  --warn-text: #f3d98a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% -10%, var(--glow), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  background-attachment: fixed, scroll;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

/* ---------- 머리글: 잔디 깎은 줄무늬 */
header.site {
  background: repeating-linear-gradient(90deg, var(--turf-1) 0 56px, var(--turf-2) 56px 112px);
  border-bottom: 3px solid var(--clay);
  position: sticky;
  top: 0;
  z-index: 20;
}
header.site .wrap { display: flex; align-items: center; gap: 24px; min-height: 56px; }
.brand { font-weight: 800; font-size: 1.2rem; color: #ffffff; white-space: nowrap; letter-spacing: -0.01em; }
.brand span { color: var(--gold); }
.brand:hover { text-decoration: none; }
nav.main { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
nav.main::-webkit-scrollbar { display: none; }
nav.main a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
nav.main a:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; text-decoration: none; }
nav.main a[aria-current="page"] { color: #ffffff; font-weight: 700; background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 -2px 0 var(--gold); }

/* ---------- 본문 */
main.wrap { padding-top: 24px; padding-bottom: 56px; }
h1 { font-size: 1.7rem; margin: 0 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; margin: 32px 0 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
main h2::before { content: ""; width: 9px; height: 9px; background: var(--clay); transform: rotate(45deg); border-radius: 1px; flex: none; }
h3 { font-size: 1rem; margin: 0 0 10px; }
.lead { color: var(--muted); margin: 0 0 20px; }
.meta { color: var(--muted); font-size: 0.85rem; }
.note { margin: 10px 2px 0; line-height: 1.5; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 4px; }

.notice {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.more-link { font-size: 0.82rem; white-space: nowrap; }

.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid.leaders { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.split { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* 홈 바로가기 */
.shortcuts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 4px 0 8px; }
.shortcut {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
}
.shortcut:hover { border-color: var(--accent); text-decoration: none; }
.shortcut strong { display: block; }
.shortcut span { color: var(--muted); font-size: 0.82rem; }

/* ---------- 배지·아바타 */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6em;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.4;
  white-space: nowrap;
}
.badge.lg { font-size: 0.9rem; min-width: 3em; padding: 4px 8px; border-radius: 8px; }
.badge.xl {
  font-size: 1.6rem;
  min-width: 2.8em;
  padding: 10px 12px;
  border-radius: 14px;
  border: 2px solid currentColor;
  background: rgba(255, 255, 255, 0.12);
}
.team-cell { display: inline-flex; align-items: center; gap: 6px; color: var(--text); white-space: nowrap; }
a.team-cell:hover { text-decoration: none; }
a.team-cell:hover .team-name { text-decoration: underline; }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.8rem;
  flex: none;
}
.avatar.sm { width: 28px; height: 28px; font-size: 0.68rem; }
.avatar.xl { width: 84px; height: 84px; font-size: 1.7rem; }

.chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}
.chip.ok { background: var(--accent-soft); color: var(--accent); }
.clinch {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 4px;
  cursor: help;
}

/* ---------- 표 도구 */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin-bottom: 10px; }
.toolbar.views { align-items: center; }
.toolbar input[type="search"], .field select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}
.toolbar input[type="search"] { flex: 1 1 200px; max-width: 280px; }
.field { display: flex; flex-direction: column; gap: 2px; }
.field-label { font-size: 0.75rem; color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; cursor: pointer; padding: 6px 0; }

.segmented { display: inline-flex; flex-wrap: wrap; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.segmented button, .tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.segmented .custom { align-self: center; margin: 0 6px; }
.segmented button[aria-pressed="true"], .tabs button[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.chooser summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.88rem;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.chooser summary::-webkit-details-marker { display: none; }
.chooser summary::after { content: " ▾"; color: var(--muted); }
.chooser[open] { flex-basis: 100%; order: 3; }
.chooser[open] summary::after { content: " ▴"; }
.chooser-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0 12px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.chooser-list .check { font-size: 0.85rem; padding: 4px 0; }
.views .meta { margin-left: auto; }

/* ---------- 표 */
.table-wrap {
  overflow: auto;
  max-height: 72vh;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.table-wrap.plain { max-height: none; border: 0; border-radius: 0; background: transparent; }

table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 0.88rem; }
th, td { padding: 8px 10px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { box-shadow: inset 0 0 0 9999px rgba(127, 127, 127, 0.06); }

table.data thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--head);
  font-weight: 700;
  font-size: 0.82rem;
}
table.data th.sticky, table.data td.sticky { position: sticky; left: 0; z-index: 1; background: var(--surface); }
table.data thead th.sticky { z-index: 3; background: var(--head); }
table.data td.sticky { box-shadow: 1px 0 0 var(--line); }
.idx { color: var(--muted); font-size: 0.78rem; width: 1%; }

th button.sort {
  all: unset;
  cursor: pointer;
  display: inline-block;
  color: var(--text);
}
th button.sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
th[title] button.sort { text-decoration: underline dotted var(--muted); text-underline-offset: 3px; }
th[aria-sort="ascending"] button.sort::after { content: " ▲"; font-size: 0.7em; }
th[aria-sort="descending"] button.sort::after { content: " ▼"; font-size: 0.7em; }

.empty { padding: 28px; text-align: center; color: var(--muted); }
.more {
  display: block;
  margin: 10px auto 0;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.more[hidden] { display: none; }

/* ---------- 리더 카드 */
.leader-list { list-style: none; margin: 0; padding: 0; }
.leader-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}
.leader-list li:first-child { border-top: 0; }
.leader-list .rank { width: 1.4em; text-align: center; color: var(--muted); font-weight: 700; font-size: 0.85rem; }
.leader-list li:first-child .rank { color: var(--clay); }
.leader-list .who { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 2px; }
.leader-list .who a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-list .who .team-cell { font-size: 0.78rem; color: var(--muted); }
.leader-list .value { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.leader-list .value small { font-weight: 400; color: var(--muted); }
.pitch-chip {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  border-radius: 6px;
  padding: 2px 6px;
  white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

/* ---------- 파워랭킹 */
.power-list { list-style: none; margin: 0; padding: 0; }
.power-list li {
  display: grid;
  grid-template-columns: 2em 2.6em minmax(120px, 1.2fr) minmax(60px, 2fr) 3.2em 4.4em;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.power-list li:first-child { border-top: 0; }
.power-list .rank { font-weight: 800; text-align: center; }
.power-list .bar { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.power-list .fill { display: block; height: 100%; border-radius: 5px; }
.power-list .value { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.power-list .record { color: var(--muted); text-align: right; font-size: 0.82rem; }
.change { font-size: 0.78rem; color: var(--muted); text-align: center; }
.change.up { color: var(--up); }
.change.down { color: var(--down); }
@media (max-width: 560px) {
  .power-list li { grid-template-columns: 1.6em 2.2em minmax(0, 1fr) 3em; }
  .power-list .bar, .power-list .record { display: none; }
}

/* 지구 1위 */
.mini-teams { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.mini-team {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--text);
  font-size: 0.85rem;
}
.mini-team:hover { text-decoration: none; border-color: var(--accent); }
.mini-team .record { color: var(--muted); font-size: 0.8rem; }

/* ---------- 순위표 */
.tabs { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; margin-bottom: 16px; }
.divisions { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); }
table.standings th { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
table.standings { font-size: 0.85rem; }
table.standings td, table.standings th { padding: 7px 6px; }
.diff { display: inline-flex; align-items: center; gap: 6px; }
.diff-track { position: relative; width: 40px; height: 8px; background: var(--surface-2); border-radius: 4px; }
.diff-fill { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.diff-fill.pos { left: 50%; background: var(--up); }
.diff-fill.neg { right: 50%; background: var(--down); }
.diff-num { min-width: 3em; text-align: right; font-variant-numeric: tabular-nums; font-size: 0.85rem; }

/* ---------- 팀 */
.division-group h2 { margin-top: 24px; font-size: 1.05rem; color: var(--muted); }
.team-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.team-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  box-shadow: var(--shadow);
}
.team-card:hover { text-decoration: none; border-color: var(--accent); }
.team-card-head { display: flex; align-items: center; gap: 8px; }
.team-card .record { color: var(--muted); font-size: 0.85rem; }
.team-card-stats { display: flex; gap: 12px; font-size: 0.8rem; color: var(--muted); }
.team-card-stats b { color: var(--text); }

.team-head {
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
}
.team-head h1 { margin: 0; font-size: 1.9rem; }
.team-head-sub { margin: 0; opacity: 0.85; font-size: 0.9rem; }
.team-head-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.team-head-chips span { background: rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 2px 10px; font-size: 0.82rem; }

.tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); margin-bottom: 16px; }
.tile {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.tile-label { font-size: 0.78rem; color: var(--muted); }
.tile-value { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.tile-sub { font-size: 0.75rem; color: var(--muted); }

/* ---------- 선수 */
.player-head {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 6px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.player-head h1 { margin: 0 0 4px; }
.player-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; color: var(--muted); font-size: 0.92rem; }
.ext-links { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 0; font-size: 0.85rem; }

.pct-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.pct-row { display: grid; grid-template-columns: minmax(110px, 9em) minmax(0, 1fr) 5.5em; align-items: center; gap: 12px; font-size: 0.88rem; }
.pct-label { color: var(--muted); }
.pct-label[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.pct-track { position: relative; height: 10px; background: var(--surface-2); border-radius: 5px; }
.pct-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; }
.pct-dot {
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
}
.pct-none { position: absolute; top: -4px; font-size: 0.78rem; }
.pct-value { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

.usage { margin: 6px 0 16px; }
.usage-bar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.usage-bar span { height: 100%; }
.usage-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0; padding: 0; font-size: 0.85rem; }
.usage-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }

/* ---------- 용어 */
.glossary { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.glossary dl { margin: 0; }
.glossary dt { font-weight: 700; margin-top: 10px; }
.glossary dt:first-child { margin-top: 0; }
.glossary dd { margin: 2px 0 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- 바닥글: 전광판 */
footer.site {
  background: var(--board);
  border-top: 3px solid var(--turf-2);
  color: var(--board-text);
  font-size: 0.82rem;
  padding: 22px 0 32px;
}
footer.site p { margin: 0 0 6px; }

/* ---------- 홈 첫 화면: 잔디와 내야 다이아몬드 */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 28px 28px 26px;
  margin-bottom: 20px;
  color: #ffffff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.22' stroke-width='2'%3E%3Cpath d='M100 180 L180 100 L100 20 L20 100 Z'/%3E%3Ccircle cx='100' cy='100' r='14'/%3E%3C/g%3E%3Cg fill='%23ffffff' fill-opacity='.35'%3E%3Crect x='94' y='174' width='12' height='12' transform='rotate(45 100 180)'/%3E%3Crect x='174' y='94' width='10' height='10' transform='rotate(45 179 99)'/%3E%3Crect x='95' y='15' width='10' height='10' transform='rotate(45 100 20)'/%3E%3Crect x='15' y='95' width='10' height='10' transform='rotate(45 20 100)'/%3E%3C/g%3E%3C/svg%3E") right -30px center / 260px no-repeat,
    repeating-linear-gradient(90deg, var(--turf-1) 0 64px, var(--turf-2) 64px 128px);
  box-shadow: inset 0 -6px 0 var(--clay);
}
.hero h1 { font-size: 2rem; margin: 0 0 6px; }
.hero h1 span { color: var(--gold); }
.hero p { margin: 0; color: rgba(255, 255, 255, 0.86); max-width: 640px; }
.hero .meta { color: rgba(255, 255, 255, 0.72); }

@media (max-width: 640px) {
  h1 { font-size: 1.45rem; }
  header.site .wrap { gap: 12px; }
  .team-head { flex-direction: column; align-items: flex-start; padding: 18px; }
  .player-head { flex-direction: column; align-items: flex-start; }
  .views .meta { margin-left: 0; flex-basis: 100%; }
  .pct-row { grid-template-columns: 6.5em minmax(0, 1fr) 4.5em; gap: 10px; }
}

/* ---------- 공식 로고·선수 사진 (mlbstatic.com에서 직접 불러옴) */
.logo-wrap { display: inline-flex; flex: none; }
.logo { width: 22px; height: 22px; object-fit: contain; }
.logo.lg { width: 36px; height: 36px; }
.logo.xl { width: 76px; height: 76px; }
.logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 18px;
  padding: 10px;
  flex: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.avatar { position: relative; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.has-photo { background: var(--surface-2) !important; }
.team-card-head .team-cell { gap: 0; }
