:root {
  --night-1000: #010812;
  --night-950: #020d18;
  --night-900: #061522;
  --night-850: #091c2b;
  --night-800: #0d2637;
  --lime: #8ee000;
  --lime-bright: #b5f51b;
  --yellow: #ffc400;
  --cyan: #08a9b8;
  --white: #f4f7f2;
  --silver: #b9c7ce;
  --muted: #79909c;
  --red: #ff5656;
  --green: #7fe000;
  --line: rgba(142, 224, 0, 0.35);
  --line-soft: rgba(159, 189, 200, 0.16);
  --panel: rgba(5, 20, 32, 0.94);
  --display: "Barlow Condensed", sans-serif;
  --body: "Rajdhani", sans-serif;
  --glow: 0 0 24px rgba(142, 224, 0, 0.12);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 11%, rgba(0, 159, 171, 0.13), transparent 24rem),
    radial-gradient(circle at 90% 7%, rgba(142, 224, 0, 0.08), transparent 25rem),
    linear-gradient(180deg, var(--night-1000), var(--night-950) 55%, #020b14);
  font-family: var(--body);
  font-size: 16px;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: 0.25;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(142, 224, 0, 0.7) 0 1px, transparent 1.3px),
    linear-gradient(rgba(8, 169, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 169, 184, 0.08) 1px, transparent 1px);
  background-size: 34px 34px, 72px 72px, 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 62%);
}

button, input, select { font: inherit; }

.page-shell {
  width: min(1460px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 64px;
}

/* Cabeçalho e marca */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  min-height: 420px;
  padding: clamp(32px, 6vw, 76px);
  border: 1px solid rgba(142, 224, 0, 0.28);
  border-radius: 4px;
  background:
    linear-gradient(110deg, rgba(1, 8, 18, 0.96), rgba(4, 22, 34, 0.9)),
    repeating-linear-gradient(120deg, transparent 0 44px, rgba(142, 224, 0, 0.025) 45px 46px);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.75), 0 28px 80px rgba(0, 0, 0, 0.35);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 24px 100%, 0 calc(100% - 24px));
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  left: -230px;
  top: -160px;
  border: 1px solid rgba(142, 224, 0, 0.22);
  border-radius: 50%;
  opacity: 0.7;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 46%, rgba(142,224,0,.17) 46.5% 47%, transparent 47.5%),
    repeating-conic-gradient(from 12deg, rgba(142,224,0,.13) 0 1deg, transparent 1deg 36deg);
  box-shadow: inset 0 0 70px rgba(8, 169, 184, 0.12);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 120px;
  opacity: 0.32;
  background:
    linear-gradient(165deg, transparent 48%, rgba(8,169,184,.5) 49% 49.5%, transparent 50%) 0 0 / 170px 80px,
    radial-gradient(ellipse at center bottom, rgba(34, 128, 76, 0.42), transparent 64%);
}

.hero > * { position: relative; z-index: 1; }
.brand-lockup { display: grid; grid-template-columns: 108px minmax(0, 1fr); align-items: center; gap: 24px; max-width: 950px; }
.brand-copy { min-width: 0; }

.prediction-orb {
  position: relative;
  width: 104px;
  height: 104px;
  border: 2px solid var(--lime);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.25), transparent 18%), rgba(3, 18, 27, 0.7);
  box-shadow: 0 0 10px var(--lime), 0 0 35px rgba(142,224,0,.35), inset 0 0 25px rgba(8,169,184,.22);
}
.prediction-orb::after { content: ""; position: absolute; left: 19px; bottom: -17px; width: 66px; height: 15px; border: 3px solid var(--yellow); border-top: 0; transform: perspective(25px) rotateX(-20deg); }
.orb-ring { position: absolute; inset: 18px; border: 4px solid transparent; border-top-color: white; border-right-color: white; border-radius: 50%; transform: rotate(-18deg); }
.orb-shine { position: absolute; width: 9px; height: 28px; left: 22px; top: 22px; border-radius: 50%; background: white; transform: rotate(35deg); box-shadow: 0 0 9px white; }
.orb-star { position: absolute; color: white; text-shadow: 0 0 8px white; }
.star-one { right: -18px; top: -13px; font-size: 29px; }
.star-two { right: -29px; top: 20px; font-size: 18px; }

.eyebrow { margin: 0 0 8px; color: var(--lime-bright); font: 700 13px var(--body); letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.dark, .eyebrow.light { color: var(--lime-bright); }

h1, h2, h3, .metric-value, .score { font-family: var(--display); }
h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 14px; margin: 0; text-transform: uppercase; font-size: clamp(48px, 8.2vw, 108px); font-style: italic; font-weight: 900; line-height: .78; letter-spacing: -.035em; text-shadow: 5px 5px 0 rgba(255,255,255,.08); }
h1 span { flex-basis: 100%; color: var(--white); }
h1 small { color: var(--white); font-size: .43em; font-style: normal; letter-spacing: 0; }
h1 strong { color: transparent; font: inherit; background: linear-gradient(115deg, var(--lime-bright) 4%, var(--yellow) 90%); background-clip: text; -webkit-background-clip: text; filter: drop-shadow(0 0 12px rgba(142,224,0,.18)); }
.hero-copy { grid-column: 2; max-width: 710px; margin: 22px 0 0; color: var(--silver); font-size: clamp(16px, 1.6vw, 19px); font-weight: 500; line-height: 1.55; }

.update-box { display: flex; align-items: center; gap: 12px; min-width: 245px; padding: 14px 18px; border: 1px solid var(--line); background: rgba(2, 13, 24, 0.75); box-shadow: var(--glow); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(142,224,0,.1), 0 0 14px var(--lime); }
.update-label { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.update-box strong { display: block; margin-top: 2px; font-size: 14px; color: var(--white); }

/* Próximos jogos */
.upcoming-section { position: relative; z-index: 2; margin: 22px 0; padding: 27px; border: 1px solid rgba(142,224,0,.48); background: rgba(2, 13, 24, 0.96); box-shadow: var(--glow), inset 0 0 50px rgba(8,169,184,.035); clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px); }
.upcoming-section::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 2px; background: linear-gradient(90deg, var(--lime), transparent 48%, var(--yellow)); box-shadow: 0 0 10px rgba(142,224,0,.4); }
.upcoming-heading { margin-bottom: 20px; }
.upcoming-heading h2 { color: white; }
.upcoming-heading > p { color: var(--muted); }
.upcoming-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.upcoming-card { display: flex; flex-direction: column; min-width: 0; min-height: 330px; padding: 19px; border: 1px solid rgba(142,224,0,.26); background: linear-gradient(145deg, rgba(11,36,50,.72), rgba(2,13,24,.92)); clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px); transition: border-color .2s, transform .2s; }
.upcoming-card:hover { border-color: var(--lime); transform: translateY(-2px); }
.upcoming-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.countdown-badge { padding: 5px 9px; color: #07110b; border: 1px solid var(--lime); border-radius: 2px; background: var(--lime); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.countdown-badge:link, .countdown-badge:visited { color: white; text-decoration: none; }
.countdown-live { --pulse-color: rgba(255,86,86,.6); border-color: var(--red); background: var(--red); box-shadow: 0 0 0 0 var(--pulse-color); animation: live-pulse 1.5s infinite; }
.upcoming-time { color: var(--muted); font-size: 11px; }
.upcoming-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; min-height: 78px; margin: 22px 0 10px; font: 800 clamp(20px, 2vw, 28px) var(--display); text-transform: uppercase; }
.upcoming-team { min-width: 0; padding: 12px 4px; line-height: 1.05; }
.upcoming-home { text-align: right; }
.upcoming-away { text-align: left; }
.upcoming-versus { color: var(--yellow); font: 800 11px var(--body); letter-spacing: .2em; }
.upcoming-prediction { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; margin-top: 4px; padding: 17px 0 0; text-align: center; border-top: 1px dotted rgba(142,224,0,.28); }
.prediction-label { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .16em; }
.prediction-score { display: block; margin: 3px 0 13px; color: var(--white); font: italic 900 clamp(54px, 5.4vw, 78px) var(--display); line-height: 1; text-shadow: 0 0 22px rgba(255,255,255,.08); }
.prediction-unavailable { display: block; margin: 24px 0; color: var(--muted); font-size: 15px; }
.upcoming-card .probability { min-width: 0; }
.upcoming-card .probability { width: 100%; margin-top: auto; text-align: left; }

/* Probabilidades de título */
.championship-section { border-color: rgba(142,224,0,.26); }
.brazil-section-title { display: flex; align-items: center; gap: 12px; }
.brazil-flag { position: relative; flex: 0 0 auto; overflow: hidden; width: 38px; height: 26px; border: 1px solid rgba(255,255,255,.35); background: #159447; box-shadow: 0 0 14px rgba(142,224,0,.25); transform: skewX(-5deg); }
.brazil-flag::before { content: ""; position: absolute; left: 9px; top: 4px; width: 18px; height: 18px; background: #ffcf20; transform: rotate(45deg); }
.brazil-flag i { position: absolute; z-index: 1; left: 14px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: #174ea6; }
.brazil-grid { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(330px,1.25fr) minmax(270px,1fr); gap: 14px; }
.brazil-card { min-width: 0; min-height: 286px; padding: clamp(20px,2.4vw,30px); border: 1px solid rgba(142,224,0,.25); background: linear-gradient(145deg,rgba(10,34,48,.88),rgba(2,13,24,.96)); box-shadow: inset 0 0 45px rgba(142,224,0,.035); clip-path: polygon(12px 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%,0 12px); }
.brazil-card-kicker, .brazil-game-kicker { color: var(--yellow); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.brazil-rank-card { display: flex; flex-direction: column; justify-content: center; }
.brazil-rank { display: block; margin: 5px 0 2px; color: var(--lime-bright); font: italic 900 clamp(86px,9vw,126px) var(--display); line-height: .82; letter-spacing: -.015em; text-shadow: 0 0 28px rgba(142,224,0,.24); }
.brazil-rank sup { display: inline-block; margin-left: .08em; font-size: .38em; line-height: 1; vertical-align: top; transform: translateY(.12em); }
.brazil-rank-label { color: var(--white); font: 800 22px var(--display); text-transform: uppercase; }
.brazil-chance-detail { display: flex; align-items: baseline; gap: 7px; margin-top: 16px; padding: 10px 12px; color: var(--white); border-left: 3px solid var(--lime); background: rgba(142,224,0,.065); box-shadow: inset 0 0 18px rgba(142,224,0,.025); }
.brazil-chance-detail span { color: var(--lime-bright); font: italic 900 25px var(--display); white-space: nowrap; }
.brazil-chance-detail small { color: var(--silver); font-size: 13px; font-weight: 700; line-height: 1.1; }
.brazil-chance-detail.is-eliminated { color: var(--muted); font: italic 800 28px var(--display); }
.brazil-game-card { display: flex; flex-direction: column; justify-content: center; }
.brazil-matchup { margin: 7px 0 1px; color: var(--white); font: italic 900 clamp(27px,3.2vw,44px) var(--display); line-height: 1; text-align: center; text-transform: uppercase; }
.brazil-matchup small { color: var(--yellow); font-size: .55em; }
.brazil-game-date { color: var(--muted); font-size: 12px; }
.brazil-prediction-label { display: block; margin-top: 15px; text-align: center; }
.brazil-main-score { display: block; margin: 0 0 13px; color: var(--white); font: italic 900 clamp(58px,6vw,82px) var(--display); line-height: .9; text-align: center; text-shadow: 0 0 22px rgba(255,255,255,.08); }
.brazil-main-score small { color: var(--yellow); font-size: .55em; }
.brazil-result-probability { width: 100%; min-width: 0; }
.brazil-result-probability .probability-labels { gap: 8px; font-size: 9px; }
.brazil-result-probability .probability-labels span:nth-child(2) { text-align: center; }
.brazil-result-probability .probability-labels span:last-child { text-align: right; }
.brazil-scorelines-card { display: flex; flex-direction: column; justify-content: center; }
.scorelines-match { margin: 7px 0 16px; color: var(--white); font: italic 800 25px var(--display); text-transform: uppercase; }
.scoreline-ranking { display: grid; gap: 8px; }
.scoreline-row { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; min-height: 48px; padding: 8px 11px; border-left: 2px solid var(--cyan); background: rgba(1,8,18,.62); }
.scoreline-row.is-leading { min-height: 58px; border-color: var(--lime); background: rgba(142,224,0,.065); }
.scoreline-position { color: var(--muted); font: italic 800 19px var(--display); }
.scoreline-row strong { color: var(--white); font: italic 900 29px var(--display); }
.scoreline-row.is-leading strong { color: var(--lime-bright); font-size: 36px; }
.scoreline-row > span:last-child { color: var(--yellow); font: 800 17px var(--display); }

.favorites-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.favorite-card { position: relative; overflow: hidden; min-height: 190px; padding: 20px; border: 1px solid rgba(142,224,0,.22); background: linear-gradient(155deg, rgba(11,36,50,.78), rgba(2,13,24,.96)); clip-path: polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px); }
.favorite-card.is-eliminated { opacity: .4; filter: grayscale(1); }
.favorite-position { color: var(--yellow); font: italic 900 32px var(--display); }
.favorite-team { display: block; min-height: 52px; margin: 9px 0 17px; color: var(--white); font: 800 24px var(--display); line-height: 1; text-transform: uppercase; }
.favorite-probability { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.favorite-probability strong { color: var(--lime-bright); font: italic 900 27px var(--display); }
.favorite-bar { overflow: hidden; height: 7px; margin-top: 7px; background: rgba(121,144,156,.16); }
.favorite-bar span { display: block; height: 100%; background: linear-gradient(90deg,var(--lime),var(--lime-bright)); box-shadow: 0 0 10px rgba(142,224,0,.45); }
.eliminated-badge { display: inline-block; margin-top: 13px; padding: 4px 7px; color: var(--silver); border: 1px solid var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; }

.map-section { overflow: hidden; }
.map-frame { position: relative; min-height: 430px; border: 1px solid var(--line-soft); background: radial-gradient(circle at 50% 50%,rgba(8,169,184,.08),transparent 58%),rgba(1,8,18,.72); }
#probability-map { display: block; width: 100%; height: auto; min-height: 430px; }
.map-country { stroke: rgba(185,199,206,.25); stroke-width: .45; transition: fill .18s,opacity .18s; }
.map-country.is-participant { cursor: crosshair; }
.map-country.is-participant:hover { stroke: var(--white); stroke-width: 1.2; filter: brightness(1.25); }
.map-tooltip { position: fixed; z-index: 50; max-width: 260px; padding: 10px 12px; color: var(--white); border: 1px solid var(--line); background: rgba(1,8,18,.96); box-shadow: var(--glow); font-size: 13px; pointer-events: none; }
.map-tooltip strong { display: block; color: var(--lime-bright); font-family: var(--display); font-size: 18px; text-transform: uppercase; }
.map-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 13px; color: var(--muted); font-size: 11px; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 14px; height: 8px; border: 1px solid rgba(255,255,255,.12); }
.legend-high { background: #00ff88; } .legend-medium { background: #00cc66; }
.legend-low { background: #007744; } .legend-minimal { background: #003322; }
.legend-eliminated { background: #444; }

.live-update-indicator { position: fixed; z-index: 60; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; color: var(--silver); border: 1px solid rgba(142,224,0,.28); background: rgba(1,8,18,.92); box-shadow: var(--glow); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.live-update-indicator span { --pulse-color: rgba(142,224,0,.55); width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 var(--pulse-color); animation: live-pulse 1.5s infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 var(--pulse-color); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Estados */
.state-panel { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 120px; margin-top: 22px; padding: 24px; text-align: center; border: 1px solid var(--line-soft); color: var(--silver); background: var(--panel); }
.state-panel[hidden], [hidden] { display: none !important; }
.state-error { flex-direction: column; color: #ff9e9e; border-color: rgba(255,86,86,.35); }
.state-error button { padding: 9px 15px; color: var(--night-1000); border: 0; background: var(--yellow); font-weight: 700; cursor: pointer; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--night-800); border-top-color: var(--lime); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Métricas */
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin: 22px 0; }
.model-stats-section .summary-grid { margin: 0; }
.metric-card { position: relative; min-height: 178px; padding: 23px; border: 1px solid var(--line-soft); background: linear-gradient(145deg, rgba(10,34,48,.88), rgba(2,13,24,.96)); box-shadow: inset 0 0 30px rgba(8,169,184,.035); clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.metric-card::before { content: ""; display: block; width: 42px; height: 3px; margin-bottom: 25px; background: var(--muted); }
.metric-card::after { content: ""; position: absolute; width: 6px; height: 6px; right: 15px; top: 15px; border: 1px solid var(--line); border-radius: 50%; }
.metric-primary { border-color: rgba(142,224,0,.5); box-shadow: var(--glow); }
.metric-primary::before { background: var(--lime); box-shadow: 0 0 9px var(--lime); }
.metric-green::before { background: var(--yellow); box-shadow: 0 0 9px rgba(255,196,0,.6); }
.metric-kicker { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.metric-value { display: block; margin: 4px 0 2px; color: var(--white); font-size: clamp(38px, 4.6vw, 58px); font-style: italic; font-weight: 900; letter-spacing: -.02em; }
.metric-primary .metric-value { color: var(--lime-bright); }
.metric-green .metric-value { color: var(--yellow); }
.metric-value-small { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.02; white-space: normal; }
.metric-detail { color: var(--muted); font-size: 13px; }

/* Seções */
.section-block { position: relative; margin-top: 22px; padding: clamp(21px, 3vw, 32px); border: 1px solid var(--line-soft); background: var(--panel); box-shadow: inset 0 0 50px rgba(8,169,184,.025); }
.section-block::before { content: ""; position: absolute; left: 0; top: 0; width: 130px; height: 2px; background: linear-gradient(90deg, var(--lime), transparent); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; color: var(--white); font-size: clamp(30px, 4vw, 44px); font-style: italic; font-weight: 900; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }
.section-heading > p { max-width: 420px; margin: 0; color: var(--muted); font-size: 14px; text-align: right; }

.round-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 12px; }
.round-card { padding: 18px; border: 1px solid rgba(142,224,0,.18); background: rgba(8,28,41,.58); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.round-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.round-name { margin: 0; color: var(--white); font-size: 21px; font-weight: 800; text-transform: uppercase; }
.round-date { color: var(--muted); font-size: 11px; }
.round-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.round-stat { padding: 10px; border-left: 2px solid var(--lime); background: rgba(1,8,18,.7); }
.round-stat:nth-child(2) { border-color: var(--yellow); }
.round-stat strong { display: block; color: var(--white); font: italic 800 27px var(--display); }
.round-stat span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }

/* Tabelas */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); background: rgba(1,8,18,.4); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 15px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
th { color: var(--lime-bright); background: rgba(11,36,50,.82); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(142,224,0,.035); }
.match-teams strong { display: block; color: var(--white); font-size: 15px; }
.match-date { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.score { color: var(--white); font-size: 22px; font-style: italic; font-weight: 900; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border: 1px solid; border-radius: 2px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.badge-success { color: var(--lime-bright); border-color: rgba(142,224,0,.45); background: rgba(142,224,0,.08); }
.badge-error { color: #ff8c8c; border-color: rgba(255,86,86,.4); background: rgba(255,86,86,.08); }
.round-pill { padding: 5px 8px; color: var(--silver); border: 1px solid var(--line-soft); background: rgba(8,28,41,.62); font-size: 11px; }

.probability { min-width: 215px; }
.probability-labels { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.probability-bar { display: flex; overflow: hidden; height: 7px; background: rgba(121,144,156,.16); }
.prob-home { background: var(--lime); box-shadow: 0 0 9px rgba(142,224,0,.4); }
.prob-draw { background: var(--yellow); }
.prob-away { background: var(--cyan); }

@media (max-width: 1080px) {
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { align-items: flex-start; flex-direction: column; }
  .upcoming-grid { grid-template-columns: 1fr; }
  .brazil-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .brazil-scorelines-card { grid-column: 1 / -1; }
  .favorites-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .update-box { align-self: flex-end; }
}

@media (max-width: 700px) {
  .page-shell { width: min(100% - 20px, 1460px); padding-top: 10px; }
  .hero { min-height: auto; padding: 32px 22px; clip-path: polygon(0 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,14px 100%,0 calc(100% - 14px)); }
  .brand-lockup { grid-template-columns: 1fr; gap: 24px; }
  .prediction-orb { width: 76px; height: 76px; }
  .prediction-orb::after { left: 13px; width: 50px; }
  .hero-copy { grid-column: 1; }
  .update-box { width: 100%; align-self: auto; }
  .upcoming-section { padding: 19px; }
  .upcoming-card { min-height: 300px; }
  .upcoming-teams { gap: 8px; font-size: 21px; }
  .upcoming-team { padding-inline: 5px; }
  .prediction-score { font-size: 62px; }
  .brazil-grid { grid-template-columns: 1fr; }
  .brazil-scorelines-card { grid-column: auto; }
  .brazil-card { min-height: 250px; }
  .favorites-grid { grid-template-columns: 1fr; }
  .favorite-card { min-height: 160px; }
  .map-frame, #probability-map { min-height: 300px; }
  .summary-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 150px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading > p { text-align: left; }
  .section-block { padding: 16px; }
}
