/* SMX Community public site: gold / obsidian, matches the SMX Launcher palette. */
:root {
  --bg: #080705;
  --band: #0F0D09;
  --surface: #12100C;
  --field: #1C1A16;
  --gold: #F3CD68;
  --gold-hover: #FFE29A;
  --gold-soft: #D8C38C;
  --cream: #F5E7C1;
  --soft: #D9CFB6;
  --body: #B9B09C;
  --muted: #9A9385;
  --green: #3DDC6E;
  --orange: #FF9F43;
  --line: rgba(243, 205, 104, 0.18);
  --line-strong: rgba(243, 205, 104, 0.5);
  --ink: #1A1408;
  --display: Montserrat, system-ui, sans-serif;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font: 16px/1.55 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: var(--gold-hover); }
h1, h2, h3 { font-family: var(--display); margin: 0; }
h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; line-height: 1.1; text-transform: uppercase; }
h3 { font-size: 22px; font-weight: 600; }
p { margin: 0; }
hr { border: 0; height: 1px; background: var(--line); margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 104px; padding-bottom: 96px; }
.band { background: var(--band); border-top: 1px solid rgba(243,205,104,0.14); border-bottom: 1px solid rgba(243,205,104,0.14); }
.gold { color: var(--gold); }
.green { color: var(--green); }
.orange { color: var(--orange); }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.small { font-size: 14px; }
.strong { font-weight: 600; }
.body { color: var(--body); max-width: 440px; }
.r { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; background: var(--gold); color: var(--ink); font-weight: 600; }
.skip:focus { top: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(8,7,5,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--cream); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: 0.06em; }
.brand:hover { color: var(--cream); }
.brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; flex-wrap: wrap; gap: 26px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--soft); text-decoration: none; }
.nav-links a:hover { color: var(--gold); }
.nav-actions { display: flex; gap: 12px; }

/* Skewed buttons (launcher style) */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; transform: skewX(-12deg); border: 0; cursor: pointer; }
.btn > span { display: inline-flex; align-items: center; gap: 12px; transform: skewX(12deg); }
.btn-gold { background: linear-gradient(180deg, #F6D777 0%, #E7BE58 45%, #C99A35 100%); color: var(--ink); }
.btn-gold:hover { color: var(--ink); filter: brightness(1.08); }
.btn-ghost { border: 1px solid rgba(243,205,104,0.55); color: var(--gold); font-weight: 600; }
.btn-ghost:hover { background: rgba(243,205,104,0.12); color: var(--gold); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }
.link { font-weight: 600; text-decoration: none; }

/* Stadium backgrounds */
.bg-stadium {
  background-image:
    linear-gradient(90deg, rgba(8,7,5,0.96) 0%, rgba(8,7,5,0.82) 42%, rgba(8,7,5,0.35) 100%),
    linear-gradient(0deg, #080705 0%, rgba(8,7,5,0) 30%),
    url("../img/hero-stadium.jpg");
  background-size: cover;
  background-position: 65% center;
}

/* Hero */
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 140px; padding-bottom: 160px; }
.hero-copy { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: inline-block; padding: 6px 14px; border: 1px solid rgba(245,231,193,0.25); color: var(--soft); font-family: var(--display); font-weight: 500; font-size: 13px; letter-spacing: 0.16em; transform: skewX(-12deg); }
.badge-gold { background: rgba(243,205,104,0.14); border-color: rgba(243,205,104,0.45); color: var(--gold); font-weight: 600; }
.hero-title { font-size: clamp(44px, 7vw, 80px); font-weight: 800; line-height: 1; text-transform: uppercase; color: var(--gold); }
.hero-tagline { font-family: var(--display); font-weight: 500; font-size: clamp(15px, 2vw, 22px); letter-spacing: 0.32em; text-transform: uppercase; }
.hero-lead { max-width: 560px; font-size: 18px; color: var(--soft); }

.status-card { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; padding: 28px; background: rgba(18,16,12,0.92); border: 1px solid rgba(243,205,104,0.35); border-radius: var(--radius); }
.eyebrow-sm { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); }
.status-line { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.08em; }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.dot-green { background: var(--green); box-shadow: 0 0 14px rgba(61,220,110,0.7); }
.dot-orange { background: var(--orange); box-shadow: 0 0 14px rgba(255,159,67,0.7); }
.status-list { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.status-list div { display: flex; justify-content: space-between; gap: 12px; }
.status-list dt { color: var(--body); }
.status-list dd { margin: 0; font-weight: 600; }

/* Highlight strip */
.strip { background: var(--band); border-top: 1px solid rgba(243,205,104,0.2); border-bottom: 1px solid rgba(243,205,104,0.2); }
.strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--gold); }
.stat-label { font-size: 14px; color: var(--muted); }

/* Section heads */
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin-bottom: 48px; }
.section-head.row { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.section-head.row > div { display: flex; flex-direction: column; gap: 12px; }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.2em; color: var(--gold); }
.eyebrow-icon { display: inline-flex; align-items: center; gap: 10px; }

/* Cards */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s; }
.card:hover { border-color: rgba(243,205,104,0.55); }
.card p { color: var(--body); }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.tag { display: inline-block; padding: 3px 10px; font-size: 12px; font-weight: 700; border-radius: 3px; white-space: nowrap; }
.tag-gold { background: rgba(243,205,104,0.16); color: var(--gold); }
.tag-green { background: rgba(61,220,110,0.14); color: var(--green); }
.tag-cream { background: rgba(245,231,193,0.1); color: var(--cream); }

/* Split layouts (ranked, database) */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
#ranked .split { align-items: flex-start; }
.split-side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.split-main { flex: 999 1 560px; min-width: 0; }
.mini-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.mini-stat { padding: 14px 18px; background: var(--field); border-radius: var(--radius); display: flex; flex-direction: column; }
.mini-stat span { font-size: 13px; color: var(--muted); }
.mini-stat b { font-family: var(--display); font-weight: 600; font-size: 22px; }

/* Tables */
.table-box { overflow-x: auto; background: var(--surface); border: 1px solid rgba(243,205,104,0.2); border-radius: var(--radius); }
.table-scroll { overflow-x: auto; }
.table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; }
.table caption { text-align: left; padding: 18px 24px; font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: 0.04em; border-bottom: 1px solid var(--line); }
.table th { padding: 12px 8px; color: var(--muted); font-size: 13px; font-weight: 500; text-align: left; }
.table th.r { text-align: right; }
.table td { padding: 16px 8px; border-top: 1px solid rgba(243,205,104,0.1); }
.table th:first-child, .table td:first-child { padding-left: 24px; }
.table th:last-child, .table td:last-child { padding-right: 24px; }
.table tr.top { background: rgba(243,205,104,0.07); }
.rank { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--muted); }
.rank-1 { color: var(--gold); }
.rank-2, .rank-3 { color: var(--gold-soft); }
.points { font-family: var(--display); font-weight: 600; font-size: 18px; }
.table-tight th:first-child, .table-tight td:first-child { padding-left: 8px; }
.table-tight th:last-child, .table-tight td:last-child { padding-right: 8px; }
.table-tight td { padding-top: 14px; padding-bottom: 14px; }
.ovr { font-family: var(--display); font-weight: 700; }
.player { display: flex; align-items: center; gap: 12px; }
.table .link { white-space: nowrap; }
.table td.empty { padding: 28px 24px; text-align: center; color: var(--muted); }
.page-title { font-size: clamp(34px, 5vw, 52px); font-weight: 800; line-height: 1.05; text-transform: uppercase; }
.page-db .section-head { margin-bottom: 32px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--field); border: 1px solid rgba(243,205,104,0.3); flex: none; overflow: hidden; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Player database frame with cut corners */
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--soft); font-size: 15px; }
.checks li { display: flex; align-items: center; gap: 10px; }
.checks svg { color: var(--gold); flex: none; }
.frame {
  --cut: 28px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(243,205,104,0.75), rgba(243,205,104,0.15) 40%, rgba(243,205,104,0.15) 60%, rgba(243,205,104,0.75));
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.frame-inner {
  background: var(--band);
  clip-path: inherit;
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.db-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.search { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: var(--field); border: 1px solid rgba(243,205,104,0.25); border-radius: var(--radius); }
.search:focus-within { border-color: var(--gold); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--cream); font: inherit; font-size: 15px; }
.search input::placeholder { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; background: transparent; color: var(--soft); border: 1px solid rgba(243,205,104,0.3); border-radius: 22px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 600; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 32px 28px; border-top: 3px solid var(--gold); background: var(--surface); }
.step-no { font-family: var(--display); font-weight: 800; font-size: 52px; line-height: 1; color: rgba(243,205,104,0.35); }
.step p { color: var(--body); }

/* Download */
.download-wrap { padding-bottom: 104px; }
.download { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding: 48px; background: var(--surface); border: 1px solid rgba(243,205,104,0.4); border-radius: var(--radius); }
.download-copy { display: flex; flex-direction: column; gap: 6px; }
.download h2 { font-size: 32px; }

/* Community */
.community { border-top: 1px solid rgba(243,205,104,0.2); }
.community .section { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; padding-top: 112px; padding-bottom: 112px; }
.big { max-width: 720px; font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1.05; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; gap: 32px; padding-top: 56px; padding-bottom: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-top .brand img { width: 44px; height: 44px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; font-size: 15px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols a { color: var(--muted); text-decoration: none; }
.footer-cols a:hover { color: var(--gold); }
.footer-head { font-weight: 600; }
.legal { padding-top: 24px; border-top: 1px solid rgba(243,205,104,0.12); font-size: 13px; color: var(--muted); }

/* Phone */
@media (max-width: 760px) {
  .site-header { position: static; }
  section[id] { scroll-margin-top: 0; }
  .nav-links { order: 3; width: 100%; flex-wrap: nowrap; gap: 18px; overflow-x: auto; white-space: nowrap; padding-bottom: 4px; }
  .hero-inner { padding-top: 72px; padding-bottom: 88px; }
  .section { padding-top: 72px; padding-bottom: 64px; }
  .download { padding: 28px; }
  .frame-inner { padding: 20px; }
  .btn-lg { padding: 0 24px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
