:root {
  --bg: #08110C;
  --panel: #0F1C15;
  --panel2: #142619;
  --line: rgba(255, 255, 255, 0.12);
  --text: #F4F6F2;
  --muted: #A9B6AD;
  --accent: #C6FF3D;
  --accent-ink: #0B1A12;
  --red: #FF6B5E;
  --yellow: #FFE14A;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; }
a { color: var(--accent); }
a:hover { color: #E4FF9E; }
h1, h2, h3, .display { font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0.02em; margin: 0; }
button, input, select { font: inherit; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line);
  background: transparent; color: var(--text); font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: rgba(255, 255, 255, 0.3); color: var(--text); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border: none; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: 0.08em; text-transform: uppercase; }
.btn.primary:hover { background: #D6FF6E; color: var(--accent-ink); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn:disabled { opacity: 0.5; cursor: default; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.field input {
  min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3); color: var(--text);
}
.field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.error { color: var(--red); font-size: 14px; min-height: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.muted { color: var(--muted); }
.tag { display: inline-block; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); font-size: 12px; font-weight: 600; }
.tag.live { background: rgba(198, 255, 61, 0.15); color: var(--accent); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; margin-right: 8px; }

/* ---------- Landing ---------- */
.landing { min-height: 100vh; display: flex; flex-wrap: wrap; }
.hero {
  flex: 1 1 520px; min-height: 380px; position: relative; overflow: hidden; padding: 48px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 16px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(255, 255, 220, 0.12), transparent 70%),
    repeating-linear-gradient(90deg, #2F8F3F 0 70px, #2A823A 70px 140px);
}
.hero::before {
  content: ''; position: absolute; inset: 40px; border: 3px solid rgba(255, 255, 255, 0.55); pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 180px; height: 180px; margin: -90px 0 0 -90px;
  border: 3px solid rgba(255, 255, 255, 0.55); border-radius: 50%; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; background: rgba(8, 17, 12, 0.82); padding: 28px; border-radius: 16px; max-width: 560px; backdrop-filter: blur(6px); }
.hero h1 { font-size: 64px; line-height: 0.95; font-weight: 800; text-transform: uppercase; }
.hero h1 span { color: var(--accent); }
.hero p { color: #D9E2DB; font-size: 17px; line-height: 1.5; margin: 12px 0 0; }
.bubble {
  display: inline-block; background: var(--yellow); color: #120F05; padding: 8px 14px; border-radius: 12px;
  font-family: 'Barlow Condensed', sans-serif; font-style: italic; font-weight: 900; font-size: 22px; text-transform: uppercase;
  box-shadow: 4px 4px 0 #0B1A12; transform: rotate(-2deg); margin-bottom: 14px;
}
.auth { flex: 1 1 380px; max-width: 520px; padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; gap: 22px; margin: 0 auto; }
.brand { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: 0.08em; }
.brand b { color: var(--accent); }
.tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; }
.tabs button { flex: 1; min-height: 44px; border: none; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--panel2); color: var(--text); }
form { display: flex; flex-direction: column; gap: 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 36px; height: 36px; border-radius: 8px; border: 2px solid rgba(255, 255, 255, 0.2); cursor: pointer; }
.swatches button[aria-pressed="true"] { outline: 3px solid var(--accent); outline-offset: 2px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; font-size: 13px; color: var(--muted); }
.features div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.features b { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }

/* ---------- Panel ---------- */
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.crest { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 18px; color: #fff; border: 2px solid rgba(255, 255, 255, 0.3); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.play-card { background: linear-gradient(135deg, #1B3A22, #0F1C15 70%); border-color: rgba(198, 255, 61, 0.35); display: flex; flex-direction: column; gap: 14px; }
.play-card h2 { font-size: 36px; text-transform: uppercase; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-form { display: flex; gap: 8px; flex-direction: row; }
.inline-form input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); color: var(--text); }
.league-list { display: flex; flex-direction: column; gap: 8px; }
.league-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); cursor: pointer; color: var(--text); text-align: left; width: 100%; min-height: 52px; }
.league-item:hover, .league-item[aria-current="true"] { border-color: var(--accent); }
.table-box { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; color: var(--muted); letter-spacing: 0.06em; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); white-space: nowrap; }
tr.mine td { background: rgba(198, 255, 61, 0.08); }
td.pts { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 19px; }
.fixture { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); flex-wrap: wrap; }
.fixture .teams { flex: 1; min-width: 200px; font-weight: 600; }
.fixture .res { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 20px; }
.round-title { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; margin: 14px 0 6px; font-weight: 700; }
.empty { color: var(--muted); font-size: 14px; padding: 8px 0; }
.code { font-family: 'Barlow Condensed', sans-serif; font-size: 28px; font-weight: 800; letter-spacing: 0.12em; color: var(--accent); }

@media (max-width: 640px) {
  .hero { padding: 24px; min-height: 320px; }
  .hero::before { inset: 16px; }
  .hero h1 { font-size: 44px; }
  .auth { padding: 28px 16px; }
  .features { grid-template-columns: 1fr; }
  .wrap { padding: 16px; }
  .topbar { padding: 12px 16px; }
}
