/* SOLUCZ GRAND PRIX · transmissão */
:root {
  --bg: #0A0A0A;
  --bg-2: #0E1011;
  --panel: #111314;
  --panel-2: #161919;
  --line: #22272A;
  --line-2: #2E3438;
  --txt: #F2F2F2;
  --mut: #9A9A9A;
  --dim: #6B7074;
  --green: #4DE34E;
  --green-d: #2E9A30;
  --purple: #5B2DC8;
  --red: #FF4D4D;
  --display: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --hdr-h: 72px;
  --champ-h: 112px;
  --tick-h: 38px;
  --tower-w: clamp(470px, 29vw, 570px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--txt); }
body { font-family: var(--body); -webkit-font-smoothing: antialiased; overflow: hidden; }
button { font: inherit; color: inherit; }

.app {
  height: 100vh; height: 100dvh;
  display: grid;
  grid-template-rows: var(--hdr-h) minmax(0, 1fr);
}

/* ---------- Cabeçalho ---------- */
.hdr {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative; z-index: 3;
}
.hdr::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 220px; height: 2px; background: var(--green); }
.brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-sep { width: 1px; height: 36px; background: var(--line-2); }
.brand-title { display: flex; flex-direction: column; line-height: .94; }
.bt-main { font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: .01em; }
.bt-main em { font-style: normal; color: var(--green); }
.bt-sub { font-family: var(--body); font-weight: 700; font-size: 10.5px; letter-spacing: .3em; color: var(--mut); margin-top: 5px; white-space: nowrap; }

.hdr-status { display: flex; align-items: center; gap: 22px; }
.hstat { display: flex; flex-direction: column; gap: 3px; }
.hs-l { font-size: 9.5px; font-weight: 700; letter-spacing: .26em; color: var(--dim); }
.hs-v { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; }

.demo-pill {
  font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: .08em;
  padding: 6px 12px; border-radius: 999px; border: 1px solid #F5A524; color: #F5A524;
}

.flag-state {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .06em;
  padding: 7px 14px 7px 10px; border: 1px solid var(--line-2); border-radius: 999px;
}
.flag-ico { width: 22px; height: 16px; position: relative; display: inline-block; }
.flag-ico::before { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 16px; background: #CFCFCF; }
.flag-ico i {
  position: absolute; left: 2px; top: 0; width: 18px; height: 11px; background: var(--green);
  transform-origin: left center; animation: wave 1.6s ease-in-out infinite;
}
.flag-state[data-state="replay"] .flag-ico i { background: var(--purple); }
.flag-state[data-state="finish"] .flag-ico i {
  background: repeating-conic-gradient(#F2F2F2 0 25%, #0A0A0A 0 50%) 0 0 / 6px 6px;
}
@keyframes wave {
  0%, 100% { transform: perspective(40px) rotateY(0deg) skewY(0deg); }
  50% { transform: perspective(40px) rotateY(-14deg) skewY(4deg); }
}

.btn-replay {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .06em;
  background: var(--green); color: #0A0A0A; border: 0; border-radius: 999px;
  padding: 10px 18px; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn-replay:hover { transform: translateY(-1px); background: #66F067; }
.btn-replay:disabled { background: var(--line-2); color: var(--mut); cursor: not-allowed; transform: none; }
.br-ico { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

/* ---------- Palco ---------- */
.stage { display: grid; grid-template-columns: var(--tower-w) minmax(0, 1fr); min-height: 0; }
.side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--bg); }
.side-podium { padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.side .tower { flex: 1; min-height: 0; border-left: 0; }
.circuit { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #050605; }
.cv-wrap { position: absolute; inset: 0; }
#cv { display: block; width: 100%; height: 100%; cursor: default; }
#cv.hovering { cursor: pointer; }

.ovs { position: absolute; inset: 0; pointer-events: none; }
.ov { position: absolute; width: clamp(230px, 17vw, 300px); pointer-events: auto; }
.ov-tl { left: 22px; top: 20px; }
.ov-tr { right: 22px; top: 20px; }
.ov-bl { left: 22px; bottom: 20px; }
.ov-br { right: 22px; bottom: 20px; }
.circuit.compact .ov-tr, .circuit.compact .ov-bl { display: none; }
.circuit.tight .ov { display: none; }

.ov-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .3em; color: var(--green);
  margin-bottom: 10px;
}
.ov-eyebrow::before { content: ""; width: 3px; height: 12px; background: var(--green); }

/* Pódio */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 6px; }
.pd { display: flex; flex-direction: column; align-items: stretch; cursor: pointer; }
.pd-name { font-family: var(--display); font-weight: 800; font-size: 17px; line-height: 1; text-align: center; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-team { font-size: 9px; letter-spacing: .14em; color: var(--mut); text-align: center; margin: 4px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-step {
  background: var(--panel-2); border-top: 3px solid var(--tc, var(--line-2));
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 8px;
}
.pd-step b { font-family: var(--display); font-weight: 900; font-size: 26px; line-height: .9; }
.pd-step span { font-family: var(--display); font-weight: 700; font-size: 12px; color: var(--mut); margin-top: 3px; }
.pd-prize { font-style: normal; font-family: var(--display); font-weight: 800; font-size: 11px; color: #0A0A0A; background: var(--green); border-radius: 999px; padding: 2px 7px; margin-top: 6px; white-space: nowrap; }
.pd.p2 .pd-prize, .pd.p3 .pd-prize { background: #F2F2F2; }
.pd.p1 .pd-step { height: 104px; background: #0F1A10; }
.pd.p1 .pd-step b { color: var(--green); }
.pd.p2 .pd-step { height: 86px; }
.pd.p3 .pd-step { height: 74px; }

/* Telemetria */
.tel { background: rgba(10,10,10,.82); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 12px; }
.tel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.tel-k { font-size: 9px; letter-spacing: .2em; color: var(--dim); font-weight: 700; }
.tel-v { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; margin-top: 3px; font-variant-numeric: tabular-nums; }
.tel-v small { font-size: 12px; color: var(--mut); font-weight: 700; margin-left: 3px; }
.tel-chart { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.tel-chart svg { display: block; width: 100%; height: 54px; }
.tel-cap { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .14em; color: var(--dim); margin-top: 5px; font-weight: 600; }

/* Disputas */
.duels { background: rgba(10,10,10,.82); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); }
.duel:first-of-type { border-top: 0; }
.duel-p { font-family: var(--display); font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 6px; min-width: 0; }
.duel-p:last-child { justify-content: flex-end; }
.duel-p i { width: 3px; height: 14px; background: var(--tc); flex: none; }
.duel-p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duel-p em { font-style: normal; color: var(--mut); font-size: 12px; }
.duel-gap { font-family: var(--display); font-weight: 800; font-size: 11px; letter-spacing: .06em; color: #0A0A0A; background: var(--green); padding: 3px 7px; border-radius: 999px; white-space: nowrap; }
.duel-empty { font-size: 12px; color: var(--mut); line-height: 1.45; }

.rules { background: rgba(10,10,10,.82); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.rule { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; padding: 5px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--mut); }
.rule:first-of-type { border-top: 0; }
.rule b { font-family: var(--display); font-weight: 800; font-size: 14px; color: var(--txt); }
.rule em { font-style: normal; font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--green); }
.note { font-size: 11.5px; line-height: 1.5; color: var(--mut); border-left: 3px solid var(--line-2); padding: 2px 0 2px 12px; }
.note b { color: var(--txt); font-weight: 600; }

/* Semáforo e terço inferior */
.lights {
  position: absolute; left: 50%; top: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: rgba(10,10,10,.9); border: 1px solid var(--line-2); border-radius: 16px; padding: 14px 22px 12px;
}
.lights-row { display: flex; gap: 12px; }
.lights-row i { width: 26px; height: 26px; border-radius: 50%; background: #1E0B0B; border: 2px solid #2B1414; transition: background .12s, box-shadow .12s; }
.lights-row i.on { background: #FF2A2A; border-color: #FF6B6B; box-shadow: 0 0 18px rgba(255,42,42,.65); }
.lights-cap { font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .12em; color: var(--mut); }

.lower-third {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; align-items: stretch; min-width: 420px;
  background: #0A0A0A; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
  animation: lt-in .5s cubic-bezier(.2,.8,.2,1);
}
.lt-pos { background: var(--green); color: #0A0A0A; font-family: var(--display); font-weight: 900; font-size: 40px; padding: 10px 18px; display: flex; align-items: center; }
.lt-body { padding: 10px 18px; display: flex; flex-direction: column; justify-content: center; border-left: 4px solid var(--tc); }
.lt-k { font-size: 10px; font-weight: 700; letter-spacing: .3em; color: var(--green); }
.lt-n { font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; margin-top: 3px; }
.lt-d { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--mut); margin-top: 4px; letter-spacing: .04em; }
@keyframes lt-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }

.cv-tip {
  position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 22px));
  background: #0A0A0A; border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 10px;
  font-family: var(--display); font-weight: 700; font-size: 13px; white-space: nowrap;
}
.cv-tip small { display: block; font-family: var(--body); font-size: 10px; color: var(--mut); font-weight: 500; letter-spacing: .04em; }

/* ---------- Torre de classificação ---------- */
.tower { background: var(--bg); display: flex; flex-direction: column; min-height: 0; }
.tw-hd { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 18px 10px; }
.tw-title { font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: .02em; }
.tw-sub { font-size: 10px; font-weight: 700; letter-spacing: .24em; color: var(--green); }
.tw-cols, .row { display: grid; grid-template-columns: 30px 4px minmax(0, 1fr) 30px 46px 56px 74px 30px; align-items: center; column-gap: 7px; }
.row .val { font-family: var(--display); font-weight: 700; font-size: 15px; text-align: right; color: var(--txt); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tower.dense .row .val { font-size: 13px; }
.tw-cols { padding: 0 18px 8px; font-size: 9px; font-weight: 700; letter-spacing: .1em; white-space: nowrap; color: var(--dim); border-bottom: 1px solid var(--line); }
.r { text-align: right; }
.tw-rows { position: relative; flex: 1; min-height: 0; }
.row {
  position: absolute; left: 0; right: 0; top: 0; height: var(--rowh, 56px);
  padding: 0 18px; cursor: pointer;
  border-bottom: 1px solid #16191B;
  transition: transform .55s cubic-bezier(.3,.7,.2,1), background .3s;
}
.row:hover { background: #131617; }
.row.sel { background: #141A15; }
.row .pos {
  font-family: var(--display); font-weight: 900; font-size: 20px; text-align: center;
  background: #F2F2F2; color: #0A0A0A; border-radius: 6px; height: 30px; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums;
}
.row:not(.podium) .pos { background: transparent; color: var(--txt); }
.row.p1 .pos { background: var(--green); }
.row .tc { width: 4px; height: 60%; background: var(--tc); border-radius: 2px; }
.row .who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.row .who img { width: 38px; height: auto; flex: none; opacity: .95; }
.row .nm { display: flex; flex-direction: column; min-width: 0; line-height: 1; }
.row .nm b { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .nm small { font-size: 9.5px; letter-spacing: .14em; color: var(--mut); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.row .nm small .tie { color: #F5A524; margin-left: 6px; letter-spacing: .1em; }
.row .acc { font-family: var(--display); font-weight: 900; font-size: 24px; text-align: right; font-variant-numeric: tabular-nums; }
.row .gap { font-family: var(--display); font-weight: 700; font-size: 16px; text-align: right; color: var(--mut); font-variant-numeric: tabular-nums; }
.row.p1 .gap { color: var(--green); font-size: 13px; letter-spacing: .08em; font-weight: 800; }
.row .var { font-family: var(--display); font-weight: 800; font-size: 14px; text-align: right; color: var(--dim); font-variant-numeric: tabular-nums; }
.row .var.up { color: var(--green); }
.row .var.down { color: var(--red); }
.row.flash { animation: flash 1.2s ease; }
@keyframes flash { 0% { background: #1C2A1D; } 100% { background: transparent; } }
.tower.dense .row .who img { display: none; }
.tower.dense .row .pos { height: 24px; font-size: 17px; }
.tower.dense .row .nm b { font-size: 17px; }
.tower.dense .row .nm small { font-size: 8.5px; margin-top: 2px; }
.tower.dense .row .acc { font-size: 20px; }
.tower.dense .row .gap { font-size: 14px; }
.tower.dense .tw-hd { padding: 12px 18px 8px; }
.tower.dense .tw-ft { font-size: 9.5px; padding: 8px 18px; }
.tw-ft { padding: 10px 18px 12px; font-size: 10.5px; color: var(--dim); line-height: 1.45; border-top: 1px solid var(--line); }

/* ---------- Destaques do campeonato ---------- */
.champ { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); background: var(--bg); }
.ch { padding: 14px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; min-width: 0; cursor: default; }
.ch:first-child { border-left: 0; }
.ch[data-id] { cursor: pointer; }
.ch[data-id]:hover { background: #0F1112; }
.ch-k { font-size: 10px; font-weight: 700; letter-spacing: .28em; color: var(--green); }
.ch-n { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-n i { width: 4px; height: 22px; background: var(--tc); flex: none; }
.ch-v { font-family: var(--display); font-weight: 800; font-size: 15px; margin-top: 6px; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-d { font-size: 10px; color: var(--mut); letter-spacing: .1em; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ch.na .ch-n { color: var(--dim); font-size: 16px; letter-spacing: .04em; }

/* ---------- Ticker ---------- */
.ticker { display: flex; align-items: center; border-top: 1px solid var(--line); background: #070808; min-width: 0; }
.tk-label { flex: none; height: 100%; display: flex; align-items: center; padding: 0 16px; background: var(--green); color: #0A0A0A; font-family: var(--display); font-weight: 900; font-size: 13px; letter-spacing: .06em; }
.tk-track { flex: 1; overflow: hidden; height: 100%; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); }
.tk-inner { display: inline-flex; white-space: nowrap; animation: tick var(--tk-dur, 60s) linear infinite; }
.tk-inner span { font-size: 13px; color: var(--txt); padding: 0 28px; position: relative; }
.tk-inner span::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--green); transform: rotate(45deg); }
.tk-inner span.desce::before { background: var(--red); }
.tk-inner span.empate::before { background: #F5A524; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Painel do piloto ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 9; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); z-index: 10;
  background: #0B0C0C; border-left: 1px solid var(--line-2);
  transform: translateX(102%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.dr-close {
  position: absolute; right: 16px; top: 14px; z-index: 2;
  background: rgba(10,10,10,.8); border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: .1em; padding: 6px 12px; cursor: pointer;
}
.dr-photo { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-bottom: 4px solid var(--tc); }
.dr-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dr-num { position: absolute; left: 18px; bottom: 10px; font-family: var(--display); font-weight: 900; font-size: 64px; line-height: 1; color: #F2F2F2; text-shadow: 0 2px 18px rgba(0,0,0,.8); }
.dr-head { padding: 18px 22px 6px; }
.dr-k { font-size: 10px; font-weight: 700; letter-spacing: .3em; color: var(--green); }
.dr-name { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: .94; margin-top: 6px; }
.dr-team { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--mut); margin-top: 6px; letter-spacing: .06em; }
.dr-team i { width: 4px; height: 16px; background: var(--tc); }
.dr-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin: 16px 22px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dr-stat { background: #0E1011; padding: 12px 12px; }
.dr-stat span { font-size: 9px; letter-spacing: .2em; color: var(--dim); font-weight: 700; }
.dr-stat b { display: block; font-family: var(--display); font-weight: 900; font-size: 28px; line-height: 1; margin-top: 5px; font-variant-numeric: tabular-nums; }
.dr-stat b.up { color: var(--green); }
.dr-stat b.down { color: var(--red); }
.dr-sec { padding: 6px 22px 18px; }
.dr-sec h4 { margin: 8px 0 10px; font-size: 10px; font-weight: 700; letter-spacing: .3em; color: var(--green); }
.dr-chart svg { display: block; width: 100%; height: auto; }
.dr-empty { font-size: 13px; color: var(--mut); line-height: 1.5; }
.dr-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.dr-tbl th { text-align: left; font-size: 9px; letter-spacing: .2em; color: var(--dim); font-weight: 700; padding: 6px 0; border-bottom: 1px solid var(--line); }
.dr-tbl td { padding: 7px 0; border-bottom: 1px solid #16191B; font-family: var(--display); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.dr-tbl .r { text-align: right; }

.load-err { position: fixed; inset: auto 20px 20px auto; background: #2A0F0F; border: 1px solid #5A1F1F; color: #FFB3B3; padding: 12px 16px; border-radius: 12px; font-size: 13px; z-index: 20; max-width: 460px; }

/* ---------- Responsividade ---------- */
@media (max-width: 1380px) {
  :root { --champ-h: 104px; }
  .ch { padding: 12px 14px; }
  .ch-n { font-size: 22px; }
  .hdr-status { gap: 14px; }
  .hide-sm { display: none; }
}
@media (max-width: 1500px) {
  :root { --champ-h: 96px; }
  .ch { padding: 8px 12px; }
  .ch-k { font-size: 9px; letter-spacing: .18em; }
  .ch-n { font-size: 18px; margin-top: 5px; }
  .ch-n i { height: 16px; }
  .ch-v { font-size: 12.5px; margin-top: 4px; }
  .ch-d { font-size: 9px; letter-spacing: .04em; }
  .ch.na .ch-n { font-size: 13px; white-space: normal; }
}
@media (max-width: 1100px) {
  body { overflow: auto; }
  .app { height: auto; display: block; }
  .hdr { flex-wrap: wrap; height: auto; padding: 14px 16px; gap: 12px; }
  .hdr-status { flex-wrap: wrap; gap: 12px; }
  .stage { display: flex; flex-direction: column; }
  .circuit { order: 1; }
  .side { order: 2; border-right: 0; }
  .circuit { overflow: visible; }
  .cv-wrap { position: relative; inset: auto; height: min(100vw, 760px); }
  .ovs { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px; }
  .ov, .circuit.compact .ov-tr, .circuit.compact .ov-bl, .circuit.tight .ov { position: static; width: auto; display: block; }
  .tower { border-left: 0; border-top: 1px solid var(--line); }
  .tw-rows { height: calc(11 * 56px); flex: none; }
  .champ { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch { border-top: 1px solid var(--line); }
  .ticker { height: var(--tick-h); }
  .lower-third { min-width: 0; width: calc(100% - 32px); }
}
@media (max-width: 640px) {
  .brand-logo { height: 22px; }
  .bt-main { font-size: 24px; }
  .bt-sub { white-space: normal; letter-spacing: .18em; }
  .tw-cols { letter-spacing: 0; font-size: 8px; }
  .btn-replay { width: 100%; justify-content: center; }
  .ovs { grid-template-columns: 1fr; padding: 16px; }
  .tw-cols, .row { grid-template-columns: 26px 4px minmax(0, 1fr) 24px 40px 48px 60px 26px; column-gap: 4px; }
  .row .val { font-size: 12px; }
  .row { padding: 0 12px; }
  .tw-cols { padding: 0 12px 8px; }
  .row .who img { display: none; }
  .row .nm b { font-size: 16px; }
  .row .acc { font-size: 19px; }
  .row .gap { font-size: 13px; }
  .champ { grid-template-columns: 1fr; }
  .tk-label { font-size: 11px; padding: 0 10px; }
  .lights-row i { width: 18px; height: 18px; }
  .lt-n { font-size: 22px; }
  .lt-pos { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .tk-inner { animation-duration: 240s; }
  .flag-ico i { animation: none; }
}

/* Telas baixas (notebooks): pódio compacto para dar altura à classificação */
@media (max-height: 860px) and (min-width: 1101px) {
  .side-podium { padding: 10px 16px 10px; }
  .side-podium .ov-eyebrow { margin-bottom: 6px; }
  .pd-name { font-size: 15px; }
  .pd-team { margin: 2px 0 4px; }
  .pd.p1 .pd-step { height: 74px; }
  .pd.p2 .pd-step { height: 62px; }
  .pd.p3 .pd-step { height: 54px; }
  .pd-step { padding-top: 5px; }
  .pd-step b { font-size: 21px; }
  .pd-prize { margin-top: 3px; font-size: 10px; }
  .tower.dense .tw-ft { display: none; }
  .tower.dense .tw-hd { padding: 8px 16px 6px; }
  .tower.dense .tw-title { font-size: 19px; }
}

/* ---------- Destaques: vinheta e selo de replay ---------- */
.replay-bug {
  position: absolute; left: 22px; top: 20px; z-index: 4;
  display: flex; align-items: center; gap: 10px;
  background: rgba(10,10,10,.88); border: 1px solid var(--purple); border-radius: 999px;
  padding: 8px 16px 8px 12px; font-family: var(--display); font-weight: 900; font-size: 18px; letter-spacing: .08em;
}
.replay-bug i { width: 10px; height: 10px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 4px rgba(91,45,200,.25); animation: bug 1.2s ease-in-out infinite; }
.replay-bug small { font-family: var(--body); font-weight: 700; font-size: 10px; letter-spacing: .24em; color: var(--mut); }
@keyframes bug { 50% { opacity: .35; } }
.stinger { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.stinger b, .stinger i { position: absolute; top: -30%; bottom: -30%; width: 135%; left: -150%; transform: skewX(-16deg); }
.stinger b { background: var(--purple); }
.stinger i { background: var(--green); display: flex; align-items: center; justify-content: center; }
.stinger i span { transform: skewX(16deg); font-family: var(--display); font-weight: 900; font-size: clamp(40px, 7vw, 120px); letter-spacing: .04em; color: #0A0A0A; }
.stinger.go b { animation: wipe .95s cubic-bezier(.75,0,.25,1) both; }
.stinger.go i { animation: wipe .95s cubic-bezier(.75,0,.25,1) .06s both; }
@keyframes wipe { 0% { left: -150%; } 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .stinger.go b, .stinger.go i { animation-duration: .01s; } }

/* Tabela: acordo, proposta e pago */
.row .acd, .row .prp { font-family: var(--display); font-weight: 800; font-size: 18px; text-align: right; font-variant-numeric: tabular-nums; }
.row .prp { color: var(--mut); }
.row .val { font-size: 15px; }
.tower.dense .row .acd, .tower.dense .row .prp { font-size: 16px; }
.tw-cols { font-size: 8.5px; letter-spacing: .06em; }
@media (max-width: 640px) { .row .acd, .row .prp { font-size: 15px; } .row .val { font-size: 12px; } .tw-cols { font-size: 7.5px; letter-spacing: 0; } }
