
:root {
  --bg: #090708;
  --bg-2: #13090b;
  --panel: rgba(18, 12, 14, 0.92);
  --line: rgba(240, 191, 84, 0.22);
  --line-strong: rgba(240, 191, 84, 0.4);
  --text: #fff6eb;
  --muted: #dcc9b1;
  --accent: #ef3b36;
  --accent-2: #f3c556;
  --good: #8cf2b0;
  --warn: #ffd166;
  --bad: #ff8e8e;
  --shadow: 0 18px 40px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Poppins, Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(239,59,54,.18), transparent 28%),
    radial-gradient(circle at top right, rgba(243,197,86,.14), transparent 22%),
    radial-gradient(circle at 50% 20%, rgba(243,197,86,.06), transparent 30%),
    linear-gradient(180deg, #070506 0%, #0b0809 28%, #12070b 100%);
}
a { color: #ffd888; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 20px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 6, 7, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  min-width: 0;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  border: 1px solid rgba(243,197,86,.28);
  background: #140a0d;
}
.brand-copy { display: grid; gap: 2px; min-width: 0; }
.brand-name { font-size: 1.15rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.brand-tag { color: var(--muted); font-size: .82rem; white-space: nowrap; }

.nav-links { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
  background: rgba(255,255,255,.04);
}
.button-link, button, .btn {
  appearance: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 110%);
  color: #1e0c07;
  border: none;
  border-radius: 12px;
  padding: 11px 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-block;
  box-shadow: 0 8px 18px rgba(239,59,54,.18);
}
.button-link:hover, button:hover, .btn:hover { text-decoration: none; filter: brightness(1.03); }
.btn.secondary { background: rgba(255,255,255,.02); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.good { background: linear-gradient(135deg, #63d892, #baf8ce); color: #092112; }
.btn.warn { background: linear-gradient(135deg, #f9b83f, #ffe18b); color: #291907; }

.main-content { padding: 28px 20px 54px; }
.grid { display:grid; gap:18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)), var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h1, .card h2, .card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 800;
  letter-spacing: .01em;
}
.card h1 { font-size: clamp(2rem, 4vw, 3.3rem); }
.card h2 { font-size: 1.45rem; }
.card h3 { font-size: 1.15rem; }

.hero {
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(243,197,86,.18), transparent 60%);
  pointer-events: none;
}
.hero-brand {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
}
.hero-brand-logo {
  width: 100%;
  max-width: 220px;
  border-radius: 26px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.35));
}
.hero-title { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: .95; margin: 0 0 14px; }
.hero-text { color: var(--muted); font-size: 1.08rem; max-width: 70ch; }
.hero-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }

.league-hero { display:flex; align-items:center; gap:18px; }
.league-hero img {
  width:96px;
  height:96px;
  object-fit: cover;
  border-radius: 22px;
  border:1px solid rgba(243,197,86,.28);
  background:#140a0d;
}
.stat-label { color: var(--muted); font-size:.92rem; text-transform: uppercase; letter-spacing:.08em; }
.stat-value { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; line-height:1.02; margin-top:10px; }

.table-wrap {
  overflow:auto;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.03);
  background: rgba(255,255,255,.01);
}
table { width:100%; border-collapse: collapse; }
th, td { border-bottom:1px solid rgba(243,197,86,.12); padding:11px 12px; text-align:left; }
th { color: var(--muted); font-size:.85rem; letter-spacing:.03em; text-transform: uppercase; }
tr:hover td { background: rgba(255,255,255,.02); }
.num { text-align:right; }

form { display:grid; gap:12px; }
.inline-form { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
label { display:grid; gap:6px; color:var(--muted); font-size:.95rem; }
input, select, textarea {
  width:100%;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#120a0d;
  color:var(--text);
}
input:focus, select:focus, textarea:focus {
  outline:none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(243,197,86,.08);
}

.flash { padding:12px 14px; border-radius:14px; margin-bottom:14px; }
.flash.success { background:rgba(146,240,184,.12); border:1px solid rgba(146,240,184,.35); }
.flash.error { background:rgba(255,142,142,.12); border:1px solid rgba(255,142,142,.35); }
.badge { display:inline-block; padding:4px 10px; border-radius:999px; font-size:.8rem; font-weight:700; }
.badge.finalized, .badge.active { background:rgba(146,240,184,.15); color:var(--good); }
.badge.draft, .badge.pending { background:rgba(255,209,102,.15); color:var(--warn); }
.badge.not_started, .badge.archived { background:rgba(169,180,207,.12); color:var(--muted); }

.commentary { line-height:1.75; color:#f7efe2; font-size:1.02rem; }
.hero .small, .small { color: var(--muted); font-size:.95rem; }
.muted { color: var(--muted); }

.avatar { width:40px; height:40px; border-radius:50%; object-fit:cover; background:#120a0d; border:1px solid var(--line); }
.avatar-lg { width:84px; height:84px; border-radius:50%; object-fit:cover; background:#120a0d; border:1px solid var(--line); }
.stack { display:grid; gap:10px; }
.flex { display:flex; gap:14px; align-items:center; }
.justify-between { justify-content:space-between; }
.actions { display:flex; gap:8px; flex-wrap:wrap; }
.code-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  display:inline-block;
  padding:4px 8px;
  border-radius:8px;
  background:#120a0d;
  border:1px solid var(--line);
  color:#ffd888;
}
.site-footer {
  border-top:1px solid var(--line);
  color:var(--muted);
  padding:20px 0 34px;
  text-align:center;
}

@media (max-width: 980px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-brand { grid-template-columns: 1fr; }
  .hero-brand-logo { max-width: 180px; }
}
@media (max-width: 900px) {
  .nav-wrap { align-items:flex-start; flex-direction:column; }
  .nav-links { width:100%; }
  .league-hero { align-items:flex-start; flex-direction:column; }
}
