/* AION 2 — timer de eventos. Visual no estilo do AION2 DB (gamers4.life): azul-noite, título dourado,
   cartões com a cor da categoria. Fontes self-hosted em /fonts (CSP font-src 'self'). */
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("/fonts/space-grotesk-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap; src: url("/fonts/space-grotesk-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("/fonts/space-grotesk-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/fonts/inter-latin-700.woff2") format("woff2"); }

:root {
  --bg: #0b0e14; --bg2: #0f131b; --surface: #141925; --surface2: #1b2130;
  --border: #272d3f; --border-l: #3a4258;
  --text: #e6e8ee; --muted: #a2aabb; --faint: #6f788b;
  --accent: #38bdf8; --gold: #e3bd6e; --live: #57c98a;
  --display: "Space Grotesk", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg) radial-gradient(1200px 500px at 50% -120px, #16203a 0%, transparent 70%) no-repeat; color: var(--text); font: 400 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.a2[data-lang="en"] [data-l="pt"], .a2[data-lang="pt"] [data-l="en"] { display: none !important; }
.a2-largura { max-width: 1152px; margin: 0 auto; padding: 0 16px; }

/* barra do topo com ticker */
.a2-barra-topo { border-bottom: 1px solid var(--border); background: #0a0d13cc; backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 20; }
.a2-barra-in { display: flex; align-items: center; gap: 16px; min-height: 48px; }
.a2-marca { font: 700 17px/1 var(--display); color: var(--text); letter-spacing: -.01em; flex: none; }
.a2-marca b { color: var(--gold); }
.a2-marca:hover { text-decoration: none; color: #fff; }
.a2-ticker { flex: 1; display: flex; justify-content: center; gap: 22px; font-size: 13px; min-width: 0; overflow: hidden; white-space: nowrap; }
.a2-tk b { font-weight: 600; color: var(--text); margin-right: 6px; }
.a2-tk b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cor); margin-right: 7px; vertical-align: 1px; }
.a2-tk-v { color: var(--gold); font-variant-numeric: tabular-nums; }
.a2-lang { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; flex: none; }
.a2-lang button { background: none; border: 0; padding: 6px 10px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.a2-lang button[aria-pressed="true"] { background: var(--surface2); color: var(--text); }

/* hero */
.a2-hero { text-align: center; padding: 56px 0 22px; }
.a2-hero h1 { margin: 0 0 14px; font: 700 clamp(34px, 5.4vw, 52px)/1.05 var(--display); color: var(--gold); letter-spacing: -.01em; }
.a2-hero p { margin: 0 auto; max-width: 690px; color: var(--muted); font-size: 14.5px; }

/* regiões */
.a2-regioes { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: fit-content; max-width: 100%; margin: 0 auto 18px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; background: #11151dcc; box-shadow: 0 8px 24px #0006; }
.a2-reg { border: 0; background: none; color: var(--muted); padding: 7px 15px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.a2-reg:hover { background: var(--surface2); color: var(--text); }
.a2-reg[aria-selected="true"] { background: var(--accent); color: var(--bg); box-shadow: 0 0 16px rgba(56, 189, 248, .25); }

/* cartões "próximo" */
.a2-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.a2-card { position: relative; overflow: hidden; border: 1px solid color-mix(in srgb, var(--cor) 25%, transparent); border-radius: 16px; padding: 16px; background-image: linear-gradient(150deg, color-mix(in srgb, var(--cor) 12%, transparent), transparent 62%); box-shadow: 0 8px 24px #0005; }
.a2-card.clicavel { cursor: pointer; transition: transform .15s; }
.a2-card.clicavel:hover { transform: translateY(-2px); }
.a2-card p { margin: 0; }
.a2-card-cat { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--cor); }
.a2-vivo { color: var(--live); font-size: 10px; font-weight: 700; }
.a2-card-num { margin-top: 4px !important; font: 700 clamp(26px, 2.6vw, 34px)/1.2 var(--display); color: var(--cor); font-variant-numeric: tabular-nums; white-space: nowrap; }
.a2-card.ao-vivo .a2-card-num { color: var(--live); }
.a2-card-nome { margin-top: 2px !important; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a2-card-quando { font-size: 11px; color: var(--faint); }
.a2-card-barra { margin-top: 12px; height: 4px; border-radius: 99px; background: #0f131bcc; overflow: hidden; }
.a2-card-barra span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--cor); transition: width 1s linear; }
.a2-card.ao-vivo .a2-card-barra span { background: var(--live); }
.a2-fuso { text-align: center; font-size: 11px; color: var(--faint); margin: 8px 0 0; }

/* alertas */
.a2-alertas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; max-width: 680px; margin: 16px auto 0; padding: 10px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 12px; color: var(--muted); }
.a2-alertas-tit { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); }
.a2-alertas-tit svg { fill: var(--gold); stroke: var(--gold); stroke-width: 2; }
.a2-alertas label { display: inline-flex; align-items: center; gap: 6px; }
.a2-alertas select { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 4px 6px; color: var(--text); }
.a2-chave, .a2-mini { border: 1px solid var(--border); background: none; border-radius: 6px; padding: 4px 9px; font-weight: 500; cursor: pointer; color: var(--muted); }
.a2-chave[aria-pressed="true"] { border-color: #38bdf880; background: #38bdf826; color: var(--accent); }
.a2-mini:hover { color: var(--text); }
.a2-bloqueado { color: #ff6b6b; }

/* filtros */
.a2-filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 18px 0 16px; }
.a2-filtro { border: 1px solid var(--border); background: none; color: var(--muted); border-radius: 8px; padding: 4px 12px; font-size: 12px; font-weight: 500; cursor: pointer; }
.a2-filtro:hover { color: var(--text); }
.a2-filtro[aria-pressed="true"] { border-color: #38bdf880; background: #38bdf826; color: var(--accent); }

/* lista + mapa */
.a2-grade { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 16px; align-items: start; }
.a2-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.a2-linha { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.a2-linha.clicavel { cursor: pointer; }
.a2-linha.clicavel:hover { border-color: var(--border-l); }
.a2-linha.sel { border-color: #e3bd6e80; }
.a2-linha.ao-vivo { border-color: #57c98a66; }
.a2-retrato { width: 56px; height: 56px; flex: none; border-radius: 8px; border: 1px solid var(--border); object-fit: cover; object-position: top; background: var(--bg2); }
.a2-meio { flex: 1; min-width: 0; }
.a2-meio-topo { display: flex; align-items: center; gap: 8px; min-width: 0; }
.a2-tag { flex: none; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--cor); border: 1px solid color-mix(in srgb, var(--cor) 35%, transparent); border-radius: 4px; padding: 2px 6px; }
.a2-nome { font: 700 14px/1.3 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a2-info { margin: 3px 0 0; font-size: 11px; color: var(--faint); }
.a2-prox { color: var(--muted); font-variant-numeric: tabular-nums; }
.a2-localizar { display: inline-block; margin-top: 2px; font-size: 11px; color: var(--accent); }
.a2-cont { flex: none; text-align: right; font-size: 12px; font-weight: 500; color: var(--gold); font-variant-numeric: tabular-nums; }
.a2-linha.ao-vivo .a2-cont { color: var(--live); }
.a2-sino { flex: none; border: 0; background: none; padding: 6px; border-radius: 6px; cursor: pointer; color: var(--faint); line-height: 0; }
.a2-sino:hover { color: var(--text); }
.a2-sino svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a2-sino[aria-pressed="true"] { color: var(--gold); }
.a2-sino[aria-pressed="true"] svg { fill: var(--gold); }
.a2-mapa-fixo { position: sticky; top: 64px; }
.a2-mapa { height: 80vh; min-height: 460px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg2); }
.a2-mapa > a { width: 100%; height: 100%; display: block; }
.a2-mapa img { width: 100%; height: 100%; object-fit: contain; display: block; }
.a2-mapa-pe { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 11px; color: var(--faint); }

/* blocos de texto */
.a2-bloco { margin-top: 40px; }
.a2-bloco h2 { margin: 0 0 12px; font: 600 18px/1.3 var(--display); color: var(--gold); }
.a2-bloco p { color: var(--muted); max-width: 760px; }
.a2-discord { padding: 20px; border: 1px solid #5865f255; border-radius: 16px; background: linear-gradient(150deg, #5865f21f, transparent 62%); }
.a2-discord h2 { color: #a5adff; }
.a2-cmds code { display: inline-block; margin: 0 6px 6px 0; padding: 3px 8px; border-radius: 6px; background: var(--surface2); border: 1px solid var(--border); color: var(--text); font-size: 12.5px; }
.a2-botao { display: inline-block; padding: 9px 16px; border-radius: 10px; background: #5865f2; color: #fff; font-weight: 600; }
.a2-botao:hover { background: #4752c4; text-decoration: none; }
.a2-apoio { padding: 20px; border: 1px solid #57c98a55; border-radius: 16px; background: linear-gradient(150deg, #57c98a1a, transparent 62%); }
.a2-apoio h2 { color: var(--live); }
.a2-botao-pix { background: #0f7a49; }
.a2-botao-pix:hover { background: #0c6339; }
.a2-rolagem { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.a2-rolagem table { width: 100%; border-collapse: collapse; font-size: 13px; }
.a2-rolagem td { padding: 8px 12px; border-top: 1px solid var(--border); }
.a2-rolagem tr:first-child td { border-top: 0; }
.a2-t-nome { font-weight: 500; }
.a2-t-cat { color: var(--cor); }
.a2-t-quando { text-align: right; color: var(--faint); white-space: nowrap; }
.a2-faq details { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); margin-bottom: 8px; }
.a2-faq summary { cursor: pointer; padding: 12px 14px; font-weight: 500; }
.a2-faq details p { margin: 0; padding: 0 14px 14px; }
.a2-pe { margin: 48px 0 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--faint); text-align: center; }
.a2-pe p { margin: 4px 0; }

@media (max-width: 900px) {
  .a2-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .a2-grade { grid-template-columns: 1fr; }
  .a2-mapa-col { order: -1; }
  .a2-mapa { height: 460px; min-height: 0; }
  .a2-mapa-fixo { position: static; }
  .a2-ticker { display: none; }
  .a2-barra-in { justify-content: space-between; }
}
@media (max-width: 520px) {
  .a2-hero { padding-top: 36px; }
  .a2-card { padding: 12px; }
  .a2-card-num { font-size: 22px; }
  .a2-linha { flex-wrap: wrap; }
  .a2-meio { flex-basis: calc(100% - 70px); }
  .a2-cont { margin-left: auto; }
  .a2-t-quando { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
