@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Share+Tech+Mono&display=swap');

:root {
  --ink: #ffffff;
  --text-secondary: #d7dcf0;
  --muted: #b2bad5;
  --line: #59698f;
  --line-soft: rgba(157, 172, 213, .28);
  --paper: #111426;
  --section: #181d34;
  --card: #242b49;
  --card-soft: #202740;
  --card-strong: #303a60;
  --chrome: #12162a;
  --brand: #ffd84d;
  --brand-hover: #ffe783;
  --orange: #ff9c55;
  --blue: #67d8ff;
  --green: #6fe6a4;
  --coral: #ff8291;
  --radius: 14px;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Press Start 2P", monospace;
  --font-data: "Share Tech Mono", "SFMono-Regular", Consolas, monospace;
  color-scheme: dark;
  font-family: var(--font-ui);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--paper); }

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(103, 216, 255, .055), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(255, 216, 77, .06), transparent 27%),
    var(--paper);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: .32;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 0, 0, .045) 3px, rgba(0, 0, 0, .045) 4px);
  mix-blend-mode: multiply;
}

a { color: inherit; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.community-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 58px;
  padding: 0 max(18px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(18, 22, 42, .97);
  border-bottom: 2px solid var(--brand);
  box-shadow: 0 4px 18px rgba(3, 5, 15, .28);
  backdrop-filter: blur(14px);
}

.community-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: #f2f2fa;
  text-decoration: none;
  white-space: nowrap;
}

.community-brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  color: var(--brand);
  filter: drop-shadow(0 0 6px rgba(255, 216, 77, .22));
}

.community-brand-mark svg { width: 100%; height: 100%; }

.community-brand-word {
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1;
  letter-spacing: -.5px;
}

.community-brand-word span { color: var(--brand); }
.community-brand:hover .community-brand-mark { color: var(--brand-hover); }

.community-header nav {
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 2px;
}

.community-header nav a {
  position: relative;
  min-height: 56px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .18s ease, background .18s ease;
}

.community-header nav a::after {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--brand);
  box-shadow: 0 0 9px rgba(255, 216, 77, .35);
  transform: scaleX(0);
  transition: transform .18s ease;
}

.community-header nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .035);
}

.community-header nav a[aria-current="page"] {
  color: var(--brand);
  background: linear-gradient(180deg, transparent 20%, rgba(255, 216, 77, .08));
}

.community-header nav a[aria-current="page"]::after { transform: scaleX(1); }

main {
  flex: 1 0 auto;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.community-breadcrumbs {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  color: var(--muted);
  font-family: var(--font-data);
  font-size: .82rem;
}

.community-breadcrumbs a { color: var(--blue); text-decoration: none; }
.community-breadcrumbs a:hover { color: #a7eaff; text-decoration: underline; }

.community-hero,
.profile-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 54px);
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(103, 216, 255, .08), transparent 38%),
    linear-gradient(145deg, var(--card), var(--section));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(3, 5, 15, .3);
}

.community-hero::after,
.profile-hero::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -70px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 216, 77, .18);
  border-radius: 42px;
  box-shadow: inset 0 0 60px rgba(255, 216, 77, .035);
  transform: rotate(28deg);
  pointer-events: none;
}

.community-hero.compact { max-width: 760px; margin: 8vh auto; }

.community-hero h1,
.profile-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 12px 0 16px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.7vw, 3.15rem);
  line-height: 1.35;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.community-hero p,
.profile-hero .lede {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 0 22px;
  color: var(--text-secondary);
  font-size: clamp(.98rem, 1.7vw, 1.12rem);
}

.eyebrow,
.section-heading > span,
.section-heading div > span,
.event-card > span,
.discussion-card > span {
  display: inline-block;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.7;
  text-transform: uppercase;
}

.button {
  min-height: 44px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  color: #171521;
  background: linear-gradient(180deg, var(--brand-hover), var(--brand));
  border: 1px solid #ffea8e;
  border-radius: 8px;
  box-shadow: 0 4px 0 #a06d00, 0 10px 22px rgba(0, 0, 0, .24);
  font-family: var(--font-display);
  font-size: .64rem;
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover { color: #08080d; filter: brightness(1.06); transform: translateY(-1px); }
.text-link { display: inline-block; margin-top: 10px; color: var(--blue); font-weight: 800; }

.profile-hero {
  min-height: 300px;
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.profile-avatar-public {
  position: relative;
  z-index: 1;
  width: 136px;
  height: 136px;
  object-fit: cover;
  background: #fff;
  border: 3px solid var(--brand);
  border-radius: 22px;
  box-shadow: 0 0 0 6px rgba(255, 216, 77, .08), 0 16px 30px rgba(0, 0, 0, .32);
}

.profile-avatar-public.fallback {
  display: grid;
  place-items: center;
  color: #161522;
  background: linear-gradient(135deg, var(--brand), var(--orange));
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 950;
}

.identity-copy { position: relative; z-index: 1; min-width: 0; }
.profile-hero h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
.handle { margin: -3px 0 13px; color: var(--blue); font-family: var(--font-data); font-size: 1.04rem; font-weight: 800; }
.identity-tags, .tab-links { display: flex; gap: 8px; flex-wrap: wrap; }

.identity-tags span,
.identity-tags a,
.tab-links a {
  padding: 7px 10px;
  color: var(--text-secondary);
  background: rgba(10, 13, 29, .3);
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  font-family: var(--font-data);
  font-size: .82rem;
  text-decoration: none;
}

.identity-tags a:hover { color: var(--brand); border-color: rgba(255, 216, 77, .55); }
.tab-links { position: relative; z-index: 1; margin-top: 22px; }
.tab-links a[aria-current="page"] { color: #171521; background: var(--brand); border-color: var(--brand); }

.metric-grid,
.stage-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.metric {
  min-width: 0;
  padding: 20px;
  background: linear-gradient(145deg, var(--card), var(--card-soft));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(3, 5, 15, .18);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.metric:hover { border-color: rgba(255, 216, 77, .5); transform: translateY(-2px); box-shadow: 0 13px 28px rgba(3, 5, 15, .28); }
.metric span { display: block; color: var(--muted); font-family: var(--font-display); font-size: .56rem; font-weight: 800; line-height: 1.7; text-transform: uppercase; letter-spacing: .06em; }
.metric strong { display: block; margin-top: 9px; color: var(--brand); font-family: var(--font-data); font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1; letter-spacing: -.025em; }
.metric small { display: block; margin-top: 9px; color: var(--muted); font-size: .78rem; }

.panel,
.method-note {
  margin-top: 18px;
  padding: clamp(22px, 4vw, 32px);
  background: linear-gradient(145deg, var(--card), var(--card-soft));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(3, 5, 15, .16);
}

.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.section-heading { margin-bottom: 20px; }
.section-heading.split { display: flex; align-items: end; justify-content: space-between; gap: 18px; }

.section-heading h2,
.method-note h2 {
  margin: 7px 0 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(.9rem, 2vw, 1.22rem);
  line-height: 1.6;
}

.section-heading a { color: var(--blue); font-weight: 800; }
.section-heading.split > span { color: var(--muted); font-family: var(--font-data); font-size: .8rem; text-transform: none; letter-spacing: 0; }
.badge-row { display: flex; flex-wrap: wrap; gap: 9px; }
.badge { padding: 9px 12px; color: var(--brand); background: rgba(255, 216, 77, .08); border: 1px solid rgba(255, 216, 77, .32); border-radius: 8px; font-family: var(--font-data); font-size: .86rem; font-weight: 850; }

.history-list { list-style: none; margin: 0; padding: 0; }
.history-list li { padding: 12px 0; display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line-soft); }
.history-list li:first-child { border-top: 0; }
.history-list a { color: var(--blue); font-weight: 800; }
.history-list span, .history-list .empty { color: var(--muted); }
.history-list span { white-space: nowrap; }

.solve-grid,
.event-grid,
.discussion-grid,
.player-directory-public {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.solve-card,
.event-card,
.discussion-card,
.player-card-public {
  min-width: 0;
  padding: 20px;
  color: var(--ink);
  background: rgba(12, 16, 34, .34);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
}

.solve-card div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.solve-card div span, .solve-card small, .discussion-card small { color: var(--muted); }
.solve-card strong { color: var(--brand); font-family: var(--font-data); font-size: 1.65rem; }
.solve-card p { min-height: 52px; margin: 12px 0; font-size: .88rem; }

.event-card,
.discussion-card,
.player-card-public {
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.event-card:hover,
.discussion-card:hover,
.player-card-public:hover {
  border-color: rgba(255, 216, 77, .48);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(3, 5, 15, .3);
}

.event-card h2,
.discussion-card h2,
.player-card-public h2 {
  margin: 9px 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: .86rem;
  line-height: 1.6;
}

.event-card p, .discussion-card p { color: var(--muted); }
.event-card strong { color: var(--blue); }
.player-card-public { display: grid; grid-template-columns: 56px 1fr; gap: 14px; }

.player-initial {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: #161522;
  background: linear-gradient(135deg, var(--brand), var(--orange));
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 950;
}

.player-card-public h2 { margin: 0; }
.player-card-public p { margin: 2px 0; color: var(--muted); font-family: var(--font-data); }
.player-card-public dl { grid-column: 1 / -1; margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.player-card-public dl div { padding: 9px; background: rgba(7, 10, 24, .36); border-radius: 7px; }
.player-card-public dt { color: var(--muted); font-family: var(--font-display); font-size: .5rem; font-weight: 800; line-height: 1.6; text-transform: uppercase; }
.player-card-public dd { margin: 4px 0 0; color: var(--brand); font-family: var(--font-data); font-weight: 900; }

.method-note { background: linear-gradient(145deg, rgba(103, 216, 255, .095), rgba(32, 39, 64, .92)); border-color: rgba(103, 216, 255, .3); }
.method-note p { max-width: 900px; margin-bottom: 0; color: var(--text-secondary); }
.empty-panel { grid-column: 1 / -1; padding: 36px; color: var(--text-secondary); background: rgba(7, 10, 24, .25); border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.empty-panel strong { display: block; color: #fff; font-family: var(--font-display); font-size: .82rem; line-height: 1.6; }
.empty-panel p { margin-bottom: 0; color: var(--muted); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-family: var(--font-display); font-size: .53rem; line-height: 1.5; text-transform: uppercase; letter-spacing: .06em; }
td { color: var(--text-secondary); }
td a { color: var(--blue); font-weight: 800; }
tbody tr:hover { background: rgba(255, 216, 77, .035); }

.discussion { max-width: 900px; margin: 0 auto 18px; padding: clamp(28px, 5vw, 52px); background: linear-gradient(145deg, var(--card), var(--card-soft)); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.discussion h1 { margin: 12px 0 16px; color: #fff; font-family: var(--font-display); font-size: clamp(1.45rem, 4vw, 2.5rem); line-height: 1.45; letter-spacing: -.035em; }
.byline { color: var(--muted); }
.byline a { color: var(--blue); font-weight: 800; }
.post-body { margin-top: 28px; padding-top: 24px; color: var(--text-secondary); border-top: 1px solid var(--line-soft); font-size: 1.05rem; }
.reply { padding: 22px 0; border-top: 1px solid var(--line-soft); }
.reply:first-child { border-top: 0; }
.reply header { display: flex; justify-content: space-between; gap: 16px; }
.reply a { color: var(--blue); }
.reply time { color: var(--muted); font-family: var(--font-data); font-size: .85rem; }
.reply p { max-width: 850px; margin-bottom: 0; color: var(--text-secondary); }
.contribution-panel { scroll-margin-top: 84px; }

.community-contribution-form { max-width: 820px; display: grid; gap: 15px; }
.community-contribution-form label { display: grid; gap: 7px; color: var(--text-secondary); font-size: .82rem; font-weight: 800; }
.community-contribution-form input,
.community-contribution-form textarea,
.community-contribution-form select {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #151a30;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.community-contribution-form input:focus,
.community-contribution-form textarea:focus,
.community-contribution-form select:focus { outline: 3px solid rgba(103, 216, 255, .18); border-color: var(--blue); }
.community-contribution-form button { justify-self: start; padding: 12px 16px; color: #171521; background: var(--brand); border: 0; border-radius: 8px; font-family: var(--font-display); font-size: .58rem; line-height: 1.5; cursor: pointer; }
.community-contribution-form button:disabled { opacity: .55; cursor: wait; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint, .form-status { margin: 0; color: var(--muted); font-size: .82rem; }
.form-status.is-success { color: var(--green); }
.form-status.is-error { color: var(--coral); }
.form-status a { font-weight: 800; }

.forum-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
}

.forum-hero > div { position: relative; z-index: 1; }
.forum-hero h1 { margin-bottom: 12px; }
.forum-hero p { max-width: 760px; margin-bottom: 0; }
.forum-hero-actions { min-width: 260px; display: grid; justify-items: end; gap: 16px; }
.forum-hero-actions .button { white-space: nowrap; }

.forum-hero-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.forum-hero-stats span {
  padding: 7px 9px;
  color: var(--muted);
  background: rgba(8, 11, 27, .42);
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  font-family: var(--font-data);
  font-size: .74rem;
}

.forum-hero-stats strong { color: var(--brand); }

.forum-index {
  margin-top: 18px;
  overflow: hidden;
  background: rgba(20, 25, 46, .88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(3, 5, 15, .24);
}

.forum-index-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px 78px minmax(210px, .65fr);
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  color: #171522;
  background: linear-gradient(90deg, var(--brand), #ffbd51);
  font-family: var(--font-display);
  font-size: .52rem;
  line-height: 1.5;
  text-transform: uppercase;
}

.forum-index-head span { text-align: center; }
.forum-index-head span:last-child { text-align: left; }

.forum-board-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 78px 78px minmax(210px, .65fr);
  align-items: center;
  min-height: 92px;
  color: var(--ink);
  border-top: 1px solid var(--line-soft);
  text-decoration: none;
  transition: background .16s ease, box-shadow .16s ease;
}

.forum-board-row:first-of-type { border-top: 0; }
.forum-board-row:hover { background: rgba(103, 216, 255, .055); box-shadow: inset 4px 0 0 var(--blue); }

.forum-board-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 auto;
  color: var(--brand);
  background: rgba(255, 216, 77, .08);
  border: 1px solid rgba(255, 216, 77, .25);
  border-radius: 8px;
  font-size: 1.05rem;
}

.forum-board-copy { min-width: 0; padding: 16px 12px 16px 0; }
.forum-board-copy strong { display: block; color: #fff; font-family: var(--font-display); font-size: .7rem; line-height: 1.65; }
.forum-board-copy small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.45; }

.forum-board-count {
  min-height: 52px;
  display: grid;
  place-content: center;
  gap: 2px;
  border-left: 1px solid var(--line-soft);
  text-align: center;
}

.forum-board-count strong { color: var(--blue); font-family: var(--font-data); font-size: 1.05rem; }
.forum-board-count small { color: var(--muted); font-size: .66rem; text-transform: uppercase; }

.forum-board-latest {
  min-width: 0;
  padding: 12px 18px;
  display: grid;
  gap: 4px;
  border-left: 1px solid var(--line-soft);
}

.forum-board-latest span { overflow: hidden; color: var(--text-secondary); font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.forum-board-latest time { color: var(--muted); font-family: var(--font-data); font-size: .75rem; }

.forum-topic-sections { margin-top: 26px; display: grid; gap: 18px; }
.forum-topic-section { scroll-margin-top: 76px; overflow: hidden; background: rgba(20, 25, 46, .86); border: 1px solid var(--line); border-radius: var(--radius); }

.forum-topic-section > header {
  padding: 15px 18px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, rgba(48, 58, 96, .96), rgba(32, 39, 64, .88));
  border-bottom: 1px solid var(--line-soft);
}

.forum-topic-section > header .forum-board-icon { width: 34px; height: 34px; margin: 0; }
.forum-topic-section h2 { margin: 0; color: #fff; font-family: var(--font-display); font-size: .68rem; line-height: 1.6; }
.forum-topic-section header p { margin: 4px 0 0; color: var(--muted); font-size: .78rem; }

.forum-topic-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px 180px;
  padding: 8px 16px 8px 52px;
  color: var(--muted);
  background: rgba(7, 10, 24, .3);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: .46rem;
  line-height: 1.5;
  text-transform: uppercase;
}

.forum-topic-list-head span:nth-child(n + 2) { text-align: center; }
.forum-topic-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 80px 180px;
  align-items: center;
  min-height: 69px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
}

.forum-topic-row:last-child { border-bottom: 0; }
.forum-topic-row:hover { background: rgba(255, 255, 255, .025); }
.forum-topic-state { width: 11px; height: 11px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px rgba(178, 186, 213, .08); }
.forum-topic-state.active { background: var(--green); box-shadow: 0 0 0 4px rgba(111, 230, 164, .1), 0 0 9px rgba(111, 230, 164, .26); }
.forum-topic-state.waiting { background: var(--brand); box-shadow: 0 0 0 4px rgba(255, 216, 77, .1); }

.forum-topic-main { min-width: 0; padding: 10px 14px 10px 0; }
.forum-topic-main h3 { margin: 0; font-size: .92rem; line-height: 1.35; }
.forum-topic-main a { color: #fff; text-decoration: none; }
.forum-topic-main a:hover { color: var(--blue); text-decoration: underline; }
.forum-topic-main p { margin: 5px 0 0; color: var(--muted); font-family: var(--font-data); font-size: .74rem; }

.forum-topic-replies,
.forum-topic-latest { min-height: 44px; display: grid; place-content: center; border-left: 1px solid var(--line-soft); text-align: center; }
.forum-topic-replies strong { color: var(--blue); font-family: var(--font-data); }
.forum-topic-replies span { color: var(--muted); font-size: .64rem; text-transform: uppercase; }
.forum-topic-latest strong { overflow: hidden; color: var(--text-secondary); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.forum-topic-latest time { color: var(--muted); font-family: var(--font-data); font-size: .7rem; }
.forum-board-empty { padding: 26px 18px; color: var(--muted); text-align: center; }
.forum-new-topic { margin-top: 26px; scroll-margin-top: 76px; }

footer {
  flex: 0 0 auto;
  padding: 26px max(24px, calc((100vw - 1180px) / 2));
  color: var(--muted);
  background: var(--chrome);
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-data);
  font-size: .8rem;
  text-align: center;
}

footer p { margin: 0 0 10px; }
footer nav { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--text-secondary); }
footer a:hover { color: var(--brand); }

@media (max-width: 940px) {
  .community-header { align-items: flex-start; padding-top: 7px; }
  .community-header nav { max-width: 70vw; overflow-x: auto; }
  .community-header nav a { min-height: 49px; white-space: nowrap; }
  .metric-grid, .stage-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solve-grid, .event-grid, .discussion-grid, .player-directory-public { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content-grid { grid-template-columns: 1fr; }
  .forum-hero { grid-template-columns: 1fr; align-items: start; }
  .forum-hero-actions { min-width: 0; justify-items: start; }
  .forum-hero-stats { justify-content: flex-start; }
  .forum-index-head { grid-template-columns: minmax(0, 1fr) 66px 66px 160px; }
  .forum-board-row { grid-template-columns: 50px minmax(0, 1fr) 66px 66px 160px; }
}

@media (max-width: 640px) {
  .community-header { position: static; display: block; padding: 12px 14px 0; }
  .community-header nav { max-width: none; margin-top: 3px; overflow-x: auto; }
  .community-header nav a { min-height: 42px; padding: 0 10px; font-size: 7px; }
  .community-header nav a::after { right: 10px; left: 10px; }
  main { width: min(100% - 22px, 1180px); padding: 24px 0 52px; }
  .community-hero, .profile-hero { padding: 25px 22px; }
  .profile-hero { min-height: 0; grid-template-columns: 1fr; gap: 22px; }
  .profile-avatar-public { width: 96px; height: 96px; border-radius: 17px; }
  .profile-hero h1 { font-size: clamp(1.5rem, 8vw, 2.2rem); }
  .metric-grid, .stage-bar, .solve-grid, .event-grid, .discussion-grid, .player-directory-public { grid-template-columns: 1fr; }
  .section-heading.split { align-items: flex-start; flex-direction: column; }
  .history-list li { flex-direction: column; gap: 3px; }
  .form-grid { grid-template-columns: 1fr; }
  .discussion { padding: 24px 20px; }
  .forum-hero { gap: 22px; }
  .forum-index-head { display: none; }
  .forum-board-row { grid-template-columns: 44px minmax(0, 1fr) 52px 52px; min-height: 84px; }
  .forum-board-icon { width: 32px; height: 32px; font-size: .9rem; }
  .forum-board-copy { padding-right: 8px; }
  .forum-board-copy strong { font-size: .58rem; }
  .forum-board-copy small { font-size: .72rem; }
  .forum-board-count { min-height: 46px; }
  .forum-board-count strong { font-size: .9rem; }
  .forum-board-count small { font-size: .52rem; }
  .forum-board-latest { display: none; }
  .forum-topic-list-head { grid-template-columns: minmax(0, 1fr) 58px; padding-left: 46px; }
  .forum-topic-list-head span:last-child { display: none; }
  .forum-topic-row { grid-template-columns: 28px minmax(0, 1fr) 58px; padding: 0 10px; }
  .forum-topic-latest { display: none; }
  .forum-topic-main p { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
