/* FIFA World Cup 2026 AI Predictions — Shared Styles */
/* Mobile-first (1080x1920 target), responsive to desktop */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Montserrat:wght@700;800;900&display=swap');

:root {
  --wc-blue: #002868;
  --wc-red: #BF0A30;
  --wc-white: #FFFFFF;
  --wc-gold: #FFD700;
  --wc-dark: #0a1628;
  --wc-light: #f4f6fa;
  --wc-gray: #6b7280;
  --wc-green: #16a34a;
  --wc-amber: #d97706;
  --wc-card: #ffffff;
  --wc-border: #e5e7eb;
  --wc-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --wc-shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
  --wc-radius: 12px;
  --wc-radius-sm: 8px;
  --nav-height: 56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--wc-light);
  color: #1f2937;
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--nav-height);
}

/* ── Sticky Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: linear-gradient(135deg, var(--wc-dark) 0%, var(--wc-blue) 100%);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.nav-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 1rem;
  color: var(--wc-white);
  text-decoration: none; white-space: nowrap;
}
.nav-brand span { color: var(--wc-gold); }

.nav-links {
  display: flex; gap: 4px; align-items: center;
  list-style: none; flex-wrap: nowrap;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.8rem; font-weight: 600;
  padding: 8px 10px;
  border-radius: var(--wc-radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
  min-height: 44px; min-width: 44px;
  display: flex; align-items: center; justify-content: center;
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.15); color: var(--wc-white);
}
.nav-links .github-link {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
}
.nav-toggle {
  display: none; background: none; border: none;
  color: white; font-size: 1.5rem; cursor: pointer;
  min-height: 44px; min-width: 44px;
  align-items: center; justify-content: center;
}

/* Nav dropdown for groups */
.nav-dropdown { position: relative; }
.group-submenu {
  display: none; position: absolute;
  top: 100%; left: 0;
  background: var(--wc-dark);
  border-radius: 0 0 var(--wc-radius-sm) var(--wc-radius-sm);
  box-shadow: var(--wc-shadow-lg);
  padding: 4px; z-index: 1001;
  flex-wrap: wrap; width: 240px;
  list-style: none;
}
.group-submenu li { width: 33.33%; }
.group-submenu a {
  display: block; padding: 8px 10px;
  color: rgba(255,255,255,0.85);
  text-decoration: none; font-size: 0.8rem;
  font-weight: 600; text-align: center;
  border-radius: 4px; min-height: 36px;
}
.group-submenu a:hover { background: rgba(255,255,255,0.15); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--wc-dark);
    flex-direction: column; padding: 8px;
    box-shadow: var(--wc-shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 0.9rem; justify-content: flex-start; }
  .group-submenu { position: static; width: 100%; }
  .group-submenu li { width: 25%; }
}

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 16px; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--wc-blue) 0%, #1a3a6c 50%, var(--wc-red) 100%);
  color: white; padding: 40px 20px; text-align: center;
  border-radius: var(--wc-radius); margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='28' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='2'/%3E%3C/svg%3E") repeat;
}
.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900; font-size: 2rem;
  margin-bottom: 8px; position: relative;
}
.hero p { font-size: 1rem; opacity: 0.9; position: relative; }
.hero .link-row { position: relative; }
.hero .subtitle { font-size: 0.85rem; opacity: 0.75; margin-top: 4px; }

@media (min-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero { padding: 60px 40px; }
}

/* ── Section Headers ── */
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 1.3rem;
  color: var(--wc-dark);
  margin: 24px 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: ''; width: 4px; height: 24px;
  background: var(--wc-red); border-radius: 2px;
}

/* ── Cards ── */
.card {
  background: var(--wc-card);
  border-radius: var(--wc-radius);
  box-shadow: var(--wc-shadow);
  border: 1px solid var(--wc-border);
  overflow: hidden; transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--wc-shadow-lg); }

/* ── Group Grid ── */
.group-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
@media (min-width: 540px) { .group-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .group-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .group-grid { grid-template-columns: repeat(4, 1fr); } }

.group-card {
  background: var(--wc-card); border-radius: var(--wc-radius);
  box-shadow: var(--wc-shadow); border: 1px solid var(--wc-border);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform 0.2s, box-shadow 0.2s; display: block;
}
.group-card:hover { transform: translateY(-2px); box-shadow: var(--wc-shadow-lg); }
.group-card-header {
  background: linear-gradient(135deg, var(--wc-blue), #1a3a6c);
  color: white; padding: 10px 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 0.95rem;
}
.group-card-body { padding: 10px 14px; }
.group-team {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid var(--wc-border);
  font-size: 0.85rem; font-weight: 600;
}
.group-team:last-child { border-bottom: none; }
.group-team img { width: 28px; height: 20px; object-fit: cover; border-radius: 2px; }

/* ── Match Cards ── */
.match-card {
  background: var(--wc-card); border-radius: var(--wc-radius);
  box-shadow: var(--wc-shadow); border: 1px solid var(--wc-border);
  margin-bottom: 10px; overflow: hidden;
  cursor: pointer; transition: box-shadow 0.2s;
}
.match-card:hover { box-shadow: var(--wc-shadow-lg); }

.match-header {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 14px; gap: 8px; min-height: 60px;
}
.match-team {
  display: flex; align-items: center; gap: 6px;
  flex: 1; font-weight: 700; font-size: 0.85rem;
}
.match-team.home { justify-content: flex-end; text-align: right; }
.match-team.away { justify-content: flex-start; }
.match-team img { width: 32px; height: 22px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.match-team .team-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.match-score {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900; font-size: 1.3rem;
  color: var(--wc-dark);
  padding: 4px 10px; background: var(--wc-light);
  border-radius: var(--wc-radius-sm);
  white-space: nowrap; min-width: 50px; text-align: center;
}
.match-meta {
  display: flex; justify-content: center; gap: 12px;
  padding: 0 14px 8px;
  font-size: 0.72rem; color: var(--wc-gray);
  flex-wrap: wrap;
}
.match-meta span { display: flex; align-items: center; gap: 3px; }

.match-winner-tag {
  font-size: 0.65rem; font-weight: 700;
  padding: 2px 6px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.tag-win { background: #dcfce7; color: #166534; }
.tag-draw { background: #fef3c7; color: #92400e; }
.tag-loss { background: #fee2e2; color: #991b1b; }

/* ── Match Expand ── */
.match-details {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
  background: var(--wc-light);
  border-top: 1px solid var(--wc-border);
}
.match-card.expanded .match-details { max-height: 800px; }
.match-details-inner { padding: 14px; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-item {
  background: var(--wc-card); border-radius: var(--wc-radius-sm);
  padding: 8px 10px; text-align: center;
}
.stat-label { font-size: 0.65rem; color: var(--wc-gray); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.stat-value { font-size: 1rem; font-weight: 800; color: var(--wc-dark); margin-top: 2px; }

.prob-bar {
  display: flex; height: 28px; border-radius: 6px; overflow: hidden; margin: 8px 0;
  font-size: 0.7rem; font-weight: 700;
}
.prob-bar .win { background: var(--wc-green); color: white; display: flex; align-items: center; justify-content: center; }
.prob-bar .draw { background: var(--wc-amber); color: white; display: flex; align-items: center; justify-content: center; }
.prob-bar .loss { background: var(--wc-red); color: white; display: flex; align-items: center; justify-content: center; }

.expand-hint {
  text-align: center; font-size: 0.65rem; color: var(--wc-gray);
  padding: 2px 0 6px; transition: transform 0.3s;
}
.match-card.expanded .expand-hint { transform: rotate(180deg); }

/* ── Standings Table ── */
.standings-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; margin: 12px 0; }
.standings-table th {
  background: var(--wc-dark); color: white;
  padding: 8px 6px; font-weight: 700;
  text-align: center; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.standings-table td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--wc-border); }
.standings-table tr:hover { background: rgba(0,40,104,0.04); }
.standings-table .team-cell {
  display: flex; align-items: center; gap: 6px;
  text-align: left; font-weight: 600;
}
.standings-table .team-cell img { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; }
.standings-table .qualify { background: #f0fdf4; }
.standings-table .third { background: #fefce8; }
.standings-legend {
  font-size: 0.68rem; color: var(--wc-gray); padding: 8px 6px 4px;
  line-height: 1.7;
}
.standings-legend strong { color: var(--wc-dark); }

/* ── Bracket Tree ── */
.bracket-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin-bottom: 24px; padding-bottom: 8px;
}
.bracket {
  display: flex; gap: 4px; align-items: stretch;
  min-width: 700px; padding: 12px 0;
}
.bracket-round { display: flex; flex-direction: column; justify-content: space-around; gap: 6px; flex: 1; min-width: 110px; }
.bracket-round-title {
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: 0.65rem; text-transform: uppercase; color: var(--wc-gray);
  text-align: center; padding-bottom: 4px; letter-spacing: 0.5px;
}
.bracket-match {
  background: var(--wc-card); border: 1px solid var(--wc-border);
  border-radius: 6px; overflow: hidden; font-size: 0.7rem;
}
.bracket-team {
  display: flex; align-items: center; gap: 4px;
  padding: 3px 6px; border-bottom: 1px solid var(--wc-border);
}
.bracket-team:last-child { border-bottom: none; }
.bracket-team img { width: 16px; height: 11px; object-fit: cover; border-radius: 1px; flex-shrink: 0; }
.bracket-team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bracket-score {
  margin-left: auto; font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 0.7rem; color: var(--wc-dark);
}
.bracket-winner { background: rgba(22, 163, 74, 0.1); font-weight: 700; }
.bracket-champion { align-items: center; justify-content: center; }
.champion-match {
  text-align: center; padding: 10px; display: flex; flex-direction: column;
  align-items: center; background: linear-gradient(135deg, var(--wc-gold) 0%, #f59e0b 100%);
  border: none;
}
.champion-flag { width: 40px; height: 28px; object-fit: cover; border-radius: 3px; margin-bottom: 4px; }
.champion-name {
  font-family: 'Montserrat', sans-serif; font-weight: 900;
  font-size: 0.85rem; color: var(--wc-dark);
}

/* ── Calendar ── */
.calendar {
  background: var(--wc-card); border-radius: var(--wc-radius);
  box-shadow: var(--wc-shadow); border: 1px solid var(--wc-border);
  padding: 12px; margin-bottom: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
@media (min-width: 600px) {
  .calendar { flex-direction: row; align-items: flex-start; }
}
.calendar-left { flex-shrink: 0; width: 220px; }
.calendar-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.cal-nav-btn {
  background: var(--wc-blue); color: white; border: none;
  border-radius: 4px; padding: 3px 8px; font-weight: 700;
  font-size: 0.6rem; cursor: pointer; min-height: 26px;
  transition: background 0.2s;
}
.cal-nav-btn:hover { background: var(--wc-red); }
.calendar-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 0.75rem;
  text-align: center; color: var(--wc-dark);
}
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-header {
  text-align: center; font-size: 0.5rem;
  font-weight: 700; color: var(--wc-gray);
  padding: 2px 0; text-transform: uppercase;
}
.cal-day {
  aspect-ratio: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: 4px;
  font-size: 0.6rem; font-weight: 600;
  cursor: default; transition: all 0.2s;
}
.cal-day.empty { visibility: hidden; }
.cal-day.has-match { background: var(--wc-blue); color: white; cursor: pointer; }
.cal-day.has-match:hover { background: var(--wc-red); transform: scale(1.1); }
.cal-day.has-match.active { background: var(--wc-red); box-shadow: 0 0 0 2px var(--wc-gold); }
.cal-day.knockout { background: #7c3aed; }
.cal-day.knockout:hover { background: #6d28d9; }
.cal-day.final { background: var(--wc-gold); color: var(--wc-dark); }
.cal-day.final:hover { background: #eab308; }

.calendar-matches { display: none; flex: 1; min-width: 0; }
.calendar-matches.active { display: block; }
.calendar-date-header {
  font-weight: 800; font-size: 0.85rem;
  color: var(--wc-dark); margin-bottom: 8px;
  padding-bottom: 6px; border-bottom: 2px solid var(--wc-red);
}

/* ── Contenders ── */
.contenders-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 10px; margin-bottom: 24px;
}
@media (min-width: 600px) { .contenders-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .contenders-grid { grid-template-columns: repeat(5, 1fr); } }

.contender-card {
  background: var(--wc-card); border-radius: var(--wc-radius);
  box-shadow: var(--wc-shadow); border: 1px solid var(--wc-border);
  padding: 14px; text-align: center; transition: transform 0.2s;
}
.contender-card:hover { transform: translateY(-2px); }
.contender-card img { width: 48px; height: 32px; object-fit: cover; border-radius: 3px; margin-bottom: 6px; }
.contender-card .team-name { font-weight: 800; font-size: 0.85rem; }
.contender-card .odds {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900; font-size: 1.2rem; color: var(--wc-blue);
}
.contender-card .rank { font-size: 0.7rem; color: var(--wc-gray); }

/* ── Champion banner ── */
.champion-banner {
  background: linear-gradient(135deg, var(--wc-gold) 0%, #f59e0b 100%);
  color: var(--wc-dark); text-align: center;
  padding: 24px 16px; border-radius: var(--wc-radius); margin: 24px 0;
}
.champion-banner h2 {
  font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.5rem;
}
.champion-banner img { width: 64px; height: 44px; object-fit: cover; border-radius: 4px; margin: 8px 0; }

/* ── Disclaimer ── */
.disclaimer {
  background: #fef3c7; border: 1px solid #fbbf24;
  border-radius: var(--wc-radius-sm);
  padding: 12px 16px; font-size: 0.75rem;
  color: #92400e; margin: 24px 0 12px; line-height: 1.5;
}

/* ── Footer ── */
.footer {
  background: var(--wc-dark); color: rgba(255,255,255,0.7);
  padding: 20px 16px; text-align: center;
  font-size: 0.75rem; margin-top: 24px;
}
.footer a { color: var(--wc-gold); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ── Method Page ── */
.method-content { max-width: 800px; margin: 0 auto; }
.method-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 1.2rem;
  color: var(--wc-dark); margin: 24px 0 8px;
  padding-bottom: 6px; border-bottom: 2px solid var(--wc-red);
}
.method-content h3 { font-size: 1rem; margin: 16px 0 6px; color: var(--wc-blue); }
.method-content p { margin: 8px 0; font-size: 0.88rem; }
.method-content ul, .method-content ol { margin: 8px 0 8px 20px; font-size: 0.88rem; }
.method-content table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.8rem; }
.method-content th { background: var(--wc-dark); color: white; padding: 8px; text-align: left; }
.method-content td { padding: 6px 8px; border-bottom: 1px solid var(--wc-border); }
.method-content code {
  background: #1e293b; color: #e2e8f0;
  padding: 2px 6px; border-radius: 4px; font-size: 0.82rem;
}
.method-content pre {
  background: #1e293b; color: #e2e8f0;
  padding: 14px; border-radius: var(--wc-radius-sm);
  overflow-x: auto; font-size: 0.78rem; margin: 10px 0;
}
.method-content pre code { background: none; padding: 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px;
  background: var(--wc-blue); color: white;
  text-decoration: none; border-radius: var(--wc-radius-sm);
  font-weight: 700; font-size: 0.85rem;
  transition: background 0.2s; min-height: 44px;
}
.btn:hover { background: #003a8c; }
.btn-red { background: var(--wc-red); }
.btn-red:hover { background: #9a0826; }
.btn-outline {
  background: transparent; border: 2px solid var(--wc-blue); color: var(--wc-blue);
}
.btn-outline:hover { background: var(--wc-blue); color: white; }

.link-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; justify-content: center; }

/* ── Real Result right-side badge ── */
.rr-right-badge {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85em;
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0;
}
.rr-right-badge .rr-icon { font-size: 1em; }
.rr-right-badge .rr-pred {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}
.rr-right-badge .rr-pts {
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255,255,255,0.25);
}
.rr-right-badge.rr-perfect { background: #d97706; color: #fff; }
.rr-right-badge.rr-gd { background: #16a34a; color: #fff; }
.rr-right-badge.rr-winner { background: #65a30d; color: #fff; }
.rr-right-badge.rr-miss { background: #9ca3af; color: #fff; }

/* ── Prediction Tracker ── */
.pt-wrapper {
  background: #f8fafc; border: 2px solid #002868; border-radius: 12px;
  margin: 0 0 24px; overflow: hidden;
}
.pt-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; cursor: pointer; user-select: none;
  font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1rem;
  color: #002868; background: #f0f4ff; transition: background 0.2s;
}
.pt-header:hover { background: #e0e8f8; }
.pt-header .pt-chevron {
  font-size: 1.2em; transition: transform 0.3s;
}
.pt-wrapper.open .pt-chevron { transform: rotate(180deg); }
.pt-body {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.pt-wrapper.open .pt-body { max-height: 4000px; }
.pt-summary {
  display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0; background: #fff;
}
.pt-stat {
  display: flex; flex-direction: column; align-items: center;
  min-width: 64px; flex: 1;
}
.pt-stat-val {
  font-family: Montserrat, sans-serif; font-weight: 800;
  font-size: 1.5rem; color: #002868; line-height: 1.2;
}
.pt-stat-max { font-size: 0.7em; color: #64748b; font-weight: 600; }
.pt-stat-lbl {
  font-size: 0.75rem; color: #64748b; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px;
}
.pt-legend {
  padding: 8px 20px; font-size: 0.8rem; color: #64748b;
  text-align: center; border-bottom: 1px solid #e2e8f0; background: #fafbfc;
}
.pt-table-wrap { overflow-x: auto; }
.pt-table {
  width: 100%; border-collapse: collapse; font-size: 0.9rem;
}
.pt-table thead th {
  position: sticky; top: 0; background: #002868; color: #fff;
  padding: 10px 12px; text-align: left; font-weight: 700;
  font-family: Montserrat, sans-serif; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.pt-table tbody tr {
  border-bottom: 1px solid #e2e8f0; transition: background 0.15s;
}
.pt-table tbody tr:hover { background: #f0f4ff; }
.pt-table td { padding: 10px 12px; }
.pt-date { color: #64748b; font-size: 0.85rem; white-space: nowrap; }
.pt-team { font-weight: 600; color: #0a1628; white-space: nowrap; }
.pt-score {
  font-family: Montserrat, sans-serif; font-weight: 800;
  text-align: center; font-size: 0.95rem;
}
.pt-pts { text-align: center; }
.pt-pts-badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-weight: 700; font-size: 0.8rem; color: #fff; white-space: nowrap;
}
.pt-pts-badge.rr-perfect { background: #d97706; }
.pt-pts-badge.rr-gd { background: #16a34a; }
.pt-pts-badge.rr-winner { background: #65a30d; }
.pt-pts-badge.rr-miss { background: #9ca3af; }
tr.pt-row.rr-perfect { background: #fffbeb; }
tr.pt-row.rr-gd { background: #f0fdf4; }
@media (max-width: 600px) {
  .pt-summary { gap: 8px; padding: 12px; }
  .pt-stat-val { font-size: 1.2rem; }
  .pt-table { font-size: 0.8rem; }
  .pt-table td, .pt-table th { padding: 8px 6px; }
  .pt-legend { font-size: 0.7rem; padding: 6px 12px; }
}

/* ── Team Comparison ── */
.tc-side { background: #fff; border-radius: 10px; padding: 16px; }
.tc-empty { display: flex; align-items: center; justify-content: center; min-height: 120px; }
.tc-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tc-flag { width: 40px; height: 28px; border-radius: 3px; object-fit: cover; }
.tc-name { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1.1rem; color: #0a1628; }
.tc-stats { display: grid; gap: 0; }
.tc-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
.tc-row:last-child { border-bottom: none; }
.tc-label { color: #6b7280; font-size: 0.85rem; }
.tc-val { font-weight: 700; font-size: 0.9rem; color: #0a1628; }

.tc-vs { background: #fff; border-radius: 10px; padding: 16px; }
.tc-vs-header { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.tc-vs-team { display: flex; align-items: center; gap: 8px; }
.tc-vs-label { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 1.2rem; color: #002868; }
.tc-bar-grid { display: grid; gap: 0; }
.tc-bar-row {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px;
  align-items: center; padding: 7px 0; border-bottom: 1px solid #f1f5f9;
}
.tc-bar-row:last-child { border-bottom: none; }
.tc-bar-label { font-size: 0.8rem; color: #6b7280; text-align: center; white-space: nowrap; min-width: 110px; }
.tc-bar-val { font-weight: 700; font-size: 0.9rem; color: #0a1628; }
.tc-bar-val:first-child { text-align: right; }
.tc-bar-val:last-child { text-align: left; }
.tc-bar-val.tc-win { color: #16a34a; font-weight: 800; }
@media(max-width:600px){
  .tc-bar-label { font-size: 0.7rem; min-width: 80px; }
  .tc-bar-val { font-size: 0.8rem; }
}
