/* Arquibancada — identidade Liga Place (paleta azul, Archivo + Hanken Grotesk) */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #1E3A6B;
  --navy-dark: #0A1530;
  --black: #06102A;
  --accent: #4A90E2;
  --ice: #DCEAFB;
  --live: #EF4444;
  --ok: #34D399;
}
html { scroll-behavior: smooth; }
body {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  color: var(--ice);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(74, 144, 226, .18), transparent 60%),
    linear-gradient(180deg, #0A1530 0%, #06102A 100%);
  min-height: 100svh;
}
h1, h2, h3, .marca strong { font-family: "Archivo", sans-serif; }
a { color: var(--accent); text-decoration: none; }

.topo {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky; top: 0; backdrop-filter: blur(10px);
  background: rgba(10, 21, 48, .75); z-index: 10;
}
.marca { display: flex; align-items: center; gap: 10px; color: #fff; }
.marca img { height: 40px; width: 40px; }
.marca strong { display: block; font-size: 15px; letter-spacing: -.02em; }
.marca small { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .16em; color: var(--accent); font-weight: 600; }
.link-site { font-size: 12px; font-weight: 600; white-space: nowrap; }

main { max-width: 900px; margin: 0 auto; padding: 28px 16px 60px; }

.hero { text-align: center; padding: 18px 0 26px; }
.hero-liga { padding-top: 6px; }
.titulo-secao { margin: 8px 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }

/* ---- Seleção de liga ---- */
.ligas-grid { display: grid; gap: 14px; }
.liga-card {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 16px; border-radius: 16px; cursor: pointer; text-align: left;
  color: var(--ice); font: inherit;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  transition: .15s;
}
.liga-card:hover { border-color: var(--accent); background: rgba(74,144,226,.08); }
.liga-card img { height: 64px; width: 64px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.15); flex-shrink: 0; }
.liga-card-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.liga-card-info small { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.liga-card-info strong { font-family: "Archivo", sans-serif; font-size: 15px; color: #fff; }
.card-vivo { font-size: 12px; font-weight: 700; color: var(--live); }
.card-quieto { font-size: 12px; color: rgba(220,234,251,.55); }
.entrar { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; }

/* ---- Voltar + navegação de etapas ---- */
.voltar {
  margin: 4px 0 6px; background: none; border: 0; cursor: pointer;
  color: var(--accent); font: 600 13px "Hanken Grotesk", sans-serif; padding: 6px 0;
}
.voltar:hover { color: #fff; }
.etapa-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.nav-seta {
  height: 44px; width: 44px; border-radius: 50%; flex-shrink: 0; cursor: pointer;
  color: var(--accent); font-size: 16px; line-height: 1;
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05);
  transition: .15s;
}
.nav-seta:hover:not(:disabled) { border-color: var(--accent); color: #fff; }
.nav-seta:disabled { opacity: .25; cursor: default; }
.pos-info { font-size: 11px; }

/* ---- Avatar de iniciais (azul Liga Place) ---- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; width: 32px; border-radius: 50%;
  background: var(--accent); color: #06102A;
  font: 800 12px "Archivo", sans-serif; letter-spacing: .02em;
}
.brasao { height: 84px; width: 84px; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 36px rgba(74,144,226,.35); border: 2px solid rgba(255,255,255,.15); }
.hero h1 { margin-top: 14px; font-size: clamp(1.3rem, 4.5vw, 2rem); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.hero .sub { margin: 12px auto 0; max-width: 480px; font-size: 14px; line-height: 1.55; color: rgba(220,234,251,.65); text-align: center; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05);
}
.badge.aovivo { color: #fff; border-color: rgba(239,68,68,.5); background: rgba(239,68,68,.15); }
.badge.aovivo::before { content: ""; height: 8px; width: 8px; border-radius: 50%; background: var(--live); animation: pulsa 1.2s infinite; }
.badge.offline { color: rgba(220,234,251,.7); }
@keyframes pulsa { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

section h3 { margin: 30px 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); }

.etapa-info { text-align: center; margin-top: 6px; }
.etapa-info h2 { font-size: clamp(1.1rem, 4vw, 1.5rem); color: #fff; }
.mudo { color: rgba(220,234,251,.55); font-size: 13px; margin-top: 4px; }

.abas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.abas button {
  font: 600 12px "Hanken Grotesk", sans-serif; color: rgba(220,234,251,.7);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: 7px 14px; cursor: pointer; transition: .15s;
}
.abas button:hover { color: #fff; }
.abas button.ativa { color: #06102A; background: var(--accent); border-color: var(--accent); }

.tabela-wrap { overflow-x: auto; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.03); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px 10px; text-align: center; white-space: nowrap; }
th { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: rgba(220,234,251,.5); border-bottom: 1px solid rgba(255,255,255,.1); }
td.esq, th.esq { text-align: left; }
.classificacao tbody tr { border-bottom: 1px solid rgba(255,255,255,.05); }
.classificacao tbody tr:last-child { border-bottom: 0; }
.classificacao .pos { font-weight: 800; color: var(--accent); }
.classificacao .score { font-weight: 800; }
.score.neg { color: var(--ok); }
.score.pos-score { color: #FCA5A5; }
.cat-tag { display: inline-block; margin-left: 8px; font-size: 9px; font-weight: 700; letter-spacing: .08em; padding: 2px 7px; border-radius: 999px; background: rgba(74,144,226,.18); color: var(--accent); }

.card {
  border: 1px solid rgba(255,255,255,.09); border-radius: 16px;
  background: rgba(255,255,255,.035); padding: 16px; margin-bottom: 14px;
}
.grupo-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; background: none; border: 0; cursor: pointer; color: inherit; text-align: left; font: inherit; }
.grupo-cab h4 { font-family: "Archivo", sans-serif; font-size: 14px; color: #fff; }
.grupo-cab .saida { font-size: 10px; color: rgba(220,234,251,.5); font-weight: 400; margin-left: 8px; }
.grupo-status { font-size: 11px; font-weight: 700; margin-top: 3px; }
.grupo-status.jogando { color: var(--live); }
.grupo-status.parado { color: rgba(220,234,251,.55); }
.seta { color: var(--accent); transition: transform .2s; flex-shrink: 0; }
.aberto .seta { transform: rotate(90deg); }
.grupo-corpo { display: none; margin-top: 12px; overflow-x: auto; }
.aberto .grupo-corpo { display: block; }

/* Cartão compacto: cabe na largura do celular, como no app */
.cartao { table-layout: fixed; font-size: 12px; }
.cartao th, .cartao td { padding: 4px 2px; }
.cartao th.esq { width: 52px; }
.cartao th + th { width: 34px; }
.cartao th.atleta { width: auto; text-align: center; }
.cartao td.hbur { font-weight: 700; text-align: left; font-size: 11px; white-space: nowrap; }
.cartao tr.atual { background: rgba(239,68,68,.12); }
.cartao tr.atual td.hbur { color: var(--live); }
.cartao .par { color: rgba(220,234,251,.45); }
.nota { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 5px; font-weight: 600; font-size: 12px; }
@media (max-width: 420px) {
  .cartao { font-size: 11px; }
  .cartao th.esq { width: 44px; }
  .cartao th + th { width: 26px; }
  .cartao td.hbur { font-size: 10px; }
  .avatar { height: 28px; width: 28px; font-size: 10px; }
  .nota { min-width: 19px; height: 19px; font-size: 11px; }
}
.nota.birdie { border: 1.5px solid var(--ok); border-radius: 50%; color: var(--ok); }
.nota.eagle { border: 3px double var(--ok); border-radius: 50%; color: var(--ok); }
.nota.bogey { border: 1.5px solid #FCA5A5; color: #FCA5A5; }
.nota.duplo { border: 3px double #FCA5A5; color: #FCA5A5; }
.linha-total td { border-top: 2px solid rgba(255,255,255,.25); font-weight: 800; }
.linha-score td { font-weight: 800; color: var(--accent); }

.vazio-card { text-align: center; padding: 40px 20px; }
.vazio-card .emoji { font-size: 44px; }
.vazio-card h2 { margin-top: 10px; color: #fff; font-size: 1.2rem; }
.vazio-card p { margin-top: 8px; }
#proxima-etapa { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
#proxima-etapa h3 { margin: 0 0 6px; }
#proxima-info { font-size: 14px; color: var(--ice); }

.erro { text-align: center; margin-top: 24px; color: #FCA5A5; font-size: 13px; }
.rodape { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 16px 30px; text-align: center; font-size: 11px; color: rgba(220,234,251,.45); }
.rodape p + p { margin-top: 6px; }
