/* =====================================================================
   Copa do Mundo · TI Emtel
   Tema COPA / BRASIL — verde-amarelo-azul (dark), alinhado ao
   dashboard-tiflux/index_copa. Base: Emtel tokens + Noto Sans.
   ===================================================================== */

/* Fontes locais (os caminhos do emtel-tokens.css apontam pra outra pasta,
   então redefinimos aqui relativo a esta folha de estilo). */
@font-face { font-family: 'Noto Sans'; src: url('fonts/NotoSans-Light.ttf');     font-weight: 300; font-display: swap; }
@font-face { font-family: 'Noto Sans'; src: url('fonts/NotoSans-Regular.ttf');   font-weight: 400; font-display: swap; }
@font-face { font-family: 'Noto Sans'; src: url('fonts/NotoSans-Medium.ttf');    font-weight: 500; font-display: swap; }
@font-face { font-family: 'Noto Sans'; src: url('fonts/NotoSans-SemiBold.ttf');  font-weight: 600; font-display: swap; }
@font-face { font-family: 'Noto Sans'; src: url('fonts/NotoSans-Bold.ttf');      font-weight: 700; font-display: swap; }
@font-face { font-family: 'Noto Sans'; src: url('fonts/NotoSans-ExtraBold.ttf'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Noto Sans'; src: url('fonts/NotoSans-Black.ttf');     font-weight: 900; font-display: swap; }

:root {
  /* ⚽🇧🇷 Tema COPA / BRASIL */
  --bg:            #04140B;   /* verde-escuro profundo */
  --surface:       #0C3320;   /* verde bandeira escuro — cards */
  --surface-2:     #0E3A24;   /* verde container-high */
  --surface-low:   #082616;   /* verde mais escuro */
  --border:        #1A5236;   /* verde médio */
  --border-strong: #2A7A4E;   /* verde mais claro */
  --accent:        #FFDF00;   /* AMARELO Brasil — destaque */
  --accent-glow:   rgba(255, 223, 0, 0.40);
  --ok:            #2EE65C;   /* verde vivo */
  --danger:        #E64158;   /* vermelho p/ AO VIVO/status */
  --text:          #EAF6EC;   /* branco esverdeado */
  --text-dim:      #8FB89C;   /* verde-acinzentado */
  --muted:         rgba(234, 246, 236, 0.45);
  --br-green:      #009C3B;   /* verde bandeira */
  --br-blue:       #1C50C8;   /* azul bandeira */
}

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

html { scroll-behavior: smooth; }

/* Scrollbar personalizada (substitui a padrão do navegador) */
html { scrollbar-width: thin; scrollbar-color: var(--border-strong) var(--bg); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--surface-low); }
::-webkit-scrollbar-thumb {
  background: var(--border-strong); border-radius: 999px;
  border: 3px solid var(--surface-low); background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--br-green); }
::-webkit-scrollbar-corner { background: var(--surface-low); }

body {
  font-family: var(--font-family);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 223, 0, 0.07), transparent 60%),
    radial-gradient(1000px 520px at -10% 110%, rgba(28, 80, 200, 0.12), transparent 55%),
    linear-gradient(160deg, #04140B 0%, #06210E 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ⚽ Bola girando */
.ball {
  display: inline-block;
  animation: ball-spin 6s linear infinite;
  transform-origin: center;
}
@keyframes ball-spin { to { transform: rotate(360deg); } }

/* 🇧🇷 Bandeira em SVG (renderiza igual em qualquer SO) */
.br-flag {
  width: 22px; height: 16px;
  display: inline-block;
  vertical-align: -3px;
  border-radius: 2px;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 38, 22, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-6);
}
/* 🇧🇷 Logo tingido de AMARELO (SVG como máscara) */
.brand__logo {
  height: 34px;
  aspect-ratio: 876 / 284;
  display: block;
  background-color: var(--accent);
  -webkit-mask: url('assets/logo-branco.svg') left center / contain no-repeat;
          mask: url('assets/logo-branco.svg') left center / contain no-repeat;
}
.topbar__divider { width: 1px; height: 26px; background: var(--border); }
.topbar__sector {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, rgba(0,156,59,0.25), rgba(255,223,0,0.22));
  border: 1px solid rgba(255, 223, 0, 0.40);
  font-weight: var(--weight-bold);
}
.topbar__nav {
  margin-left: auto;
  display: flex;
  gap: var(--space-6);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
}
.topbar__nav a {
  color: var(--text-dim);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
}
.topbar__nav a:hover { color: var(--text); border-color: var(--accent); }

/* Faixa tricolor verde-amarelo-azul com brilho */
.flagstripe { display: flex; height: 4px; box-shadow: 0 0 12px rgba(255,223,0,0.35); }
.flagstripe span { flex: 1; }
.flagstripe__green  { background: var(--br-green); }
.flagstripe__yellow { background: var(--accent); }
.flagstripe__blue   { background: var(--br-blue); }

/* ---------- Layout base ---------- */
main { position: relative; z-index: 1; }
.hero, .section {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--space-12) var(--space-6);
}
.hero { padding-top: var(--space-16); }

/* ---------- Hero ---------- */
.hero__head { text-align: center; max-width: 780px; margin: 0 auto var(--space-10); }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.hero__title { color: var(--text); margin-bottom: var(--space-4); }
.hero__title .grad {
  background: linear-gradient(90deg, var(--ok), var(--accent) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__lead { color: var(--text-dim); }

/* ---------- Player ---------- */
.stage {
  background: rgba(12, 51, 32, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-4);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}
.stage::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--br-green) 0 33%, var(--accent) 33% 66%, var(--br-blue) 66% 100%);
  box-shadow: 0 0 12px rgba(255,223,0,0.35);
}
.stage__bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-3) var(--space-4);
}
.stage__label { color: var(--text-dim); }
.stage__open {
  margin-left: auto;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--accent);
  white-space: nowrap;
  transition: var(--transition-fast);
}
.stage__open:hover { color: var(--text); }

.live {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  color: var(--text-dim);
}
.live__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.live[data-state="on"] { background: rgba(230, 65, 88, 0.18); color: #fff; }
.live[data-state="on"] .live__dot {
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(230,65,88,0.7);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(230,65,88,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(230,65,88,0); }
  100% { box-shadow: 0 0 0 0 rgba(230,65,88,0); }
}

.player__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.player__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--space-3);
  text-align: center;
  padding: var(--space-6);
  background: var(--surface-low);
  color: var(--text-dim);
}
.player__placeholder code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(255,255,255,0.08);
  padding: 2px 8px; border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

/* Card-pôster (modo link → abre a live na CazéTV) */
.poster {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background-color: var(--surface-low);
  background-size: cover;
  background-position: center;
  text-align: center;
  overflow: hidden;
}
.poster__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 35%, rgba(0,156,59,0.28), transparent 60%),
    linear-gradient(180deg, rgba(4,20,11,0.45) 0%, rgba(4,20,11,0.86) 100%);
  transition: background var(--transition-base);
}
.poster:hover .poster__shade {
  background:
    radial-gradient(120% 90% at 50% 35%, rgba(0,156,59,0.22), transparent 60%),
    linear-gradient(180deg, rgba(4,20,11,0.35) 0%, rgba(4,20,11,0.76) 100%);
}
.poster__content {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-3);
  padding: var(--space-6);
  max-width: 560px;
}
.poster__play {
  display: grid; place-items: center;
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 26px;
  padding-left: 5px;
  box-shadow: 0 8px 28px rgba(230,65,88,0.45);
  transition: transform var(--transition-base);
}
.poster:hover .poster__play { transform: scale(1.08); }
.poster__title { color: #fff; }
.poster__cta {
  display: inline-block;
  background: linear-gradient(90deg, var(--br-green), var(--ok));
  color: #04140B;
  font-weight: var(--weight-extrabold);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 18px rgba(0,156,59,0.4);
}
.poster__note { color: rgba(255,255,255,0.7); font-size: var(--text-xs); }

/* ---------- Countdown ---------- */
.countdown { margin-top: var(--space-8); text-align: center; }
.countdown__label { display: block; color: var(--accent); margin-bottom: var(--space-4); }
.countdown__clock { display: inline-flex; gap: var(--space-3); }
.countdown__cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  min-width: 78px;
  position: relative;
  overflow: hidden;
}
.countdown__cell::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
}
.countdown__cell strong {
  display: block;
  font-size: var(--text-2xl);
  font-weight: var(--weight-black);
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.countdown__cell small {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-dim);
}
.countdown__match { display: block; margin-top: var(--space-4); color: var(--text-dim); }

/* ---------- Seções (cabeçalho comum) ---------- */
.section__head { text-align: center; margin-bottom: var(--space-8); }
.section__head .emtel-h2 { color: var(--text); margin-bottom: var(--space-2); }
.section__head .emtel-lead { color: var(--text-dim); }
.data-badge {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
}
.data-badge--live { color: var(--ok); border-color: var(--ok); }
.empty { color: var(--text-dim); text-align: center; padding: var(--space-6); }

/* Escudo / bandeira */
.crest { width: 22px; height: 22px; object-fit: contain; border-radius: 3px; flex-shrink: 0; background: rgba(255,255,255,0.06); }
.crest--flag { width: auto; height: auto; font-size: 20px; line-height: 1; background: none; }

/* pisca-pisca "ao vivo" */
.live-pip {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); display: inline-block;
  box-shadow: 0 0 8px var(--danger);
  animation: pip 1.2s ease infinite;
}
@keyframes pip { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Placar (estilo Google) ---------- */
.score-block { margin-bottom: var(--space-10); }
.score-block__title {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--space-4);
}
.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
}
.match {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  transition: transform var(--transition-base), border-color var(--transition-base);
}
.match:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.match--live { border-color: var(--danger); box-shadow: 0 0 0 1px rgba(230,65,88,0.25); }
.match__stage {
  font-size: 10px; text-transform: uppercase; letter-spacing: var(--tracking-wider);
  color: var(--accent); font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3); min-height: 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.match__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); padding: 5px 0;
}
.match__team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.match__name {
  font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.match__name.is-lead { color: #fff; font-weight: var(--weight-bold); }
.match__score {
  font-size: var(--text-lg); font-weight: var(--weight-black);
  color: var(--text); font-variant-numeric: tabular-nums; min-width: 18px; text-align: right;
}
.match__foot {
  margin-top: var(--space-3); padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.mstatus {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-xs); font-weight: var(--weight-semibold);
  color: var(--text-dim); letter-spacing: var(--tracking-wide);
}
.mstatus--live { color: #fff; }
.mstatus--done { color: var(--text-dim); }

/* ---------- Classificação ---------- */
.groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5);
}
.group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  overflow: hidden;
}
.group__title {
  font-size: var(--text-sm); font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-3);
}
.table { width: 100%; border-collapse: collapse; }
.table th {
  font-size: 10px; text-transform: uppercase; letter-spacing: var(--tracking-wide);
  color: var(--muted); font-weight: var(--weight-semibold);
  text-align: center; padding: 0 6px var(--space-2);
}
.table th.t-team { text-align: left; }
.table td {
  font-size: var(--text-sm); color: var(--text-dim);
  text-align: center; padding: 7px 6px;
  border-top: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
.table td.t-team {
  text-align: left; color: var(--text); font-weight: var(--weight-semibold);
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.table td.t-rank { color: var(--muted); font-weight: var(--weight-bold); width: 22px; }
.table td.t-pts { color: var(--accent); font-weight: var(--weight-bold); }
.table tr.is-qualy td.t-rank { color: var(--ok); }
.table tr.is-qualy td.t-team { box-shadow: inset 2px 0 0 var(--ok); padding-left: 8px; }

/* ---------- Artilharia / Assistências ---------- */
.rank-tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-5);
}
.rank-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.rank-card__title {
  font-size: var(--text-sm); font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-4);
}
.rank-row {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 9px 0; border-top: 1px solid var(--border);
}
.rank-row:first-child { border-top: 0; }
.rank-pos {
  width: 22px; text-align: center; flex-shrink: 0;
  font-weight: var(--weight-black); color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.rank-pos.gold { color: #FFD700; }
.rank-pos.silver { color: #D0D0CF; }
.rank-pos.bronze { color: #CD7F32; }
.rank-name {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px;
  font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank-name small {
  color: var(--text-dim); font-weight: var(--weight-regular); font-size: var(--text-xs);
}
.rank-val {
  flex-shrink: 0; font-weight: var(--weight-black); color: var(--accent);
  font-variant-numeric: tabular-nums; font-size: var(--text-lg);
}
.rank-val em { font-style: normal; font-size: 10px; color: var(--text-dim); margin-left: 3px; font-weight: var(--weight-medium); }

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 1;
  background: var(--surface-low);
  border-top: 1px solid var(--border);
  margin-top: var(--space-16);
}
.footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--space-10) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}
.footer__logo { height: 28px; opacity: 0.85; }
.footer .emtel-caption { color: var(--muted); }

/* ---------- Bolão / Palpites ---------- */
.palpite-id { margin-bottom: var(--space-6); }
.palpite-login { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }
.palpite-input-text {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-md); padding: 10px 14px; font: inherit; font-size: var(--text-base);
  min-width: 180px;
}
.palpite-input-text:focus { outline: none; border-color: var(--accent); }
.palpite-btn {
  background: linear-gradient(90deg, var(--br-green), var(--ok)); color: #04140B;
  border: 0; border-radius: var(--radius-md); padding: 10px 18px; font: inherit;
  font-weight: var(--weight-bold); cursor: pointer; transition: var(--transition-fast);
}
.palpite-btn:hover { filter: brightness(1.05); }
.palpite-btn--ghost {
  background: none; color: var(--accent); border: 1px solid var(--border);
  padding: 4px 12px; font-size: var(--text-xs); font-weight: var(--weight-semibold);
}
.palpite-me {
  display: flex; align-items: center; justify-content: center; gap: var(--space-4);
  color: var(--text-dim); font-size: var(--text-sm);
}
.palpite-me strong { color: var(--text); }

/* Login Microsoft (Entra ID) */
.palpite-btn--ms {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: #fff; color: #1b1b1b;
}
.palpite-btn--ms:hover { filter: brightness(0.97); }
.palpite-btn--ms .ms-logo { width: 18px; height: 18px; flex-shrink: 0; }
.palpite-hint {
  margin-top: var(--space-3); text-align: center; color: var(--text-dim);
}
.login-erro {
  background: rgba(255, 21, 60, 0.12); border: 1px solid var(--danger);
  color: var(--text); border-radius: var(--radius-md);
  padding: 10px 14px; margin-bottom: var(--space-4); text-align: center;
  font-size: var(--text-sm);
}
.palpite-avatar {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--border); flex-shrink: 0;
}
.palpite-avatar--ini {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--accent);
  font-weight: var(--weight-bold); font-size: var(--text-sm);
}

.palpite-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-6); align-items: start; }
.palpite-col .score-block__title { margin-bottom: var(--space-4); }
.palpite-sub {
  font-size: 10px; text-transform: uppercase; letter-spacing: var(--tracking-wider);
  color: var(--muted); font-weight: var(--weight-semibold);
  margin: var(--space-4) 0 var(--space-2);
}

.palpite-row {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-3);
}
.palpite-row__stage {
  font-size: 10px; text-transform: uppercase; letter-spacing: var(--tracking-wide);
  color: var(--accent); font-weight: var(--weight-semibold); margin-bottom: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.palpite-row__teams { display: flex; align-items: center; gap: var(--space-3); justify-content: center; }
.pteam {
  flex: 1; display: flex; align-items: center; gap: 8px;
  font-weight: var(--weight-semibold); color: var(--text); font-size: var(--text-sm);
  min-width: 0; line-height: 1.25;  /* nomes longos quebram em 2 linhas, sem cortar */
}
.pteam--home { justify-content: flex-end; text-align: right; }
.pteam--away { justify-content: flex-start; }
.palpite-inputs { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.palpite-score {
  width: 42px; height: 40px; text-align: center; font: inherit; font-size: var(--text-lg);
  font-weight: var(--weight-bold); color: var(--text);
  background: var(--surface-low); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  -moz-appearance: textfield;
}
.palpite-score::-webkit-outer-spin-button,
.palpite-score::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.palpite-score:focus { outline: none; border-color: var(--accent); }
.palpite-score:disabled { opacity: 0.6; }
.palpite-x { color: var(--muted); font-weight: var(--weight-bold); }
.palpite-row__foot { margin-top: 6px; text-align: center; min-height: 14px; }
.palpite-send { display: flex; align-items: center; justify-content: center; gap: var(--space-3); flex-wrap: wrap; }
.palpite-btn--send { padding: 6px 14px; font-size: var(--text-xs); }
.pred-item.is-collapsed { display: none; }
.palpite-toggle { display: flex; justify-content: center; gap: var(--space-3); margin-top: var(--space-3); }
.bolao-cta {
  display: block; width: fit-content; margin: var(--space-5) auto 0;
  text-decoration: none; text-align: center; font-size: var(--text-base);
}
.palpite-btn--send:disabled { opacity: 0.6; cursor: default; }
.palpite-saved { font-size: var(--text-xs); font-weight: var(--weight-semibold); }
.palpite-saved.is-ok {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(0, 200, 100, 0.14); color: var(--ok);
  animation: palpite-pop 0.18s ease-out;
}
.palpite-saved.is-ok svg {
  width: 12px; height: 12px; fill: none;
  stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.palpite-saved.is-err { color: var(--danger); }
@keyframes palpite-pop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.palpite-real { font-size: var(--text-xs); color: var(--text-dim); margin-right: 8px; }
.pts-badge {
  display: inline-block; font-size: var(--text-xs); font-weight: var(--weight-bold);
  padding: 2px 8px; border-radius: var(--radius-pill);
}
.pts-badge.pts-10 { background: var(--ok); color: #04140B; }
.pts-badge.pts-5  { background: rgba(255,223,0,0.2); color: var(--accent); }
.pts-badge.pts-0  { background: rgba(255,255,255,0.06); color: var(--text-dim); }
.rank-row.is-me { background: rgba(255,223,0,0.08); border-radius: var(--radius-sm); }
.rank-row .palpite-avatar { width: 30px; height: 30px; flex-shrink: 0; }

/* Mural: palpites da galera */
.mural { margin-top: var(--space-7); }
.mural-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4); margin-top: var(--space-4);
}
.mural-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-4);
}
.mural-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding-bottom: var(--space-3); margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.mural-card__teams { display: flex; align-items: center; gap: var(--space-2); font-weight: var(--weight-semibold); }
.mural-card__teams .crest { width: 20px; height: 20px; }
.mural-vs { color: var(--muted); font-weight: var(--weight-bold); }
.mural-tag { font-size: var(--text-xs); color: var(--text-dim); white-space: nowrap; }
.mural-tag--live { color: var(--danger); font-weight: var(--weight-bold); }
.mural-tag--ft { color: var(--text-dim); }
.mural-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mural-palp { display: flex; align-items: center; gap: var(--space-3); }
.mural-palp .palpite-avatar { width: 26px; height: 26px; flex-shrink: 0; }
.mural-nome {
  flex: 1; min-width: 0; font-size: var(--text-sm); color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mural-nome small { color: var(--text-dim); font-size: var(--text-xs); margin-left: 6px; }
.mural-placar {
  flex-shrink: 0; font-weight: var(--weight-bold); color: var(--text);
  font-variant-numeric: tabular-nums; font-size: var(--text-base);
}
.mural-palp .pts-badge { flex-shrink: 0; }
.mural-trofeu { flex-shrink: 0; font-size: var(--text-sm); line-height: 1; }
.mural-palp.is-winner { background: rgba(255,223,0,0.08); border-radius: var(--radius-sm); padding: 2px 6px; margin: 0 -6px; }
.mural-palp.is-winner .mural-nome { font-weight: var(--weight-bold); }

/* Notícias da Copa */
.news-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}
.news-card {
  display: flex; flex-direction: column; gap: var(--space-2);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-4);
  text-decoration: none; transition: var(--transition-fast);
}
.news-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.news-card__title {
  color: var(--text); font-weight: var(--weight-semibold); font-size: var(--text-sm);
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card__meta {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-dim); font-size: var(--text-xs); margin-top: auto;
}
.news-card__logo {
  width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0;
  background: #fff; object-fit: contain;
}
/* skeleton de carregamento das notícias (shimmer) */
.news-card--skel { pointer-events: none; gap: var(--space-3); }
.skel {
  display: block; border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-low) 25%, var(--border) 37%, var(--surface-low) 63%);
  background-size: 400% 100%; animation: skel-shine 1.4s ease infinite;
}
.skel-line { height: 11px; }
.skel-line.short { width: 55%; }
.skel-meta { height: 16px; width: 42%; margin-top: auto; border-radius: 999px; }
@keyframes skel-shine { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation-duration: 3s; } }

/* Quiz das Copas */
.quiz-form { display: flex; flex-direction: column; gap: var(--space-4); }
.quiz-q { border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-4); margin: 0; }
.quiz-q__title { font-weight: var(--weight-semibold); color: var(--text); font-size: var(--text-base); padding: 0; display: flex; gap: 8px; align-items: baseline; }
.quiz-q__num { background: var(--accent); color: #04140B; font-weight: var(--weight-bold); border-radius: 999px; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: var(--text-xs); flex-shrink: 0; }
.quiz-opts { display: grid; gap: 8px; margin-top: var(--space-3); }
.quiz-opt { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; color: var(--text); transition: var(--transition-fast); }
.quiz-opt:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.02); }
.quiz-opt:has(input:checked) { border-color: var(--accent); background: rgba(255,223,0,0.08); }
/* radio custom (sem o padrão do navegador): círculo que preenche com um ✓ */
.quiz-opt input {
  appearance: none; -webkit-appearance: none; margin: 0;
  width: 22px; height: 22px; flex-shrink: 0; cursor: pointer;
  border: 2px solid var(--border-strong); border-radius: 50%;
  position: relative; transition: var(--transition-fast);
}
.quiz-opt input:checked { border-color: var(--accent); }
/* selecionado = bolinha de futebol */
.quiz-opt input:checked::after {
  content: "⚽"; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%); font-size: 15px; line-height: 1;
}
.quiz-opt input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.quiz-opt.is-correct { background: rgba(0,200,100,0.15); border-color: var(--ok); }
.quiz-opt.is-wrong { background: rgba(255,21,60,0.12); border-color: var(--danger); }
.quiz-form__foot { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-5); }
.quiz-result { text-align: center; padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); margin-bottom: var(--space-4); }
.quiz-result__score { font-size: 48px; font-weight: var(--weight-black); color: var(--accent); line-height: 1; }
.quiz-result__score span { font-size: 24px; color: var(--text-dim); }
.quiz-result__msg { font-weight: var(--weight-bold); color: var(--text); margin: var(--space-3) 0; }
.quiz-result + .quiz-form { opacity: 0.85; }
.quiz-wrap { max-width: 640px; margin: 0 auto; }
.palpite-id { text-align: center; }
.quiz-progress { height: 6px; background: var(--surface-low); border-radius: 999px; overflow: hidden; margin-bottom: var(--space-3); }
.quiz-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--br-green), var(--accent)); transition: width 0.3s ease; }
.quiz-step { color: var(--text-dim); font-size: var(--text-xs); font-weight: var(--weight-semibold); margin-bottom: var(--space-3); }
.quiz-home-feito { color: var(--text-dim); margin-bottom: var(--space-3); }
.quiz-home-feito strong { color: var(--accent); }
#quizHomeBox .bolao-cta { margin-top: var(--space-4); }
.quiz-intro { text-align: center; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); padding: var(--space-6) var(--space-5); }
.quiz-intro p { color: var(--text-dim); margin-bottom: var(--space-5); line-height: 1.6; }
.quiz-intro strong { color: var(--text); }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.quiz-step { color: var(--text-dim); font-size: var(--text-xs); font-weight: var(--weight-semibold); margin: 0; }
.quiz-timer { font-variant-numeric: tabular-nums; font-weight: var(--weight-bold); font-size: var(--text-sm); color: var(--text-dim); background: var(--surface-low); border-radius: 999px; padding: 3px 10px; }
.quiz-timer.is-low { color: #fff; background: var(--danger); animation: ball-spin 0s; }

/* Loading — bola de futebol girando (áreas que carregam) */
.loader {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-3); padding: var(--space-6) var(--space-4);
  color: var(--text-dim); font-size: var(--text-sm); text-align: center;
}
.loader__ball {
  font-size: 30px; line-height: 1; display: inline-block;
  animation: ball-spin 0.8s linear infinite;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35));
}
@keyframes ball-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loader__ball { animation-duration: 2.4s; } }

@media (max-width: 760px) {
  .palpite-grid { grid-template-columns: 1fr; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 640px) {
  .hero, .games { padding: var(--space-10) var(--space-4); }
  .topbar__nav { display: none; }
  .countdown__cell { min-width: 64px; padding: var(--space-3); }
  .countdown__cell strong { font-size: var(--text-xl); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
