body {
  background: linear-gradient(180deg,#eef3fb 0%,#f7f9fc 60%,#ffffff 100%);
  font-family: system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size: 15px;
  line-height: 1.45;
  padding-top: 12px;
}
\n/* Base */
:root{
  --bg: #f2f5f9;
  --card: #ffffff;
  --text: #111;
  --muted: #5b6472;
  --border: rgba(17, 17, 17, 0.08);
  --shadow: 0 6px 18px rgba(17, 17, 17, 0.08);
}

* { box-sizing: border-box; }

a { color: inherit; }
pre { margin: 0; }
code { background: rgba(17,17,17,0.06); padding: 2px 6px; border-radius: 6px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.bad { color: #b00; }

.mt6 { margin-top: 6px; }
.mt8 { margin-top: 8px; }
.mt12 { margin-top: 12px; }
.hidden { display: none; }

/* Centered page column */
.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 16px 48px;
}

/* Layout */
.row{
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

/* Cards */
.card{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.card-wide{
  width: 100%;
}

/* Header */
/* Header (single source of truth) */
#site-header{
  background: #ffffff;
  text-align: center;
  padding: 18px 18px 16px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}

#site-header .header-tagline{
  font-family: "IBM Plex Sans", Inter, Arial, sans-serif;
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

/* Section headings */
.section-title{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.section-title--small{
  margin-bottom: 8px;
}

/* Games grid */
.games{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
}

.game{
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

.game .top{
  display:flex;
  justify-content:space-between;
  gap: 6px;
  flex-wrap:wrap;
}

/* Tournament lists (compact + clear affordance) */
.games.tournaments { gap: 6px; }

.games.tournaments .game{
  padding: 8px 10px;
  background: #e9edf3;
  border-left: 4px solid transparent;
  transition: border-left-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.game-link{
  display:block;
  text-decoration:none;
  cursor:pointer;
}

.games.tournaments .game-link{
  color: var(--text);
  font-weight: 600;
}

.games.tournaments .game:hover,
.games.tournaments .game:focus-within{
  background: #e9edf3;
  box-shadow: 0 2px 10px rgba(17,17,17,0.06);
  border-left-color: #2e7d32;
}

/* Past section helpers */
.sub-section{ margin-top: 12px; }
.sub-title{ font-weight: 600; margin: 6px 0; }

/* Chart */
.chartwrap{ margin-top: 10px; }
canvas{ width: 100% !important; height: 225px !important; }

/* --- V3 polish (minimal) --- */

/* Slightly nicer typography */
/* Header: subtle accent + tighter */
/* Cards: slightly softer */
.card{
  box-shadow: 0 8px 22px rgba(17, 17, 17, 0.07);
}

/* Game cards: make the top row breathe */
.game .top{
  gap: 10px;
  align-items: baseline;
}
.game{
  padding: 12px 14px;
}

/* Make section titles a bit clearer */
.section-title{
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* --- end V3 polish --- */

/* Header spacing fix */
/* HEADER POLISH V2 */

#site-header .header-tagline {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
  letter-spacing: 0.2px;
}


/* PROFESSIONAL COLOR ACCENT */

:root{
  --accent: #2a5db0;
}

/* section headings */
.section-title{
  color: var(--accent);
}

/* card subtle top border */
.card{
  border-top: 1px solid rgba(46,125,50,0.25);
}

/* tournament hover already green — strengthen slightly */
.games.tournaments .game:hover,
.games.tournaments .game:focus-within{
  border-left-color: var(--accent);
}

/* links (future-proof) */
a:hover{
  color: var(--accent);
}


/* === OVERRIDE: kill green top-lines, use deep blue === */
:root { --accent: #2a5db0; }

/* cards/sections */
.card, .card-wide {
  border-top: 1px solid var(--accent) !important;
}

/* game boxes (live + tournaments) */
.game {
  border-top: 1px solid var(--accent) !important;
}

/* tournament hover left bar */
.games.tournaments .game:hover,
.games.tournaments .game:focus-within {
  border-left-color: var(--accent) !important;
}


/* BADGRAPH_FONT_HEADER_BRAND */
/* BADGRAPH_FONT_HEADER_BRAND */

/* BADGRAPH_HEADER_BRAND_FINAL */

/* BADGRAPH_HEADER_BRAND */
#site-header .header-brand{
  font-family: "Sora", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.15;
}

/* BADGRAPH_FIX_VISIBILITY_20260305 */
#games, #current_tournaments, #past_tournaments { color: #111; }
#games .game, #current_tournaments .game, #past_tournaments .game {
  background: #fff;
  border-color: rgba(0,0,0,0.12);
}
#games .muted, #current_tournaments .muted, #past_tournaments .muted { color: #666; }
/* END BADGRAPH_FIX_VISIBILITY_20260305 */

/* BADGRAPH_CARD_POLISH_20260305 */
#games .game, #current_tournaments .game, #past_tournaments .game {
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
/* END BADGRAPH_CARD_POLISH_20260305 */


/* BADGRAPH_PROBABILITY_EMPHASIS_20260305 */
.game .prob, .game .p_match, .game .p_set {
  font-weight: 600;
  font-size: 1.05em;
  color: #1d4ed8;
}
/* END BADGRAPH_PROBABILITY_EMPHASIS_20260305 */


/* BADGRAPH_CARD_READABILITY_20260305 */
#games .game {
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.game strong {
  font-size: 1.06em;
}
/* END BADGRAPH_CARD_READABILITY_20260305 */


/* BADGRAPH_TOURNAMENT_SPACING_FIX_20260305 */
.games.tournaments { gap: 4px !important; }
.games.tournaments .game {
  margin: 0 !important;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}
/* END BADGRAPH_TOURNAMENT_SPACING_FIX_20260305 */

/* BEGIN badgraph header bg override */
/* END badgraph header bg override */
