*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #111315;
  --surface: #1a1d20;
  --border:  #2c2f33;
  --accent:  #e8562a;
  --text:    #e2e4e9;
  --muted:   #6b7280;
  --win:     #34d464;
  --loss:    #e8562a;
  --radius:  10px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

/* ── Header ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(17,19,21,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
}

.site-name {
  font-size: 1rem;
  font-weight: 700;
  margin-right: auto;
  letter-spacing: .3px;
}

nav { display: flex; gap: 24px; }
nav a { color: var(--muted); font-size: .9rem; transition: color .15s; }
nav a:hover { color: var(--text); }

/* ── Hero ── */
.hero {
  padding: 72px 24px 56px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero-inner { max-width: 560px; margin: 0 auto; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 14px;
}

.hero-sub {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-val {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── Games section ── */
.games-section { padding: 0; }

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px 24px;
}

.games-header {
  margin-bottom: 28px;
}

h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

/* ── Cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.skeleton-card {
  height: 190px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .15s;
}
.match-card:hover { border-color: #444; }

.card-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.team-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.team-abbr {
  font-size: 1.1rem;
  font-weight: 700;
}

.team-name {
  font-size: .68rem;
  color: var(--muted);
  text-align: center;
}

.vs-divider {
  font-size: .75rem;
  color: var(--muted);
  padding: 0 10px;
}

.card-scores {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.score {
  font-size: 1.8rem;
  font-weight: 800;
  flex: 1;
  text-align: center;
}

.score-sep {
  color: var(--muted);
  font-size: .85rem;
  padding: 0 6px;
}

.prob-bar {
  display: flex;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
  background: var(--border);
}

.prob-bar-a {
  background: var(--win);
  transition: width .7s ease;
}

.prob-bar-b {
  background: var(--loss);
  transition: width .7s ease;
}

.prob-labels {
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
}

.prob-labels .pct-a { color: var(--win); font-weight: 600; }
.prob-labels .pct-b { color: var(--loss); font-weight: 600; }

.pick-label {
  display: block;
  margin-top: 10px;
  font-size: .75rem;
  color: var(--muted);
}

.pick-label span { color: var(--text); font-weight: 600; }

.footer-note {
  margin-top: 24px;
  font-size: .78rem;
  color: var(--muted);
}

/* no games */
.no-games {
  grid-column: 1 / -1;
  padding: 56px 24px;
  color: var(--muted);
  text-align: center;
}
.no-games p { font-size: 1rem; margin-bottom: 6px; }
.no-games-sub { font-size: .85rem; }

/* ── About ── */
.about-section {
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 28px;
}

.about-block h3 {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.about-block p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  font-size: .82rem;
  color: var(--muted);
}

footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

@media (max-width: 600px) {
  .hero { padding: 52px 20px 40px; }
  nav { gap: 16px; }
}
