/* The Oblivion look, shared with the launcher and the game: a starry purple void, the OBLIVION wordmark,
   the ring. Dark purple throughout, one accent, small gradients. Headings in Sora, the rest in system fonts. */
@font-face {
  font-family: "Sora"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("/assets/sora.woff2") format("woff2");
}
:root {
  --display: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --deep: #120d1c; --card-hi: #2a2338;
  --bg: #1c1826; --strip: #15121d; --card: #252032; --raised: #332a47; --line: #3a3150;
  --text: #ebe7f2; --muted: #a9a1b8;
  --accent: #b197fc; --accent-a: #8b5cf6; --accent-b: #c26be0; --on-accent: #ffffff;
  --bad: #f19090; --good: #7fd69b; --wait: #e6c25c; --field: #17131f; --glow: rgba(139, 92, 246, 0.18);
  --shade: rgba(0, 0, 0, 0.35); --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --discord: #5865f2; --discord-text: #8c95f7;
  --good-wash: rgba(127, 214, 155, 0.13); --wait-wash: rgba(230, 194, 92, 0.13); --bad-wash: rgba(241, 144, 144, 0.13); --veil: rgba(12, 9, 18, 0.62);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: Consolas, "Cascadia Mono", Menlo, "Courier New", monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* Hidden means hidden, whatever display a button or panel otherwise has. */
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; color: var(--text); font: 16px/1.55 var(--sans); overflow-x: clip; min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(70rem 32rem at 50% -14rem, rgba(139, 92, 246, 0.13), transparent 70%), var(--bg); }
body > .wrap { flex: 1 0 auto; width: 100%; }
.wrap { max-width: 70rem; margin-inline: auto; padding-inline: 1rem; }
h1, h2, h3, p, ol { margin: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.01em; }
h1 { font-size: 1.75rem; line-height: 1.2; font-weight: 700; }
h2 { font-size: 1.2rem; line-height: 1.3; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header: a glass bar that stays at the top */
.top { position: sticky; top: 0; z-index: 30; background: rgba(18, 13, 28, 0.78); border-bottom: 1px solid rgba(58, 49, 80, 0.7);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.7rem; }
.mark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.mark img { display: block; height: 2rem; width: auto; max-width: 8rem; object-fit: contain; }
.mark span { font: 700 1.2rem/1 var(--display); letter-spacing: -0.01em; color: var(--accent);
  background: linear-gradient(90deg, #c4b5fd, var(--accent-b)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.35rem; }
nav a { color: var(--muted); text-decoration: none; padding: 0.4rem 0.75rem; border-radius: 8px; font-weight: 500; transition: color 0.15s, background-color 0.15s; }
nav a:hover { color: var(--text); background: rgba(51, 42, 71, 0.6); }
nav a[aria-current="page"] { color: var(--text); background: var(--raised); }
nav a.button { color: var(--on-accent); padding: 0.45rem 0.95rem; margin-left: 0.35rem; }
nav a.button:hover { background: linear-gradient(90deg, var(--accent-a), var(--accent-b)); }
nav .who { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--text); }
nav .live { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; color: var(--text); background: rgba(127, 214, 155, 0.08);
  border: 1px solid rgba(127, 214, 155, 0.25); border-radius: 999px; padding: 0.25rem 0.7rem; margin-left: 0.4rem; }
nav .live:hover { background: rgba(127, 214, 155, 0.14); }
main { padding-block: 1.75rem 3rem; display: flex; flex-direction: column; gap: 1.5rem; }

/* footer: the name and address, then three columns of links */
.site-foot { margin-top: 2rem; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(18, 13, 28, 0.6), var(--deep)); color: var(--muted); font-size: 0.92rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: 2.5rem 2rem; }
.foot-brand { display: flex; flex-direction: column; gap: 0.8rem; max-width: 22rem; }
.foot-brand .mark img { height: 1.75rem; }
.foot-ip { display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start; background: var(--field); border: 1px solid var(--line); border-radius: 8px; padding: 0.3rem 0.35rem 0.3rem 0.75rem; }
.foot-ip .mono { color: var(--text); }
.foot-ip button { padding: 0.3rem 0.6rem; font-size: 0.85rem; }
.foot-col { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 0.55rem; }
.foot-col h2 { font: 700 0.75rem/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 0.3rem; }
.foot-col a { color: var(--muted); text-decoration: none; padding: 0; border-radius: 0; font-weight: 400; }
.foot-col a:hover { color: var(--text); background: none; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1.1rem 1.6rem; border-top: 1px solid rgba(58, 49, 80, 0.6); }
.foot-base .small { font-size: 0.72rem; letter-spacing: 0.03em; }

/* pages admins write */
.page { gap: 0.9rem; }
.page h2 { margin-top: 0.4rem; }
.list { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.3rem; }
.preview-banner { display: block; width: 100%; max-width: 28rem; max-height: 9rem; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.preview-logo { display: block; width: 3rem; height: 3rem; object-fit: contain; }
input[type="file"] { width: auto; max-width: 100%; padding: 0.35rem; }

/* cards */
.card { background: linear-gradient(180deg, var(--card-hi), var(--card) 6rem); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.35rem 1.3rem;
  display: flex; flex-direction: column; gap: 0.8rem; min-width: 0; }
.cover { display: block; width: 100%; max-height: 20rem; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
.grow { flex: 1 1 12rem; min-width: 0; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.muted, .note { color: var(--muted); }
.note { font-size: 0.9rem; }
.problem { color: var(--bad); }
.mono { font-family: var(--mono); }

/* buttons and fields */
button, .button { font: 600 0.95rem/1.2 var(--sans); color: var(--on-accent); background: linear-gradient(90deg, var(--accent-a), var(--accent-b)); border: 1px solid transparent; border-radius: 6px; padding: 0.5rem 0.9rem; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .button:hover { filter: brightness(1.1); }
button.quiet, .button.quiet { color: var(--text); background: transparent; border-color: var(--line); font-weight: 500; }
button.quiet:hover, .button.quiet:hover { border-color: var(--accent); filter: none; }
button.quiet[aria-pressed="true"] { background: var(--raised); border-color: var(--accent); }
button.warn { color: var(--bad); background: transparent; border-color: var(--bad); }
button:disabled { opacity: 0.5; cursor: default; }
input, textarea, select { font: inherit; color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 6px; padding: 0.5rem 0.7rem; width: 100%; }
select { width: auto; padding-block: 0.4rem; }
select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
form.stack { max-width: 28rem; }
textarea { min-height: 7.5rem; resize: vertical; }
label { display: flex; flex-direction: column; gap: 0.3rem; font-weight: 600; font-size: 0.95rem; }
.address, .command { font-family: var(--mono); background: var(--field); border: 1px solid var(--line); border-radius: 6px; padding: 0.45rem 0.7rem; overflow-wrap: anywhere; }
.address { font-size: 1.05rem; }
.code { font: 700 2rem/1.1 var(--mono); letter-spacing: 0.12em; color: var(--accent); }
.steps { padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; }

/* players */
.people { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.person { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text); text-decoration: none; min-width: 0; }
.person:hover span { text-decoration: underline; }
.face { flex: none; width: 24px; height: 24px; border-radius: 3px; background-color: var(--raised); background-size: 800% 800%; background-position: 14.2857% 14.2857%; image-rendering: pixelated;
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.face.big { width: 64px; height: 64px; font-size: 1.5rem; border-radius: 6px; }
.state { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.95rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.on { background: var(--good); }
.rules { padding-left: 1.3rem; }
.rules li + li { margin-top: 0.3rem; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.6rem 1.4rem; }
.member { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }

/* news */
.post { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; border-top: 1px solid var(--line); padding-top: 0.9rem; }
.card > .post:first-of-type, .stack > .post:first-child { border-top: 0; padding-top: 0; }
.words { white-space: pre-wrap; overflow-wrap: anywhere; }
textarea.tall { min-height: 14rem; }

/* tables */
.tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
td.n, th.n { text-align: right; padding-right: 0; white-space: nowrap; }
td.rank { width: 2rem; color: var(--muted); }
.facts th { font-weight: 400; color: var(--muted); width: 9rem; }
.facts td { overflow-wrap: anywhere; }

/* staff */
.feed { font: 0.85rem/1.5 var(--mono); background: var(--field); border: 1px solid var(--line); border-radius: 6px; padding: 0.6rem 0.75rem; max-height: 24rem; overflow-y: auto; }
.feed p { overflow-wrap: anywhere; }
.feed .t, .feed .i { color: var(--muted); }
.feed .c { color: var(--accent); }
.tag { font-weight: 600; white-space: nowrap; }
.tag.open { color: var(--wait); } .tag.accepted { color: var(--good); } .tag.denied { color: var(--bad); }
.quote { border-left: 3px solid var(--line); padding-left: 0.75rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.case { border-top: 1px solid var(--line); padding-top: 0.9rem; display: flex; flex-direction: column; gap: 0.6rem; }
.case:first-child { border-top: 0; padding-top: 0; }
.banner { border: 1px dashed var(--wait); color: var(--wait); border-radius: 6px; padding: 0.5rem 0.75rem; font-size: 0.9rem; margin-top: 1rem; }

/* your account: tiles, icon discs, the row of sections, switches */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.tile { display: flex; align-items: center; gap: 0.9rem; min-width: 0; padding: 1rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.tile:hover, .tile:focus-visible { border-color: var(--accent); transform: translateY(-1px); }
.tile .text { display: flex; flex-direction: column; gap: 0.1rem; flex: 1; min-width: 0; }
.tile strong { font-size: 1.05rem; }
.tile .note { overflow-wrap: anywhere; }
/* An odd one out at the end spans the row, rather than sitting alone in half of it. */
.tiles > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.qr { display: block; width: 12rem; height: 12rem; max-width: 100%; border-radius: 8px; }
.codes { display: grid; grid-template-columns: repeat(2, max-content); gap: 0.35rem 1.6rem; font: 600 1rem/1.4 var(--mono); }
details summary { cursor: pointer; color: var(--muted); }
details[open] summary { margin-bottom: 0.6rem; }
.chev { display: grid; flex: none; color: var(--muted); }
.chev svg { width: 1.1rem; height: 1.1rem; }
.badge { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b)); box-shadow: 0 0 0 4px var(--glow); }
.badge svg { width: 1.3rem; height: 1.3rem; }
.badge.small { width: 2rem; height: 2rem; box-shadow: 0 0 0 3px var(--glow); }
.badge.small svg { width: 1rem; height: 1rem; }
.badge.tiny { width: 1.5rem; height: 1.5rem; box-shadow: none; }
.badge.tiny svg { width: 0.8rem; height: 0.8rem; }
.titled { display: flex; align-items: center; gap: 0.7rem; }
.rail { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rail a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.8rem 0.3rem 0.35rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); text-decoration: none; }
.rail a:hover { color: var(--text); border-color: var(--accent); }
.rail a[aria-current="page"] { color: var(--text); border-color: var(--accent); background: var(--raised); }
.back { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--muted); text-decoration: none; align-self: flex-start; }
.back:hover { color: var(--text); }
.back svg { width: 1rem; height: 1rem; }
.toggle { flex-direction: row; align-items: flex-start; gap: 0.8rem; font-weight: 400; cursor: pointer; }
.toggle strong { font-weight: 600; }
.toggle input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 2.5rem; height: 1.4rem; margin: 0.1rem 0 0; padding: 0;
  border-radius: 999px; background: var(--field); border: 1px solid var(--line); cursor: pointer; transition: background 0.15s; }
.toggle input::after { content: ""; position: absolute; top: 0.15rem; left: 0.15rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--muted);
  transition: transform 0.15s, background 0.15s; }
.toggle input:checked { background: linear-gradient(90deg, var(--accent-a), var(--accent-b)); border-color: transparent; }
.toggle input:checked::after { transform: translateX(1.1rem); background: var(--on-accent); }
.toggle input:disabled { opacity: 0.5; cursor: default; }
@media (prefers-reduced-motion: reduce) {
  .tile, .toggle input, .toggle input::after { transition: none; }
  .tile:hover { transform: none; }
}

/* movement: content eases in, things respond when pointed at and pressed */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
main > *, .dash-main > * { animation: rise 0.32s var(--ease) both; }
main > *:nth-child(2), .dash-main > *:nth-child(2) { animation-delay: 0.04s; }
main > *:nth-child(3), .dash-main > *:nth-child(3) { animation-delay: 0.08s; }
main > *:nth-child(4), .dash-main > *:nth-child(4) { animation-delay: 0.12s; }
main > *:nth-child(n+5), .dash-main > *:nth-child(n+5) { animation-delay: 0.16s; }
button, .button { transition: filter 0.15s, border-color 0.15s, background-color 0.15s, transform 0.1s; }
button:active:not(:disabled), .button:active { transform: translateY(1px) scale(0.99); }
input, textarea, select { transition: border-color 0.15s, box-shadow 0.15s; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); outline: none; }
.skeleton { display: block; border-radius: 6px; background: linear-gradient(90deg, var(--raised) 30%, var(--line) 50%, var(--raised) 70%);
  background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton.line { height: 0.8rem; width: 70%; }
.skeleton.line.short { width: 40%; }
.skeleton.disc { width: 2rem; height: 2rem; border-radius: 50%; flex: none; }

/* pop-up confirmations */
.toasts { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; flex-direction: column; gap: 0.5rem;
  max-width: calc(100vw - 2rem); }
.toast { display: flex; align-items: center; gap: 0.6rem; background: var(--raised); color: var(--text); border: 1px solid var(--line); border-left: 3px solid var(--good);
  border-radius: 8px; padding: 0.65rem 0.95rem; box-shadow: 0 10px 30px var(--shade); animation: toast-in 0.22s var(--ease) both; max-width: 24rem; }
.toast.bad { border-left-color: var(--bad); }
.toast.leaving { opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s; }

/* the admin dashboard: wider page, a sidebar of sections, a header, the section itself */
.wide .wrap { max-width: 76rem; }
.dash { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.dash-nav { position: sticky; top: calc(1rem + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 1.1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 0.65rem; }
.dash-group { display: flex; flex-direction: column; gap: 0.15rem; }
.dash-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0 0.55rem 0.3rem; }
.dash-nav a { display: flex; align-items: center; gap: 0.6rem; padding: 0.42rem 0.55rem; border-radius: 7px; color: var(--muted); text-decoration: none;
  transition: background-color 0.15s, color 0.15s, box-shadow 0.2s var(--ease); }
.dash-nav a:hover { color: var(--text); background: var(--raised); }
.dash-nav a[aria-current="page"] { color: var(--text); background: var(--raised); box-shadow: inset 3px 0 0 var(--accent); }
.dash-main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 1.25rem; padding-bottom: 0.25rem; }
.dash-head > .stack { gap: 0.3rem; flex: 1 1 20rem; }
.dash-head h1 { font-size: 1.75rem; letter-spacing: -0.01em; text-wrap: balance; }
.dash-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.live { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; padding: 0.35rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.live strong { font-weight: 600; }
.pulse { position: relative; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--good); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--good); animation: ping 1.8s ease-out infinite; }
.search-open { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--muted); min-width: 12rem; }
.search-open:hover { color: var(--text); }
.search-open svg { width: 1rem; height: 1rem; flex: none; }
.search-open kbd { margin-left: auto; }
kbd { font: 600 0.72rem/1 var(--sans); color: var(--muted); background: var(--field); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0.2rem 0.4rem; white-space: nowrap; }
.delta { font-size: 0.8rem; font-weight: 600; color: var(--good); }
.delta.none { color: var(--muted); font-weight: 400; }
.stack.tight { gap: 0.15rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* the overview: charts beside the launch checklist, then three live lists */
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.dash-grid > .span-2 { grid-column: span 2; }
.dash-grid > * { animation: rise 0.36s var(--ease) both; }
.dash-grid > *:nth-child(2) { animation-delay: 0.06s; }
.dash-grid > *:nth-child(3) { animation-delay: 0.12s; }
.dash-grid > *:nth-child(n+4) { animation-delay: 0.18s; }
.feed.short { max-height: 15rem; }
.feed p.fresh { animation: flash 1.4s ease both; border-radius: 4px; }
.line-link { display: flex; align-items: center; gap: 0.65rem; color: var(--text); text-decoration: none; padding: 0.45rem 0.55rem; margin-inline: -0.55rem; border-radius: 8px;
  transition: background-color 0.15s; min-width: 0; }
.line-link:hover { background: var(--raised); }
.line-link .mono { overflow-wrap: anywhere; }
.meter { height: 6px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent-a), var(--accent-b)); transition: width 0.9s var(--ease); }
.checks { display: flex; flex-direction: column; gap: 0.2rem; }
.check-item { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.3rem 0; }
.check-item.ok { color: var(--muted); }
details.check-item { display: block; padding: 0; }
details.check-item summary { display: flex; align-items: flex-start; gap: 0.65rem; color: var(--text); list-style: none; padding: 0.3rem 0.4rem; margin-inline: -0.4rem;
  border-radius: 7px; transition: background-color 0.15s; }
details.check-item summary::-webkit-details-marker { display: none; }
details.check-item summary:hover { background: var(--raised); }
details.check-item[open] summary { margin-bottom: 0; }
details.check-item .chev { margin-top: 0.1rem; transition: transform 0.2s var(--ease); }
details.check-item[open] .chev { transform: rotate(90deg); }
.check-more { padding: 0.15rem 0 0.5rem 2.05rem; }
.check-mark { flex: none; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; margin-top: 0.05rem; }
.check-mark svg { width: 0.8rem; height: 0.8rem; }
.check-item.ok .check-mark { color: var(--good); background: var(--good-wash); }
.check-item.todo .check-mark { color: var(--wait); background: var(--wait-wash); }
.setup .checks { flex: 1; }

/* charts: thin marks, a hairline grid, the data the only loud thing */
.chart { position: relative; min-height: 180px; }
.chart svg { display: block; overflow: visible; touch-action: pan-y; }
.chart svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.chart .grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.chart .axis { fill: var(--muted); font: 11px var(--sans); font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke: var(--accent-a); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .wash-top { stop-color: var(--accent-a); stop-opacity: 0.3; }
.chart .wash-bottom { stop-color: var(--accent-a); stop-opacity: 0; }
.chart .dot { fill: var(--accent-a); stroke: var(--card); stroke-width: 2; }
.chart .hair { stroke: var(--muted); stroke-width: 1; shape-rendering: crispEdges; }
.chart .mark { fill: var(--accent-a); transition: fill 0.12s; }
.chart .bar.on .mark { fill: var(--accent); }
.chart .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) 0.15s forwards; }
.chart .fade { animation: fade 0.7s ease 0.5s both; }
.chart .grow { transform-box: fill-box; transform-origin: 50% 100%; animation: grow 0.55s var(--ease) both; }
.chart-wait { height: 180px; }
.chart-empty { padding-block: 3rem; text-align: center; }
.chart-tip { position: absolute; z-index: 2; pointer-events: none; transform: translate(12px, -50%); display: flex; flex-direction: column; gap: 0.05rem; white-space: nowrap;
  background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 0.4rem 0.65rem; box-shadow: 0 8px 24px var(--shade); font-size: 0.85rem; }
.chart-tip[hidden] { display: none; }
.chart-tip.flip { transform: translate(calc(-100% - 12px), -50%); }
.chart-tip strong { font-size: 0.95rem; }
.chart-tip span { color: var(--muted); }
.chart-sum { display: flex; flex-wrap: wrap; gap: 0.35rem 1.6rem; }
.chart-sum .sum { display: inline-flex; align-items: baseline; gap: 0.4rem; }
.chart-sum strong { font-size: 1.3rem; letter-spacing: -0.01em; }
.numbers summary { font-size: 0.9rem; color: var(--muted); }
.table-scroll { max-height: 16rem; overflow: auto; }

/* the security log */
.delta.warn { color: var(--wait); }
.table-scroll.wide-table { max-height: 34rem; }
table.log { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.log th { position: sticky; top: 0; background: var(--card); text-align: left; font-weight: 600; color: var(--muted); font-size: 0.8rem;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); }
table.log td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 0; }
table.log tbody tr:hover { background: var(--raised); }
table.log td.mono { font-size: 0.85rem; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.kind { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; font-size: 0.8rem; white-space: nowrap; padding: 0.15rem 0.5rem; border-radius: 999px; }
.kind svg { width: 0.85rem; height: 0.85rem; }
.kind.warn { color: var(--wait); background: var(--wait-wash); }
.kind.bad { color: var(--bad); background: var(--bad-wash); }
.kind.calm { color: var(--muted); background: var(--raised); }
.kind.good { color: var(--good); background: var(--good-wash); }
.kind.wraps { white-space: normal; border-radius: 0.6rem; }
/* A Xemnas licence key, the one time it is shown. */
.key-reveal { border: 1px dashed var(--accent); border-radius: 0.75rem; padding: 0.9rem 1rem; background: var(--glow); }
.key-text { font: 700 1.1rem/1.3 var(--mono); letter-spacing: 0.06em; color: var(--accent); overflow-wrap: anywhere; user-select: all; }
.pre { white-space: pre-wrap; }

/* news: a featured post, a grid of cards, and a page for each post */
.news-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 1rem; }
.news-head h1 { font-size: 2rem; letter-spacing: -0.01em; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.news-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.news-card { display: flex; flex-direction: column; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  color: var(--text); text-decoration: none; transition: border-color 0.15s, transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.news-card:hover, .news-card:focus-visible { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 30px var(--shade); }
.news-card:hover .news-cover { transform: scale(1.03); }
.news-text { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.9rem 1rem 1rem; flex: 1; min-width: 0; }
.news-text h3 { font-size: 1.05rem; line-height: 1.3; text-wrap: balance; }
.news-text p { font-size: 0.92rem; overflow-wrap: anywhere; }
.news-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.8rem; margin-top: auto; }
.news-card.big { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.news-card.big .news-text { padding: 1.4rem 1.5rem; gap: 0.7rem; justify-content: center; }
.news-card.big h2 { font-size: 1.6rem; line-height: 1.2; text-wrap: balance; }
.news-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; max-width: 100%; transition: transform 0.35s var(--ease); }
.news-card .news-cover { border-bottom: 1px solid var(--line); }
.news-card.big .news-cover { aspect-ratio: auto; height: 100%; min-height: 15rem; border-bottom: 0; border-right: 1px solid var(--line); }
.news-cover.blank { display: grid; place-items: center; color: rgba(255, 255, 255, 0.85); background: linear-gradient(135deg, var(--accent-a), var(--accent-b)); }
.news-cover.blank svg { width: 2.6rem; height: 2.6rem; opacity: 0.9; }
.news-cover.blank.updates { background: linear-gradient(135deg, #4f46e5, #8b5cf6); }
.news-cover.blank.events { background: linear-gradient(135deg, #9333ea, #f59e0b); }
.news-cover.blank.patch-notes { background: linear-gradient(135deg, #0f766e, #6d28d9); }
.news-cover.thumb { width: 7.5rem; flex: none; border-radius: 8px; }
.news-cover.thumb svg { width: 1.6rem; height: 1.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; padding: 0.15rem 0.55rem;
  border-radius: 999px; background: var(--raised); color: var(--kind); --kind: var(--accent); }
.chip svg { width: 0.8rem; height: 0.8rem; }
.chip.updates { --kind: #93a5fb; } .chip.events { --kind: var(--wait); } .chip.patch-notes { --kind: #6ee7b7; } .chip.pinned { --kind: var(--text); }
.byline { display: inline-flex; align-items: center; gap: 0.55rem; min-width: 0; font-size: 0.88rem; line-height: 1.3; }
.byline strong { font-weight: 600; }
.byline .note { font-size: 0.8rem; }
.byline .face { width: 28px; height: 28px; }
.react-sum { display: inline-flex; gap: 0.6rem; }
.news-wait { height: 16rem; border-radius: 12px; }
.article { gap: 1rem; padding: 1.4rem 1.6rem 1.6rem; }
.article h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.article-cover { display: block; width: calc(100% + 3.2rem); max-width: none; margin: -1.4rem -1.6rem 0.2rem; aspect-ratio: 21 / 9; object-fit: cover;
  border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; }
.article-body { display: flex; flex-direction: column; gap: 0.85rem; font-size: 1.05rem; line-height: 1.7; max-width: 42rem; }
.article-body h2 { font-size: 1.35rem; margin-top: 0.6rem; }
.article-body h3 { font-size: 1.12rem; margin-top: 0.3rem; }
.article-body .list { gap: 0.35rem; }
blockquote.quote, .article-body blockquote { margin: 0; padding: 0.4rem 0 0.4rem 1rem; border-left: 3px solid var(--accent); color: var(--muted); }
.article-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.reactions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
button.react { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.35rem 0.8rem; font-weight: 600; transition: transform 0.15s var(--ease), border-color 0.15s, background-color 0.15s; }
button.react:hover { border-color: var(--accent); filter: none; }
button.react.mine { border-color: var(--accent); background: var(--raised); box-shadow: 0 0 0 3px var(--glow); }
button.react:active { transform: scale(0.94); }
button.react .emoji { font-size: 1.05rem; line-height: 1; }
.prev-next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.prev-next a { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.8rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); text-decoration: none; min-width: 0; transition: border-color 0.15s; }
.prev-next a:hover { border-color: var(--accent); }
.prev-next a.newer { text-align: right; }
.prev-next strong { overflow-wrap: anywhere; }
.news-row { display: flex; gap: 1rem; align-items: flex-start; padding: 0.9rem 0; border-top: 1px solid var(--line); min-width: 0; }
.news-row:first-child { border-top: 0; padding-top: 0; }
.cover-thumb { display: block; width: 10rem; max-width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
textarea.writing { min-height: 16rem; font-family: var(--sans); line-height: 1.6; }
.preview { min-height: 16rem; padding: 1rem 1.1rem; background: var(--field); border: 1px dashed var(--line); border-radius: 8px; }
@media (max-width: 44rem) {
  .news-grid, .news-grid.three, .prev-next { grid-template-columns: minmax(0, 1fr); }
  .news-card.big { display: flex; }
  .news-card.big .news-cover { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
  .news-card.big h2, .article h1, .news-head h1 { font-size: 1.45rem; }
  .article { padding: 1rem 1.1rem 1.2rem; }
  .article-cover { width: calc(100% + 2.2rem); margin: -1rem -1.1rem 0.2rem; }
  .news-cover.thumb { width: 5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .news-card:hover, .news-card:hover .news-cover { transform: none; }
}

/* Discord: its own blue, so the button is recognised at a glance */
button.discord, a.button.discord { display: inline-flex; align-items: center; gap: 0.55rem; background: var(--discord); color: #ffffff; }
button.discord svg, a.button.discord svg { width: 1.1rem; height: 1.1rem; flex: none; }
img.face { display: block; object-fit: cover; background: var(--raised); }
.face.round { border-radius: 50%; }
.on-discord { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.9rem; }
.on-discord svg { width: 1rem; height: 1rem; color: var(--discord-text); flex: none; }

/* a question that has to be answered before going on, such as confirming it's you */
.modal { width: 100%; max-width: 26rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 60px var(--shade);
  padding: 1.25rem; display: flex; flex-direction: column; gap: 0.8rem; animation: pop 0.2s var(--ease) both; }

/* the search box over the dashboard */
.palette-shade { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; align-items: flex-start; background: var(--veil);
  backdrop-filter: blur(3px); padding: calc(12vh + env(safe-area-inset-top, 0px)) 1rem 1rem; animation: fade 0.15s ease both; }
.palette-shade.leaving { opacity: 0; transition: opacity 0.15s; }
.palette { width: 100%; max-width: 36rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 60px var(--shade);
  overflow: hidden; animation: pop 0.2s var(--ease) both; }
.palette-field { display: flex; align-items: center; gap: 0.65rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.palette-field svg { width: 1.1rem; height: 1.1rem; flex: none; }
.palette-field input, .palette-field input:focus { border: 0; background: transparent; padding: 0.25rem 0; font-size: 1.05rem; box-shadow: none; }
.palette-list { list-style: none; margin: 0; padding: 0.4rem; max-height: min(22rem, 55vh); overflow-y: auto; }
.palette-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.65rem; border-radius: 8px; cursor: pointer; }
.palette-item[aria-selected="true"] { background: var(--raised); box-shadow: inset 3px 0 0 var(--accent); }
.palette-none { padding: 0.9rem; }
.palette-foot { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; padding: 0.55rem 1rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }

@keyframes ping { from { transform: scale(1); opacity: 0.55; } to { transform: scale(2.8); opacity: 0; } }
@keyframes flash { from { background: var(--glow); } to { background: transparent; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
.crumbs { font-size: 0.85rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.stat { display: flex; align-items: center; gap: 0.8rem; min-width: 0; padding: 0.95rem 1rem; background: var(--field); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); text-decoration: none; transition: border-color 0.15s, transform 0.15s var(--ease); }
a.stat:hover { border-color: var(--accent); transform: translateY(-2px); }
.stat strong { font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.stat .stack { gap: 0.25rem; flex: 1; min-width: 0; }
@media (max-width: 60rem) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; }
  .dash-grid > .span-2, .dash-grid > :last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; }
}

@media (max-width: 44rem) {
  .two, .tiles { grid-template-columns: minmax(0, 1fr); }
  .dash { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .dash-nav { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding: 0.5rem; gap: 0.8rem; scrollbar-width: thin; }
  .dash-group { flex-direction: row; gap: 0.35rem; flex: none; }
  .dash-label { display: none; }
  .dash-nav a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem 0.3rem 0.35rem; }
  .dash-nav a[aria-current="page"] { box-shadow: none; border-color: var(--accent); }
  .dash-head h1 { font-size: 1.4rem; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .search-open { min-width: 0; }
  .search-open kbd { display: none; }
}

/* ---------- the front page ---------- */
.at-home main { padding-top: 0; gap: 2.75rem; }
/* The hero runs the full width of the window, past the page's own margins. */
.hero { position: relative; margin-inline: calc(50% - 50vw); min-height: 34rem; display: grid; place-items: center; overflow: hidden; isolation: isolate;
  border-bottom: 1px solid var(--line); text-align: center; }
/* The picture is 2400 wide and joins up end to end, so moving it exactly 2400 pixels loops without a seam. */
.hero-sky { position: absolute; inset: 0; z-index: -2; background: url("/assets/void.jpg") 0 50% / 2400px 900px repeat-x var(--deep); animation: drift 240s linear infinite; }
.hero-sky.own { background-repeat: no-repeat; background-size: cover; background-position: center; animation: none; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(42rem 22rem at 50% 42%, rgba(139, 92, 246, 0.22), transparent 70%), linear-gradient(180deg, rgba(18, 13, 28, 0.15) 0%, rgba(18, 13, 28, 0.35) 60%, var(--bg) 100%); }
@keyframes drift { from { background-position: 0 50%; } to { background-position: -2400px 50%; } }
.hero-inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; padding: 5rem 1rem 4.5rem; max-width: 46rem; }
.kicker { font: 700 0.78rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: #d8ccff; background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(196, 181, 253, 0.25); border-radius: 999px; padding: 0.45rem 0.9rem; }
.hero-logo { margin: 0.2rem 0 0; font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1.05; }
.hero-logo img { display: block; width: min(36rem, 86vw); height: auto; filter: drop-shadow(0 12px 40px rgba(139, 92, 246, 0.45)); }
.hero-tag { font-size: 1.2rem; color: #e2dbef; max-width: 34rem; text-wrap: balance; }
/* The address: one big button that copies it. */
.ip { display: inline-flex; align-items: center; gap: 1rem; margin-top: 0.6rem; padding: 0.55rem 0.6rem 0.55rem 1.3rem; border-radius: 14px; cursor: pointer;
  background: rgba(18, 13, 28, 0.72); border: 1px solid rgba(196, 181, 253, 0.35); color: var(--text); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(139, 92, 246, 0.1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color 0.15s, transform 0.15s, box-shadow 0.2s; }
.ip:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5), 0 0 0 6px rgba(139, 92, 246, 0.18); filter: none; }
.ip-text { font: 600 clamp(1.05rem, 3vw, 1.35rem)/1 var(--mono); letter-spacing: 0.01em; }
.ip-hint { display: inline-flex; align-items: center; gap: 0.4rem; font: 600 0.9rem/1 var(--sans); color: var(--on-accent); padding: 0.6rem 0.85rem; border-radius: 10px;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b)); }
.ip-hint svg { width: 1rem; height: 1rem; }
.hero-live { display: inline-flex; align-items: center; gap: 0.5rem; color: #e2dbef; font-size: 0.98rem; }
.hero-live strong { color: var(--text); }
.hero-live .dot.on { box-shadow: 0 0 0 0 rgba(127, 214, 155, 0.6); animation: beat 2s infinite; }
@keyframes beat { 70% { box-shadow: 0 0 0 7px rgba(127, 214, 155, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 214, 155, 0); } }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 0.4rem; }
.hero-actions .button { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.7rem 1.15rem; border-radius: 10px; }
.hero-actions svg { width: 1.1rem; height: 1.1rem; }
a.button.glass { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.16); color: var(--text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
a.button.glass:hover { background: rgba(255, 255, 255, 0.12); filter: none; }

.home-block { display: flex; flex-direction: column; gap: 1.1rem; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.5rem 1rem; }
.section-head h2 { font-size: 1.55rem; }
.section-head p { font-size: 0.98rem; }
.more { display: inline-flex; align-items: center; gap: 0.2rem; font-weight: 600; text-decoration: none; }
.more svg { width: 1rem; height: 1rem; transition: transform 0.15s; }
.more:hover svg { transform: translateX(3px); }
.pill { font-size: 0.85rem; font-weight: 600; color: var(--muted); background: var(--raised); border-radius: 999px; padding: 0.2rem 0.65rem; }

.join-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.step { position: relative; display: flex; flex-direction: column; gap: 0.55rem; padding: 1.3rem 1.35rem 1.4rem; border-radius: 14px; color: var(--text); text-decoration: none;
  background: linear-gradient(180deg, var(--card-hi), var(--card)); border: 1px solid var(--line); overflow: hidden; transition: border-color 0.15s, transform 0.15s; }
a.step:hover { border-color: var(--accent); transform: translateY(-2px); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.35rem; }
.step-n { font: 700 0.72rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.step h3 { font-size: 1.15rem; }

.home-news { display: grid; gap: 1rem; }
.home-news.n2 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.home-news.n3 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-rows: auto auto; }
.home-news.n3 > :first-child { grid-row: span 2; }
.home-news .news-card.big { display: flex; }
.home-news .news-card.big .news-cover { aspect-ratio: 16 / 9; height: auto; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
.home-news .news-card.big .news-text { padding: 1.2rem 1.35rem 1.35rem; justify-content: flex-start; }
.home-news .news-card.big h2 { font-size: 1.45rem; }
.home-news.n3 > :not(:first-child) { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.home-news.n3 > :not(:first-child) .news-cover { aspect-ratio: auto; height: 100%; min-height: 9rem; border-bottom: 0; border-right: 1px solid var(--line); }
.home-news.n3 > :not(:first-child) .news-text p { display: none; }

.home-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem; align-items: start; }
.panel { display: flex; flex-direction: column; gap: 1rem; padding: 1.3rem 1.35rem 1.4rem; border-radius: 14px; background: linear-gradient(180deg, var(--card-hi), var(--card) 6rem);
  border: 1px solid var(--line); min-width: 0; }
.panel .section-head h2 { font-size: 1.25rem; }
.faces { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: 0.6rem; }
.face-card { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; padding: 0.8rem 0.4rem 0.65rem; border-radius: 10px; background: var(--field);
  border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 0.88rem; min-width: 0; transition: border-color 0.15s, transform 0.15s; }
.face-card span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.face-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.face-card .face.big { width: 44px; height: 44px; }
.team-list { display: flex; flex-direction: column; }
.member-row { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.2rem; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; min-width: 0; }
.member-row:first-child { border-top: 0; padding-top: 0; }
.member-row .face { width: 32px; height: 32px; }
.member-row strong { font-weight: 600; }
.member-row:hover strong { color: var(--accent); }
/* ---------- staff roles: each has its own colour, from Helper up to Owner ---------- */
.rank-helper { --rank: #6ee7b7; }
.rank-mod { --rank: #7cb4ff; }
.rank-srmod { --rank: #a5b4fc; }
.rank-admin { --rank: #ff8f8f; }
.rank-manager { --rank: #ffb36b; }
.rank-owner { --rank: #ffd46b; }
.rank { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.12rem 0.55rem 0.12rem 0.45rem; border-radius: 999px; white-space: nowrap;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.4; color: var(--rank, var(--accent));
  background: color-mix(in srgb, var(--rank, var(--accent)) 14%, transparent); border: 1px solid color-mix(in srgb, var(--rank, var(--accent)) 34%, transparent); }
.rank svg { flex: none; width: 0.85rem; height: 0.85rem; }
.rank.big { font-size: 0.85rem; gap: 0.4rem; padding: 0.25rem 0.75rem 0.25rem 0.6rem; }
.rank.big svg { width: 1rem; height: 1rem; }
.member-row .rank { margin-left: auto; }
.name-line { display: flex; align-items: center; flex-wrap: wrap; gap: 0.2rem 0.45rem; }
.title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem 0.8rem; }
.role-ladder { display: flex; flex-direction: column; gap: 0.75rem; }
.role-block { border-radius: 14px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--rank); overflow: hidden; }
.role-block > summary { list-style: none; display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.1rem; cursor: pointer; transition: background-color 0.15s; }
.role-block > summary::-webkit-details-marker { display: none; }
.role-block > summary:hover { background: var(--card-hi); }
.role-block > summary:focus-visible { outline: 2px solid var(--rank); outline-offset: -2px; }
.role-block > summary strong { font: 600 1.05rem/1.2 var(--display); color: var(--rank); }
.role-block .chev { transition: transform 0.2s var(--ease); }
.role-block[open] .chev { transform: rotate(90deg); }
.role-disc { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; color: var(--rank);
  background: color-mix(in srgb, var(--rank) 15%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rank) 35%, transparent); }
.role-disc svg { width: 1.3rem; height: 1.3rem; }
.face-stack { display: flex; align-items: center; }
.face-stack .face { width: 26px; height: 26px; margin-left: -7px; box-shadow: 0 0 0 2px var(--card); }
.face-stack .face:first-child { margin-left: 0; }
.role-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1.5rem; padding: 1rem 1.1rem 1.2rem; border-top: 1px solid var(--line); }
.role-body h3 { margin: 0 0 0.3rem; font-size: 0.95rem; }
.role-body .member-row { align-items: flex-start; }
.role-body .member-row .kind { align-self: flex-start; font-size: 0.72rem; }
.role-body .member-row button { flex: none; }
.perm-group { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.perm-group + .perm-group { margin-top: 1rem; }
.perm-group legend { padding: 0; margin-bottom: 0.55rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.role-block .toggle input:checked { background: var(--rank); }
.role-block .toggle input:checked::after { background: var(--deep); }
.toggle.perm.locked { cursor: default; }
.toggle.perm.locked strong { color: var(--muted); }
.stat-grid.one { grid-template-columns: minmax(0, 1fr); }
.stat-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-grid.one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 56rem) { .role-body { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 40rem) { .face-stack { display: none; } .role-block > summary { gap: 0.7rem; padding: 0.8rem 0.9rem; } }
@media (prefers-reduced-motion: reduce) { .role-block .chev, .role-block > summary { transition: none; } }
.rule-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; counter-reset: rule; }
.rule-list li { counter-increment: rule; display: flex; gap: 0.9rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 12px; background: var(--card);
  border: 1px solid var(--line); overflow-wrap: anywhere; }
.rule-list li::before { content: counter(rule); flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 8px;
  font: 700 0.95rem/1 var(--display); color: var(--on-accent); background: linear-gradient(135deg, var(--accent-a), var(--accent-b)); }
.rule-list li span { padding-top: 0.2rem; }

/* ---------- logging in, signing up, passwords ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); max-width: 60rem; width: 100%; margin: 1rem auto 0; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: var(--card); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35); }
.auth-art { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; padding: 2.5rem 1.5rem; text-align: center;
  background: radial-gradient(22rem 16rem at 50% 45%, rgba(139, 92, 246, 0.3), transparent 70%), url("/assets/void.jpg") 30% 50% / auto 140% var(--deep);
  border-right: 1px solid var(--line); min-height: 26rem; }
.auth-art img { width: 5rem; height: 5rem; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(139, 92, 246, 0.5)); }
.auth-art strong { font: 700 1.5rem/1.2 var(--display); }
.auth-art span { color: #d8ccff; font-size: 0.92rem; }
.auth-main { display: flex; flex-direction: column; gap: 1.1rem; padding: 2.2rem 2.3rem 2.3rem; min-width: 0; }
.auth-main h1 { font-size: 1.75rem; }
.auth-main form.stack { max-width: none; gap: 0.85rem; }
.auth-main form button[type="submit"], .auth-main .stack > button.discord { width: 100%; justify-content: center; padding-block: 0.7rem; border-radius: 9px; }
.auth-main .small-link { align-self: flex-end; font-size: 0.88rem; margin-top: -0.35rem; }
.or { display: flex; align-items: center; gap: 0.8rem; color: var(--muted); font-size: 0.85rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.center { text-align: center; }
.callout { background: var(--bad-wash); border: 1px solid rgba(241, 144, 144, 0.35); border-radius: 10px; padding: 0.7rem 0.9rem; }
.other-way { border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem 0.9rem; background: var(--field); }
.other-way summary { display: flex; align-items: center; gap: 0.55rem; color: var(--text); font-weight: 600; list-style: none; }
.other-way summary::-webkit-details-marker { display: none; }
.other-way summary svg { width: 1.05rem; height: 1.05rem; color: var(--accent); }
.other-way[open] { display: flex; flex-direction: column; gap: 0.7rem; }

@media (max-width: 56rem) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .join-steps { grid-template-columns: minmax(0, 1fr); }
  .home-news.n2, .home-news.n3 { grid-template-columns: minmax(0, 1fr); }
  .home-news.n3 > :first-child { grid-row: auto; }
  .rule-list { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-art { min-height: 0; padding: 1.6rem 1rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-art img { width: 3.2rem; height: 3.2rem; }
  .auth-main { padding: 1.5rem 1.25rem 1.6rem; }
  nav .live { display: none; }
}
@media (max-width: 30rem) {
  .hero { min-height: 0; }
  .hero-inner { padding: 3.5rem 1rem 3rem; }
  .ip { flex-direction: column; gap: 0.6rem; padding: 0.8rem; }
  .home-news.n3 > :not(:first-child) { grid-template-columns: minmax(0, 1fr); }
  .home-news.n3 > :not(:first-child) .news-cover { aspect-ratio: 16 / 9; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-sky, .hero-live .dot.on { animation: none; }
  .step, .face-card, .ip { transition: none; }
  a.step:hover, .face-card:hover, .ip:hover { transform: none; }
}
/* ---------- the band across the top of most pages ---------- */
.band { position: relative; margin-inline: calc(50% - 50vw); margin-top: -1.75rem; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.band-sky { position: absolute; inset: 0; z-index: -2; background: url("/assets/void.jpg") 62% 42% / 2400px 900px var(--deep); }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(40rem 14rem at 15% 50%, rgba(139, 92, 246, 0.25), transparent 70%), linear-gradient(180deg, rgba(18, 13, 28, 0.25), rgba(28, 24, 38, 0.92)); }
.band-inner { max-width: 70rem; margin-inline: auto; padding: 2.75rem 1rem 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 1.6rem; }
.band h1 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); line-height: 1.1; text-wrap: balance; }
.band-sub { color: #d6cde6; font-size: 1.02rem; max-width: 40rem; }
.band .face.big { width: 88px; height: 88px; border-radius: 12px; box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.3), 0 16px 40px rgba(0, 0, 0, 0.45); }
.band .button { display: inline-flex; align-items: center; gap: 0.5rem; }
.band .button svg { width: 1rem; height: 1rem; }
.band-search { display: flex; align-items: center; gap: 0.5rem; flex: 0 1 26rem; background: rgba(18, 13, 28, 0.7); border: 1px solid rgba(196, 181, 253, 0.3);
  border-radius: 12px; padding: 0.3rem 0.3rem 0.3rem 0.85rem; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.band-search svg { width: 1.1rem; height: 1.1rem; color: var(--muted); flex: none; }
.band-search input { background: transparent; border: 0; padding: 0.45rem 0.2rem; }
.band-search input:focus { box-shadow: none; }
.band-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.band-search button { border-radius: 9px; }
.reading { max-width: 48rem; width: 100%; margin-inline: auto; }
.page.reading { font-size: 1.04rem; line-height: 1.7; padding: 1.8rem 2rem 2rem; }

/* ---------- players: the podium, the table, a profile ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.25rem; border-radius: 11px; background: var(--field); border: 1px solid var(--line); }
.seg button { color: var(--muted); background: transparent; border: 0; border-radius: 8px; padding: 0.45rem 0.85rem; font-weight: 600; }
.seg button:hover { color: var(--text); filter: none; }
.seg button[aria-pressed="true"] { color: var(--on-accent); background: linear-gradient(90deg, var(--accent-a), var(--accent-b)); }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: end; }
.podium-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.45rem; padding: 1.6rem 1rem 1.3rem; border-radius: 16px; text-align: center;
  color: var(--text); text-decoration: none; background: linear-gradient(180deg, var(--card-hi), var(--card)); border: 1px solid var(--line); min-width: 0;
  transition: transform 0.15s, border-color 0.15s; }
.podium-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.podium-card strong { font: 700 1.1rem/1.2 var(--display); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-card .face.big { width: 64px; height: 64px; border-radius: 10px; }
.podium-value { font: 700 1.5rem/1.1 var(--display); background: linear-gradient(90deg, #c4b5fd, var(--accent-b)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.medal { position: absolute; top: 0.8rem; left: 0.8rem; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; font: 800 0.9rem/1 var(--display); color: #1c1826; }
.place1 { order: 2; padding-top: 2.4rem; padding-bottom: 1.8rem; border-color: rgba(250, 204, 21, 0.45); box-shadow: 0 18px 50px rgba(250, 204, 21, 0.08); }
.place1 .face.big { width: 84px; height: 84px; }
.place1 .medal { background: linear-gradient(135deg, #fde68a, #f59e0b); }
.place2 { order: 1; }
.place2 .medal { background: linear-gradient(135deg, #f1f5f9, #94a3b8); }
.place3 { order: 3; }
.place3 .medal { background: linear-gradient(135deg, #fdba74, #b45309); }
.card.flush { padding: 0.4rem 1.35rem; }
.board td, .board th { padding-block: 0.7rem; }
.board tbody tr { transition: background-color 0.15s; }
.board tbody tr:hover { background: rgba(51, 42, 71, 0.4); }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.stat-tile { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.2rem 1.3rem 1.25rem; border-radius: 14px; background: linear-gradient(180deg, var(--card-hi), var(--card));
  border: 1px solid var(--line); min-width: 0; }
.stat-tile strong { font: 700 1.8rem/1.1 var(--display); margin-top: 0.35rem; overflow-wrap: anywhere; }
.figure-wrap { display: grid; place-items: end center; }
canvas.figure { display: block; width: 84px; height: 168px; image-rendering: pixelated; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(139, 92, 246, 0.35)); }
.on-discord { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text); }
.on-discord svg { width: 1rem; height: 1rem; color: var(--discord-text); }

/* ---------- appeals ---------- */
.appeal-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.how-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; counter-reset: how; }
.how-steps li { counter-increment: how; display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: 0.75rem; }
.how-steps li::before { content: counter(how); grid-row: span 2; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  font: 700 0.9rem/1 var(--display); color: var(--accent); background: rgba(139, 92, 246, 0.14); border: 1px solid rgba(196, 181, 253, 0.25); }

/* the featured post: a tall picture can't stretch it */
.news-card.big .news-cover { max-height: 24rem; }

@media (max-width: 56rem) {
  .appeal-layout { grid-template-columns: minmax(0, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .podium { grid-template-columns: minmax(0, 1fr); }
  .place1, .place2, .place3 { order: 0; }
  .band-search { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .podium-card { transition: none; }
  .podium-card:hover { transform: none; }
}.post-page { display: flex; flex-direction: column; gap: 1.1rem; }
.appeal-layout form.row { align-items: flex-end; }
/* ---------- the staff dashboard ---------- */
.dash-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-tile.warm strong { color: var(--wait); }
.stat-tile.good strong { color: var(--good); }
.mode-pill { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; font-weight: 600; border-radius: 999px; padding: 0.3rem 0.75rem; }
.mode-pill.live { color: var(--good); background: var(--good-wash); }
.mode-pill.live .dot { background: var(--good); }
.mode-pill.test { color: var(--wait); background: var(--wait-wash); }
.mode-pill.test .dot { background: var(--wait); }
.queue-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0.8rem; padding: 0.55rem 0.2rem; border-top: 1px solid var(--line);
  color: var(--text); text-decoration: none; }
.queue-row:first-child { border-top: 0; }
.queue-row:hover strong { color: var(--accent); }
.mini-stats { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: var(--muted); font-size: 0.92rem; padding-top: 0.2rem; border-top: 1px solid var(--line); }
.mini-stats strong { color: var(--text); }
.flag-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.flag-chip { display: inline-flex; align-items: center; gap: 0.5rem; font: 600 0.85rem/1 var(--mono); padding: 0.4rem 0.4rem 0.4rem 0.65rem; border-radius: 8px;
  background: var(--field); border: 1px solid var(--line); }
.flag-chip strong { color: var(--on-accent); background: var(--accent-a); border-radius: 6px; padding: 0.2rem 0.45rem; }
.case-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem; padding: 0.55rem 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.case-line:first-child { border-top: 0; padding-top: 0; }
.appeal-card { border-left: 3px solid var(--line); }
.appeal-card.open { border-left-color: var(--wait); }
.appeal-card.accepted { border-left-color: var(--good); }
.appeal-card.denied { border-left-color: var(--bad); }
.appeal-card h2 { font-size: 1.1rem; }
@media (max-width: 56rem) { .dash-grid.two { grid-template-columns: minmax(0, 1fr); } }/* headings inside cards stay smaller than the page's own */
.card .section-head h2, .panel .section-head h2, .card > h2, .card .titled h2 { font-size: 1.12rem; }

/* ---------- bans and mutes ---------- */
/* The two tabs are links, so each list has its own address; they look like the leaderboard's buttons. */
.seg a { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--muted); text-decoration: none; border-radius: 8px; padding: 0.45rem 0.85rem; font-weight: 600;
  transition: color 0.15s, background-color 0.15s; }
.seg a:hover { color: var(--text); }
.seg a[aria-current="page"] { color: var(--on-accent); background: linear-gradient(90deg, var(--accent-a), var(--accent-b)); }
.seg-n { font-size: 0.78rem; font-variant-numeric: tabular-nums; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--raised); color: var(--text); }
.seg-n:empty { display: none; }
.seg a[aria-current="page"] .seg-n { background: rgba(255, 255, 255, 0.2); color: var(--on-accent); }
.ban-bar { align-items: center; }
.ban-wait { height: 20rem; border-radius: 14px; }
.ban-table th, .ban-table td { padding-block: 0.85rem; vertical-align: top; }
.ban-table tbody tr { transition: background-color 0.15s; }
.ban-table tbody tr:hover { background: rgba(51, 42, 71, 0.4); }
.ban-table .b-player { width: 12rem; }
.ban-table .b-reason { min-width: 12rem; overflow-wrap: anywhere; }
.ban-table .b-by { width: 9.5rem; }
.ban-table .b-when, .ban-table .b-length { white-space: nowrap; color: var(--muted); }
.ban-table .b-status { width: 9rem; }
/* Over and done with: still listed, quieter. */
.ban-table tr.is-expired .b-reason, .ban-table tr.is-lifted .b-reason { color: var(--muted); }
.b-status > .note { display: block; margin-top: 0.3rem; font-size: 0.82rem; }
.b-status > .more { display: flex; width: fit-content; margin-top: 0.3rem; font-size: 0.88rem; }
.standing { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; padding: 0.15rem 0.6rem;
  border-radius: 999px; white-space: nowrap; color: var(--muted); background: var(--raised); }
.standing .dot { width: 7px; height: 7px; background: currentColor; }
.standing.active { color: var(--bad); background: var(--bad-wash); }
.standing.lifted, .standing.clear { color: var(--good); background: var(--good-wash); }
.giver { display: inline-flex; align-items: center; gap: 0.5rem; }
.giver.xemnas { font-weight: 600; }
.giver-mark { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b)); }
.giver-mark svg { width: 0.85rem; height: 0.85rem; }
.you { margin-left: 0.5rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.ban-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.ban-foot:not(:has(:not([hidden]))) { display: none; }
.ban-how { max-width: 46rem; }
.band-note { color: #d6cde6; }
.band .standing { font-size: 0.85rem; }

/* On narrower screens each one becomes a small block: who and where it stands on top, why under that, then by whom, when and for how long. */
@media (max-width: 56rem) {
  .ban-card.flush { padding: 0.2rem 1.1rem; }
  .ban-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ban-table, .ban-table tbody { display: block; }
  .ban-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; padding-block: 0.95rem; border-bottom: 1px solid var(--line); }
  .ban-table tbody tr:last-child { border-bottom: 0; }
  .ban-table tbody tr:hover { background: none; }
  .ban-table td { display: block; width: auto; min-width: 0; padding: 0; border: 0; }
  .ban-table .b-player { order: 1; flex: 1 1 auto; width: auto; }
  .ban-table .b-status { order: 2; width: auto; margin-left: auto; text-align: right; }
  .ban-table .b-reason { order: 3; flex: 1 1 100%; min-width: 0; }
  .ban-table .b-by, .ban-table .b-when, .ban-table .b-length { order: 4; width: auto; font-size: 0.88rem; }
  .ban-table td[data-label]::before { content: attr(data-label) " "; color: var(--muted); }
  .ban-table .b-status > .more { margin-left: auto; }
  /* One player's list has no name column, so the reason leads. */
  .ban-table.one .b-reason { order: 1; flex: 1 1 14rem; }
}
@media (prefers-reduced-motion: reduce) { .seg a, .ban-table tbody tr { transition: none; } }
.standing.waiting { color: var(--wait); background: var(--wait-wash); }

/* ---------- the staff dashboard: what changed since you last looked, then the live view ---------- */
/* Its own names (sd-), so the admin dashboard keeps its look until it gets its own polish. */
/* What a check catches, in hues from the site's own purples (orchid, and the periwinkle of news updates), and plain text for the rest.
   The state colours (amber waiting, rose punished, green live) keep their meaning. */
.sd { display: flex; flex-direction: column; gap: 1.35rem; min-width: 0; --fight: #e879f9; --move: #93a5fb; --other: #d6cde6; }
/* It eases in once, when first opened; after that, switching tabs is instant. */
main > .sd:not(.intro) { animation: none; }
.sd-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.9rem 1.5rem; }
.sd-hello { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.sd-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.85rem; }
.sd-title h1 { font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.15; text-wrap: balance; }
.sd-since { color: var(--muted); font-size: 1.02rem; }
.sd-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; }
.sd-state { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; font-weight: 600; border-radius: 999px; padding: 0.32rem 0.8rem;
  color: var(--muted); background: var(--raised); }
.sd-state.live { color: var(--good); background: var(--good-wash); }
.sd-state.test { color: var(--wait); background: var(--wait-wash); }
.sd-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.sd-live .sd-pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0;
  animation: sd-ping 2.4s var(--ease) infinite; }
@keyframes sd-ping { 0% { transform: scale(0.5); opacity: 0.7; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
/* Test mode is a switch: on means checks only alert and nobody is punished. */
button.sd-switch { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.3rem 0.2rem; background: none; border: 0; color: var(--text); font-weight: 600; }
button.sd-switch:hover { filter: none; }
.sd-track { position: relative; width: 2.6rem; height: 1.5rem; border-radius: 999px; background: var(--field); border: 1px solid var(--line); transition: background-color 0.2s, border-color 0.2s; }
.sd-track::after { content: ""; position: absolute; top: 0.18rem; left: 0.2rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--muted);
  transition: transform 0.22s var(--ease), background-color 0.2s; }
.sd-switch[aria-checked="true"] .sd-track { background: var(--wait); border-color: transparent; }
.sd-switch[aria-checked="true"] .sd-track::after { transform: translateX(1.05rem); background: #1c1826; }

/* The tabs, with a quick lookup at the end of the row. */
.sd-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; border-bottom: 1px solid var(--line); }
.sd-tabs { display: flex; gap: 0.25rem; margin-bottom: -1px; }
.sd-tabs a { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 0.95rem 0.8rem; border-radius: 0; color: var(--muted); font-weight: 600;
  text-decoration: none; background: none; transition: color 0.15s; }
.sd-tabs a:hover { color: var(--text); background: none; }
.sd-tabs a::after { content: ""; position: absolute; left: 0.6rem; right: 0.6rem; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b)); transform: scaleX(0); transition: transform 0.25s var(--ease); }
.sd-tabs a[aria-current="page"] { color: var(--text); background: none; }
.sd-tabs a[aria-current="page"]::after { transform: scaleX(1); }
.sd-count { font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 1.4rem; text-align: center; padding: 0.05rem 0.4rem; border-radius: 999px;
  background: var(--raised); color: var(--text); }
.sd-count.warm { background: var(--wait); color: #1c1826; }
.sd-find { display: flex; align-items: center; gap: 0.45rem; width: min(17rem, 100%); padding: 0 0.7rem; margin-bottom: 0.5rem; border-radius: 9px; background: var(--field);
  border: 1px solid var(--line); }
.sd-find:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.sd-find svg { width: 1rem; height: 1rem; color: var(--muted); flex: none; }
.sd-find input { border: 0; background: none; padding: 0.45rem 0; }
.sd-find input:focus { box-shadow: none; }
.sd-body { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.sd.intro .sd-body > * { animation: rise 0.34s var(--ease) both; }
.sd.intro .sd-body > *:nth-child(2) { animation-delay: 0.05s; }
.sd.intro .sd-body > *:nth-child(n+3) { animation-delay: 0.1s; }

/* The catch up: one band, split by hairlines, a few words for each kind of thing that happened. */
.sd-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, var(--card-hi), var(--card)); }
.sd-part { display: flex; flex-direction: column; gap: 0.3rem; padding: 1.15rem 1.35rem 1.2rem; border-left: 1px solid var(--line); min-width: 0; margin-left: -1px; }
.sd-part-title { font: 700 1.1rem/1.3 var(--display); }
.sd-part.warm .sd-part-title { color: var(--wait); }
.sd-part.bad .sd-part-title { color: var(--bad); }
.sd-part.good .sd-part-title { color: var(--good); }
.sd-part-text { color: var(--muted); font-size: 0.93rem; overflow-wrap: anywhere; }
.sd-part .more { margin-top: auto; padding-top: 0.35rem; font-size: 0.92rem; align-self: flex-start; }

.sd-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.sd-cols.one { grid-template-columns: minmax(0, 1fr); }
.sd-cols.wide-left { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
.sd-side { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.sd-panel { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; padding: 1.1rem 1.3rem 1.2rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.sd-panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; }
.sd-panel-head h2 { font-size: 1.12rem; }
.sd-panel-head .more { margin-left: auto; font-size: 0.92rem; }
.sd-panel-head.plain { justify-content: space-between; }
.sd-note { color: var(--muted); font-size: 0.86rem; }
.sd-live { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; color: var(--good);
  background: var(--good-wash); border-radius: 999px; padding: 0.15rem 0.6rem; }
.sd-sub { font: 700 0.78rem/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 0.4rem; }
.sd-empty { color: var(--muted); padding: 0.4rem 0; }

/* Alerts, newest on top. The colour of the check says what kind: fights rose, movement amber, the rest orchid. */
.sd-alerts, .sd-queue, .sd-players, .sd-rows, .sd-bars { list-style: none; margin: 0; padding: 0; }
button.sd-older { width: 100%; justify-content: center; }
.sd-alert { display: grid; grid-template-columns: 5.6rem 24px minmax(5rem, 9.5rem) minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; padding: 0.55rem 0.5rem;
  border-top: 1px solid rgba(58, 49, 80, 0.6); font-size: 0.93rem; border-radius: 8px; }
.sd-alert:first-child { border-top-color: transparent; }
.sd-alert .face { width: 24px; height: 24px; font-size: 0.7rem; }
.sd-time { font: 0.84rem var(--mono); color: var(--muted); white-space: nowrap; }
.sd-who { font-weight: 600; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.sd-who:hover { color: var(--accent); }
.sd-check { display: flex; gap: 0.5rem; min-width: 0; align-items: baseline; }
.sd-check strong { flex: none; }
.sd-info { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sd-info.strong { color: var(--text); white-space: normal; }
.sd-vl { font: 600 0.84rem var(--mono); color: var(--muted); }
.sd-alert.fight strong, .sd-tone.fight, .sd-detected.fight strong { color: var(--fight); }
.sd-alert.move strong, .sd-tone.move, .sd-detected.move strong { color: var(--move); }
.sd-alert.other strong, .sd-tone.other, .sd-detected.other strong { color: var(--other); }
/* A new alert drops in at the top and glows for a moment, so it is noticed without anything flashing. */
@keyframes sd-arrive { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes sd-glow { 0% { background: rgba(139, 92, 246, 0.24); } 100% { background: transparent; } }
.sd-alert.arriving { animation: sd-arrive 0.42s var(--ease) both, sd-glow 2.6s ease-out both; }
.sd-here { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0; color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.sd-here::before, .sd-here::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-a)); }
.sd-here::after { background: linear-gradient(90deg, var(--accent-a), transparent); }
.sd-here a { margin-left: 0.6rem; color: var(--accent); }

/* The appeal queue and the lists of players. */
.sd-q, .sd-player { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 0.15rem 0.75rem; width: 100%; padding: 0.65rem 0.55rem;
  border-radius: 10px; color: var(--text); text-decoration: none; text-align: left; font: inherit; background: none; border: 0; transition: background-color 0.15s; }
.sd-q:hover, .sd-player:hover { background: var(--raised); filter: none; }
.sd-q .face, .sd-player .face { width: 28px; height: 28px; grid-row: span 2; }
.sd-queue li + li, .sd-players li + li { border-top: 1px solid rgba(58, 49, 80, 0.6); }
.sd-q-name { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-q-meta { color: var(--muted); font-size: 0.84rem; text-align: right; white-space: nowrap; }
.sd-q-meta.accepted { color: var(--good); } .sd-q-meta.denied { color: var(--bad); }
.sd-q-text { grid-column: 2 / -1; color: var(--muted); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-new { width: 8px; height: 8px; border-radius: 50%; background: var(--wait); box-shadow: 0 0 0 3px var(--wait-wash); flex: none; }
.sd-player { grid-template-columns: 28px minmax(0, 1fr) auto; }
.sd-player .sd-q-meta { grid-column: 2; text-align: left; }
.sd-player-n { grid-row: span 2; grid-column: 3; font: 700 1.15rem/1 var(--display); font-variant-numeric: tabular-nums; }
.sd-player-n.fight { color: var(--fight); } .sd-player-n.move { color: var(--move); } .sd-player-n.other { color: var(--other); }
.sd-player.on { background: var(--raised); box-shadow: inset 0 0 0 1px var(--accent); }
.sd-players.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.25rem 1rem; }
.sd-players.grid li + li { border-top: 0; }

/* Filters over the alerts. */
.sd-filter { display: flex; align-items: center; gap: 0.4rem; margin-left: auto; width: min(16rem, 100%); padding: 0 0.6rem; border-radius: 9px; background: var(--field); border: 1px solid var(--line); }
.sd-filter:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.sd-filter svg { width: 1rem; height: 1rem; color: var(--muted); flex: none; }
.sd-filter input { border: 0; background: none; padding: 0.4rem 0; }
.sd-filter input:focus { box-shadow: none; }
.sd-chips, .sd-canned { display: flex; flex-wrap: wrap; gap: 0.4rem; }
button.sd-chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.32rem 0.7rem; border-radius: 999px; font: 600 0.85rem/1.2 var(--sans); color: var(--text);
  background: transparent; border: 1px solid var(--line); }
button.sd-chip:hover { border-color: var(--accent); filter: none; }
button.sd-chip[aria-pressed="true"] { background: var(--raised); border-color: var(--accent); }
button.sd-chip.fight::before, button.sd-chip.move::before, button.sd-chip.other::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--other); }
button.sd-chip.fight::before { background: var(--fight); } button.sd-chip.move::before { background: var(--move); }
.sd-chip-n { font-size: 0.75rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.seg .sd-chip-n { margin-left: 0.4rem; color: inherit; opacity: 0.8; }

/* Appeals: what was detected, what they said, and the answer box. */
.sd-appeals { display: flex; flex-direction: column; gap: 1rem; }
.sd-appeal { display: flex; flex-direction: column; gap: 0.85rem; padding: 1.2rem 1.35rem 1.3rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  transition: box-shadow 0.3s, border-color 0.3s; }
.sd-appeal.open { background: linear-gradient(180deg, var(--card-hi), var(--card) 7rem); }
.sd-appeal.focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); }
.sd-appeal-top { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.sd-appeal-top .face { width: 40px; height: 40px; border-radius: 6px; }
.sd-appeal-who { flex: 1 1 12rem; min-width: 0; }
.sd-appeal-who h2 { display: flex; align-items: center; gap: 0.5rem; font-size: 1.15rem; }
.sd-appeal-who .sd-q-meta { text-align: left; }
.sd-detected { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.75rem; font-size: 0.92rem; }
.sd-detected span:not(.sd-note) { color: var(--muted); }
.sd-said { margin: 0; padding: 0.85rem 1rem; border-radius: 12px; background: var(--field); border: 1px solid rgba(58, 49, 80, 0.7); font-size: 1rem; line-height: 1.6;
  white-space: pre-wrap; overflow-wrap: anywhere; }
.sd-reply { display: flex; flex-direction: column; gap: 0.25rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.sd-reply p:last-child { white-space: pre-wrap; overflow-wrap: anywhere; }
.sd-answer { display: flex; flex-direction: column; gap: 0.6rem; padding-top: 0.85rem; border-top: 1px solid var(--line); }
.sd-label { font-weight: 600; font-size: 0.95rem; }
.sd-answer textarea { min-height: 5.5rem; }
.sd-answer:not([hidden]) { animation: rise 0.28s var(--ease) both; }
.sd-lookup button { flex: none; white-space: nowrap; }
@keyframes sd-leave { to { opacity: 0; transform: translateX(14px); } }
.sd-appeal.leaving { animation: sd-leave 0.3s var(--ease) both; }
.sd-appeal .sd-look { margin-left: auto; }

/* A player looked up. */
.sd-lookup { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.4rem 0.4rem 1rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.sd-lookup:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.sd-lookup svg { width: 1.15rem; height: 1.15rem; color: var(--muted); flex: none; }
.sd-lookup input { border: 0; background: none; font-size: 1.05rem; }
.sd-lookup input:focus { box-shadow: none; }
.sd-lookup button { border-radius: 10px; padding-inline: 1.1rem; }
.sd-found { display: flex; flex-direction: column; gap: 1.25rem; }
.sd-person { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.sd-person .face.big { width: 72px; height: 72px; border-radius: 12px; border: 1px solid var(--line); }
.sd-person-who { display: flex; flex-direction: column; gap: 0.45rem; flex: 1 1 14rem; min-width: 0; }
.sd-person-who h2 { font-size: 1.75rem; }
.sd-person-acts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); margin: 0; border-block: 1px solid var(--line); }
.sd-facts div { padding: 0.85rem 1rem 0.9rem 0; }
.sd-facts dt { color: var(--muted); font-size: 0.84rem; }
.sd-facts dd { margin: 0; font: 700 1.3rem/1.25 var(--display); font-variant-numeric: tabular-nums; }
.sd-bars { display: flex; flex-direction: column; gap: 0.55rem; }
.sd-bars li { display: grid; grid-template-columns: minmax(5rem, 8rem) minmax(0, 1fr) 2.5rem; align-items: center; gap: 0.75rem; font-size: 0.93rem; }
.sd-bars strong { text-align: right; font-variant-numeric: tabular-nums; }
.sd-bar-label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-bar-track { height: 10px; border-radius: 999px; background: var(--field); overflow: hidden; }
.sd-bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--other); }
.sd-bars .fight .sd-bar-fill { background: var(--fight); } .sd-bars .move .sd-bar-fill { background: var(--move); }
.sd-rows li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem; padding: 0.65rem 0; border-top: 1px solid rgba(58, 49, 80, 0.6); }
.sd-rows li:first-child { border-top: 0; padding-top: 0.2rem; }
.sd-ref { color: #c4b5fd; font-size: 0.9rem; }
.sd-rows .sd-info { white-space: normal; }

@media (max-width: 56rem) {
  .sd-cols, .sd-cols.wide-left { grid-template-columns: minmax(0, 1fr); }
  /* Stacked: appeals first (what staff can act on), then the live alerts, then who was flagged most. */
  .sd-side { display: contents; }
  .sd-p-appeals { order: -1; }
  .sd-p-flagged { order: 1; }
  .sd-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-part:nth-child(odd) { border-left-color: transparent; }
  .sd-part:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 44rem) {
  .sd-head { align-items: flex-start; }
  .sd-tabs { width: 100%; }
  .sd-tabs a { flex: 1; justify-content: center; padding-inline: 0.3rem; }
  .sd-find { width: 100%; margin-bottom: 0.75rem; }
  .sd-band { grid-template-columns: minmax(0, 1fr); }
  .sd-part, .sd-part:nth-child(odd) { border-left-color: transparent; }
  .sd-part + .sd-part { border-top: 1px solid var(--line); }
  .sd-panel, .sd-appeal { padding-inline: 1rem; }
  /* On a phone an alert is two lines: when, who and how strong on top, what was seen under it. */
  .sd-alert { grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.15rem 0.6rem; }
  .sd-alert .face { display: none; }
  .sd-alert .sd-check { grid-column: 1 / -1; }
  .sd-time { grid-row: 1; }
  .sd-vl { grid-row: 1; grid-column: 3; }
  .sd-filter { width: 100%; margin-left: 0; }
  .sd-bars li { grid-template-columns: minmax(4.5rem, 6rem) minmax(0, 1fr) 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sd.intro .sd-body > *, .sd-alert.arriving, .sd-appeal.leaving, .sd-answer:not([hidden]) { animation: none; }
  .sd-live .sd-pulse::after { animation: none; display: none; }
  .sd-tabs a::after, .sd-track, .sd-track::after, .sd-q, .sd-player, .sd-appeal { transition: none; }
}

/* Messages to Xemnas buyers: the form beside a preview of how their panel shows it. */
.xm-write { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.xm-preview-col { position: sticky; top: 5rem; }
.xm-message { --edge: var(--accent); display: flex; flex-direction: column; gap: 0.8rem; padding: 1rem 1.1rem; background: var(--deep);
  border: 1px solid var(--line); border-left: 3px solid var(--edge); border-radius: 8px; min-width: 0; overflow-wrap: anywhere; }
.xm-message.update { --edge: var(--good); }
.xm-message.warning { --edge: var(--wait); }
.xm-message.urgent { --edge: var(--bad); background: linear-gradient(90deg, var(--bad-wash), transparent 60%), var(--deep); }
.xm-message .article-body { font-size: 0.95rem; line-height: 1.6; gap: 0.6rem; }
.xm-message .article-body h2 { font-size: 1.1rem; margin-top: 0.2rem; }
.xm-picture { display: block; width: 100%; max-height: 14rem; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.xm-button { pointer-events: none; }
@media (max-width: 860px) {
  .xm-write { grid-template-columns: minmax(0, 1fr); }
  .xm-preview-col { position: static; }
}
/* ---------- Xemnas on your account: licences, a key shown once, the download ---------- */
.licences { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.licence { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.7rem 0.85rem;
  background: var(--field); border: 1px solid var(--line); border-radius: 8px; }
.licence .stack { gap: 0.15rem; }
.key-row { align-items: stretch; }
.key-text { flex: 1 1 18rem; min-width: 0; font-family: var(--mono); font-size: 1rem; letter-spacing: 0.04em; overflow-wrap: anywhere;
  background: var(--field); border: 1px solid var(--line); border-radius: 6px; padding: 0.55rem 0.75rem; }
.button.small { padding: 0.35rem 0.75rem; font-size: 0.9rem; }
/* The admin's Releases: what was published, newest first. */
.releases { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.release { padding: 0.75rem 0.9rem; background: var(--field); border: 1px solid var(--line); border-radius: 8px; }
.release .stack { gap: 0.2rem; }
.release .changes { margin: 0.35rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: 0.92rem; display: grid; gap: 0.2rem; }
.xm-download svg { width: 1.05rem; height: 1.05rem; flex: none; }
.xm-download { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ---------- fair play ---------- */
.fair { gap: 1rem; }
.stat-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fair .stat-tile .note { text-wrap: pretty; }
.fair-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
/* One bar per kind of cheat: what it is and how many on one line, the bar under them, all in one colour. */
.kind-bars { list-style: none; margin: 0.2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.kind-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0.4rem 0.75rem; }
.kind-bars .what { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.kind-bars .what span { color: var(--muted); font-size: 0.85rem; }
.kind-bars .n { font-weight: 600; white-space: nowrap; }
.kind-bars .track { grid-column: 1 / -1; display: block; height: 10px; }
.kind-bars .fill { display: block; height: 100%; min-width: 4px; background: var(--accent-a); border-radius: 0 4px 4px 0; transform-origin: left center; }
.kind-bars .fill.grow-x { animation: grow-x 0.6s var(--ease) 0.15s both; }
@keyframes grow-x { from { transform: scaleX(0); } }
.fair-wrong { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem 1.5rem; }
.fair-wrong h2 { margin: 0; }
.fair-small { max-width: 46rem; }
@media (max-width: 56rem) {
  .stat-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fair-split { grid-template-columns: minmax(0, 1fr); }
}
