/* Fominhas Open — estilos compartilhados por todas as páginas.
   Layout: arena noturna — barra fixa com logo, conteúdo em coluna central.
   Tema por temporada (inspirado no Grand Slam da vez): só os tokens mudam. */
:root {
  --night: #071233;      /* fundo da arena */
  --deck: #0d1d4f;       /* superfícies */
  --line: #22357a;       /* bordas */
  --ink: #f3f6ff;        /* texto */
  --mute: #9eabd6;       /* texto secundário */
  --ball: #d8f22a;       /* amarelo bola */
  --ball-ink: #0a1430;   /* texto sobre a bola */
  --court: #1f4fd1;      /* azul quadra */
  --win: #4ade80;
  --loss: #f87171;
  --live: #ff4d5e;
  --f-display: "Montserrat", "Arial Black", system-ui, sans-serif;
  --f-score: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-brush: "Kaushan Script", "Brush Script MT", cursive;
  color-scheme: dark;
}
:root[data-season="ao"] { --night:#04203a; --deck:#0a3358; --line:#13507f; --court:#0091d5; --ball:#7fe3ff; --mute:#a3c4dd; }
:root[data-season="rg"] { --night:#2a1209; --deck:#3f1d10; --line:#6b3218; --court:#c4581f; --ball:#f2c94c; --mute:#d9b9a6; --ball-ink:#2a1209; }
:root[data-season="wb"] { --night:#0b2016; --deck:#123322; --line:#22553a; --court:#4b2a7b; --ball:#e9e4ff; --mute:#b5cbbd; --ball-ink:#1b0f33; }

* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.5; }
body::before { content:""; position:fixed; inset:0 0 auto; height:env(safe-area-inset-top,0px); z-index:10; background:var(--night); }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ball); outline-offset: 2px; border-radius: 4px; }
.wrap {
  max-width: 1180px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.num { font-family: var(--f-score); font-variant-numeric: tabular-nums; }

/* Barra superior */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--night) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 20px; padding-block: 10px; }
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; }
.nav a, .nav span {
  font-family: var(--f-score); font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; text-decoration: none; white-space: nowrap; color: var(--mute);
}
.nav a:hover { color: var(--ink); }
.nav a.on { background: var(--ball); color: var(--ball-ink); }
.nav span { opacity: .55; cursor: default; }
.nav span small { font-size: 10px; margin-left: 4px; letter-spacing: .04em; }
.yt-btn { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; text-decoration: none; font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 999px; background: #ff0033; color: #fff; }
.yt-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* Tipografia de seção */
section { padding-block: 28px; }
h1, h2 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(22px, 3.4vw, 30px); margin: 0 0 4px; }
.sub { color: var(--mute); margin: 0 0 20px; max-width: 62ch; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-head .sub { margin: 0; }
.more-link { font-family: var(--f-score); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; color: var(--ball); text-decoration: none; white-space: nowrap; }
.more-link:hover { text-decoration: underline; }
.eyebrow { font-family: var(--f-score); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); font-size: 13px; }

/* Componentes */
.chip { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; cursor: pointer; font-size: 13px; color: var(--mute); }
.chip[aria-pressed="true"] { background: var(--ball); border-color: var(--ball); color: var(--ball-ink); font-weight: 600; }
.panel { background: var(--deck); border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-width: 0; }
.panel h3 { font-family: var(--f-score); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; color: var(--mute); margin: 0 0 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; border-radius: 999px; padding: 10px 20px; font-weight: 600; cursor: pointer; border: 1px solid var(--ball); background: var(--ball); color: var(--ball-ink); }
.btn.ghost { background: transparent; color: var(--ball); }
.btn.ghost:hover { background: var(--ball); color: var(--ball-ink); }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-score); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--live); font-size: 13px; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.skeleton { background: linear-gradient(90deg, var(--deck), color-mix(in srgb, var(--line) 60%, var(--deck)), var(--deck)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.note { color: var(--mute); font-size: 14px; padding: 18px; border: 1px dashed var(--line); border-radius: 12px; }
.note a { color: var(--ball); }

/* Rodapé */
footer.site { border-top: 1px solid var(--line); margin-top: 32px; }
footer.site .wrap { display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center; padding-block: 24px; color: var(--mute); font-size: 13px; }
footer.site .src { grid-column: 1 / -1; font-size: 12px; opacity: .8; }
.seasons { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

@media (max-width: 720px) {
  .brand img { height: 30px; }
  .yt-btn span { display: none; }
  footer.site .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; animation: none !important; } }
