/* ====== MCWS tracker — The Draw brand family, infield-clay accent ====== */
:root {
  --bg: #0a0e0b;
  --panel-solid: #121814;
  --line: #1f2a22;
  --line-bright: #2e4033;
  --text: #e9f1e9;
  --dim: #7e9183;
  --faint: #54655a;
  --lime: #b6f34a;
  --clay: #e8a33d;       /* competition accent */
  --clay-dark: #4a3c1c;
  --red: #ef5a5a;
  --mono: 'IBM Plex Mono', monospace;
  --disp: 'Saira Condensed', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--disp); background: var(--bg); color: var(--text); min-height: 100vh; -webkit-font-smoothing: antialiased; }
.pitch-stripes {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 500px at 50% -200px, rgba(232,163,61,.06), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 90px, rgba(255,255,255,.014) 90px 180px);
}
.app { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; padding: 28px 16px 60px; }

/* masthead */
.masthead { text-align: center; margin-bottom: 26px; position: relative; }
.home-link {
  position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: 10px; letter-spacing: 2px;
  color: var(--dim); text-decoration: none; border: 1px solid var(--line); padding: 4px 9px; background: var(--panel-solid);
}
.home-link:hover { color: var(--lime); border-color: var(--line-bright); }
.host-line { font-size: 11px; letter-spacing: 4px; font-weight: 700; color: var(--dim); }
.masthead h1 { font-size: clamp(34px, 7vw, 60px); font-weight: 900; font-style: italic; letter-spacing: 1px; line-height: 1.05; margin: 8px 0 2px; }
.masthead h1 .accent { color: var(--clay); }
.tagline { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--faint); }
.stat-strip { display: flex; justify-content: center; gap: 24px; margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--dim); flex-wrap: wrap; }
.stat-strip b { color: var(--text); font-size: 16px; display: block; text-align: center; }
.live-cell b { color: var(--red); animation: livepulse 1.6s ease-in-out infinite; }

.section-h {
  font-size: 14px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase;
  color: var(--clay); margin: 34px 0 12px; display: flex; align-items: center; gap: 12px;
}
.section-h::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.section-h .sub { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; color: var(--faint); font-weight: 500; text-transform: none; }
.champ-inline { color: var(--lime); }

/* game cards */
.gm { background: var(--panel-solid); border: 1px solid var(--line); margin-bottom: 8px; }
.gm.live { border-color: #5a2c2c; }
.gm.skipped { opacity: .45; border-style: dashed; }
.gm .gm-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9px; color: var(--faint); padding: 4px 9px 0; letter-spacing: .5px; }
.gm .trow { display: flex; align-items: center; gap: 7px; padding: 4px 9px; font-size: 15px; font-weight: 700; }
.gm .trow .seed { font-family: var(--mono); font-size: 9px; color: var(--faint); min-width: 14px; text-align: right; }
.gm .trow .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm .trow .sc { font-family: var(--mono); font-size: 14px; color: var(--dim); min-width: 18px; text-align: right; }
.gm .trow.w .nm, .gm .trow.w .sc { color: var(--lime); }
.gm .trow.l .nm { color: var(--dim); }
.gm .trow .ph, .ph { color: var(--faint); font-weight: 500; font-size: 12px; font-style: italic; }
.ko { color: var(--dim); font-size: 9px; }
.fin { color: var(--lime); font-weight: 700; }
.skip { color: var(--faint); letter-spacing: 1px; }
.stopped { color: var(--clay); font-weight: 700; letter-spacing: 1px; }

/* double-elim grid */
.delim-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dcol-h { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; color: var(--faint); text-transform: uppercase; margin-bottom: 6px; }
.dcol { display: flex; flex-direction: column; justify-content: flex-start; }
.dcol .gm { width: 100%; }

/* championship series */
.cs-head { font-size: 24px; font-weight: 900; font-style: italic; text-align: center; margin: 6px 0 14px; }
.cs-head .vs { color: var(--faint); font-size: 15px; font-style: normal; margin: 0 10px; }
.cs-head b { color: var(--clay); }
.cs-games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.champion-banner {
  text-align: center; font-size: 26px; font-weight: 900; font-style: italic; letter-spacing: 1px;
  color: var(--lime); border: 1px solid var(--lime); padding: 16px; margin-bottom: 14px;
  background: rgba(182, 243, 74, .05);
}

/* schedule */
.day-h { font-size: 15px; font-weight: 800; font-style: italic; letter-spacing: 2px; text-transform: uppercase; margin: 20px 0 6px; display: flex; align-items: center; gap: 10px; }
.day-h .today-chip { font-style: normal; font-family: var(--mono); font-size: 9px; letter-spacing: 2px; background: var(--clay); color: #14100a; padding: 2px 8px; font-weight: 700; }
.day-h::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.srow {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center;
  background: var(--panel-solid); border: 1px solid var(--line); padding: 9px 12px; margin-bottom: 5px;
}
.srow.skipped { opacity: .4; border-style: dashed; }
.srow.clickable { cursor: pointer; }
.srow.clickable:hover { border-color: var(--line-bright); }
.srow .snum { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.srow .steams { font-size: 15px; font-weight: 700; }
.srow .steams .at { color: var(--faint); font-weight: 400; font-size: 12px; margin: 0 6px; }
.srow .steams .w { color: var(--lime); }
.srow .smid { font-family: var(--mono); font-size: 12px; text-align: right; }
.srow .sc { font-weight: 700; color: var(--lime); margin-right: 8px; }
.srow .sc.islive { color: var(--red); }
.linescore { background: #0d130f; border: 1px solid var(--line); border-top: 1px dashed var(--line); margin: -5px 0 5px; padding: 8px 12px; overflow-x: auto; }
.linescore table { border-collapse: collapse; font-family: var(--mono); font-size: 11px; width: 100%; }
.linescore th { color: var(--faint); font-weight: 600; padding: 2px 6px; text-align: center; }
.linescore td { color: var(--dim); padding: 2px 6px; text-align: center; }
.linescore td.t { text-align: left; color: var(--text); white-space: nowrap; }
.linescore .rhe { border-left: 1px solid var(--line); color: var(--text); font-weight: 700; }

/* live + footer */
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.livemin { color: var(--red) !important; font-weight: 700; animation: livepulse 1.6s ease-in-out infinite; }
.foot { margin-top: 50px; border-top: 1px solid var(--line); padding-top: 14px; }
.foot-note { font-family: var(--mono); font-size: 11px; color: var(--dim); margin-bottom: 8px; }
.foot-rules { font-family: var(--mono); font-size: 10px; color: var(--faint); line-height: 1.7; }
.foot-rules a { color: inherit; }

@media (max-width: 760px) {
  .delim-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-games { grid-template-columns: 1fr; }
  .srow .steams { font-size: 13px; }
  .masthead h1 { font-size: 30px; }
}
