:root {
  --bg: #050505;
  --bg-soft: #0d0d0f;
  --card: #131316;
  --card-2: #1a1a1f;
  --line: #26262c;
  --text: #f4f4f5;
  --muted: #8b8b95;
  --accent: #d4ff2b;
  --accent-soft: rgba(212, 255, 43, 0.12);
  --danger: #ff4d4d;
  --ok: #38d97a;
  --warn: #ffb020;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* o atributo hidden sempre vence, mesmo quando a classe define display */
[hidden] {
  display: none !important;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

/* ---------------------------------------------------------------- */
/* layout                                                            */
/* ---------------------------------------------------------------- */

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px 80px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 13px;
  flex-shrink: 0;
}

.brand img {
  height: 28px;
  width: auto;
}

/*
 * A nav nao quebra linha: sao poucos itens e o resto mora no "Mais".
 * `min-width: 0` deixa ela encolher em vez de empurrar o resto pra fora.
 */
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  min-width: 0;
  flex-wrap: nowrap;
}

.topbar-nav a,
.mais-btn {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: 0.15s;
  white-space: nowrap;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.topbar-nav a:hover,
.mais-btn:hover {
  background: var(--card);
  color: var(--text);
}

.topbar-nav a.active,
.mais-btn.active {
  background: var(--accent);
  color: #000;
}

/* ---- "Mais": o que nao cabe na barra ---- */

.mais {
  position: relative;
}

.mais-btn .seta {
  font-size: 10px;
  opacity: 0.7;
}

.mais-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 190px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
}

.mais-menu[hidden] {
  display: none;
}

.mais-menu a {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.mais-menu a:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.mais-menu a.active {
  background: var(--accent);
  color: #000;
  font-weight: 700;
}

/* ---- botao da gaveta: so aparece no celular ---- */

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  cursor: pointer;
  flex-shrink: 0;
  order: 3;
}

.menu-btn span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: 0.2s;
}

.menu-btn.aberto span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn.aberto span:nth-child(2) {
  opacity: 0;
}

.menu-btn.aberto span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---- gaveta ---- */

.gaveta {
  position: fixed;
  inset: 0;
  z-index: 130;
}

.gaveta[hidden] {
  display: none;
}

.gaveta-fundo {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.gaveta-painel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 84vw);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.5);
  animation: gaveta-entrar 0.18s ease-out;
}

@keyframes gaveta-entrar {
  from {
    transform: translateX(18px);
    opacity: 0.4;
  }
}

.gaveta-topo {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.gaveta-nome {
  font-weight: 800;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gaveta-lista {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gaveta-grupo {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
  color: var(--muted);
  padding: 12px 12px 6px;
}

.gaveta-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.gaveta-link:hover {
  background: var(--bg-soft);
}

.gaveta-link.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.gaveta-marca {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.gaveta-sair {
  margin: 10px;
  padding: 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 77, 77, 0.35);
  background: rgba(255, 77, 77, 0.1);
  color: #ff9a9a;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.gaveta-sair:hover {
  background: rgba(255, 77, 77, 0.2);
}

/* com a gaveta aberta o fundo nao rola */
body.menu-aberto {
  overflow: hidden;
}

/* no desktop quem manda e a nav: a gaveta nunca aparece (nem se a janela
   for encolhida com ela aberta) */
@media (min-width: 621px) {
  .gaveta {
    display: none;
  }
}

.meeting {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(212, 255, 43, 0.3);
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 14px;
  margin-bottom: 12px;
}

.meeting .tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--accent);
}

.meeting strong {
  color: var(--accent);
}

.meeting.compact {
  display: inline-flex;
  margin-bottom: 0;
  padding: 5px 11px;
  font-size: 12px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.list-row:last-child {
  border-bottom: 0;
}

/* ---------------------------- medidor ------------------------------ */

/*
 * O bloco do mapa (Leaflet). A altura e fixa porque o Leaflet precisa de um
 * container com tamanho pra calcular os tiles — dentro de um card oculto ele
 * monta com altura 0 (por isso o invalidateSize depois de mostrar).
 */
.medidor-mapa {
  height: 260px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  /* o Leaflet tem fundo proprio claro; sem isso pisca branco enquanto carrega */
  background: var(--bg-soft);
}

/* Tema escuro pro Leaflet: o padrao e branco e destoaria do app inteiro */
.medidor-mapa .leaflet-popup-content-wrapper,
.medidor-mapa .leaflet-popup-tip {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
}

.medidor-mapa .leaflet-popup-content {
  margin: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
}

.medidor-mapa .leaflet-popup-close-button {
  color: var(--muted);
}

.medidor-mapa .leaflet-control-attribution {
  background: rgba(5, 5, 5, 0.75);
  color: var(--muted);
  font-size: 10px;
}

.medidor-mapa .leaflet-control-attribution a {
  color: var(--accent);
}

.medidor-mapa .leaflet-bar a {
  background: var(--card);
  color: var(--text);
  border-color: var(--line);
}

.medidor-mapa .leaflet-bar a:hover {
  background: var(--bg-soft);
}

.gauge-card {
  text-align: center;
}

.gauge {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 0;
}

.gauge .value {
  font-size: 68px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.gauge .unit {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
}

.gauge-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.metric .value {
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.readout {
  font-size: 16px;
  font-weight: 800;
  padding: 9px 0;
  font-variant-numeric: tabular-nums;
}

.readout.good {
  color: var(--accent);
}

.readout.warn {
  color: var(--warn, #ffb347);
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.result-row:last-of-type {
  border-bottom: 0;
}

.result-row .label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.result-row .value {
  font-size: 24px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.result-row.done .label {
  color: var(--text);
}

.result-row.done .value {
  color: var(--accent);
}

.winner-opt {
  transition: 0.15s;
}

.admin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.admin-row:last-child {
  border-bottom: none;
}

.admin-row .who {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 200px;
  min-width: 0;
}

.admin-row .who img,
.admin-row .who .ph {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #000;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.admin-row .who .car {
  font-weight: 700;
}

.admin-row .who .owner {
  color: var(--muted);
  font-size: 12px;
}

.admin-row .fields {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 1 auto;
}

.admin-row .fields input {
  width: 88px;
  padding: 9px 10px;
  font-size: 14px;
}

/* ---------------------------------------------------------------- */
/* componentes                                                       */
/* ---------------------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
}

.card h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.card .sub {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 14px;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 26px 0 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-title .count {
  color: var(--muted);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: 0.15s;
}

.btn:hover:not(:disabled) {
  border-color: #3a3a44;
  background: #22222a;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.btn-primary:hover:not(:disabled) {
  background: #e2ff5c;
  border-color: #e2ff5c;
}

.btn-ghost {
  background: transparent;
}

.btn-danger {
  color: var(--danger);
  border-color: rgba(255, 77, 77, 0.35);
}

.btn-ok {
  color: #000;
  background: var(--ok);
  border-color: var(--ok);
}

.btn-sm {
  padding: 8px 13px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

label,
.label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
}

/*
 * `input:not([type])` e o campo de texto puro: sem atributo type o navegador
 * assume texto, mas o seletor `input[type="text"]` NAO casa. Sem esta linha
 * esses campos nasciam com a aparencia branca do sistema, no meio do tema
 * escuro (era o caso do "outro valor" da vaquinha e dos formularios do admin).
 *
 * `tel` entra na mesma lista: ele nao tem aparencia propria, entao sem isto o
 * campo do celular ficava branco e, ao focar, o `input:focus` logo abaixo
 * pintava o fundo de quase preto com o texto ainda preto — o numero sumia na
 * hora de digitar.
 */
input:not([type]),
input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="tel"],
input[type="file"],
select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 13px;
  font-size: 15px;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  min-height: 46px;
  line-height: 1.3;
  transition: border-color 0.15s ease, background 0.15s ease;
}

input[type="date"],
input[type="time"] {
  display: flex;
  align-items: center;
}

/* o icone nativo do calendario/relogio nao aparece no tema escuro */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.55;
  cursor: pointer;
}

/* o Edge/IE colocam um olho proprio que brigaria com o nosso */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

input::placeholder {
  color: var(--muted);
  opacity: 0.65;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
}

select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 17px;
  padding-right: 38px;
  cursor: pointer;
}

/* ---------------------------- videos ------------------------------- */

.clipe {
  margin-bottom: 16px;
}

.clipe:last-child {
  margin-bottom: 0;
}

.clipe-pill {
  background: rgba(212, 255, 43, 0.12);
  color: var(--accent);
}

.clipe-aviso {
  color: var(--accent);
  font-weight: 600;
}

.clipe-processando {
  background: rgba(255, 176, 32, 0.14);
  color: var(--warn);
}

.clipe-otimizado {
  background: rgba(56, 217, 122, 0.12);
  color: var(--ok);
}

.clipe:last-child {
  margin-bottom: 0;
}

.clipe video {
  width: 100%;
  max-height: 420px;
  border-radius: 12px;
  background: #000;
  border: 1px solid var(--line);
  display: block;
}

.clipe-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.clipe-info .quem {
  font-weight: 700;
  font-size: 13px;
}

.clipe-info [data-apagar-video] {
  margin-left: auto;
  color: var(--danger);
}

.enviar-video {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.enviar-video .sub {
  flex: 1;
  min-width: 120px;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.enviar-video #video-progress {
  flex-basis: 100%;
  color: var(--accent);
  font-weight: 700;
}

/* -------------------- perfil publico do carro ---------------------- */

.perfil-topo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 4px 0 18px;
}

.perfil-foto {
  width: 108px;
  height: 108px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.perfil-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.perfil-foto .ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
}

.perfil-info {
  min-width: 0;
}

.perfil-info h1 {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.15;
}

.times-grandes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.times-grandes .tempo {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
  text-align: center;
}

.times-grandes .tempo .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.times-grandes .tempo .valor {
  font-size: 25px;
  font-weight: 900;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.campanha {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
}

.campanha > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.campanha .n {
  font-size: 23px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.campanha .l {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 700;
}

.puxada {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: var(--radius);
  padding: 13px 15px;
  margin-bottom: 9px;
  color: var(--text);
}

.puxada:hover {
  border-color: var(--accent);
}

.puxada.ganhou {
  border-left-color: var(--ok);
}

.puxada.perdeu {
  border-left-color: var(--danger);
}

.puxada-topo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.puxada-topo .resultado {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.puxada.ganhou .resultado {
  color: var(--ok);
}

.puxada.perdeu .resultado {
  color: var(--danger);
}

.puxada-corpo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 3px;
}

.puxada-corpo .carro {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.puxada-corpo .rival {
  color: var(--muted);
}

.puxada-corpo .vs-mini {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}

/* botao que leva ao perfil publico do carro */
.link-carro {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.link-carro:hover {
  color: var(--accent);
}

/* ------------------- aviso de pedido pendente ---------------------- */

.aviso-pendente {
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(255, 176, 32, 0.1);
  border: 1px solid rgba(255, 176, 32, 0.4);
  border-radius: var(--radius);
  padding: 13px 15px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.aviso-pendente:hover {
  background: rgba(255, 176, 32, 0.16);
}

.aviso-pendente .selo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--warn);
  color: #000;
  font-weight: 900;
  font-size: 14px;
}

.aviso-pendente strong {
  display: block;
  color: var(--warn);
  font-size: 14px;
  margin-bottom: 2px;
}

.aviso-pendente .seta {
  margin-left: auto;
  font-size: 20px;
  color: var(--warn);
  flex-shrink: 0;
}

/* ---------------------------------------------------------------- */
/* mural dos acelero (registro do que ja rolou)                      */
/* ---------------------------------------------------------------- */

/*
 * O convite pra registrar corrida passada. Fica com a cara de "acervo da
 * galera" em vez de formulario: numero que cresce, nome de quem ja entrou e
 * um botao so.
 */
/* o aviso de "falta o video": e um convite, nao um erro */
.aviso-video {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px dashed rgba(212, 255, 43, 0.35);
  border-radius: var(--radius);
  line-height: 1.55;
}

.aviso-video a {
  color: var(--accent);
  font-weight: 700;
}

/* clipe ausente no card do historico, so quando da pra resolver */
.event .pill.sem-clipe {
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--muted);
}

/* o selo "acervo da galera" (home e historico) */
.selo {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #000;
  background: var(--accent);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 12px;
}

.mural {
  border-color: rgba(212, 255, 43, 0.32);
  background: linear-gradient(180deg, rgba(212, 255, 43, 0.06), transparent 96px), var(--card);
}

.mural h2 {
  font-size: 20px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.mural .sub {
  margin: 0 0 16px;
  line-height: 1.55;
}

/* por que vale a pena: riscos curtos, um por linha */
.mural-motivos {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.mural-motivos li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: var(--text);
}

.mural-motivos .ic {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  font-size: 15px;
  line-height: 1.45;
}

/* o placar do acervo: numero grande, legenda pequena */
.mural-numeros {
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
}

.mural-numero {
  flex: 1;
  min-width: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.mural-numero b {
  display: block;
  font-size: 25px;
  line-height: 1.1;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.mural-numero span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 3px;
  /* "aceleros" e "clipes" cabem numa linha ate no celular estreito */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* no celular estreito o padding come a largura da legenda: aperta os dois */
@media (max-width: 480px) {
  .mural-numero {
    padding: 11px 9px;
  }

  .mural-numero b {
    font-size: 22px;
  }

  .mural-numero span {
    font-size: 10px;
    letter-spacing: 0.02em;
  }
}

/* "2 ainda sem clipe": o empurrao pra subir video */
.mural-falta {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 11px 13px;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.mural-falta b {
  color: var(--text);
}

/* quem entrou por ultimo: creditar e o que puxa o proximo */
.mural-recentes {
  margin: 18px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

.mural-recentes h4 {
  margin: 0 0 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.mural-recentes ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.mural-recentes a {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 12px;
  font-size: 13px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.mural-recentes a:hover {
  border-color: var(--accent);
  background: var(--card-2);
}

.mural-recentes .duelo {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mural-recentes .duelo b {
  font-weight: 700;
}

.mural-recentes .vs {
  color: var(--muted);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.mural-recentes .quando {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--muted);
}

.mural-recentes .clipe {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #000;
  background: var(--accent);
  border-radius: 999px;
  padding: 3px 8px;
}

/* ---------------------- em breve (medidor) ------------------------- */

.em-breve {
  text-align: center;
  padding: 30px 20px;
  border-color: rgba(212, 255, 43, 0.3);
  background: var(--accent-soft);
}

.em-breve .selo {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #000;
  background: var(--accent);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

.em-breve strong {
  display: block;
  font-size: 21px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.em-breve .sub {
  max-width: 380px;
  margin: 0 auto 10px;
  line-height: 1.55;
}

/* ------------------------- campo de senha -------------------------- */

.field-senha {
  position: relative;
}

.field-senha input {
  padding-right: 48px;
}

.olho {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 36px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.olho:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.olho.ativo {
  color: var(--accent);
}

.olho svg {
  width: 19px;
  height: 19px;
}

/* a dica "3 a 20 caracteres" fica colada embaixo do campo */
.field .ajuda {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.4;
}

/*
 * Separador das etapas do cadastro ("1. Seu carro", "2. Sua conta").
 * A senha ficou por ultimo de proposito: o gerenciador de senhas do
 * navegador preenchia o campo seguinte (o nome do carro) com a senha.
 */
.form-secao {
  margin: 22px 0 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-secao:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* aviso vermelho colado no campo (nome do carro com a senha dentro) */
.aviso-campo {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #ff8b8b;
}

.campo-errado,
.campo-errado:focus {
  border-color: #ff6b6b;
}

.field {
  margin-bottom: 14px;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.row > * {
  flex: 1 1 160px;
}

/* ---------------------------------------------------------------- */
/* entrada                                                           */
/* ---------------------------------------------------------------- */

.entry {
  max-width: 460px;
  margin: 0 auto;
  padding: 40px 16px 60px;
}

.entry .logo {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 8px;
}

.entry .tagline {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.photo-drop {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 22px;
  text-align: center;
  cursor: pointer;
  transition: 0.15s;
  margin-bottom: 16px;
}

.photo-drop:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.photo-drop.has-photo {
  padding: 0;
  border-style: solid;
  border-color: var(--accent);
  overflow: hidden;
  background: #000;
}

.photo-drop img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.photo-drop .hint {
  color: var(--muted);
  font-size: 13px;
}

.photo-drop .hint strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 4px;
}

/* o preview mostra o mesmo quadrado que o resto do site usa */
.photo-drop.has-photo img {
  width: 210px;
  height: 210px;
  margin: 0 auto;
  display: block;
}

/* ---------------------------------------------------------------- */
/* editor de enquadramento da foto                                   */
/* ---------------------------------------------------------------- */

.editor-foto {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overscroll-behavior: contain;
}

/*
 * O modal do celular aparece em QUALQUER tela e nao pode ser fechado sem
 * preencher: o telefone e a chave da lista de liberados do grupo. Por isso ele
 * fica acima de tudo (z-index maior que o resto) e sem botao de fechar.
 */
.pede-telefone {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overscroll-behavior: contain;
}

.pede-telefone-caixa {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  width: 100%;
  max-width: 380px;
}

.pede-telefone-caixa h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.pede-telefone-ajuda {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 14px;
}

.pede-telefone-campo {
  display: block;
  margin-bottom: 12px;
}

.pede-telefone-campo span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.pede-telefone-campo input {
  width: 100%;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.pede-telefone-erro {
  color: #ff6b6b;
  font-size: 13px;
  margin: 0 0 10px;
}

.pede-telefone-sair {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.editor-foto-caixa {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.editor-foto-caixa h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.editor-foto-ajuda {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 14px;
}

.editor-foto-janela {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 14px;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  border: 1px solid var(--line);
  cursor: grab;
  /* sem isso o navegador rola a pagina em vez de arrastar a foto */
  touch-action: none;
  user-select: none;
}

.editor-foto.arrastando .editor-foto-janela {
  cursor: grabbing;
}

.editor-foto-janela img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  transform-origin: 0 0;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* a grade ajuda a ver o que vai ficar dentro do recorte */
.editor-foto-janela::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      transparent 33.3%,
      rgba(255, 255, 255, 0.18) 33.3%,
      rgba(255, 255, 255, 0.18) calc(33.3% + 1px),
      transparent calc(33.3% + 1px),
      transparent 66.6%,
      rgba(255, 255, 255, 0.18) 66.6%,
      rgba(255, 255, 255, 0.18) calc(66.6% + 1px),
      transparent calc(66.6% + 1px)
    ),
    linear-gradient(
      to bottom,
      transparent 33.3%,
      rgba(255, 255, 255, 0.18) 33.3%,
      rgba(255, 255, 255, 0.18) calc(33.3% + 1px),
      transparent calc(33.3% + 1px),
      transparent 66.6%,
      rgba(255, 255, 255, 0.18) 66.6%,
      rgba(255, 255, 255, 0.18) calc(66.6% + 1px),
      transparent calc(66.6% + 1px)
    );
}

.editor-foto-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--muted);
}

.editor-foto-zoom input {
  flex: 1;
  accent-color: var(--accent);
}

.editor-foto-acoes {
  display: flex;
  gap: 10px;
}

.editor-foto-acoes .btn {
  flex: 1;
}

/* ---------------------------------------------------------------- */
/* carros e presenca                                                 */
/* ---------------------------------------------------------------- */

.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.car-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.car-card .shot {
  height: 130px;
  background: #000 center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.car-card .shot:hover {
  opacity: 0.85;
}

.car-card .body {
  padding: 12px 13px 13px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.car-card .car-name {
  font-weight: 800;
  font-size: 15px;
}

.car-card .owner {
  color: var(--muted);
  font-size: 13px;
}

.car-card .times {
  display: flex;
  gap: 8px;
  margin: 8px 0 10px;
  font-size: 12px;
  color: var(--muted);
}

.car-card .times span {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
}

.car-card .times b {
  color: var(--accent);
}

.car-card .actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

/* ---------------------------------------------------------------- */
/* eventos                                                           */
/* ---------------------------------------------------------------- */

.event {
  /* e um <a>: sem display:block o card inline nao envolve o conteudo */
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  transition: border-color 0.15s ease;
}

.event:hover {
  border-color: rgba(212, 255, 43, 0.45);
}

.event.status-pendente {
  border-left-color: var(--warn);
}
.event.status-aceito {
  border-left-color: var(--ok);
}
.event.status-finalizado {
  border-left-color: var(--accent);
}
.event.status-recusado,
.event.status-cancelado {
  border-left-color: var(--danger);
  opacity: 0.6;
}

.event-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.badge.pendente {
  color: var(--warn);
  border-color: rgba(255, 176, 32, 0.4);
}
.badge.aceito {
  color: var(--ok);
  border-color: rgba(56, 217, 122, 0.4);
}
.badge.finalizado {
  color: var(--accent);
  border-color: rgba(212, 255, 43, 0.4);
}
.badge.recusado,
.badge.cancelado {
  color: var(--danger);
  border-color: rgba(255, 77, 77, 0.4);
}

.vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.vs .side {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vs .side.right {
  flex-direction: row-reverse;
  text-align: right;
}

.vs .side img,
.vs .side .ph {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: #000;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.vs .side .ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 10px;
}

.vs .side .info {
  min-width: 0;
}

.vs .side .info .n {
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vs .side .info .u {
  color: var(--muted);
  font-size: 12px;
}

.vs .mid {
  font-weight: 900;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.event.winner-a .vs .side.left .info .n,
.event.winner-b .vs .side.right .info .n {
  color: var(--accent);
}

.odds {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: stretch;
}

.odds .pool {
  flex: 0 0 auto;
  padding: 7px 12px;
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.odds .pool b {
  display: block;
  font-size: 17px;
  color: var(--accent);
}

/* ---------------------------------------------------------------- */
/* placar de odds (home e admin)                                     */
/* ---------------------------------------------------------------- */

/*
 * Mesma grade do .vs logo acima (1fr auto 1fr): assim a cotacao de cada carro
 * fica exatamente embaixo dele e o nome nao precisa se repetir.
 */
.placar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.placar-lado {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.placar-lado.dir {
  text-align: right;
  align-items: flex-end;
}

.placar-lado b {
  font-size: 17px;
  color: var(--accent);
  line-height: 1.1;
}

.placar-lado b small {
  font-size: 11px;
  margin-left: 1px;
}

/* lado sem ficha nao tem cotacao pra prometer */
.placar-lado b.aberta {
  color: var(--muted);
}

.placar-lado span {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.placar-lado .placar-valor {
  font-size: 11px;
  color: var(--muted);
}

/* marca de "sua aposta" e de favorito, acima da cotacao do lado */
.placar-lado .marca {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.placar-lado .marca.minha {
  color: var(--accent);
}

.placar-lado .marca.favorita {
  color: var(--muted);
}

.placar-pote {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 14px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.placar-pote b {
  font-size: 17px;
  color: var(--text);
  line-height: 1.1;
}

/* pote zerado nao vira "pote 0": a faixa toda vira um aviso */
.placar.vazio {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding-top: 10px;
}

/* ---------------------------------------------------------------- */
/* puxadas de hoje (home)                                            */
/* ---------------------------------------------------------------- */

/* quem foi chamado tem que bater o olho e saber que a bola e dele */
.pill.dica-acao {
  background: rgba(255, 193, 7, 0.12);
  border-color: rgba(255, 193, 7, 0.4);
  color: var(--warn);
  font-weight: 700;
}

.sub.dica-pendente {
  margin: 0;
}

.pill.vencedor {
  border-color: rgba(212, 255, 43, 0.35);
}

/* ---------------------------------------------------------------- */
/* ao vivo                                                           */
/* ---------------------------------------------------------------- */

/*
 * O selo fica colado embaixo da topbar, na largura do conteudo dela: quem
 * esta rolando a home ve que o encontro entrou no ar sem procurar a aba.
 */
.live-selo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 900px;
  margin: 0 auto;
  padding: 6px 16px;
  background: rgba(255, 77, 77, 0.14);
  border-bottom: 1px solid rgba(255, 77, 77, 0.35);
  color: #ff8a8a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.live-selo:hover {
  background: rgba(255, 77, 77, 0.22);
  color: #ffb3b3;
}

/* ponto vermelho pulsando: e o "gravando" da live */
.live-ponto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  flex-shrink: 0;
  animation: pulsar 1.6s ease-in-out infinite;
}

@keyframes pulsar {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

@media (prefers-reduced-motion: reduce) {
  .live-ponto { animation: none; }
}

.palco {
  padding: 14px;
}

.palco-topo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 13px;
}

.selo-vivo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 77, 77, 0.14);
  border: 1px solid rgba(255, 77, 77, 0.4);
  color: #ff8a8a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.sem-vivo {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.palco-espectadores {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.palco-espectadores b {
  color: var(--text);
}

.palco-titulo {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
}

/* o quadro do video: preto, 16:9 e sem sobra branca de player nativo */
.player {
  position: relative;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

/* no celular de quem transmite o preview e vertical: 16:9 cortaria a imagem */
.palco-envio .player,
.palco-preparo .player {
  aspect-ratio: 9 / 11;
}

.palco-aviso {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: rgba(5, 5, 5, 0.55);
}

.envio-linha {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
}

.envio-linha b {
  color: var(--accent);
}

.envio-estado {
  font-size: 12px;
  color: var(--warn);
  font-weight: 700;
}

.envio-estado.no-ar {
  color: var(--ok);
}

.palco-nota {
  margin: 10px 0 0;
}

/*
 * Os botoes de quem transmite sao usados com o celular na mao, no meio do
 * encontro: 44px de altura e o minimo pra acertar sem olhar.
 */
.palco .btn {
  min-height: 44px;
  flex: 1;
}

.palco .row {
  flex-wrap: wrap;
}

.palco .campo {
  display: block;
  margin: 12px 0;
}

.palco .campo span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.palco .campo input {
  width: 100%;
}

/* quem esta transmitindo ganha moldura vermelha na lista de presentes */
.car-card.transmitindo {
  border-color: rgba(255, 77, 77, 0.5);
}

.car-no-ar {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.75);
  color: #ff8a8a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.car-card .shot {
  position: relative;
}

.gravacao {
  padding: 12px;
}

.gravacao video {
  width: 100%;
  display: block;
  border-radius: 10px;
  background: #000;
  border: 1px solid var(--line);
}

.gravacao-pe {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 13px;
}

.gravacao-pe .btn {
  margin-left: auto;
}

/*
 * A conversa da transmissao. Reaproveita as linhas de comentario que ja
 * existem (mesmo visual da tela da puxada), mas com altura fixa: ela precisa
 * conviver com o video sem empurrar a pagina.
 */
.conversa {
  margin-top: 14px;
  padding: 0;
  overflow: hidden;
}

.conversa-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.conversa-topo h3 {
  margin: 0;
  font-size: 15px;
}

.conversa-lista {
  height: 260px;
  overflow-y: auto;
  padding: 6px 14px;
  scrollbar-width: thin;
}

.conversa-lista .comentario.meu {
  border-left: 2px solid var(--accent);
  padding-left: 9px;
}

.conversa-lista .marca.minha {
  font-size: 10px;
}

.conversa-fim {
  margin: 0;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.conversa .comentarios-form {
  border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
  .conversa-lista {
    height: 200px;
  }
}

/* ---------------------------------------------------------------- */
/* vaquinha do dominio (botao flutuante + modal)                     */
/* ---------------------------------------------------------------- */

/*
 * Fica no canto de baixo a esquerda. O direito ja e dos botoes de
 * curtir/comentar dos shorts e do selo de AO VIVO.
 */
.doacao-widget {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 90;
}

/*
 * Nos shorts o rodape ocupa o canto: o coracaozinho sobe pra nao cobrir o
 * nome dos carros nem o link da puxada.
 */
body.shorts-body .doacao-widget {
  bottom: 110px;
  left: 14px;
}

.doacao-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(19, 19, 22, 0.92);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  transition: 0.15s;
}

.doacao-btn:hover {
  border-color: var(--danger);
  transform: translateY(-1px);
}

.doacao-btn-icone {
  font-size: 15px;
  line-height: 1;
}

.doacao-btn-pct {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.doacao-btn.completa {
  border-color: var(--ok);
}

.doacao-btn.completa .doacao-btn-pct {
  color: var(--ok);
}

/* ---- modal ---- */

.doacao {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.doacao-fundo {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.doacao-caixa {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scrollbar-width: thin;
}

.doacao-topo {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}

.doacao-topo h3 {
  margin: 0;
  font-size: 15px;
  flex: 1;
}

.doacao-x {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 17px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1.2;
}

.doacao-x:hover {
  color: var(--text);
}

.doacao-corpo {
  padding: 15px 16px 18px;
}

.doacao-aviso {
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  margin-bottom: 13px;
  background: rgba(56, 217, 122, 0.12);
  border: 1px solid rgba(56, 217, 122, 0.35);
  color: #7ef0ae;
}

.doacao-aviso.erro {
  background: rgba(255, 77, 77, 0.12);
  border-color: rgba(255, 77, 77, 0.35);
  color: #ff8a8a;
}

.doacao-aviso.aviso {
  background: rgba(255, 176, 32, 0.12);
  border-color: rgba(255, 176, 32, 0.35);
  color: var(--warn);
}

/* ---- meta e barra de progresso ---- */

.doacao-meta-topo,
.doacao-meta-pe {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
}

.doacao-barra {
  height: 9px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
  margin: 9px 0;
}

.doacao-barra i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--danger), var(--accent));
  border-radius: 999px;
  transition: width 0.4s ease;
}

.doacao-ok {
  color: var(--ok);
  font-weight: 700;
}

.doacao-aguardando {
  color: var(--warn);
  font-weight: 700;
}

/* ---- destino do dinheiro ---- */

.doacao-destino,
.doacao-doadores {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.doacao-destino h4,
.doacao-doadores h4 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.doacao-destino ul,
.doacao-doadores ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.doacao-destino li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.doacao-destino-icone {
  font-size: 17px;
  line-height: 1.3;
  flex-shrink: 0;
}

.doacao-destino b {
  font-size: 13px;
}

.doacao-destino p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.doacao-doadores li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.doacao-doadores li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.doacao-doadores b {
  color: var(--accent);
  white-space: nowrap;
}

/* ---- valores e QR ---- */

.doacao-pix {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.doacao-valores {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.doacao-valor {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
}

.doacao-valor:hover {
  border-color: var(--muted);
}

.doacao-valor.ativo {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.doacao-outro {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--bg-soft);
}

.doacao-outro span {
  font-size: 13px;
  color: var(--muted);
}

.doacao-outro input {
  width: 66px;
  border: none;
  background: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 0;
  outline: none;
  /* o campo vive dentro da "pilula", entao nao herda a altura do input padrao */
  min-height: 0;
}

.doacao-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin: 0 auto 13px;
  width: 232px;
  max-width: 100%;
  min-height: 180px;
}

.doacao-qr svg {
  width: 100%;
  height: auto;
  display: block;
}

.doacao-qr-carregando {
  color: #555;
  font-size: 12px;
  text-align: center;
}

.doacao-copia {
  display: flex;
  gap: 8px;
}

.doacao-copia input {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--muted);
  /* alinha com o botao pequeno ao lado, sem a altura cheia do campo padrao */
  min-height: 38px;
  padding: 0 12px;
}

.doacao-dica {
  margin: 9px 0 0;
  text-align: center;
}

.doacao-doei {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: stretch;
  text-align: center;
}

.doacao-doei .sub {
  margin: 0;
}

.doacao-rodape {
  margin: 16px 0 0;
  text-align: center;
  font-size: 11px;
}

@media (max-width: 560px) {
  /* no celular o modal sobe de baixo, como a gaveta de comentarios */
  .doacao {
    align-items: flex-end;
    padding: 0;
  }

  .doacao-caixa {
    max-width: 100%;
    max-height: 92vh;
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: none;
  }
}

/* ---------------------------------------------------------------- */
/* patrocinadores                                                    */
/* ---------------------------------------------------------------- */

.patro-hero {
  text-align: center;
}

.patro-hero .sub {
  margin: 10px auto 0;
  max-width: 52ch;
}

.patro {
  display: flex;
  gap: 15px;
  padding: 15px;
  margin-bottom: 14px;
}

.patro-logo {
  width: 86px;
  height: 86px;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
}

.patro-logo img {
  width: 100%;
  height: 100%;
  /* logo nao se corta: cabe inteira dentro do quadrado */
  object-fit: contain;
  padding: 7px;
}

/* enquanto a loja nao manda a logo: um selo com o nome, nada de imagem quebrada */
.patro-selo {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-align: center;
  padding: 0 6px;
  line-height: 1.1;
}

.patro-corpo {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.patro-corpo h3 {
  margin: 0;
  font-size: 17px;
}

.patro-insta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.patro-insta:hover {
  color: var(--accent);
}

.patro-corpo .sub {
  margin: 4px 0 0;
  font-size: 13px;
}

/* o cupom e a unica coisa que a pessoa leva daqui: fica grande e copiavel */
.patro-cupom {
  margin-top: 10px;
  border: 1px dashed rgba(212, 255, 43, 0.45);
  background: var(--accent-soft);
  border-radius: 11px;
  padding: 10px 12px;
}

.patro-cupom-topo {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 7px;
}

.patro-desconto {
  color: var(--accent);
  font-weight: 800;
}

.patro-cupom-codigo {
  display: flex;
  align-items: center;
  gap: 9px;
}

.patro-cupom-codigo code {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
  word-break: break-all;
}

.patro-cupom-codigo .btn {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .patro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .patro-corpo {
    align-items: center;
    width: 100%;
  }
}

/* ------------------------------------------------------------------ */
/* patrocinadores                                                      */
/* ------------------------------------------------------------------ */

/* linha de lista do painel (doacoes e patrocinadores) */
.admin-linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.admin-linha:last-child {
  border-bottom: none;
}

/*
 * O botao da linha nunca encolhe nem quebra: quem cede espaco e o texto da
 * esquerda. Sem isso o "Lancar R$ 10,00" virava duas linhas no celular.
 */
.admin-linha .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* na fila de "ja doei" os botoes descem pra propria linha quando nao couberem */
.admin-linha.fila {
  flex-wrap: wrap;
  row-gap: 8px;
}

.admin-linha.fila .admin-acoes {
  margin-left: auto;
}

.admin-linha-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: contain;
  padding: 3px;
  background: #000;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.admin-logo.vazio {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
}

.admin-acoes {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/*
 * O formulario manual da vaquinha fica recolhido: o caminho comum e o botao
 * de um clique na fila, e o admin nao precisa ver tres campos pra isso.
 */
.manual summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding: 4px 0;
  list-style: none;
}

.manual summary::-webkit-details-marker {
  display: none;
}

.manual summary::before {
  content: "＋";
  margin-right: 7px;
  color: var(--accent);
  font-weight: 800;
}

.manual[open] summary::before {
  content: "－";
}

.manual summary:hover {
  color: var(--text);
}

/* ---------------------------------------------------------------- */
/* ranking                                                           */
/* ---------------------------------------------------------------- */

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tabs button {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: 0.15s;
}

.tabs button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
}

.rank-table th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.rank-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.rank-table tr:last-child td {
  border-bottom: none;
}

.rank-table .pos {
  font-weight: 900;
  color: var(--muted);
  width: 42px;
}

.rank-table tr.top1 .pos {
  color: #ffd700;
}
.rank-table tr.top2 .pos {
  color: #c0c0c0;
}
.rank-table tr.top3 .pos {
  color: #cd7f32;
}

.rank-table .drv {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.rank-table .drv:hover .car {
  color: var(--accent);
}

.rank-table .drv img,
.rank-table .drv .ph {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  background: #000;
  border: 1px solid var(--line);
}

.rank-table .drv .car {
  font-weight: 700;
}

.rank-table .drv .who {
  color: var(--muted);
  font-size: 12px;
}

.rank-table .tm {
  text-align: right;
  font-weight: 900;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- */
/* diversos                                                          */
/* ---------------------------------------------------------------- */

.empty {
  text-align: center;
  color: var(--muted);
  padding: 26px 14px;
  font-size: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.alert {
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}

.alert.show {
  display: block;
}

.alert.error {
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid rgba(255, 77, 77, 0.4);
  color: #ff9a9a;
}

.alert.ok {
  background: rgba(56, 217, 122, 0.1);
  border: 1px solid rgba(56, 217, 122, 0.4);
  color: #86efac;
}

.muted {
  color: var(--muted);
}

/* aviso de que aquele piloto correu sem ter conta no site (ficha do encontro) */
.selo-sem-cadastro {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 176, 32, 0.5);
  background: rgba(255, 176, 32, 0.12);
  color: var(--warn);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  vertical-align: middle;
}

/* ------------------------------------------------------------------ */
/* acertos (quem paga quem, depois do resultado)                       */
/* ------------------------------------------------------------------ */

.acerto-resumo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .acerto-resumo {
    grid-template-columns: 1fr;
  }
}

.acerto-total {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.acerto-total.devendo {
  border-left-color: var(--danger);
}

.acerto-total.recebendo {
  border-left-color: var(--ok);
}

.acerto-total .rotulo {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

.acerto-total b {
  font-size: 25px;
  font-weight: 800;
}

.acerto-limpo {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: center;
  padding: 26px 16px;
}

.acerto-limpo b {
  font-size: 17px;
}

/* grupo = uma pessoa: o total que se acerta com ela num pix so */
.acerto-grupo {
  border-left: 3px solid var(--line);
}

.acerto-grupo.devo {
  border-left-color: var(--danger);
}

.acerto-grupo.recebo {
  border-left-color: var(--ok);
}

.acerto-grupo-topo {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.acerto-quem {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.acerto-quem b {
  font-size: 15px;
}

.acerto-grupo-total {
  font-size: 19px;
  font-weight: 800;
  white-space: nowrap;
}

.acerto-seta {
  color: var(--muted);
  margin: 0 4px;
}

.acerto-pix {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  margin-bottom: 10px;
}

.acerto-pix-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.acerto-pix-info b {
  font-size: 14px;
  word-break: break-all;
}

.acerto-itens {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* a acao e uma so por pessoa, porque o valor ja e o saldo compensado */
.acerto-grupo-acao {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.acerto-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.acerto-item:last-child {
  border-bottom: none;
}

.acerto-item-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.acerto-item-puxada {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

a.acerto-item-puxada:hover {
  color: var(--accent);
}

.acerto-item-acao {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.acerto-item-acao b {
  font-size: 14px;
}

/* pago pelo devedor mas ainda sem o "recebi" da outra ponta */
.acerto-espera {
  font-size: 11px;
  color: var(--warn);
  font-weight: 700;
}

.acerto-item.pago {
  opacity: 0.6;
}

.acerto-quitado {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--ok);
}

/* o aviso de como funciona: o que separa o app de uma casa de apostas */
.acerto-aviso {
  margin-top: 22px;
  border-style: dashed;
}

.acerto-aviso p {
  margin: 0 0 10px;
}

/* o bloco do acerto dentro da tela do evento */
.acerto-linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  background: var(--bg-soft);
}

.acerto-linha.devo {
  border-color: rgba(255, 90, 90, 0.4);
  background: rgba(255, 90, 90, 0.07);
}

.acerto-linha.recebo {
  border-color: rgba(80, 220, 130, 0.4);
  background: rgba(80, 220, 130, 0.07);
}

.acerto-linha .acerto-quem {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
}

.acerto-linha .acerto-valor {
  font-size: 15px;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* grade de carros (escolher com foto, no lugar de um select comprido) */
/* ------------------------------------------------------------------ */

.grade-carros {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 10px;
}

.grade-carros-busca {
  margin-bottom: 10px;
}

.grade-carros-lista {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 10px;
  /* lista comprida rola aqui dentro: o resto do formulario nao sai da tela */
  max-height: 320px;
  overflow-y: auto;
  padding: 2px;
}

.grade-carros-titulo {
  grid-column: 1 / -1;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

.grade-carros-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.grade-carros-card:hover {
  border-color: var(--muted);
}

.grade-carros-card.escolhido {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* o escolhido ganha um visto alem da cor: cor sozinha nao diz nada pra todos */
.grade-carros-card.escolhido .grade-carros-info b::after {
  content: " ✓";
  color: var(--accent);
}

.grade-carros-foto {
  height: 82px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
}

.grade-carros-foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grade-carros-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 9px;
  min-width: 0;
}

.grade-carros-info b {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grade-carros-info .sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.grade-carros-vazio {
  grid-column: 1 / -1;
  margin: 4px 0;
}

.center {
  text-align: center;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.date-hero {
  text-align: center;
  padding: 20px 16px 16px;
}

/* o encontro fica centralizado e com respiro, separado da data e do "ao vivo" */
.date-hero #meeting-slot:not(:empty) {
  margin: 14px 0 0;
}

/*
 * Na home o hero da data saiu e o encontro passou pro card de presenca. Ali ele
 * e inline (nao centralizado) porque divide o card com o "vai acelerar hoje".
 */
#presence-card #meeting-slot:not(:empty) {
  margin: 12px 0 2px;
}

#presence-card .meeting {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  margin-bottom: 0;
  padding: 8px 13px;
  font-size: 13px;
  line-height: 1.45;
}

#presence-card .live-label {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.date-hero .meeting {
  display: inline-flex;
  justify-content: center;
  width: auto;
  max-width: 100%;
  margin-bottom: 0;
  padding: 9px 15px;
  font-size: 13px;
  line-height: 1.45;
}

.date-hero .meeting .tag {
  flex: 0 0 auto;
}

.date-hero .d {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* o texto de status da home. nao usar ".live": essa classe e a bolinha verde
   do indicador, com width/height fixos, e engole qualquer texto */
.date-hero .live-label {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.date-hero .w {
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.bet-list {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-size: 13px;
}

.bet-list .b {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--muted);
}

.bet-list .b b {
  color: var(--text);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--muted);
}

.live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(56, 217, 122, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(56, 217, 122, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56, 217, 122, 0);
  }
}

@media (max-width: 620px) {
  .topbar-inner {
    flex-wrap: nowrap;
  }

  /*
   * No celular a nav inteira vira gaveta. A barra fica so com a logo, as
   * fichas e o botao de menu: sem faixa rolando de lado e sem item escondido.
   */
  .topbar-nav {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .admin-row .fields {
    width: 100%;
  }
  .admin-row .fields input {
    flex: 1;
    width: auto;
  }
}

@media (max-width: 560px) {
  .vs {
    grid-template-columns: 1fr auto 1fr;
  }
  .vs .side img,
  .vs .side .ph {
    width: 42px;
    height: 42px;
  }
  .date-hero .d {
    font-size: 27px;
  }
}

/* ---------------------------------------------------------------- */
/* feed de shorts (tela /shorts)                                     */
/* ---------------------------------------------------------------- */

/*
 * O atributo hidden vale display:none pelo navegador, mas qualquer regra de
 * classe com display (flex, aqui embaixo) ganha dele. Sem isto a gaveta de
 * comentarios e o aviso de vazio ficam sempre na tela, por cima de tudo,
 * engolindo os cliques dos botoes.
 */
.shorts-vazio[hidden],
.comentarios[hidden] {
  display: none;
}

/* a pagina nao rola: quem rola e o feed, um clipe por vez */
.shorts-body {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: none;
  /* altura do cabecalho do shorts: quem flutua por cima se posiciona a partir dela */
  --shorts-topo: 31px;
}

/*
 * Cabecalho do shorts: uma linha so e magrinha.
 *
 * O topbar normal ocupava quase 90px do clipe (nav na segunda linha no
 * celular). Aqui ele vira uma faixa unica; no desktop, se a nav nao couber,
 * ela rola de lado em vez de empurrar tudo.
 */
.shorts-body .topbar-inner {
  flex-wrap: nowrap;
  padding: 4px 12px;
  gap: 10px;
}

.shorts-body .brand img {
  height: 18px;
}

.shorts-body .topbar-nav {
  order: 0;
  width: auto;
  min-width: 0;
  margin-left: auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 2px;
  padding-bottom: 0;
  scrollbar-width: none;
}

.shorts-body .topbar-nav::-webkit-scrollbar {
  display: none;
}

.shorts-body .topbar-nav a,
.shorts-body .mais-btn {
  padding: 3px 8px;
  font-size: 11px;
}

.shorts-body .menu-btn {
  width: 30px;
  height: 30px;
  padding: 0 7px;
  gap: 3px;
  border-radius: 8px;
}

/* showAlert troca o className do alerta, entao quem se posiciona e o wrapper */
.shorts-alerta {
  position: fixed;
  /* logo abaixo do cabecalho magrinho definido acima */
  top: calc(var(--shorts-topo) + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 32px));
  z-index: 40;
  pointer-events: none;
}

.shorts-alerta .alert {
  margin: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.shorts-feed {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  background: #000;
  /* iOS: a rolagem encadeada so fica fluida com isso */
  -webkit-overflow-scrolling: touch;
}

.short-caixa {
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

/* centraliza numa coluna de celular mesmo na tela larga */
.short {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.short-video {
  width: 100%;
  height: 100%;
  /* contain, e nao cover: os clipes sao 16:9 e o corte esconderia os carros */
  object-fit: contain;
  background: #000;
  display: block;
}

.short-pausa {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0;
  cursor: pointer;
  z-index: 3;
}

.short-pausa::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}

.short-topo {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 2;
  pointer-events: none;
}

.short-topo .pill {
  background: rgba(5, 5, 5, 0.66);
  backdrop-filter: blur(6px);
}

.short-vencedor {
  color: var(--accent);
  border-color: rgba(212, 255, 43, 0.4);
}

/* botoes de curtir / comentar / som, na coluna da direita */
.short-lado {
  position: absolute;
  right: 10px;
  bottom: 128px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}

.short-acao {
  background: none;
  border: none;
  color: #fff;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

.short-acao svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: transform 0.12s;
}

.short-acao:active svg {
  transform: scale(0.88);
}

.short-acao .short-conta {
  font-size: 12px;
  font-weight: 700;
}

/* coracao cheio quando a puxada esta curtida */
.short-acao[data-curtir].ativo svg {
  fill: var(--danger);
  stroke: var(--danger);
}

.short-acao[data-mudo].mudo svg {
  opacity: 0.55;
  stroke-dasharray: 2 2;
}

.short-rodape {
  position: absolute;
  left: 14px;
  right: 66px;
  bottom: 18px;
  z-index: 2;
}

.shorts-carros {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shorts-carro {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  min-width: 0;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 5px 9px 5px 5px;
}

.shorts-carro img,
.shorts-carro .ph {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  background: #000;
}

.shorts-carro-nome {
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shorts-link-evento {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  padding: 0 4px;
}

.shorts-ver-evento {
  display: inline-block;
  margin-top: 8px;
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}

.shorts-vazio {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 24px;
  text-align: center;
}

.shorts-vazio img {
  width: 120px;
  opacity: 0.35;
}

.shorts-embaralhar {
  position: fixed;
  top: calc(var(--shorts-topo) + 8px);
  right: 14px;
  z-index: 30;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(6px);
  color: var(--text);
  font-size: 19px;
  cursor: pointer;
}

.shorts-embaralhar:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------------------------------------------------------------- */
/* gaveta de comentarios                                             */
/* ---------------------------------------------------------------- */

body.com-gaveta {
  overflow: hidden;
}

.comentarios {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.comentarios-fundo {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.comentarios-caixa {
  position: relative;
  width: 100%;
  max-width: 520px;
  /* folha de comentarios: ocupa boa parte da tela, como nos apps de reels */
  min-height: 60vh;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.comentarios-caixa header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.comentarios-caixa h3 {
  margin: 0;
  font-size: 15px;
}

.comentarios-x {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 17px;
  cursor: pointer;
  padding: 2px 6px;
}

.comentarios-x:hover {
  color: var(--text);
}

.comentarios-lista {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 16px;
  min-height: 90px;
}

.comentario {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.comentario:last-child {
  border-bottom: none;
}

.comentario-topo {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.comentario-topo strong {
  font-size: 13px;
}

.comentario p {
  margin: 3px 0 0;
  font-size: 14px;
  word-break: break-word;
}

.comentarios-form {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.comentarios-form input {
  flex: 1;
  min-width: 0;
}

@media (max-width: 560px) {
  .short-lado {
    bottom: 140px;
    right: 6px;
  }
  .short-rodape {
    right: 56px;
  }
}

/* ---------------------------------------------------------------- */
/* curtir na tela do evento                                          */
/* ---------------------------------------------------------------- */

.interacao-topo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.btn-curtida {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 15px 8px 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
}

.btn-curtida svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.btn-curtida:hover:not(:disabled) {
  border-color: var(--danger);
}

.btn-curtida.ativo {
  color: var(--danger);
  border-color: rgba(255, 77, 77, 0.45);
  background: rgba(255, 77, 77, 0.1);
}

.btn-curtida.ativo svg {
  fill: var(--danger);
  stroke: var(--danger);
}

.btn-curtida:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------------------------------------------------------------- */
/* aposta                                                            */
/* ---------------------------------------------------------------- */

/*
 * A aposta entra dentro do card da puxada, logo abaixo das fotos e das odds.
 * O card de dentro perde a moldura pra nao virar caixa dentro de caixa: um
 * traco ja separa do resto e mantem o bloco colado nos carros.
 */
.aposta-no-evento {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.aposta-no-evento .card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

/* ja apostou: faixa de destaque no lugar da moldura */
.aposta-no-evento .aposta-confirmada {
  border-left: 3px solid var(--accent);
  border-radius: 0;
  padding-left: 12px;
}

.aposta-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.aposta-topo h2 {
  margin: 0;
}

/* ---- painel do pote ---- */

.odd-lado {
  flex: 1;
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--muted);
}

.odd-lado.favorito {
  border-color: rgba(212, 255, 43, 0.35);
}

.odd-nome {
  display: block;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.odd-fav {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(212, 255, 43, 0.4);
  border-radius: 999px;
  padding: 0 5px;
  vertical-align: middle;
  margin-left: 4px;
}

.odd-lado b {
  display: block;
  font-size: 17px;
  color: var(--accent);
}

.odd-lado b small {
  font-size: 11px;
  margin-left: 1px;
}

.odd-detalhe {
  display: block;
  font-size: 11px;
}

/* ---- escolher o lado ---- */

.aposta-lados {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* alvo grande: no celular a aposta e decidida com o polegar */
.aposta-lado {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  padding: 12px 10px;
  background: var(--bg-soft);
  border: 2px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.aposta-lado:hover {
  border-color: var(--muted);
}

.aposta-lado.escolhido {
  border-color: var(--accent);
  background: rgba(212, 255, 43, 0.08);
}

.aposta-lado img,
.aposta-lado-ph {
  width: 100%;
  height: 74px;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
}

.aposta-lado-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  border: 1px dashed var(--line);
}

.aposta-lado-info {
  display: block;
  width: 100%;
  min-width: 0;
}

.aposta-lado-nome {
  display: block;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aposta-lado-dono {
  display: block;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aposta-lado-odd {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
  background: var(--bg);
  border-radius: 999px;
  padding: 2px 9px;
}

/* sem ficha do lado nao existe cotacao ainda: nao da pra prometer pagamento */
.aposta-lado-odd.aberta {
  color: var(--muted);
  font-weight: 600;
}

.aposta-lado.escolhido .aposta-lado-odd {
  background: var(--accent);
  color: #050505;
}

/* ---- valor ---- */

.aposta-atalhos {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.aposta-atalho {
  flex: 1 1 auto;
  min-width: 54px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
}

.aposta-atalho:hover {
  border-color: var(--muted);
}

.aposta-atalho.ativo {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(212, 255, 43, 0.1);
}

.aposta-valor {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aposta-valor input {
  flex: 1;
  min-width: 0;
  font-size: 19px;
  font-weight: 800;
  text-align: center;
}

.aposta-unidade {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
}

.aposta-slider {
  width: 100%;
  margin-top: 12px;
  accent-color: var(--accent);
  background: transparent;
}

/* ---- previa ---- */

.aposta-previa {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  margin: 16px 0;
}

.aposta-linha {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.aposta-linha + .aposta-linha {
  margin-top: 5px;
}

.aposta-linha.pequena {
  font-size: 12px;
  color: var(--muted);
}

.aposta-linha b {
  color: var(--text);
}

.aposta-recebe {
  font-size: 22px;
  color: var(--accent);
}

.aposta-linha b.positivo {
  color: var(--accent);
}

.aposta-aviso {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

/* ---- resultado ---- */

.aposta-confirmada {
  border-color: rgba(212, 255, 43, 0.35);
}

.aposta-ganho {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.aposta-ganho b {
  font-size: 26px;
  color: var(--accent);
  line-height: 1.1;
}

.aposta-ganho-lucro {
  font-size: 12px;
  color: var(--accent);
}

.bet-valor {
  color: var(--text);
  font-weight: 700;
}

.bet-ganhou {
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
}

.bet-perdeu {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 420px) {
  .aposta-lado img,
  .aposta-lado-ph {
    height: 62px;
  }
  .aposta-recebe {
    font-size: 20px;
  }
}
