/* TNF Tracker — The New Federation. Shared theme for every page. */
:root {
  --bg: #070b18;
  --bg-2: #0c1226;
  --panel: #10172e;
  --panel-2: #151e3a;
  --line: #222d52;
  --line-2: #2d3a66;
  --text: #e8ecf7;
  --muted: #8d97b8;
  --gold: #f0bf52;
  --gold-2: #ffe7a3;
  --gold-3: #b07a1e;
  --cyan: #5ee3ff;
  --ok: #3ddc97;
  --bad: #ff5a6e;
  --warn: #f0b232;
  --accent: var(--gold);
  --tft: #f0bf52;
  --lol: #5ab4f0;
  --val: #ff4655;
  --first: #f5c542;
  --top4: #3ddc97;
  --bot4: #8d97b8;
  --radius: 12px;
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 14px/1.5 var(--font);
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(94, 227, 255, .10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(240, 191, 82, .10), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 420px);
  background-attachment: fixed;
}
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(7, 11, 24, .72);
  border-bottom: 1px solid var(--line);
}
.site-header .inner { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 2px 10px rgba(240, 191, 82, .25)); }
.brand .word { display: flex; flex-direction: column; line-height: 1.05; }
.brand .word b { font-size: 17px; letter-spacing: .18em; font-weight: 800; }
.brand .word b span { color: var(--gold); }
.brand .word small { font-size: 10.5px; letter-spacing: .32em; color: var(--muted); text-transform: uppercase; margin-top: 3px; }
.site-header nav { margin-left: auto; display: flex; gap: 6px; }
.site-header nav a { color: var(--muted); padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; }
.site-header nav a:hover, .site-header nav a.on { color: var(--text); background: var(--panel-2); }

main { max-width: 1180px; margin: 0 auto; padding: 28px 20px 72px; }

/* ---- hero ---- */
.hero { display: flex; align-items: center; gap: 22px; margin: 8px 0 26px; }
.hero img { width: 84px; height: 84px; filter: drop-shadow(0 6px 24px rgba(240, 191, 82, .3)); }
.hero h1 { margin: 0; font-size: 30px; letter-spacing: .06em; }
.hero h1 span { background: linear-gradient(90deg, var(--gold-2), var(--gold) 50%, var(--gold-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 4px 0 0; color: var(--muted); }

/* ---- cards / headings ---- */
.card { background: linear-gradient(180deg, var(--panel), rgba(16, 23, 46, .82)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
h2.section { font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
h2.section::before { content: ""; width: 14px; height: 2px; background: var(--gold); border-radius: 2px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12px; }
.empty { text-align: center; color: var(--muted); padding: 36px 12px; }

/* ---- tabs ---- */
.tabs { display: flex; gap: 8px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tabs button {
  font: inherit; font-weight: 700; letter-spacing: .04em; color: var(--muted); background: none; border: 0;
  padding: 10px 14px 12px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 8px;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--tab, var(--gold)); }
.tabs .soon { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 6px; }

/* ---- tables ---- */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(255, 255, 255, .02); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- placements ---- */
.place {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 7px;
  font-weight: 800; font-size: 12px; font-variant-numeric: tabular-nums; color: #0a0f1f; background: var(--bot4);
}
.place.p1 { background: linear-gradient(135deg, var(--gold-2), var(--first)); box-shadow: 0 0 12px rgba(245, 197, 66, .35); }
.place.top { background: var(--top4); }
.place.bot { background: #3a4466; color: var(--text); }
a.place:hover { filter: brightness(1.15); color: #0a0f1f; }

/* ---- misc ---- */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--muted); }
.delta.up { color: var(--ok); } .delta.down { color: var(--bad); }
.emblem { width: 34px; height: 34px; object-fit: contain; vertical-align: middle; }
.player-name { font-weight: 700; } .player-tag { color: var(--muted); font-weight: 500; }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 0 0; }
.footer img { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; opacity: .8; }

@media (max-width: 760px) {
  .hide-sm { display: none; }
  .hero img { width: 60px; height: 60px; }
  .hero h1 { font-size: 22px; }
  .brand .word small { display: none; }
}
