/* SWAG Hub — "Night Raid" in guild colors */
:root {
  --bg: #0E1220; --surface: #171C2E; --line: #262D45; --line2: #3A4366;
  --text: #ECEFF4; --body: #C3CAD6; --muted: #9AA3B2;
  --accent: #7B2CBF; --accent-text: #C9A0FF; --bronze: #D2AE6D; --live: #FF5A5A;
  --head: 'Chakra Petch', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 Inter, system-ui, sans-serif; }
a { color: var(--accent-text); }
a:hover { color: #E2CCFF; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--head); margin: 0; line-height: 1.1; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.muted { color: var(--muted); }
.body { color: var(--body); }
.small { font-size: 14px; }
.eyebrow { margin: 0 0 12px; font-family: var(--head); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); font-size: 13px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 14px 24px; border-radius: 8px; font-weight: 600; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { color: #fff; filter: brightness(1.12); }
.btn-ghost { display: inline-block; border: 1px solid var(--line2); color: var(--text); text-decoration: none; padding: 14px 24px; border-radius: 8px; font-weight: 500; }
.btn-ghost:hover { color: var(--text); border-color: var(--accent-text); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; border: 1px solid var(--line2); color: var(--text); }
.tag.solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.section { padding-top: 48px; padding-bottom: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.section-head h2 { font-size: 36px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.row { display: flex; flex-wrap: wrap; gap: 24px; }
.grow { flex: 999 1 560px; min-width: 0; }
.side { flex: 1 1 320px; min-width: 0; }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: .04em; }
.brand:hover { color: var(--text); }
.brand img { width: 44px; height: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.nav-links a { color: var(--body); text-decoration: none; padding: 10px 14px; font-weight: 500; border-bottom: 2px solid transparent; }
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 24px; color: var(--muted); font-size: 14px; }

/* page heads */
.page-head { padding-top: 72px; padding-bottom: 40px; }
.page-head h1 { font-size: 56px; }
.page-head .lead { margin: 16px 0 0; font-size: 19px; color: var(--body); max-width: 680px; }

/* home hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 64px; }
.hero .crest { width: 163px; height: 180px; display: block; margin-bottom: 24px; }
.hero h1 { font-size: 76px; line-height: 1; letter-spacing: -.01em; }
.hero .lead { margin: 24px 0 0; font-size: 20px; color: var(--body); max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* progress */
.progress-card { display: flex; flex-direction: column; gap: 18px; }
.prog-row { display: flex; flex-direction: column; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.prog-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.prog-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.prog-num { font-family: var(--head); font-weight: 700; font-size: 26px; color: var(--accent-text); }
.bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bar > span { display: block; height: 8px; background: var(--accent); }

/* week strip */
.week { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-height: 112px; }
.day.has { border-color: var(--accent); }
.day.today { box-shadow: 0 0 0 2px var(--bronze) inset; }
.day.empty { opacity: .6; }
.day h3 { font-size: 18px; display: flex; justify-content: space-between; gap: 8px; }
.day h3 small { font-family: Inter, sans-serif; font-weight: 400; color: var(--muted); font-size: 13px; }
.day ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.day li b { display: block; font-size: 15px; }
.day li span { color: var(--muted); font-size: 14px; }

/* team cards */
.team { display: flex; flex-direction: column; gap: 12px; }
.team h3 { font-size: 24px; }
.team .go { margin-top: auto; font-weight: 600; }
.team-wide { display: flex; flex-wrap: wrap; gap: 32px; }
.team-wide dl { margin: 8px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 15px; }
.team-wide dt { color: var(--muted); }
.team-wide dd { margin: 0; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { padding: 10px; font-weight: 500; text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
td { padding: 12px 10px; border-top: 1px solid var(--line); }
td.num, th.num { text-align: right; }
td.score { font-family: var(--head); font-weight: 600; }
.up { color: var(--accent-text); }
.down { color: var(--muted); }

/* chips (filters) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 10px 18px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; background: transparent; color: var(--text); border: 1px solid var(--line2); text-decoration: none; display: inline-flex; align-items: center; }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* clips / streams */
.clip-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.clip { margin: 0; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--line); border-radius: 8px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .kind { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 600; background: var(--bg); color: var(--text); padding: 4px 8px; border-radius: 4px; }
.clip figcaption { margin-top: 10px; }
.clip figcaption b { display: block; }
.player { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 8px; background: var(--line); display: block; }
.chat { width: 100%; min-height: 420px; height: 100%; border: 0; border-radius: 12px; background: var(--surface); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live); display: inline-block; }
.stream-btn { background: var(--surface); border: 2px solid transparent; border-radius: 12px; padding: 8px; color: var(--text); text-decoration: none; display: block; }
.stream-btn[aria-current="true"] { border-color: var(--accent); }
.placeholder { aspect-ratio: 16 / 9; background: var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; text-align: center; padding: 16px; }
.empty-note { border: 1px dashed var(--line2); border-radius: 12px; padding: 28px; color: var(--body); }

ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hero h1 { font-size: 52px; }
  .page-head h1 { font-size: 40px; }
  .section-head h2 { font-size: 28px; }
  .site-header nav { gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }
  .nav-links { order: 3; flex-basis: 100%; }
  .nav-links a { padding: 8px 10px; }
  .site-header .btn { margin-left: auto; padding: 10px 16px; }
  .hero { padding-top: 40px; gap: 32px; }
  .hero .crest { width: 109px; height: 120px; }
}
