:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --surface: #ffffff;
  --surface-2: #ece7dc;
  --line: #d9d2c3;
  --text: #1b1d22;
  --text-2: #5d5a52;
  --accent: #9a6a12;
  --accent-ink: #ffffff;
  --link: #1f5fb0;
  --series-1: #257de0;
  --series-2: #f47230;
  --ref: #1b1d22;
  --grid: #e7e1d5;
  --focus: #257de0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #12151c;
    --surface: #1a1e27;
    --surface-2: #232834;
    --line: #2f3542;
    --text: #eceae4;
    --text-2: #a3a39c;
    --accent: #d9a441;
    --accent-ink: #15130e;
    --link: #7fb2f5;
    --series-1: #338ced;
    --series-2: #e76624;
    --ref: #eceae4;
    --grid: #262b36;
    --focus: #7fb2f5;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12151c;
  --surface: #1a1e27;
  --surface-2: #232834;
  --line: #2f3542;
  --text: #eceae4;
  --text-2: #a3a39c;
  --accent: #d9a441;
  --accent-ink: #15130e;
  --link: #7fb2f5;
  --series-1: #338ced;
  --series-2: #e76624;
  --ref: #eceae4;
  --grid: #262b36;
  --focus: #7fb2f5;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, .brand, .tile__value, .odds__p {
  font-family: "Barlow Condensed", Inter, system-ui, sans-serif;
  letter-spacing: .01em;
}
h1 { font-size: 2.1rem; line-height: 1.1; margin: 0 0 .4rem; }
h2 { font-size: 1.25rem; margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted, .hint { color: var(--text-2); }
.hint { font-size: .86rem; margin: .4rem 0 .8rem; }
.lead { font-size: 1.05rem; color: var(--text-2); max-width: 60ch; }
.empty { color: var(--text-2); padding: 1rem 0; }

/* topo */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top__row { display: flex; align-items: center; gap: 16px; min-height: 56px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { font-size: 1.35rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand__mark { color: var(--accent); }
.search { flex: 1 1 200px; display: flex; gap: 8px; }
.search input {
  width: 100%; min-width: 0; padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit;
}
.nav { display: flex; align-items: center; gap: 14px; }
.nav a { color: var(--text); font-weight: 500; }
.theme { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; font-size: 1rem; }

main { padding-top: 24px; padding-bottom: 32px; }
.hero { padding: 24px 0 8px; }
.hero h1 { font-size: 2.6rem; max-width: 22ch; }
.search--big { max-width: 520px; margin-top: 16px; }
.search--big input { padding: 12px 14px; font-size: 1.05rem; }
.search--big button {
  padding: 0 18px; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-ink);
  font: 600 1rem Inter, system-ui, sans-serif; cursor: pointer;
}

/* blocos */
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 16px 0; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.panel .tile { background: var(--surface-2); border-color: transparent; }
.tile__label { font-size: .8rem; color: var(--text-2); }
.tile__value { font-size: 1.9rem; font-weight: 700; line-height: 1.15; }
.tile__note { font-size: .8rem; color: var(--text-2); }
.big-line { font-size: 1.05rem; margin: .3rem 0; }
.pill { display: inline-block; font-size: .8rem; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }

.profile { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.profile__sub { color: var(--text-2); margin: 0; }
.out { font-size: .9rem; }
.tabs { display: flex; gap: 4px; margin: 18px 0 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--text-2); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.chips a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: .9rem; background: var(--surface); }
.chips a[aria-current] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pager { display: flex; gap: 12px; }

/* tabelas */
.scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.table th { font-weight: 600; color: var(--text-2); font-size: .8rem; }
.table tfoot th { color: var(--text); }
.table td.wrap-ok { white-space: normal; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.player { font-weight: 600; }
.share, .meter { display: inline-block; width: 90px; height: 8px; border-radius: 4px; background: var(--surface-2); vertical-align: middle; overflow: hidden; }
.share span, .meter span { display: block; height: 100%; background: var(--series-1); border-radius: 4px; }

/* gráficos */
.chart { width: 100%; height: auto; display: block; }
.chart .s1 { fill: var(--series-1); }
.chart .s2 { fill: var(--series-2); }
.chart .ref { stroke: var(--ref); stroke-width: 2; stroke-dasharray: 4 3; opacity: .7; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .tick { fill: var(--text-2); font: 11px Inter, system-ui, sans-serif; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover, .chart .hit:focus { fill: var(--text); fill-opacity: .06; outline: none; }
.legend { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--text-2); flex-wrap: wrap; }
.legend li { display: flex; align-items: center; gap: 6px; }
.key { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.key.s1 { background: var(--series-1); }
.key.s2 { background: var(--series-2); }
.key.ref { height: 0; width: 16px; border-top: 2px dashed var(--ref); border-radius: 0; }
.tip {
  position: fixed; z-index: 20; pointer-events: none; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: .85rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18); min-width: 120px;
}
.tip strong { display: block; margin-bottom: 2px; }

.odds { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.odds li { display: flex; align-items: baseline; gap: 12px; }
.odds__p { font-size: 1.6rem; font-weight: 700; min-width: 64px; text-align: right; }
.plain { margin: 0; padding-left: 18px; }
.method summary { cursor: pointer; font-weight: 600; }
.method p { color: var(--text-2); max-width: 75ch; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.4rem; }
.foot { color: var(--text-2); font-size: .85rem; padding-bottom: 32px; }

@media (max-width: 640px) {
  .top__row { gap: 8px 12px; }
  .search { order: 3; flex-basis: 100%; }
  .nav { margin-left: auto; }
  .panel { padding: 12px; }
  .chart .tick { font-size: 22px; }
  .hero h1 { font-size: 2rem; }
  .nav { gap: 10px; }
  .tile__value { font-size: 1.5rem; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
}

/* servidores */
.eyebrow { margin: 0; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.hero--small h1 { font-size: 2.2rem; }
.section-title { margin: 24px 0 10px; }
.servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.server-card {
  display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
}
a.server-card:hover { text-decoration: none; border-color: var(--accent); }
.server-card__name { font: 700 1.6rem/1.1 "Barlow Condensed", Inter, system-ui, sans-serif; }
.server-card__mode { color: var(--accent); font-weight: 600; font-size: .9rem; }
.server-card__meta { color: var(--text-2); font-size: .88rem; }
.server-card__go { margin-top: 8px; color: var(--link); font-weight: 500; }
.server-card--soon { border-style: dashed; background: transparent; }
.nav__server { color: var(--accent) !important; font-weight: 700 !important; }
