@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #191a27;
  --muted: #5d6070;
  --line: #e4e4eb;
  --paper: #fff;
  --bg: #f3f3f7;
  --accent: #6c3ab0;
  --dark: #201c32;
  --heading: "Space Grotesk", Arial, sans-serif;
  --body: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 1.125rem/1.55 var(--body); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner, .hero-inner, .breadcrumbs, .shell, footer div { width: min(1490px, 100% - 80px); margin: auto; }
.top-inner { min-height: 76px; display: flex; align-items: center; gap: 42px; }
.brand { display: inline-flex; align-items: center; gap: 13px; font: 700 23px/1 var(--heading); letter-spacing: -.045em; }
.brand-logo { width: 50px; height: 44px; object-fit: contain; }
.brand-wordmark { display: block; width: clamp(5.1rem,8.2vw,7.1rem); height: auto; }
.brand span { padding: 4px 0 4px 13px; border-left: 1px solid #d9d7e1; }
.top-nav { display: flex; align-items: center; align-self: stretch; gap: 28px; }
.top-nav a { display: grid; align-items: center; position: relative; font-size: 1rem; font-weight: 700; color: var(--muted); }
.top-nav a[aria-current] { color: #3d2463; }
.top-nav a[aria-current]::after { content: ""; position: absolute; bottom: 0; height: 2px; background: var(--accent); width: 100%; }
.top-actions, #account { display: flex; align-items: center; gap: 9px; }
.top-actions { margin-left: auto; }
.primary, .secondary, .icon-button { border: 1px solid var(--dark); border-radius: 7px; font-weight: 700; font-size: 1rem; padding: 8px 15px; white-space: nowrap; }
.primary { background: var(--dark); color: white; }
.primary:hover { background: #45315b; }
.secondary { background: white; color: var(--dark); border-color: #c7c4d4; }
.secondary:hover, .icon-button:hover { background: #efedf7; }
.icon-button { width: 37px; height: 37px; padding: 0; display: grid; place-items: center; background: transparent; border-color: transparent; }
.search-icon { width: 15px; height: 15px; border: 1.7px solid currentColor; border-radius: 50%; position: relative; display: inline-block; flex: none; margin-right: 4px; }
.search-icon::after { content: ""; width: 6px; height: 1.7px; background: currentColor; position: absolute; right: -5px; bottom: -2px; transform: rotate(45deg); }
.hero { color: #fff; display: grid; grid-template-areas: "banner"; align-items: center; isolation: isolate; background: linear-gradient(118deg,#281c47 2%,#57316b 49%,#ae638f 100%); }
.hero-artwork { grid-area: banner; display: block; justify-self: end; width: 72%; height: auto; mask-image: linear-gradient(90deg,transparent,#000 30%); }
.hero-inner { grid-area: banner; position: relative; padding: clamp(19px,3vw,55px) 0; }
.hero-label { display: flex; align-items: center; gap: 10px; font: 700 .875rem var(--body); letter-spacing: .17em; color: #f8dcef; }
.hero-label span { width: 18px; height: 2px; background: #f094cc; }
.hero h1 { margin: .75rem 0 .9rem; }
.hero-lettering { display: block; width: min(100%,clamp(13.5rem,36vw,39rem)); height: auto; filter: drop-shadow(0 2px 7px #23143265); }
.hero p { color: #fff4fa; max-width: min(44%,490px); font-size: clamp(1rem,1.4vw,1.375rem); text-shadow: 0 1px 4px #23143280; }
.crumb-band { border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumbs { display: flex; align-items: center; gap: 11px; min-height: 49px; font-size: .9375rem; color: #55576a; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 700; }
.breadcrumbs a:hover, .thread-title:hover, .board-name:hover, .latest-title:hover, .person:hover { text-decoration: underline; }
.crumb-home { font-size: 19px; line-height: 1; }
.shell { display: grid; grid-template-columns: 207px minmax(0,1fr) 278px; gap: 23px; align-items: start; min-height: 55vh; padding: 25px 0 49px; }
#main { min-width: 0; }
.sidebar { padding: 3px 0; }
.mobile-menu { display: none; }
.nav-link { display: flex; width: 100%; margin: 2px 0; align-items: center; gap: 10px; text-align: left; background: transparent; border: 0; border-radius: 6px; color: var(--ink); padding: 8px 10px; min-height: 42px; font-size: .975rem; font-weight: 600; }
.nav-link:hover { background: #e9e6f0; }
.nav-link.selected { background: var(--dark); color: #fff; }
.nav-icon { width: 19px; flex: none; text-align: center; font-size: 18px; line-height: 1; }
.nav-label { border-top: 1px solid #dcdae6; color: var(--muted); margin: 15px 4px 4px; padding: 13px 6px 3px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.game-icon { width: 47px; height: 43px; display: inline-grid; place-items: center; flex: none; border-radius: 8px; font: 700 19px/1 var(--heading); letter-spacing: -.08em; color: #fff; background: linear-gradient(140deg,var(--game-a,#5b5472),var(--game-b,#2f2a41)); border: 1px solid #1f163525; box-shadow: inset 0 1px #ffffff30; }
.game-icon.tiny { width: 25px; height: 24px; border-radius: 5px; font-size: 12px; }
.game-icon.has-logo { width: 65px; height: 47px; border: 0; box-shadow: none; background: transparent; }
.game-icon.has-logo img { width: 100%; height: 100%; max-height: 47px; object-fit: contain; }
.game-icon.has-logo.tiny { width: 30px; height: 25px; }
.gta6 { --game-a: #70259b; --game-b: #ba4b76; }
.classic { --game-a: #44634b; --game-b: #23392a; }
.reddead { --game-a: #bd5144; --game-b: #742a25; }
.nba { --game-a: #4c54a7; --game-b: #292b58; }
.strategy { --game-a: #426c9b; --game-b: #263f66; }
.other { --game-a: #927043; --game-b: #594321; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
.page-heading h1, .page-heading h2 { font: 700 clamp(1.9rem,calc(1.4rem + 1.25vw),2.7rem)/1.12 var(--heading); letter-spacing: -.04em; overflow-wrap: anywhere; }
.page-heading p { margin-top: 4px; color: var(--muted); font-size: 1rem; }
.board-table, .rail-card, .thread, .post-body, .member-card, .reply-box, .empty { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.board-table { overflow: hidden; }
.archive-stats { margin: 0 0 12px; border: 1px solid var(--line); background: #fff; border-radius: 9px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.archive-stats div { padding: 8px 11px; }
.archive-stats div + div { border-left: 1px solid var(--line); }
.archive-stats dt { color: var(--muted); font-size: .875rem; }
.archive-stats dd { margin: 0; font: 700 clamp(15px,2vw,23px)/1.2 var(--heading); font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.board-header, .board-row { display: grid; grid-template-columns: minmax(0,1fr) 60px 58px minmax(138px,.7fr); gap: 9px; align-items: center; padding: 10px 14px; }
.board-header { background: #faf9fc; font-size: .875rem; font-weight: 700; color: #5c586e; }
.board-row { min-height: 85px; border-top: 1px solid var(--line); }
.board-row:hover { background: #fcfaff; }
.board-lead { min-width: 0; display: flex; align-items: center; gap: 11px; }
.board-name { font: 700 1.2rem/1.16 var(--heading); letter-spacing: -.025em; display: inline-block; }
.board-desc { margin-top: 3px; font-size: .875rem; color: var(--muted); line-height: 1.35; }
.board-count { font-size: .975rem; font-variant-numeric: tabular-nums; }
.last-post { min-width: 0; display: flex; align-items: center; gap: 8px; }
.last-post div { min-width: 0; }
.latest-title { display: -webkit-box; font-size: .975rem; font-weight: 700; line-height: 1.24; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; max-width: 100%; }
.meta { color: var(--muted); font-size: .925rem; }
.last-post .meta { font-size: .825rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.avatar { display: inline-block; width: var(--avatar-size,58px); height: var(--avatar-size,58px); object-fit: cover; border-radius: 50%; flex: none; vertical-align: middle; background: #dfd1c3; border: 1px solid #35232916; }
.avatar.compact { --avatar-size: 46px; }
.account-profile .avatar { --avatar-size: 42px; }
.rail { display: grid; gap: 15px; padding-top: 3px; }
.rail-card { padding: 15px; }
.rail-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.rail-title h2 { font: 700 1.25rem var(--heading); letter-spacing: -.035em; }
.rail-icon { color: #61358c; font-size: 20px; line-height: 1; }
.rail-row { display: flex; align-items: center; justify-content: space-between; gap: 5px; width: 100%; text-align: left; background: transparent; border: 0; border-top: 1px solid var(--line); padding: 9px 0; font-size: 14px; color: var(--ink); }
.rail-row:hover { color: var(--accent); }
.rail-row span { font-size: 19px; line-height: 1; color: #70657b; }
.feature-board { min-height: 171px; padding: 15px; display: flex; flex-direction: column; align-items: flex-start; position: relative; overflow: hidden; isolation: isolate; color: white; border-radius: 10px; background: linear-gradient(0deg,#230f35e8,#54225336),#4c295d url("assets/vice-waterfront.webp") 83% 65%/auto 140%; }
.feature-board:hover { box-shadow: inset 0 0 0 2px #bb80dbc9; }
.feature-mark { position: absolute; right: 15px; top: 4px; z-index: -1; font: 700 110px/.94 var(--heading); letter-spacing: -.13em; color: #f37fbb52; -webkit-text-stroke: 1px #ffd1ec9c; }
.feature-label { font: 700 11px var(--body); letter-spacing: .12em; color: #ffe1f0; }
.feature-board strong { margin-top: auto; font: 700 23px/1.02 var(--heading); letter-spacing: -.055em; }
.feature-link { margin-top: 6px; color: #f1e3f9; font-size: 13px; }
.staff-preview { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 1rem; }
.staff-preview .role-badge { display: table; margin-top: 2px; }
.team-link { margin-top: 10px; padding-bottom: 0; }
.role-badge { display: inline-block; border-radius: 4px; padding: 1px 6px; font: 700 .8125rem/1.5 var(--body); background: #ede6f7; color: #4f297a; vertical-align: middle; }
.role-badge.admin { background: #f7e5ed; color: #7b2c56; }
.role-badge.support { background: #e0f1ed; color: #235d51; }
.activity { margin-top: 25px; }
.feed-tools { display: flex; gap: 11px; justify-content: space-between; align-items: center; margin: 0 0 11px; }
.tabs { display: flex; gap: 4px; }
.tab { border: 1px solid transparent; background: transparent; border-radius: 6px; color: var(--muted); padding: 6px 10px; font-size: 1rem; font-weight: 700; }
.tab[aria-pressed="true"] { background: #eae2f6; border-color: #ded0ef; color: #512481; }
.tab:hover { background: #eee9f4; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; max-width: 220px; color: #605c71; }
.search input { background: none; border: 0; width: 100%; min-width: 0; font-size: 1rem; color: var(--ink); }
.thread { --avatar-size: 58px; padding: 13px; margin-bottom: 8px; display: grid; grid-template-columns: var(--avatar-size) minmax(0,1fr) auto; gap: 11px; align-items: center; }
.thread:hover { border-color: #ccbbdf; }
.thread-title { display: inline-block; font: 700 1.25rem/1.24 var(--heading); letter-spacing: -.025em; margin-bottom: 3px; overflow-wrap: anywhere; }
.thread-preview { color: #505264; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 5px; }
.thread-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; }
.thread-tail { display: grid; text-align: right; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.feed-footer { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.feed-progress { font-size: .9375rem; color: var(--muted); }
.person { color: #582f83; font-weight: 700; overflow-wrap: anywhere; }
.pill { display: inline-block; background: #eee8f6; color: #522f74; border-radius: 4px; padding: 2px 6px; font-size: .8125rem; font-weight: 700; }
.post-body, .reply-box { margin-bottom: 10px; }
.reply-box { padding: 17px; }
.post-body { display: grid; grid-template-columns: 158px minmax(0,1fr); overflow: hidden; }
.original-post { border-top: 3px solid #8752bb; }
.post-author { background: #fbf9fd; border-right: 1px solid var(--line); padding: 15px 12px; font-size: 1.0625rem; }
.post-author .avatar { --avatar-size: 84px; margin-bottom: 6px; }
.post-author .role-badge { display: table; margin: 3px 0; }
.post-content { padding: 0 16px 14px; min-width: 0; }
.post-timestamp { display: flex; align-items: center; justify-content: space-between; gap: 7px; border-bottom: 1px solid var(--line); margin-bottom: 12px; padding: 8px 0; color: var(--muted); font-size: .875rem; }
.post-content p { white-space: pre-wrap; overflow-wrap: anywhere; }
.post-text p + p { margin-top: .75em; }
.post-content blockquote { margin: 0 0 12px; padding: 8px 10px; background: #f5f0fb; border-left: 3px solid #b892dc; color: #50475e; font-size: 1rem; }
.post-content blockquote div { margin-bottom: 3px; }
.reaction { background: #f0ebf7; border: 1px solid #e0d5ed; border-radius: 6px; color: #4d2d70; padding: 4px 8px; font-size: 1rem; margin-top: 10px; }
.reaction[aria-pressed="true"] { background: #e5d1fb; border-color: #956bc0; }
.reply-head { font: 700 1.5rem var(--heading); margin: 21px 0 8px; }
.reply-box label, dialog label { display: grid; gap: 5px; font-size: 14px; font-weight: 700; margin-bottom: 11px; }
textarea, input:not([type=search]), select { width: 100%; padding: 8px 10px; border: 1px solid #c9c2d6; border-radius: 6px; background: #fff; color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
dialog { width: min(510px,calc(100% - 26px)); border: 1px solid var(--line); border-radius: 11px; padding: 20px; color: var(--ink); box-shadow: 0 20px 70px #24173566; }
dialog::backdrop { background: #231a3694; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; }
.dialog-head h2 { font: 700 26px var(--heading); }
dialog p { margin: 8px 0 13px; }
dialog .form-error { color: #932c54; font-size: 14px; margin: 6px 0; }
button:disabled { cursor: wait; opacity: .68; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(185px,100%),1fr)); gap: 9px; }
.member-card, .empty { padding: 14px; }
.member-card h2 { font: 700 1.32rem var(--heading); margin: 8px 0 3px; overflow-wrap: anywhere; }
.member-card p { margin-top: 7px; color: var(--muted); font-size: 1rem; }
.member-card .staff-assignment { color: var(--ink); font-weight: 600; }
.member-search { margin-bottom: 11px; }
.member-card .avatar { --avatar-size: 88px; }
footer { border-top: 1px solid var(--line); background: #fff; }
footer div { display: flex; flex-wrap: wrap; gap: 9px 17px; padding: 14px 0; font-size: 13px; color: var(--muted); }
footer strong { color: var(--ink); }
#toast { position: fixed; z-index: 3; right: 14px; bottom: 14px; background: var(--dark); color: white; padding: 9px 13px; border-radius: 6px; font-size: 14px; }
#toast:empty { display: none; }
@media(max-width:1220px) {
  .top-inner, .hero-inner, .breadcrumbs, .shell, footer div { width: calc(100% - 48px); }
  .shell { grid-template-columns: 174px minmax(0,1fr) 231px; gap: 15px; }
  .board-header, .board-row { grid-template-columns: minmax(0,1fr) 52px 48px minmax(135px,.8fr); gap: 6px; padding-inline: 9px; }
  .board-lead { gap: 7px; }
  .board-row .game-icon { width: 39px; height: 38px; }
  .board-row .game-icon.has-logo { width: 49px; }
}
@media(max-width:1010px) {
  .shell { grid-template-columns: 164px minmax(0,1fr); }
  .rail { grid-column: 2; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .top-inner { gap: 22px; }
  .top-nav { gap: 15px; }
}
@media(max-width:680px) {
  .top-inner, .hero-inner, .breadcrumbs, .shell, footer div { width: calc(100% - 24px); }
  .top-inner { min-height: 61px; gap: 5px; }
  .top-nav { display: none; }
  .top-actions, #account { gap: 5px; }
  .brand { font-size: 19px; gap: 8px; }
  .brand-logo { width: 39px; height: 34px; }
  .brand span { padding-left: 8px; }
  .top .primary, .top .secondary { padding: 6px 8px; }
  .hero { grid-template-areas: "copy" "picture"; background: linear-gradient(150deg,#281c47 0%,#502861 60%,#a65f86); }
  .hero-inner { grid-area: copy; padding: 22px 0 6px; z-index: 1; }
  .hero-artwork { grid-area: picture; width: 100%; margin-top: -5px; mask-image: linear-gradient(180deg,transparent,#000 26%); }
  .hero-lettering { width: min(100%,clamp(14rem,65vw,24rem)); }
  .hero p { max-width: min(100%,380px); }
  .shell { display: block; padding-top: 12px; }
  .sidebar { padding: 0; margin-bottom: 13px; }
  .mobile-menu { display: inline-block; }
  #navigation:not(.open) { display: none; }
  .rail { margin-top: 17px; }
  .board-header, .board-row { grid-template-columns: minmax(0,1fr) minmax(90px,.65fr); }
  .board-count, .board-count-label { display: none; }
  .last-post { gap: 5px; }
  .search { max-width: 172px; }
  .thread { --avatar-size: 50px; }
  .post-body { display: block; }
  .post-author { display: flex; align-items: center; gap: 8px; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 11px; }
  .post-author .avatar { --avatar-size: 64px; margin: 0; }
  .post-author .role-badge { display: inline-block; margin: 0 0 0 5px; }
  .post-content { padding-inline: 11px; }
}
@media(max-width:480px) {
  .board-row, .board-header { grid-template-columns: minmax(0,1fr); }
  .board-header span:last-child { display: none; }
  .last-post { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; gap: 9px; }
  .thread { grid-template-columns: var(--avatar-size) minmax(0,1fr); align-items: start; }
  .thread-tail { display: flex; gap: 9px; grid-column: 2; }
}
@media(max-width:400px) {
  .brand-wordmark { width: 4.5rem; }
  .top .icon-button { width: 32px; }
  .top .primary, .top .secondary { font-size: .875rem; }
  .rail { grid-template-columns: 1fr; }
}
@media(prefers-reduced-motion:no-preference) { a, button, .board-row { transition: background-color .13s, color .13s, border-color .13s; } }
