/* ==========================================================================
   Madlad Games — main stylesheet
   Palette: void black, bolt white, arc blue (the lightning), fuse amber (rank only).
   Type: condensed grotesk for display (system fonts, zero downloads), system UI for text.
   ========================================================================== */

:root {
  --void: #000;
  --bolt: #eef3ff;
  --text: #c9d2e3;
  --dim: #8792a8;
  --rule: #1a2131;
  --rule-strong: #2a3449;
  --panel: rgba(7, 10, 18, .86);
  --panel-solid: #070a12;
  --arc: #9ec1ff;
  --arc-hot: #d6e5ff;
  --arc-deep: #3b5c99;
  --fuse: #ffb84d;
  --danger: #ff7a7a;
  --ok: #7be0b0;

  --font-display: "Bahnschrift SemiCondensed", "Bahnschrift", "DIN Condensed", "DIN Alternate", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", system-ui, sans-serif;
  --font-text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --step-4: clamp(2.4rem, 5vw + 1rem, 4rem);
  --step-5: clamp(3rem, 8vw + 1rem, 6.5rem);

  --radius: 4px;
  --radius-lg: 10px;
  --wrap: 74rem;
  --gap: clamp(1rem, 2.5vw, 2rem);
  --header-h: 4rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; }
img, svg, video, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

/* ---------- Base ---------- */
html { background: var(--void); color-scheme: dark; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Transparent so the fixed sky canvas (z-index -1) shows through; html stays black. */
  background: transparent;
  color: var(--text);
  font: 400 var(--step-0)/1.6 var(--font-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--arc); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--arc-hot); }
:focus-visible { outline: 2px solid var(--arc); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--arc); color: #000; }

h1, h2, h3, h4, .display, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-stretch: condensed;
  font-weight: 700;
  color: var(--bolt);
  line-height: 1.1;
  letter-spacing: -.005em;
}
h1, .h1 { font-size: var(--step-4); }
h2, .h2 { font-size: var(--step-3); }
h3, .h3 { font-size: var(--step-2); }
h4, .h4 { font-size: var(--step-1); }
.display { font-size: var(--step-5); line-height: .92; letter-spacing: -.02em; }
.display--md { font-size: var(--step-4); line-height: 1; }
.display--sm { font-size: clamp(2rem, 3vw + 1rem, 2.8rem); line-height: 1.02; }

.lede { font-size: var(--step-1); color: var(--text); max-width: 40em; line-height: 1.5; }
.muted { color: var(--dim); }
.small { font-size: var(--step--1); }
.empty { color: var(--dim); padding: 2rem 0; }
code, kbd, pre { font-family: var(--font-mono); font-size: .9em; }
kbd { background: var(--rule); border: 1px solid var(--rule-strong); border-bottom-width: 2px; border-radius: 3px; padding: .05em .4em; color: var(--bolt); white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--arc); color: #000; padding: .6rem 1rem; border-radius: var(--radius); font-weight: 700;
}
.skip-link:focus { top: 1rem; }
.no-js .js-only { display: none !important; }
.js .no-js-only { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Sky ---------- */
.sky {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  /* Static star field for no-JS and before the canvas starts */
  background:
    radial-gradient(1px 1px at 12% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 18%, #cfe0ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 6%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 61% 14%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 73% 4%, #dfe9ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 20%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 26%, #cfe0ff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 27%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 33%, #fff 50%, transparent 51%),
    radial-gradient(ellipse 120% 45% at 50% 0%, rgba(40, 64, 120, .22), transparent 70%),
    var(--void);
}
.sky canvas { width: 100%; height: 100%; }
.sky.is-live { background: radial-gradient(ellipse 120% 45% at 50% 0%, rgba(40, 64, 120, .18), transparent 70%), var(--void); }

/* ---------- Banners ---------- */
.noscript-banner {
  position: relative; z-index: 60;
  background: #2b2108; color: #ffe2a8; border-bottom: 1px solid #5c4612;
  padding: .7rem 1rem; text-align: center; font-size: var(--step--1);
}
.noscript-banner strong { color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.wrap--narrow { --wrap: 50rem; }
.wrap--form { --wrap: 30rem; padding-block: 2rem 4rem; }
.main { flex: 1; padding-block: 1.5rem 5rem; outline: none; }
.main--wide { padding-top: 0; }
.page-head { padding-block: clamp(2rem, 6vw, 4.5rem) 2rem; }
.page-head .lede { margin-top: 1rem; }
.page-head--row { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-end; justify-content: space-between; }
.page-head__aside { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.stack > * + * { margin-top: .75rem; }
.grid-2, .grid-3 { display: grid; gap: 1rem; }
@media (min-width: 40em) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.button-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.inline-form { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .78);
  border-bottom: 1px solid var(--rule);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--bolt); text-decoration: none; }
.brand:hover { color: #fff; }
.brand__bolt { fill: var(--arc); flex: none; }
.brand__word {
  font-family: var(--font-display); font-stretch: condensed; font-weight: 800;
  font-size: 1.45rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
}
.brand__word span { color: var(--dim); font-weight: 600; letter-spacing: .04em; }
.nav-desktop { display: none; margin-left: .5rem; }
.nav-desktop ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-desktop a {
  display: block; padding: .45rem .7rem; color: var(--text); text-decoration: none;
  border-radius: var(--radius); font-weight: 500;
}
.nav-desktop a:hover { color: var(--bolt); background: rgba(158, 193, 255, .08); }
.nav-desktop a[aria-current="page"] { color: var(--bolt); box-shadow: inset 0 -2px 0 var(--arc); border-radius: 0; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.icon-link { position: relative; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; color: var(--text); border-radius: 50%; }
.icon-link:hover { color: var(--bolt); background: rgba(158, 193, 255, .08); }
.badge {
  display: inline-grid; place-items: center; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem;
  background: var(--arc); color: #000; border-radius: 999px; font-size: .7rem; font-weight: 800; line-height: 1;
}
.icon-link .badge { position: absolute; top: .1rem; right: 0; }
@media (min-width: 62em) {
  .nav-desktop { display: block; }
  .menu--nav { display: none; }
}
@media (max-width: 30em) {
  .brand__word span { display: none; }
  .header-actions .btn--ghost { display: none; }
}

/* Disclosure menus (work without JS via <details>) */
.menu { position: relative; }
.menu > summary {
  list-style: none; cursor: pointer; display: grid; place-items: center;
  min-width: 2.5rem; height: 2.5rem; border-radius: 50%; color: var(--text);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { color: var(--bolt); }
.menu[open] > summary { background: rgba(158, 193, 255, .12); }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + .5rem); min-width: 13rem;
  background: var(--panel-solid); border: 1px solid var(--rule-strong); border-radius: var(--radius-lg);
  padding: .4rem; display: flex; flex-direction: column; z-index: 60;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .7);
}
.menu__panel a, .menu__button {
  display: block; width: 100%; text-align: left; padding: .55rem .75rem; border-radius: var(--radius);
  color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.menu__panel a:hover, .menu__button:hover { background: rgba(158, 193, 255, .1); color: var(--bolt); }
.menu__panel a[aria-current="page"] { color: var(--arc); }
.menu__who { padding: .5rem .75rem .6rem; border-bottom: 1px solid var(--rule); margin-bottom: .3rem; color: var(--bolt); font-weight: 600; }
.menu--nav .menu__panel { min-width: 12rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); background: rgba(0, 0, 0, .7); padding-top: 3rem; font-size: var(--step--1); }
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 52em) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.4fr; } }
.brand--footer { margin-bottom: .5rem; }
.brand--footer .brand__word { font-size: 1.2rem; }
.footer-links { columns: 2; column-gap: 2rem; }
.footer-links li { padding: .2rem 0; break-inside: avoid; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--arc); text-decoration: underline; }
.footer-signup label { display: block; color: var(--bolt); font-weight: 600; margin-bottom: .5rem; }
.site-footer__base {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--rule); margin-top: 2.5rem; padding-block: 1.25rem; color: var(--dim);
}

/* ---------- Forms ---------- */
label { display: block; color: var(--bolt); font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"],
input[type="number"], input[type="datetime-local"], input:not([type]), textarea, select {
  width: 100%; padding: .7rem .85rem; min-height: 2.75rem;
  background: rgba(0, 0, 0, .65); color: var(--bolt);
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
  transition: border-color .15s;
}
textarea { resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #5f6a80; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--arc); box-shadow: 0 0 0 3px rgba(158, 193, 255, .2); }
input[type="file"] { width: 100%; color: var(--dim); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--arc); width: 1.15rem; height: 1.15rem; flex: none; margin: .2rem 0 0; }
select { appearance: none; -webkit-appearance: none; padding-right: 2.2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 55%, calc(100% - .75rem) 55%; background-size: .35rem .35rem; background-repeat: no-repeat; }
.field { margin-bottom: .25rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; }
.check label { font-weight: 400; color: var(--text); margin: 0; }
.hint { color: var(--dim); font-size: var(--step--1); margin-top: .3rem; }
.error { color: var(--danger); font-size: var(--step--1); margin-top: .3rem; }
.field--error input, .field--error textarea { border-color: var(--danger); }
.input-row { display: flex; gap: .5rem; }
.input-row input { flex: 1; min-width: 0; }
fieldset { border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem; margin: 0; }
legend { color: var(--bolt); font-weight: 600; padding: 0 .4rem; }
.search-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.search-bar input { flex: 1 1 14rem; }
.search-bar select { width: auto; }
.char-count { display: block; text-align: right; color: var(--dim); font-size: .8rem; margin-top: .25rem; }
.char-count.is-over { color: var(--danger); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  min-height: 2.75rem; padding: .6rem 1.15rem;
  background: var(--arc); color: #000; border: 1px solid var(--arc); border-radius: var(--radius);
  font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.1; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:hover { background: var(--arc-hot); border-color: var(--arc-hot); color: #000; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--bolt); border-color: var(--rule-strong); }
.btn--ghost:hover { background: rgba(158, 193, 255, .1); border-color: var(--arc); color: var(--bolt); }
.btn--danger { background: transparent; color: var(--danger); border-color: rgba(255, 122, 122, .5); }
.btn--danger:hover { background: var(--danger); color: #000; border-color: var(--danger); }
.btn--sm { min-height: 2.25rem; padding: .4rem .8rem; font-size: .9rem; }
.btn--lg { min-height: 3.25rem; padding: .8rem 1.6rem; font-size: 1.1rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-button { background: none; border: 0; padding: 0; color: var(--arc); cursor: pointer; text-decoration: underline; text-underline-offset: .18em; font-size: inherit; }
.link-button:hover { color: var(--arc-hot); }
.link-button--danger { color: var(--danger); }
.round-btn {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: rgba(0, 0, 0, .6); border: 1px solid var(--rule-strong); color: var(--bolt); cursor: pointer;
}
.round-btn:hover { border-color: var(--arc); color: var(--arc); }

/* ---------- Panels, pills, flashes ---------- */
.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(1rem, 3vw, 1.5rem); }
.panel + .panel { margin-top: 1rem; }
.panel > h2, .panel > h3 { margin-bottom: .75rem; }
.panel > .btn, .panel > .button-row { margin-top: 1rem; }
.panel > p + p { margin-top: .6rem; }
.panel--danger { border-color: rgba(255, 122, 122, .35); }
.auth-panel { padding: clamp(1.5rem, 5vw, 2.25rem); }
.auth-panel h1 { margin-bottom: .4rem; }
.auth-panel .stack { margin-top: 1.25rem; }
.auth-panel > p + p { margin-top: .8rem; }
.pill {
  display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
  border: 1px solid var(--rule-strong); color: var(--text); white-space: nowrap; vertical-align: middle;
}
.pill--patch { border-color: rgba(123, 224, 176, .45); color: var(--ok); }
.pill--announcement { border-color: rgba(255, 184, 77, .5); color: var(--fuse); }
.pill--update { border-color: rgba(158, 193, 255, .5); color: var(--arc); }
.pill--friend { border-color: rgba(123, 224, 176, .45); color: var(--ok); }
.role { display: inline-block; font-size: .7rem; font-weight: 700; padding: .08rem .45rem; border-radius: 3px; vertical-align: middle; letter-spacing: .02em; font-family: var(--font-text); }
.role--mod { background: rgba(123, 224, 176, .14); color: var(--ok); }
.role--admin { background: rgba(158, 193, 255, .16); color: var(--arc); }
.role--madlad { background: var(--fuse); color: #000; }
.flag { display: inline-block; font-family: var(--font-text); font-size: .7rem; font-weight: 700; padding: .1rem .45rem; border-radius: 3px; vertical-align: .25em; margin-right: .3rem; }
.flag--pin { background: var(--fuse); color: #000; }
.flag--lock { background: var(--rule-strong); color: var(--text); }
.flashes { margin-top: 1rem; }
.flash { padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid var(--rule-strong); background: var(--panel-solid); margin-bottom: .6rem; }
.flash--success { border-color: rgba(123, 224, 176, .5); color: #d6f7e8; }
.flash--error { border-color: rgba(255, 122, 122, .55); color: #ffd9d9; }
.flash--info { border-color: rgba(158, 193, 255, .45); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.tags a {
  display: inline-block; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--rule-strong);
  color: var(--text); text-decoration: none; font-size: .9rem; background: rgba(0, 0, 0, .5);
}
.tags a:hover { border-color: var(--arc); color: var(--bolt); }
.tags a[aria-current="page"] { background: var(--arc); color: #000; border-color: var(--arc); font-weight: 600; }
.tag-filter { margin-bottom: 1.75rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: var(--step--1); color: var(--dim); margin-bottom: 1rem; }
.crumbs a { color: var(--dim); }
.crumbs a:hover { color: var(--arc); }
.plain-list li { padding: .45rem 0; border-bottom: 1px solid var(--rule); }
.plain-list li:last-child { border-bottom: 0; }

/* ---------- Avatars and user chips ---------- */
.avatar { border-radius: 50%; object-fit: cover; background: var(--rule); flex: none; }
.avatar--sm { width: 32px; height: 32px; }
.avatar--md { width: 44px; height: 44px; }
.avatar--lg { width: 72px; height: 72px; }
.avatar--xl { width: 128px; height: 128px; border: 3px solid var(--void); }
.user-chip { display: inline-flex; align-items: center; gap: .45rem; color: var(--bolt); text-decoration: none; font-weight: 600; }
.user-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.user-chip:hover span { text-decoration: underline; }
.user-chip--gone { color: var(--dim); font-weight: 400; }
.online { display: inline-flex; align-items: center; gap: .35rem; color: var(--ok); margin-left: .4rem; }
.online__dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.chip-list { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }

/* ---------- Home: showcase carousel ---------- */
.showcase { position: relative; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.showcase__track {
  display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
  padding: clamp(1rem, 3vw, 2rem) max(var(--gap), calc((100vw - var(--wrap)) / 2)) 1rem;
  scroll-padding-inline: max(var(--gap), calc((100vw - var(--wrap)) / 2));
  scrollbar-width: none; outline: none;
}
.showcase__track::-webkit-scrollbar { display: none; }
.showcase__track:focus-visible { outline: 2px solid var(--arc); outline-offset: -4px; }
.slide {
  position: relative; flex: 0 0 min(88vw, var(--wrap)); aspect-ratio: 16 / 9; max-height: 72vh;
  scroll-snap-align: start; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--rule-strong); background: var(--panel-solid);
}
@media (max-width: 40em) { .slide { aspect-ratio: 4 / 5; max-height: 70vh; } }
.slide__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .55) 62%, rgba(0, 0, 0, .92)); }
.slide__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(1.25rem, 4vw, 3rem); max-width: 44rem; }
.slide__status { color: var(--arc); font-weight: 600; font-size: var(--step--1); margin-bottom: .4rem; }
.slide__title { font-size: var(--step-5); line-height: .9; letter-spacing: -.025em; }
.slide__title a { color: var(--bolt); text-decoration: none; }
.slide__title a::before { content: ""; position: absolute; inset: 0; z-index: 0; }
.slide__tagline { font-size: var(--step-1); margin: .8rem 0 1.25rem; color: var(--text); max-width: 34em; }
.slide__body .btn { position: relative; z-index: 1; }
.showcase__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: .5rem; }
.showcase__dots { display: flex; gap: .5rem; }
.showcase__dots button {
  width: 2rem; height: 1.5rem; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
}
.showcase__dots button::before { content: ""; width: 100%; height: 3px; border-radius: 2px; background: var(--rule-strong); transition: background-color .2s; }
.showcase__dots button[aria-current="true"]::before { background: var(--arc); }

/* ---------- Home sections ---------- */
.home-section { margin-bottom: clamp(3rem, 7vw, 5rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; border-bottom: 1px solid var(--rule); padding-bottom: .6rem; margin-bottom: .8rem; }
.section-head__link { font-weight: 600; }
.section-intro { color: var(--dim); margin-bottom: 1.5rem; }
.home-split { display: grid; gap: var(--gap); }
@media (min-width: 56em) { .home-split { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.home-community { background: var(--panel); border: 1px solid var(--rule); border-left: 3px solid var(--arc); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.home-community p { margin: .8rem 0 1.25rem; }
.home-community .btn { margin: 0 .4rem .5rem 0; }

/* ---------- Game cards and arcade cards ---------- */
.game-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.game-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; background: var(--panel); transition: border-color .2s; }
.game-card__link:hover { border-color: var(--arc-deep); color: inherit; }
.game-card__media { display: block; aspect-ratio: 16 / 9; background: var(--rule); overflow: hidden; }
.game-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.game-card__link:hover img { transform: scale(1.03); }
.game-card__body { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.25rem 1.3rem; }
.game-card__title { font-family: var(--font-display); font-stretch: condensed; font-weight: 700; font-size: var(--step-3); color: var(--bolt); line-height: 1; }
.game-card__meta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .4rem; }

.arcade-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
@media (max-width: 34em) { .arcade-grid { grid-template-columns: 1fr 1fr; gap: .6rem; } .arcade-card__sum { display: none; } .arcade-card__title { padding-bottom: .8rem; font-size: 1.05rem; } }
.arcade-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text); border-radius: var(--radius-lg); border: 1px solid var(--rule); background: var(--panel); overflow: hidden; transition: border-color .2s; }
.arcade-card a:hover { border-color: var(--arc-deep); color: var(--text); }
.arcade-card img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--rule); }
.arcade-card__title { display: block; padding: .8rem .9rem 0; font-family: var(--font-display); font-stretch: condensed; font-weight: 700; font-size: var(--step-1); color: var(--bolt); }
.arcade-card__sum { display: block; padding: .2rem .9rem .9rem; font-size: var(--step--1); color: var(--dim); line-height: 1.45; }
.arcade-card__tags { display: block; margin-top: auto; padding: .55rem .9rem; border-top: 1px solid var(--rule); font-size: .78rem; color: var(--dim); }
.arcade-tools { margin-bottom: 1.25rem; max-width: 24rem; }

.spotlight { display: grid; gap: var(--gap); align-items: center; margin-bottom: 2.5rem; padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--panel); }
@media (min-width: 48em) { .spotlight { grid-template-columns: 1.1fr 1fr; } }
.spotlight__media img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.spotlight__body > * + * { margin-top: .8rem; }
.spotlight h2 a { color: var(--bolt); text-decoration: none; }
.arcade-about { margin-top: 4rem; max-width: 46rem; }
.faq dt { color: var(--bolt); font-weight: 600; margin-top: 1rem; }
.faq dd { margin: .2rem 0 0; color: var(--text); }

/* ---------- Game page ---------- */
.game-hero { position: relative; min-height: min(78vh, 46rem); display: flex; align-items: flex-end; margin: -1.5rem 0 2.5rem; overflow: hidden; border-bottom: 1px solid var(--rule); }
.game-hero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .4) 45%, #000 98%); }
.game-hero__body { position: relative; z-index: 1; padding-block: 6rem 2.5rem; }
.game-hero__logo img { max-height: 10rem; width: auto; }
.game-hero__tagline { font-size: var(--step-2); color: var(--bolt); margin-top: .75rem; max-width: 32em; line-height: 1.3; }
.facts { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; margin: 1.75rem 0; }
.facts dt { color: var(--dim); font-size: var(--step--1); }
.facts dd { margin: 0; color: var(--bolt); font-weight: 600; }
.game-layout { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 60em) { .game-layout { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } .game-side { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.prose .shots { padding-left: 0; }
.prose .shots li + li { margin-top: 0; }
.shots { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); padding: 0; }
.shots img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border: 1px solid var(--rule); }
.shots a:hover img { border-color: var(--arc); }
.video-facade { margin-bottom: 2rem; }
.video-facade a, .video-facade iframe { position: relative; display: block; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--rule-strong); }
.video-facade img { width: 100%; height: 100%; object-fit: cover; }
.video-facade__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--arc); color: #000; font-weight: 700; padding: .8rem 1.4rem; border-radius: 999px; }

/* ---------- Arcade play page ---------- */
.arcade-page__head { margin-bottom: 1.5rem; }
.arcade-page__head .lede { margin-top: .6rem; }
.player { margin-bottom: 2.5rem; }
.player__stage {
  position: relative; width: 100%; max-height: 80vh; margin-inline: auto;
  background: #05070d; border: 1px solid var(--rule-strong); border-radius: var(--radius-lg); overflow: hidden;
  display: grid; place-items: center;
}
.player--4-3 .player__stage { aspect-ratio: 4 / 3; max-width: calc(80vh * 4 / 3); }
.player--16-9 .player__stage { aspect-ratio: 16 / 9; max-width: calc(80vh * 16 / 9); }
.player--1-1 .player__stage { aspect-ratio: 1; max-width: 80vh; }
.player--3-4 .player__stage { aspect-ratio: 3 / 4; max-width: calc(80vh * 3 / 4); }
.player--9-16 .player__stage { aspect-ratio: 9 / 16; max-width: calc(80vh * 9 / 16); }
.player__stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(1.1); }
.player__start { position: relative; z-index: 1; }
.player__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player__stage:fullscreen { max-width: none; max-height: none; border-radius: 0; border: 0; }
.player__bar { display: flex; gap: .5rem; justify-content: flex-end; margin-top: .6rem; }
.arcade-page__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 56em) { .arcade-page__grid { grid-template-columns: minmax(0, 1fr) 18rem; align-items: start; } }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.controls, .data-table { width: 100%; font-size: .95rem; }
.controls th, .controls td, .data-table th, .data-table td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.controls th, .data-table th { color: var(--dim); font-weight: 600; font-size: var(--step--1); }
.data-table td.actions { white-space: nowrap; }
.data-table td.actions > * + * { margin-left: .75rem; }
.related { margin-top: 4rem; }
.related h2 { margin-bottom: 1rem; }

/* ---------- Prose (descriptions, posts, legal) ---------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--step-3); margin-top: 1.8em; }
.prose h3 { font-size: var(--step-2); margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { border-left: 3px solid var(--arc-deep); padding: .3em 0 .3em 1em; color: var(--dim); }
.prose pre { background: #05070d; border: 1px solid var(--rule); border-radius: var(--radius); padding: 1em; overflow-x: auto; }
.prose code { background: var(--rule); padding: .1em .35em; border-radius: 3px; }
.prose pre code { background: none; padding: 0; }
.prose img { border-radius: var(--radius); border: 1px solid var(--rule); max-height: 70vh; width: auto; }
.prose strong { color: var(--bolt); }
.post-body { overflow-wrap: anywhere; }
.legal h2 { font-size: var(--step-2); }

/* ---------- News ---------- */
.news-list { display: grid; gap: 0; }
.news-item { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.news-item:first-child { padding-top: .5rem; }
.news-item__meta { display: flex; gap: .7rem; align-items: center; color: var(--dim); font-size: var(--step--1); margin-bottom: .45rem; }
.news-item__title { font-size: var(--step-2); margin-bottom: .35rem; }
.news-item__title a { color: var(--bolt); text-decoration: none; }
.news-item__title a:hover { color: var(--arc); }
.news-list--full .news-item__title { font-size: var(--step-3); }
.news-article header { margin-bottom: 2rem; }
.news-article header .lede { margin-top: 1rem; }
.byline { margin-top: 1.2rem; }
.news-article__foot { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- About ---------- */
.about { padding-top: clamp(2rem, 6vw, 4rem); }
.definition { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--rule); }
.definition__word { font-family: var(--font-display); font-stretch: condensed; font-weight: 800; font-size: clamp(4rem, 15vw, 9rem); line-height: .85; color: var(--bolt); letter-spacing: -.03em; }
.definition__word dfn { font-style: normal; }
.definition__pron { color: var(--dim); font-size: var(--step-1); margin: .9rem 0 1rem; }
.definition__pron em { color: var(--arc); }
.definition__text { font-size: var(--step-2); color: var(--bolt); line-height: 1.35; max-width: 30em; }
.about-story { margin-bottom: 3rem; }
.about-story h2 { margin-top: 0; }
.about-cards { display: grid; gap: 1rem; }
@media (min-width: 46em) { .about-cards { grid-template-columns: 1fr 1fr; } .about-cards .panel + .panel { margin-top: 0; } }
.contact-email { font-size: var(--step-1); font-weight: 700; margin: .8rem 0; overflow-wrap: anywhere; }
.about-cards .panel > p { margin-bottom: .8rem; }

/* ---------- Forum ---------- */
.forum-layout { display: grid; gap: var(--gap); }
@media (min-width: 60em) { .forum-layout--split { grid-template-columns: minmax(0, 1fr) 19rem; align-items: start; } }
.cat-list, .thread-list { border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--panel); overflow: hidden; }
.cat-row, .thread-row { display: grid; gap: .5rem 1.25rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule); }
.cat-row:last-child, .thread-row:last-child { border-bottom: 0; }
@media (min-width: 48em) { .cat-row { grid-template-columns: minmax(0, 1fr) 7rem 15rem; align-items: center; } }
.cat-row__name { font-size: var(--step-2); }
.cat-row__name a { color: var(--bolt); text-decoration: none; }
.cat-row__name a:hover { color: var(--arc); }
.cat-row__desc { color: var(--dim); font-size: .95rem; margin-top: .15rem; }
.cat-row__stats, .thread-row__stats { display: flex; flex-wrap: wrap; gap: 0 1rem; color: var(--dim); font-size: var(--step--1); }
@media (min-width: 48em) { .cat-row__stats, .thread-row__stats { flex-direction: column; } }
.cat-row__last { display: flex; flex-direction: column; font-size: .92rem; min-width: 0; }
.thread-row { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.thread-row .avatar { grid-row: span 2; }
@media (min-width: 48em) { .thread-row { grid-template-columns: auto minmax(0, 1fr) 7rem 11rem; } .thread-row .avatar { grid-row: auto; } }
.thread-row--pinned { background: rgba(255, 184, 77, .04); }
.thread-row__title { font-family: var(--font-text); font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.thread-row__title a { color: var(--bolt); text-decoration: none; }
.thread-row__title a:hover { color: var(--arc); }
.thread-row__stats, .thread-row__last { grid-column: 2; }
@media (min-width: 48em) { .thread-row__stats, .thread-row__last { grid-column: auto; } }
.recent-list a { display: block; color: var(--bolt); text-decoration: none; font-weight: 500; }
.recent-list a:hover { color: var(--arc); }
.thread__head { margin-bottom: 1.5rem; }
.thread__head h1 { margin-bottom: .4rem; }
.mod-tools { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; padding: .75rem 1rem; border: 1px dashed var(--rule-strong); border-radius: var(--radius); margin-bottom: 1.5rem; }
.mod-tools form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.mod-tools select { width: auto; min-height: 2.25rem; padding-block: .3rem; }
.posts { display: grid; gap: 1rem; }
.post { display: grid; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--panel); overflow: hidden; }
@media (min-width: 48em) { .post { grid-template-columns: 11rem minmax(0, 1fr); } }
.post:target { border-color: var(--arc); }
.post__author { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule); background: rgba(0, 0, 0, .35); }
.post__author .avatar--lg { width: 44px; height: 44px; }
@media (min-width: 48em) {
  .post__author { flex-direction: column; align-items: flex-start; border-bottom: 0; border-right: 1px solid var(--rule); border-top: 3px solid var(--theme, var(--arc-deep)); }
  .post__author .avatar--lg { width: 72px; height: 72px; }
}
.post__name { color: var(--bolt); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.post__meta { line-height: 1.4; }
.post__content { padding: 1rem 1.25rem 1.1rem; min-width: 0; display: flex; flex-direction: column; }
.post__head { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-bottom: .7rem; }
.post__permalink { color: var(--dim); text-decoration: none; }
.post__permalink:hover { color: var(--arc); }
.post .prose { max-width: none; }
.post__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: auto; padding-top: 1rem; font-size: var(--step--1); }
.post__actions form { display: inline; }
.reply-box { margin-top: 2rem; }

/* ---------- Rich text editor ---------- */
.editor__shell { border: 1px solid var(--rule-strong); border-radius: var(--radius); background: rgba(0, 0, 0, .65); }
.editor__shell:focus-within { border-color: var(--arc); box-shadow: 0 0 0 3px rgba(158, 193, 255, .2); }
.editor__toolbar { display: flex; flex-wrap: wrap; gap: .15rem; padding: .35rem; border-bottom: 1px solid var(--rule); position: relative; }
.editor__toolbar button {
  min-width: 2.25rem; height: 2.25rem; padding: 0 .5rem; border: 0; border-radius: var(--radius);
  background: none; color: var(--text); cursor: pointer; font-weight: 700; font-size: .9rem;
}
.editor__toolbar button:hover, .editor__toolbar button[aria-pressed="true"] { background: rgba(158, 193, 255, .14); color: var(--bolt); }
.editor__sep { width: 1px; background: var(--rule-strong); margin: .3rem .2rem; }
.editor__area { min-height: 10rem; max-height: 65vh; overflow-y: auto; padding: .8rem 1rem; color: var(--bolt); outline: none; line-height: 1.6; overflow-wrap: anywhere; }
.editor__area:empty::before { content: attr(data-placeholder); color: #5f6a80; }
.editor__area > * + * { margin-top: .8em; }
.editor__area blockquote { border-left: 3px solid var(--arc-deep); padding-left: 1em; color: var(--dim); }
.editor__area ul, .editor__area ol { padding-left: 1.3em; }
.editor__area img { max-height: 20rem; border-radius: var(--radius); }
.editor__area pre { background: #05070d; padding: .6em; border-radius: var(--radius); }
.editor__status { font-size: .8rem; color: var(--dim); padding: .3rem .6rem; border-top: 1px solid var(--rule); min-height: 1.6rem; }
.editor--rich textarea { display: none; }

.emoji-pop {
  position: absolute; z-index: 30; width: min(20rem, calc(100vw - 2rem)); max-height: 18rem; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--panel-solid); border: 1px solid var(--rule-strong); border-radius: var(--radius-lg); box-shadow: 0 18px 40px rgba(0, 0, 0, .7);
}
.emoji-pop__tabs { display: flex; border-bottom: 1px solid var(--rule); }
.emoji-pop__tabs button { flex: 1; height: 2.25rem; background: none; border: 0; cursor: pointer; font-size: 1.1rem; border-bottom: 2px solid transparent; }
.emoji-pop__tabs button[aria-selected="true"] { border-bottom-color: var(--arc); }
.emoji-pop__grid { display: grid; grid-template-columns: repeat(8, 1fr); padding: .4rem; overflow-y: auto; }
.emoji-pop__grid button { height: 2.25rem; font-size: 1.35rem; background: none; border: 0; border-radius: var(--radius); cursor: pointer; line-height: 1; }
.emoji-pop__grid button:hover, .emoji-pop__grid button:focus-visible { background: rgba(158, 193, 255, .14); }
.emoji-btn { position: absolute; right: .5rem; bottom: .5rem; width: 2rem; height: 2rem; border: 0; background: none; cursor: pointer; font-size: 1.15rem; opacity: .75; border-radius: 50%; }
.emoji-btn:hover { opacity: 1; background: rgba(158, 193, 255, .14); }
.emoji-host { position: relative; }
.emoji-host textarea { padding-right: 2.75rem; }

/* ---------- Profile ---------- */
.theme-storm  { --theme: #6f98e6; --theme-2: #1c2f57; }
.theme-ember  { --theme: #ff8a4c; --theme-2: #4a1a08; }
.theme-aurora { --theme: #5fe0b0; --theme-2: #0c3b3a; }
.theme-plasma { --theme: #c48bff; --theme-2: #2f1253; }
.theme-gold   { --theme: #ffcf5c; --theme-2: #4a3606; }
.theme-ghost  { --theme: #cfd6e4; --theme-2: #22262f; }
.profile__head { position: relative; margin-bottom: 2rem; }
.profile__banner {
  height: clamp(8rem, 20vw, 13rem); border-radius: var(--radius-lg); border: 1px solid var(--rule);
  background:
    radial-gradient(ellipse 60% 120% at 85% 0%, var(--theme) 0%, transparent 60%),
    radial-gradient(ellipse 50% 100% at 10% 100%, var(--theme-2) 0%, transparent 70%),
    linear-gradient(120deg, var(--theme-2), #000 70%);
  opacity: .9;
}
.profile__id { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: flex-start; padding: 0 clamp(1rem, 3vw, 2rem); margin-top: -4rem; }
@media (min-width: 40em) { .profile__names, .profile__actions { padding-top: 4.4rem; } }
@media (max-width: 39.99em) { .profile__names { flex-basis: 100%; } }
.profile__id .avatar--xl { box-shadow: 0 0 0 2px var(--theme); }
.profile__names { flex: 1 1 14rem; min-width: 0; }
.profile__name { font-size: var(--step-4); line-height: 1; overflow-wrap: anywhere; }
.profile__actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.profile__layout { display: grid; gap: var(--gap); }
@media (min-width: 56em) { .profile__layout { grid-template-columns: 20rem minmax(0, 1fr); align-items: start; } }
.profile__bio { margin-bottom: 1rem; overflow-wrap: anywhere; }
.profile__facts > div { display: flex; gap: .75rem; justify-content: space-between; padding: .4rem 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.profile__facts dt { color: var(--dim); }
.profile__facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.stat-row { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1rem; font-size: .95rem; color: var(--dim); }
.stat-row strong { color: var(--theme, var(--bolt)); font-size: 1.15rem; }
.friend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: .5rem; }
.profile__feed h2 { margin-bottom: 1rem; }
.avatar-edit { display: flex; gap: 1.25rem; align-items: flex-start; flex-wrap: wrap; }
.avatar-edit .field { flex: 1 1 14rem; }
.themes { display: flex; flex-wrap: wrap; gap: .6rem; }
.theme-swatch { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem .45rem .5rem; border: 1px solid var(--rule-strong); border-radius: 999px; font-weight: 500; color: var(--text); cursor: pointer; margin: 0; }
.theme-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.theme-swatch__chip { width: 1.25rem; height: 1.25rem; border-radius: 50%; background: linear-gradient(135deg, var(--theme), var(--theme-2)); }
.theme-swatch:has(input:checked) { border-color: var(--theme); color: var(--bolt); }
.theme-swatch input:checked + .theme-swatch__chip { box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--theme); }
.theme-swatch input:focus-visible + .theme-swatch__chip { outline: 2px solid var(--arc); outline-offset: 4px; }

/* ---------- Feed ---------- */
.feed-layout { display: grid; gap: var(--gap); padding-top: 2rem; }
@media (min-width: 56em) { .feed-layout { grid-template-columns: minmax(0, 1fr) 18rem; align-items: start; } }
.feed-layout h1 + p { margin: .3rem 0 1.25rem; }
.composer { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: .75rem; margin-bottom: 1.25rem; }
.composer textarea { background: transparent; border-color: transparent; min-height: 5rem; }
.composer textarea:focus { box-shadow: none; border-color: var(--rule-strong); }
.composer__bar { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; margin-top: .4rem; }
.composer .char-count { margin: 0 auto 0 0; }
.feed { display: grid; gap: .75rem; }
.feed-post { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; padding: 1rem 1.1rem; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.feed-post__head { margin-bottom: .25rem; }
.feed-post__name { color: var(--bolt); font-weight: 700; text-decoration: none; }
.feed-post__body { overflow-wrap: anywhere; }
.feed-post__actions { display: flex; gap: 1.25rem; align-items: center; margin-top: .6rem; font-size: var(--step--1); }
.like-btn { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 1px solid transparent; border-radius: 999px; padding: .2rem .6rem .2rem .45rem; color: var(--dim); cursor: pointer; }
.like-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.like-btn:hover { color: var(--arc); border-color: var(--rule-strong); }
.like-btn[aria-pressed="true"] { color: var(--fuse); }
.like-btn[aria-pressed="true"] svg { fill: var(--fuse); stroke: var(--fuse); }
.like-btn.is-zap svg { animation: zap .45s ease-out; }
@keyframes zap { 0% { transform: scale(1); } 40% { transform: scale(1.45) rotate(-8deg); } 100% { transform: scale(1); } }

/* ---------- Members / friends ---------- */
.member-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); margin-top: 1rem; }
.member-list { display: grid; gap: 0; }
.member-card { display: flex; flex-direction: column; gap: .6rem; padding: 1rem; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.member-grid .member-card { border-top: 3px solid var(--theme, var(--rule)); }
.member-list .member-card { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; background: none; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding: .8rem 0; }
.member-list .member-card:last-child { border-bottom: 0; }
.member-card__id { display: flex; align-items: center; gap: .75rem; color: var(--text); text-decoration: none; min-width: 0; }
.member-card__id strong { color: var(--bolt); }
.member-card__id:hover strong { color: var(--arc); }
.member-card__bio { color: var(--dim); }
.member-card__actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: auto; }

/* ---------- Messages ---------- */
.convo-list { border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--panel); overflow: hidden; margin-bottom: 1.5rem; }
.convo a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .9rem 1.1rem; border-bottom: 1px solid var(--rule); color: var(--text); text-decoration: none; }
.convo:last-child a { border-bottom: 0; }
.convo a:hover { background: rgba(158, 193, 255, .05); }
.convo__main { min-width: 0; display: flex; flex-direction: column; }
.convo__name { color: var(--bolt); font-weight: 600; }
.convo__preview { color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .95rem; }
.convo--unread .convo__preview { color: var(--text); font-weight: 600; }
.convo__meta { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.chat-page { padding-top: 1rem; display: flex; flex-direction: column; }
.chat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.chat-head__back { font-size: var(--step--1); }
.chat-head__who { display: flex; align-items: center; gap: .75rem; color: var(--text); text-decoration: none; }
.chat-head__who strong { color: var(--bolt); }
.chat { height: min(60vh, 36rem); overflow-y: auto; padding: 1rem .25rem; overscroll-behavior: contain; }
.chat__older { text-align: center; font-size: var(--step--1); margin-bottom: 1rem; }
.chat__log { display: flex; flex-direction: column; gap: .4rem; }
.bubble { max-width: min(80%, 34rem); align-self: flex-start; padding: .55rem .85rem .4rem; border-radius: 1rem 1rem 1rem .3rem; background: #111827; border: 1px solid var(--rule); }
.bubble--mine { align-self: flex-end; background: #1b2b4d; border-color: #263c66; border-radius: 1rem 1rem .3rem 1rem; }
.bubble__text { color: var(--bolt); overflow-wrap: anywhere; }
.bubble__text a { color: var(--arc-hot); }
.bubble__time { display: block; font-size: .7rem; color: var(--dim); margin-top: .15rem; text-align: right; }
.bubble.is-pending { opacity: .6; }
.chat-composer { display: flex; gap: .5rem; align-items: flex-end; padding-top: 1rem; border-top: 1px solid var(--rule); }
.chat-composer .emoji-host { flex: 1; }
.chat-composer textarea { min-height: 2.9rem; max-height: 10rem; }

/* ---------- Pagination, tabs, admin ---------- */
.pagination { margin-top: 2rem; }
.pagination ul { display: flex; flex-wrap: wrap; gap: .35rem; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem; border: 1px solid var(--rule-strong); border-radius: var(--radius); text-decoration: none; color: var(--text); }
.pagination a:hover { border-color: var(--arc); color: var(--bolt); }
.pagination [aria-current="page"] { background: var(--arc); border-color: var(--arc); color: #000; font-weight: 700; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.5rem; overflow-x: auto; }
.tabs a { padding: .7rem 1rem; color: var(--dim); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--bolt); }
.tabs a[aria-current="page"] { color: var(--bolt); border-bottom-color: var(--arc); }
.admin .panel { margin-bottom: 1rem; }
.cat-form { display: grid; gap: .75rem; align-items: end; margin-bottom: .75rem; }
@media (min-width: 52em) { .cat-form { grid-template-columns: 1fr 1fr 2fr 6rem 12rem auto; } }
.cat-form label { font-size: .85rem; }
.cat-form input, .cat-form select { margin-top: .25rem; font-weight: 400; }
.stats .panel + .panel { margin-top: 0; }
.stat { font-family: var(--font-display); font-stretch: condensed; font-weight: 700; font-size: var(--step-4); color: var(--bolt); line-height: 1; }
.settings .panel { margin-bottom: 1.25rem; }
.settings form + form { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }

/* ---------- Error pages ---------- */
.error-page { padding-block: clamp(3rem, 10vw, 7rem); }
.error-page__code { font-family: var(--font-display); font-stretch: condensed; font-weight: 800; font-size: clamp(6rem, 22vw, 13rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--arc-deep); margin-bottom: 1rem; }
.error-page .lede { margin: 1rem 0 2rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(0, 0, 0, .92); padding: 1rem; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--radius); }
.lightbox button { position: absolute; top: 1rem; right: 1rem; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .sky, .site-header, .site-footer, .noscript-banner, .reply-box, .mod-tools, .post__actions { display: none !important; }
  body { background: #fff; color: #000; }
  h1, h2, h3, h4, .display { color: #000; }
  a { color: #000; }
}
