:root {
  color-scheme: dark;
  --ink: #101117;
  --ink-raised: #181a23;
  --ink-soft: #20232e;
  --paper: #f0eff5;
  --muted: #9395a5;
  --line: rgba(235, 233, 255, .13);
  --violet: #a68aff;
  --violet-bright: #c3adff;
  --blue: #718ff6;
  --lime: #c5f06a;
  --red: #ff6f79;
  --display: 'Space Grotesk', 'Trebuchet MS', sans-serif;
  --body: 'DM Sans', 'Trebuchet MS', sans-serif;
  font-family: var(--body);
  background: var(--ink);
  color: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
::selection { color: #14131a; background: var(--lime); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.page-loader { position: fixed; z-index: 20; inset: 0; display: grid; place-content: center; gap: 20px; background: var(--ink); transition: opacity .55s ease, visibility .55s ease; }
.page-loader.is-done { opacity: 0; visibility: hidden; }
.loader-mark { display: grid; place-items: center; width: 54px; aspect-ratio: 1; margin: auto; border-radius: 17px; background: var(--violet); color: var(--ink); font: 700 31px var(--display); animation: mark-pulse 1.15s ease-in-out infinite alternate; }
.loader-line { width: 100px; height: 2px; overflow: hidden; background: var(--ink-soft); }
.loader-line::after { display: block; width: 55%; height: 100%; background: var(--lime); content: ''; animation: loading 1s ease-in-out infinite; }
@keyframes loading { from { transform: translateX(-110%); } to { transform: translateX(190%); } }
@keyframes mark-pulse { to { transform: translateY(-4px) rotate(4deg); } }

.topbar { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: 84px; padding: 0 clamp(22px, 5vw, 82px); border-bottom: 1px solid var(--line); background: rgba(16, 17, 23, .94); }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; font: 700 14px var(--display); letter-spacing: 0; }
.brand-mark { display: grid; place-items: center; width: 34px; aspect-ratio: 1; border-radius: 11px; background: var(--violet); color: var(--ink); font: 700 21px var(--display); }
.brand-sub { display: block; margin-top: 2px; color: var(--muted); font: 600 8px var(--body); letter-spacing: 0; }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); }
.main-nav a, .login-link { color: #b7b7c3; font-size: 12px; font-weight: 600; transition: color .18s ease; }
.main-nav a:hover, .main-nav a[aria-current='page'], .login-link:hover { color: var(--paper); }
.account-area { display: flex; justify-content: flex-end; min-width: 142px; }
.login-link { padding: 10px 0; color: var(--violet-bright); }
.account-user { align-items: center; gap: 9px; font-size: 12px; font-weight: 600; }
.account-user:not([hidden]) { display: flex; }
.account-user img { width: 30px; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.account-user button { padding: 7px 0 7px 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; }
.menu-toggle { display: none; }

.hero { position: relative; display: flex; align-items: center; min-height: min(660px, calc(100svh - 84px)); padding: 70px clamp(22px, 10vw, 160px); overflow: hidden; background: #191822; isolation: isolate; }
.hero::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(14, 14, 20, .97) 0%, rgba(14, 14, 20, .83) 43%, rgba(14, 14, 20, .16) 100%), linear-gradient(0deg, rgba(14, 14, 20, .58), transparent 40%); content: ''; }
.hero-image { position: absolute; z-index: -2; inset: 0; background: url('https://images.unsplash.com/photo-1593305841991-05c297ba4575?auto=format&fit=crop&w=2200&q=85') center 48% / cover; animation: image-arrive 1.4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes image-arrive { from { opacity: .4; transform: scale(1.05); } to { opacity: 1; transform: scale(1); } }
.hero-copy { max-width: 680px; padding: 18px 0 44px; animation: rise-in .7s .1s both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { margin: 0 0 16px; color: var(--muted); font: 700 10px var(--body); letter-spacing: 0; }
.hero .eyebrow { display: flex; align-items: center; gap: 9px; color: #d2cfda; }
.status-dot { width: 7px; aspect-ratio: 1; border-radius: 50%; background: var(--lime); box-shadow: 0 0 13px rgba(197, 240, 106, .55); }
.status-dot.is-offline { background: var(--muted); box-shadow: none; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin-top: 0; font-family: var(--display); font-weight: 600; letter-spacing: 0; }
.hero h1 { margin: 0; font-size: clamp(60px, 8.6vw, 126px); line-height: .96; }
.hero-lead { max-width: 450px; margin: 22px 0 30px; color: #d0ced8; font-size: 16px; line-height: 1.7; }
.hero-actions, .form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 46px; padding: 0 19px; border: 1px solid transparent; border-radius: 4px; font-size: 12px; font-weight: 700; transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease; cursor: pointer; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-primary { background: var(--violet); color: #17131f; }
.button-primary:hover:not(:disabled) { background: var(--violet-bright); }
.button-primary[aria-disabled='true'] { opacity: .52; pointer-events: none; }
.button-quiet { border-color: rgba(235, 233, 255, .26); background: rgba(17, 17, 24, .26); color: var(--paper); }
.button-quiet:hover:not(:disabled) { border-color: var(--violet); background: rgba(166, 138, 255, .1); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.hero-caption { position: absolute; right: clamp(22px, 5vw, 82px); bottom: 30px; left: clamp(22px, 5vw, 82px); display: flex; justify-content: space-between; color: #c0bec9; font-size: 9px; font-weight: 700; }
.hero-scroll { position: absolute; right: clamp(22px, 5vw, 82px); bottom: 96px; display: flex; align-items: center; gap: 12px; color: #c0bec9; font-size: 9px; }
.hero-scroll span { display: block; width: 45px; height: 1px; background: var(--violet); }
.metrics-strip { display: grid; grid-template-columns: repeat(4, 1fr); padding: 30px clamp(22px, 10vw, 160px); border-bottom: 1px solid var(--line); background: #15161e; }
.metric { display: grid; gap: 5px; padding: 5px 22px; border-left: 1px solid var(--line); }
.metric:first-child { padding-left: 0; border-left: 0; }
.metric-value { font: 600 30px var(--display); }
.metric-label { color: var(--muted); font-size: 11px; }
.section { padding: 84px clamp(22px, 10vw, 160px) 100px; }
.section-heading, .chart-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-heading .eyebrow, .chart-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2, .chart-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--violet-bright); font-size: 12px; font-weight: 700; white-space: nowrap; }
.text-link:hover { color: var(--lime); }
.home-grid { display: grid; grid-template-columns: 1.48fr 1fr; gap: 14px; }
.feature-panel { position: relative; display: flex; min-height: 340px; flex-direction: column; justify-content: flex-end; padding: 30px; overflow: hidden; border: 1px solid var(--line); background: var(--ink-raised); }
.feature-stream { isolation: isolate; }
.feature-image { position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgba(11, 12, 17, .92), rgba(11, 12, 17, .04) 76%), url('https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=1300&q=85') center / cover; transition: transform .5s ease; }
.feature-stream:hover .feature-image { transform: scale(1.035); }
.feature-overlay { display: grid; justify-items: start; }
.feature-overlay h3 { margin: 14px 0 5px; font-size: 30px; }
.feature-overlay > span:last-child, .feature-label { color: #c2c0cb; font-size: 11px; }
.live-state { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; font-weight: 700; }
.live-state::before { width: 7px; aspect-ratio: 1; border-radius: 50%; background: currentColor; content: ''; }
.live-state.is-live { color: #ff6876; }
.live-state.is-live::before { box-shadow: 0 0 12px currentColor; animation: live-pulse 1.3s infinite; }
@keyframes live-pulse { 50% { opacity: .42; } }
.panel-arrow { position: absolute; top: 24px; right: 24px; font-size: 20px; }
.feature-community { min-height: 340px; justify-content: space-between; background: linear-gradient(145deg, rgba(110, 93, 164, .2), transparent 62%), #1a1b25; }
.feature-number { font: 600 50px var(--display); }
.feature-community h3 { margin: 12px 0 30px; font-size: 29px; line-height: 1.2; }
.latest-news { margin-top: 80px; }
.news-list { border-top: 1px solid var(--line); }
.news-row { display: grid; grid-template-columns: 116px 1fr auto; align-items: center; gap: 22px; min-height: 85px; border-bottom: 1px solid var(--line); }
.news-row time { color: var(--muted); font-size: 11px; }
.news-row h3 { margin: 0; font: 600 16px var(--body); }
.news-row > span { color: var(--violet-bright); }

.page-main { width: min(1220px, calc(100% - 48px)); min-height: calc(100vh - 166px); margin: 0 auto; padding: 74px 0 100px; }
.page-intro { margin-bottom: 42px; }
.page-intro h1 { margin: 0 0 12px; font-size: clamp(46px, 7vw, 84px); line-height: 1; }
.page-intro > p:last-child { margin: 0; color: #a5a4b1; font-size: 14px; line-height: 1.7; }
.accent-dot { color: var(--violet); }

.stream-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 38px; align-items: start; }
.stream-preview { position: relative; display: grid; aspect-ratio: 16 / 9; place-items: center; overflow: hidden; border: 1px solid var(--line); background: #1b1b25; }
.preview-placeholder { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 10px; font-weight: 700; }
.live-pulse { width: 9px; aspect-ratio: 1; border-radius: 50%; background: var(--violet); animation: live-pulse 1.4s infinite; }
.stream-preview > img { width: 100%; height: 100%; object-fit: cover; }
.stream-info { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.stream-info h2 { margin: 10px 0 5px; font-size: 24px; }
.stream-info p { margin: 0; color: var(--muted); font-size: 12px; }
.stream-watch { flex: 0 0 auto; }
.stream-side { padding: 20px 0; }
.stream-avatar { width: 76px; aspect-ratio: 1; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 50%; object-fit: cover; }
.stream-side .eyebrow { margin-bottom: 8px; }
.stream-side h2 { margin-bottom: 10px; font-size: 23px; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.7; }
.stream-side-rule { height: 1px; margin: 24px 0; background: var(--line); }
.refresh-note { margin-top: 22px; color: #777987; font-size: 10px; }
.embed-section { margin-top: 74px; }
.twitch-player { aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.twitch-player iframe { width: 100%; height: 100%; border: 0; }

.period-control { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0 0 24px; padding: 4px; border: 1px solid var(--line); background: #161720; }
.period-control button { min-height: 34px; padding: 0 14px; border: 0; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.period-control button:hover { color: var(--paper); }
.period-control button.selected { background: var(--violet); color: #191522; font-weight: 700; }
.stats-summary { display: grid; grid-template-columns: repeat(6, 1fr); margin: 5px 0 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-block { display: grid; gap: 8px; padding: 22px 16px; border-left: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.stat-block:first-child { border-left: 0; padding-left: 0; }
.stat-number { color: var(--paper); font: 600 28px var(--display); }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.chart-panel { min-width: 0; padding: 24px 22px 18px; border: 1px solid var(--line); background: #15161e; }
.chart-heading { align-items: flex-start; margin: 0 0 16px; }
.chart-heading h2 { font-size: 17px; }
.chart-area { position: relative; min-height: 240px; }
.chart-area canvas { width: 100% !important; height: 240px !important; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; max-width: 290px; margin: auto; color: var(--muted); font-size: 12px; line-height: 1.7; text-align: center; }
.chart-empty[hidden] { display: none; }
.data-note { margin: 17px 0 0; color: #777987; font-size: 10px; }

.directory-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.search-field { display: flex; align-items: center; width: min(480px, 100%); height: 46px; padding: 0 14px; border: 1px solid var(--line); background: #15161e; color: var(--muted); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--paper); font-size: 12px; }
.search-field input::placeholder { color: #767887; }
.search-field > span:last-child { color: var(--violet); font-size: 23px; }
.sort-field { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; }
.sort-field select { min-height: 42px; max-width: 200px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0; outline: none; background: #15161e; color: var(--paper); font-size: 11px; }
.member-list { border-top: 1px solid var(--line); }
.member-row { display: grid; grid-template-columns: minmax(200px, 1.5fr) minmax(90px, .75fr) minmax(100px, .7fr) minmax(110px, .8fr); align-items: center; gap: 15px; min-height: 72px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.member-identity { display: flex; min-width: 0; align-items: center; gap: 13px; }
.member-identity img { width: 38px; aspect-ratio: 1; border-radius: 50%; background: #292a35; object-fit: cover; }
.member-name { overflow: hidden; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.member-id, .member-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.member-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.member-status::before { width: 7px; aspect-ratio: 1; border-radius: 50%; background: #777987; content: ''; }
.member-status.is-online { color: var(--paper); }
.member-status.is-online::before { background: var(--lime); box-shadow: 0 0 9px rgba(197, 240, 106, .35); }
.member-role { justify-self: start; max-width: 100%; overflow: hidden; padding: 6px 9px; border: 1px solid var(--line); color: #c5b8ee; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.load-more { display: flex; margin: 24px auto 0; }

.leaderboard-list { border-top: 1px solid var(--line); }
.leader-row { display: grid; grid-template-columns: 54px 1fr 120px; align-items: center; gap: 20px; min-height: 86px; padding: 12px 18px; border-bottom: 1px solid var(--line); transition: background .2s ease; }
.leader-row:hover { background: rgba(166, 138, 255, .055); }
.leader-rank { color: #7d7e8d; font: 600 18px var(--display); }
.leader-row:nth-child(1) .leader-rank { color: #efcf79; }
.leader-row:nth-child(2) .leader-rank { color: #c6c9d2; }
.leader-row:nth-child(3) .leader-rank { color: #d99a76; }
.leader-user { display: flex; align-items: center; gap: 14px; }
.leader-user img { width: 42px; aspect-ratio: 1; border-radius: 50%; background: #292a35; object-fit: cover; }
.leader-user strong { font-size: 13px; }
.leader-score { justify-self: end; color: var(--violet-bright); font: 600 16px var(--display); text-align: right; }
.leader-score small { display: block; margin-top: 3px; color: var(--muted); font: 10px var(--body); }

.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
.news-card { min-width: 0; border-bottom: 1px solid var(--line); }
.news-image { display: block; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 19px; background: #1a1b25; object-fit: cover; }
.news-card time { color: var(--muted); font-size: 10px; }
.news-card h2 { margin: 10px 0 8px; font-size: 22px; }
.news-card p { margin: 0 0 19px; color: #aaa9b5; font-size: 12px; line-height: 1.75; white-space: pre-wrap; }
.news-card-author { display: block; padding: 0 0 18px; color: var(--violet-bright); font-size: 10px; }
.empty-state { padding: 26px 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.admin-main { max-width: 980px; }
.admin-locked { padding: 32px; border: 1px solid var(--line); background: #15161e; }
.admin-locked h2 { margin: 0 0 10px; font-size: 22px; }
.admin-locked p { margin: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.admin-content { display: grid; gap: 44px; }
.admin-status-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.admin-health { padding: 18px; border: 1px solid var(--line); background: #15161e; }
.admin-health span { display: block; margin-bottom: 9px; color: var(--muted); font-size: 10px; }
.admin-health strong { font: 600 17px var(--display); }
.admin-section { padding-top: 30px; border-top: 1px solid var(--line); }
.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: end; }
.admin-form label { display: grid; gap: 8px; color: #c8c7d2; font-size: 11px; }
.admin-form label:has(textarea) { grid-column: 1 / -1; }
.admin-form input, .admin-form textarea { width: 100%; min-height: 44px; padding: 12px; border: 1px solid var(--line); border-radius: 0; outline: none; background: #15161e; color: var(--paper); font-size: 12px; resize: vertical; }
.admin-form input:focus, .admin-form textarea:focus { border-color: var(--violet); }
.admin-form input[type='color'] { width: 76px; min-height: 44px; padding: 5px; }
.admin-form > .button, .form-actions { justify-self: start; }
.admin-news-list { margin-top: 24px; border-top: 1px solid var(--line); }
.admin-news-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.admin-news-row strong { font-size: 12px; }
.admin-news-actions { display: flex; gap: 14px; flex: 0 0 auto; }
.admin-news-actions button { padding: 7px 0; border: 0; background: transparent; color: var(--violet-bright); font-size: 11px; cursor: pointer; }
.admin-news-actions button:last-child { color: var(--red); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 82px; padding: 18px clamp(22px, 5vw, 82px); border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 700; }
.site-footer > a:last-child { color: var(--violet-bright); }
.toast-region { position: fixed; z-index: 30; right: 22px; bottom: 20px; display: grid; gap: 9px; width: min(340px, calc(100% - 44px)); }
.toast { padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--lime); background: #20212b; color: var(--paper); font-size: 12px; line-height: 1.5; animation: rise-in .2s ease both; }
.toast.is-error { border-left-color: var(--red); }
.not-found { display: flex; min-height: 100svh; flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px clamp(22px, 12vw, 180px); background: radial-gradient(ellipse at 75% 16%, rgba(113, 143, 246, .14), transparent 38%), var(--ink); }
.not-found-code { margin-bottom: 34px; color: var(--violet); font: 700 clamp(80px, 15vw, 180px)/.8 var(--display); }
.not-found h1 { margin-bottom: 28px; font-size: clamp(34px, 5vw, 58px); }

@media (max-width: 980px) {
  .topbar { height: 74px; padding: 0 22px; }
  .menu-toggle { display: grid; width: 38px; height: 38px; place-content: center; gap: 6px; margin-left: auto; border: 1px solid var(--line); background: transparent; cursor: pointer; }
  .menu-toggle span { display: block; width: 15px; height: 1px; background: var(--paper); transition: transform .2s ease; }
  .menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .main-nav { position: absolute; top: 73px; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 8px 22px 18px; border-bottom: 1px solid var(--line); background: #15161e; }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .account-area { min-width: 0; margin-left: 18px; }
  .login-link { max-width: 110px; font-size: 10px; text-align: right; }
  .account-user { gap: 6px; font-size: 10px; }
  .account-user button { font-size: 10px; }
  .hero { min-height: 560px; padding: 62px 7vw; }
  .metrics-strip { padding: 26px 7vw; }
  .section { padding: 70px 7vw 80px; }
  .page-main { width: min(100% - 44px, 860px); padding-top: 60px; }
  .stream-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; }
  .stats-summary { grid-template-columns: repeat(3, 1fr); }
  .stat-block:nth-child(4) { border-left: 1px solid var(--line); }
  .stat-block:nth-child(3n + 1) { border-left: 0; }
  .stat-block:nth-child(n+4) { border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .topbar { height: 68px; padding: 0 17px; }
  .brand { gap: 8px; font-size: 12px; }
  .brand-mark { width: 31px; border-radius: 10px; }
  .account-area { margin-left: 10px; }
  .login-link { max-width: 82px; line-height: 1.35; }
  .account-user img { width: 26px; }
  .account-user button { padding-left: 4px; }
  .main-nav { top: 67px; padding-right: 17px; padding-left: 17px; }
  .hero { min-height: 590px; align-items: flex-end; padding: 0 22px 108px; }
  .hero::after { background: linear-gradient(0deg, rgba(14, 14, 20, .97) 0%, rgba(14, 14, 20, .75) 47%, rgba(14, 14, 20, .16) 100%); }
  .hero-image { background-position: 58% center; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(56px, 17vw, 86px); }
  .hero-lead { margin: 16px 0 22px; font-size: 14px; }
  .hero-actions { gap: 9px; }
  .button { min-height: 43px; padding: 0 13px; gap: 10px; font-size: 11px; }
  .hero-caption { right: 22px; bottom: 20px; left: 22px; font-size: 8px; }
  .hero-scroll { display: none; }
  .metrics-strip { grid-template-columns: repeat(2, 1fr); gap: 20px 0; padding: 23px 22px; }
  .metric { padding: 0 15px; }
  .metric:nth-child(odd) { padding-left: 0; border-left: 0; }
  .metric-value { font-size: 26px; }
  .section { padding: 58px 22px 70px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { max-width: 240px; font-size: 25px; }
  .section-heading > .text-link { align-self: flex-end; gap: 5px; font-size: 10px; }
  .home-grid { grid-template-columns: 1fr; }
  .feature-panel { min-height: 300px; padding: 23px; }
  .feature-community { min-height: 265px; }
  .feature-community h3 { font-size: 25px; }
  .latest-news { margin-top: 57px; }
  .news-row { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 15px 0; }
  .news-row time { grid-column: 1; }
  .news-row h3 { grid-column: 1; font-size: 13px; }
  .news-row > span { grid-column: 2; grid-row: 1 / span 2; }
  .page-main { width: calc(100% - 36px); min-height: calc(100vh - 142px); padding: 52px 0 70px; }
  .page-intro { margin-bottom: 30px; }
  .page-intro h1 { font-size: clamp(43px, 13vw, 66px); }
  .page-intro > p:last-child { font-size: 12px; }
  .stream-layout { grid-template-columns: 1fr; gap: 10px; }
  .stream-side { display: grid; grid-template-columns: 60px 1fr; align-items: center; column-gap: 16px; padding-top: 16px; }
  .stream-avatar { grid-row: 1 / span 3; width: 60px; margin: 0; }
  .stream-side .eyebrow { margin: 0; }
  .stream-side h2 { margin: 4px 0; }
  .stream-side .muted, .stream-side-rule, .stream-side .text-link, .stream-side .refresh-note { grid-column: 1 / -1; }
  .stream-side .muted { margin: 12px 0 0; }
  .stream-side-rule { margin: 17px 0; }
  .stream-info { align-items: flex-start; flex-direction: column; gap: 16px; }
  .stream-watch { width: 100%; }
  .embed-section { margin-top: 50px; }
  .period-control { display: grid; width: 100%; grid-template-columns: repeat(4, 1fr); }
  .period-control button { padding: 0 5px; font-size: 9px; }
  .stats-summary { grid-template-columns: repeat(2, 1fr); }
  .stat-block { padding: 17px 12px; font-size: 9px; }
  .stat-block:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat-block:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat-block:nth-child(4) { border-left: 1px solid var(--line); }
  .stat-number { font-size: 25px; }
  .chart-grid { grid-template-columns: 1fr; }
  .chart-panel { padding: 20px 14px 14px; }
  .chart-area { min-height: 210px; }
  .chart-area canvas { height: 210px !important; }
  .directory-tools { align-items: stretch; flex-direction: column; gap: 12px; }
  .search-field { width: 100%; }
  .sort-field { justify-content: space-between; }
  .sort-field select { flex: 1; max-width: 65%; }
  .member-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 13px 5px; }
  .member-identity { grid-column: 1; grid-row: 1 / span 2; }
  .member-meta { grid-column: 2; justify-self: end; text-align: right; }
  .member-status { grid-column: 2; grid-row: 1; justify-self: end; }
  .member-role { grid-column: 2; grid-row: 2; justify-self: end; }
  .leader-row { grid-template-columns: 30px 1fr auto; gap: 9px; min-height: 76px; padding: 10px 4px; }
  .leader-user { gap: 9px; }
  .leader-user img { width: 34px; }
  .leader-user strong { max-width: 140px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
  .leader-score { font-size: 13px; }
  .news-grid { grid-template-columns: 1fr; gap: 22px; }
  .news-card h2 { font-size: 20px; }
  .admin-status-row { grid-template-columns: 1fr; gap: 8px; }
  .admin-health { padding: 13px; }
  .admin-form { grid-template-columns: 1fr; }
  .admin-form label:has(textarea) { grid-column: auto; }
  .admin-news-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .site-footer { min-height: 76px; flex-wrap: wrap; padding: 17px; font-size: 8px; }
  .site-footer > span { order: 1; width: 100%; }
  .site-footer > a:last-child { margin-left: auto; }
  .not-found { padding: 30px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}