/* Public So kèo additions (.claude/specs/public-sokeo.md §1.4, §6.3; .claude/specs/public-sokeo-home.md
   Q5, AC22, contract C10). The match view keeps the page's own tokens (forced light theme), so its
   charts are unchanged; the homepage follows the approved canvas. One accent per page (D-P16): the
   homepage uses the canvas accent #1550c5, while what the public layer adds to the match page (match
   head, pool toggle) uses the canvas neutrals with the page's own accent var(--series-1). */
#refresh-btn, .pool-edit, .pool-reset, #pool-dialog, #mode-team, #mode-entry, #mode-oz, #mode-players, #pick-form { display: none !important; }
.sokeo-disclaimer {
  margin: 0; padding: 6px 16px; font-size: .78rem; line-height: 1.4; text-align: center;
  color: var(--text-secondary); border-bottom: 1px solid var(--border);
}

/* views: home.js sets html.sokeo-home | html.sokeo-match before the body is parsed */
html.sokeo-home body > :not(.sokeo-disclaimer):not(.topbar):not(#sokeo-home):not(footer) { display: none !important; }
html.sokeo-home body { background: #f3f5f8; }
#sokeo-home, #sokeo-match-head { display: none; }
html.sokeo-home #sokeo-home, html.sokeo-match #sokeo-match-head { display: block; }

#sokeo-home, #sokeo-match-head {
  --sh-sheet: #ffffff; --sh-line: #e3e7ee; --sh-soft: #eef1f5; --sh-ink: #121722; --sh-muted: #4a5363;
  --sh-dog: #b8c0cc; --sh-bar: #dfe4ec;
  --sh-chip: #1f2937; --sh-zone: #eef3fd; --sh-few-bg: #fdf3d8; --sh-few-ink: #7a4f00;
  font-family: var(--font-ui); color: var(--sh-ink); font-size: 16px; line-height: 1.5;
}
/* one accent per page (D-P16) */
#sokeo-home { --sh-accent: #1550c5; --sh-accent-hover: #0f3d99; }
#sokeo-match-head { --sh-accent: var(--series-1); }
/* the homepage keeps the LAN topbar: its "⚡ LOL" link and the active mode button read --series-1 /
   --accent-soft / --accent-ring, re-pointed here to the canvas accent (the match page keeps its own) */
html.sokeo-home .topbar { --series-1: #1550c5; --accent-soft: rgba(21, 80, 197, .10); --accent-ring: rgba(21, 80, 197, .35); }
.sh-wrap { max-width: 1120px; margin: 0 auto; padding: 36px 24px 8px; box-sizing: border-box; }
.sh-sheet { background: var(--sh-sheet); border: 1px solid var(--sh-line); border-radius: 14px; }
.sh-time, .sh-count, .sh-rec, .sh-pct, .sh-am, .sh-val, .sh-state, .sh-updated { font-variant-numeric: tabular-nums; }
.sh-chip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--sh-chip); color: #ffffff; white-space: nowrap; }
.sh-chip[hidden], .sh-split[hidden], .sh-zone[hidden], .sh-updated[hidden] { display: none; }
.sh-spot-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 20px 32px 0; }
.sh-kicker { font-size: 14px; font-weight: 600; color: var(--sh-muted); }
.sh-kicker.sh-live { color: var(--sh-accent); letter-spacing: .04em; }
.sh-spot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 24px 32px 28px; }
.sh-side { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.sh-logo-xl { width: 96px; height: 96px; object-fit: contain; }
.sh-tn { font-weight: 700; font-size: 28px; line-height: 1.15; letter-spacing: -0.015em; }
.sh-rec, .sh-note, .sh-count, .sh-plab, .sh-updated, .sh-pnote, .sh-tz { font-size: 13px; color: var(--sh-muted); }
.sh-mid { display: flex; flex-direction: column; gap: 12px; }
.sh-when, .sh-pnote, .sh-updated { text-align: center; }
.sh-spot .sh-time { display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }
.sh-price { display: flex; flex-direction: column; gap: 10px; }
.sh-prow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sh-pct { font-size: 22px; font-weight: 700; }
.sh-split { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--sh-bar); }
.sh-split > div { background: var(--sh-dog); }
.sh-split > div.is-fav { background: var(--sh-ink); }
.sh-zone { align-self: center; padding: 4px 12px; border-radius: 999px; background: var(--sh-zone); font-size: 14px; font-weight: 600; }
.sh-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--sh-soft); }
.sh-fact { padding: 18px 24px; border-left: 1px solid var(--sh-soft); }
.sh-fact:first-child { border-left: 0; }
.sh-lab { font-size: 13px; color: var(--sh-muted); font-weight: 500; }
.sh-val { font-size: 18px; font-weight: 700; margin-top: 2px; }
.sh-n { font-size: 13px; font-weight: 400; color: var(--sh-muted); }
.sh-few { display: inline-flex; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--sh-few-bg); color: var(--sh-few-ink); font-size: 12px; font-weight: 600; vertical-align: middle; }
.sh-cta { display: flex; justify-content: center; padding: 4px 24px 28px; }
.sh-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--sh-accent); color: #ffffff; font-weight: 600; text-decoration: none; transition: background .15s, transform .15s; }
.sh-btn:hover { background: var(--sh-accent-hover); color: #ffffff; transform: translateY(-1px); }
.sh-next { margin-top: 40px; }
.sh-next-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.sh-next-head h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.sh-cards { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 6px; }
.sh-card { flex: 0 0 340px; display: flex; flex-direction: column; gap: 14px; padding: 20px; text-decoration: none; color: var(--sh-ink); transition: transform .15s, box-shadow .15s; }
.sh-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(18, 23, 34, .08); color: var(--sh-ink); }
.sh-card-top, .sh-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sh-card .sh-time { font-weight: 700; }
.sh-card-foot { border-top: 1px solid var(--sh-soft); padding-top: 12px; }
.sh-trow { display: flex; align-items: center; gap: 10px; }
.sh-logo { width: 36px; height: 36px; object-fit: contain; flex: none; }
.sh-tname { font-weight: 700; font-size: 17px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-card .sh-rec { font-size: 14px; font-weight: 600; }
.sh-state { display: inline-flex; padding: 5px 12px; border-radius: 999px; background: var(--sh-soft); color: var(--sh-muted); font-size: 14px; font-weight: 500; }
.sh-go { color: var(--sh-accent); font-weight: 600; white-space: nowrap; flex: none; }
.sh-empty { padding: 48px 0; text-align: center; color: var(--sh-muted); }
.sh-btn:focus-visible, .sh-card:focus-visible, .sh-back:focus-visible { outline: 2px solid var(--sh-accent); outline-offset: 2px; }

/* match head (back link + title line) */
.sh-match-head { max-width: 1120px; margin: 0 auto; padding: 16px 16px 4px; box-sizing: border-box; }
.sh-back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--sh-accent); }
.sh-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin: 6px 0 12px; }
.sh-h1 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; }
.sh-match-head .sh-time { font-size: 13px; color: var(--sh-muted); }

/* "Đội hình hiện tại / Toàn đội" toggle (post.js) */
.sokeo-seg-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.sokeo-seg { display: inline-flex; padding: 3px; border: 1px solid #d5dbe5; border-radius: 10px; background: #f3f5f8; gap: 2px; }
.sokeo-seg-btn { font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: #4a5363; cursor: pointer; transition: background .15s, color .15s; }
.sokeo-seg-btn:hover { color: #121722; }
.sokeo-seg-btn[aria-pressed="true"] { background: var(--series-1); color: var(--accent-contrast); }
.sokeo-seg-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.sokeo-seg-btn:focus-visible { outline: 2px solid var(--series-1); outline-offset: 2px; }
.sokeo-seg-help { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px; border: 1px solid #d5dbe5; color: #4a5363; font-size: 13px; font-weight: 700; cursor: help; background: #ffffff; }
.sokeo-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 760px) {
  .sh-wrap { padding: 24px 16px 8px; }
  .sh-spot-head { padding: 16px 20px 0; }
  .sh-spot-grid { grid-template-columns: 1fr; padding: 20px; }
  .sh-facts { grid-template-columns: 1fr; }
  .sh-fact { border-left: 0; border-top: 1px solid var(--sh-soft); }
  .sh-fact:first-child { border-top: 0; }
  .sh-card { flex-basis: 280px; }
  .sh-tn { font-size: 22px; }
  .sokeo-seg-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-btn, .sh-card, .sokeo-seg-btn { transition: none; }
  .sh-btn:hover, .sh-card:hover { transform: none; }
}

/* public-sokeo-en H2 D7: the Riot Games / not-affiliated lines under the footer attribution */
.legal { color: var(--text-muted); font-size: 12px; margin: 4px 0 0; }
