/* Asterion Studios
   One accent (the brand's amber) on near-black, hairline structure, DIN-style
   display type to match the banner's Bahnschrift, and mono for labels the way
   the banner sets "MANAGEMENT AND SAFETY". Colour beyond the accent is kept for
   meaning: the enforcement icons wear the same orange and red they do in the
   Discord embeds, and status pills are green/amber/red. */

:root {
  --bg: #08090b;
  --bg-raise: #0c0e11;
  --surface: #101317;
  --surface-2: #15191e;
  --surface-3: #1b2026;
  --line: #1c2127;
  --line-2: #262c34;
  --line-3: #343b45;
  --text: #eceef1;
  --text-2: #a3abb5;
  --text-3: #69717c;
  --accent: #4d8dff;
  --accent-2: #7aabff;
  --accent-fill: #2f6fed;
  --accent-fill-2: #4580f5;
  --accent-ink: #ffffff;
  --accent-soft: rgb(47 111 237 / 0.16);
  --accent-line: rgb(77 141 255 / 0.42);
  --ok: #3ddc97;
  --bad: #ef5a5f;
  --warn: #e67e22;
  --info: #5aa9ff;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 64px;
  --font-display: "Barlow Semi Condensed", "Bahnschrift", "DIN Alternate", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* The poster look (branding/video/make_poster_intro.py): ink, a cyan / red split, paper, worn print. */
  --poster-ink: #090c10;
  --poster-cyan: #28c4d6;
  --poster-red: #e0243a;
  --poster-paper: #eceae2;
  --worn: url("../brand/hero/worn.webp") 0 0 / 420px repeat;
  /* Lighter, for headings smaller than the hero's: the wear fades the ink rather than cutting through it. */
  --worn-soft: url("../brand/hero/worn.webp") 0 0 / 420px repeat, linear-gradient(rgb(0 0 0 / .6) 0 0);
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='34.641' viewBox='0 0 60 34.641'%3E%3Cpath d='M0 17.32 10 0h20l10 17.32-10 17.321H10ZM40 17.32h20' fill='none' stroke='%232f6fed' stroke-width='1'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--font-body);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgb(47 111 237 / 0.49); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.08; }
h1 { font-size: clamp(40px, 6.2vw, 76px); letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 20px; }
p { margin: 0; }
.lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--text-2); max-width: 56ch; line-height: 1.65; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.mono { font-family: var(--font-mono); font-size: 0.92em; letter-spacing: 0; }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.accent { color: var(--accent); }

.icon { width: 1.1em; height: 1.1em; flex: none; stroke-width: 1.9; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent-fill); color: var(--accent-ink); padding: 8px 12px; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }

/* ── Eyebrows, links, buttons ─────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 11.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-2);
}
.eyebrow .dot { width: 11px; height: 8px; flex: none; background: var(--poster-red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 8'%3E%3Cpath d='M0 0h2.6l3 4-3 4H0l3-4zM5.4 0H8l3 4-3 4H5.4l3-4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 8'%3E%3Cpath d='M0 0h2.6l3 4-3 4H0l3-4zM5.4 0H8l3 4-3 4H5.4l3-4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.eyebrow--plain { letter-spacing: 0.12em; color: var(--text-3); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 500; transition: color .2s; }
.link-arrow .icon { transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--text); }
.link-arrow:hover .icon { transform: translateX(3px); }

.btn {
  --h: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--h); padding: 0 18px; border-radius: 999px;
  font-weight: 550; font-size: 14.5px; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .25s;
}
.btn .icon { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent-fill); color: var(--accent-ink); box-shadow: 0 0 0 0 rgb(47 111 237 / 0); }
.btn--primary:hover { background: var(--accent-fill-2); box-shadow: 0 8px 28px -10px rgb(47 111 237 / 0.84); }
.btn--ghost { background: rgb(255 255 255 / 0.02); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--line-3); background: rgb(255 255 255 / 0.05); }
.btn--danger { background: rgb(239 90 95 / 0.1); border-color: rgb(239 90 95 / 0.35); color: #ff9a9d; }
.btn--danger:hover { background: rgb(239 90 95 / 0.18); }
.btn--ok { background: rgb(61 220 151 / 0.1); border-color: rgb(61 220 151 / 0.35); color: #7ff0bf; }
.btn--ok:hover { background: rgb(61 220 151 / 0.18); }
.btn--discord { background: #5865f2; color: #fff; }
.btn--discord:hover { background: #6b77ff; box-shadow: 0 8px 28px -10px rgb(88 101 242 / 0.7); }
.btn--google { background: #fff; color: #3c4043; border-color: #dadce0; gap: 10px; }
.btn--google:hover { background: #f8f9fa; box-shadow: 0 4px 16px -6px rgb(0 0 0 / 0.18); }
.btn--google svg { flex-shrink: 0; }
.btn--sm { --h: 34px; padding: 0 14px; font-size: 13.5px; }
.btn--lg { --h: 50px; padding: 0 24px; font-size: 15.5px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .55; pointer-events: none; }
/* Sent, waiting for the page: a spinner after the label. */
.btn.is-busy::after { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }

/* ── Announcement, navigation ─────────────────────────────────────────── */
.announce {
  display: flex; justify-content: center; align-items: center; gap: 10px; padding: 9px var(--gutter);
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--text-2);
}
.announce .icon { color: var(--accent); }
/* The change of name (partials/rename_notice.html), in the poster look: ink, a cyan rule on top, a red one under. */
.rename { position: relative; background: var(--poster-ink); border-top: 3px solid var(--poster-cyan); border-bottom: 2px solid var(--poster-red); }
.rename__inner { display: flex; align-items: center; justify-content: center; gap: 12px 14px; flex-wrap: wrap;
  padding: 11px var(--gutter); max-width: var(--container); margin-inline: auto; }
.rename__mark { width: 26px; height: 26px; }
.rename__tag { font: 600 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: #fff;
  background: var(--poster-red); padding: 6px 9px 5px; }
.rename__text { font-size: 14px; line-height: 1.5; color: var(--text-2); text-align: center; max-width: 82ch; }
.rename__text strong { color: var(--poster-paper); font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: .02em; margin-right: 4px; }
.rename__domain { color: var(--poster-cyan); font-family: var(--font-mono); font-weight: 600; font-size: .95em; }
@media (max-width: 640px) {
  .rename__inner { gap: 8px 10px; padding-block: 10px; }
  .rename__text { font-size: 13px; }
  .rename__text strong { display: block; margin: 0 0 2px; }
}

.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgb(8 9 11 / 0.72); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgb(8 9 11 / 0.86); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__word { font: 600 16px/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; }
.brand__word b { font-weight: 600; color: var(--accent); margin-left: 0.45em; }
/* The event on now (site.js), small under the name: hung below it, so the bar keeps its height. */
.brand__word { position: relative; }
.brand__event { position: absolute; left: 0; top: calc(100% + 4px); font: 600 9.5px/1 var(--font-mono); letter-spacing: .14em;
  text-transform: uppercase; white-space: nowrap; color: var(--event-ink, var(--text-3)); pointer-events: auto; }
html[data-season="halloween"] { --event-ink: #ff8a1f; }
html[data-season="dayofthedead"] { --event-ink: #ff9f1c; }
html[data-season="remembrance"] { --event-ink: #ff6b7d; }
html[data-season="thanksgiving"] { --event-ink: #f2a73b; }
html[data-season="blackfriday"] { --event-ink: #f5c542; }
html:is([data-season="christmas"], [data-season="winter"]) { --event-ink: #9fd8ff; }
html[data-season="newyear"] { --event-ink: #ffd166; }
html[data-season="valentine"] { --event-ink: #ff6fae; }
html[data-season="easter"] { --event-ink: #a8e6cf; }
html[data-season="aprilfools"] { --event-ink: #3ddc97; }
.nav__links { display: flex; gap: 4px; margin-left: 8px; }
.nav__links a {
  position: relative; padding: 8px 12px; border-radius: 999px; color: var(--text-2); font-size: 14px; font-weight: 500;
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--text); background: rgb(255 255 255 / 0.04); }
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent);
}
.nav__staff { display: inline-flex; align-items: center; gap: 7px; }
.nav__links { align-items: center; }
/* The nav's two menus, Tools and Community: buttons that look like the links beside them. */
.nav-drop__button {
  position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 8px 10px 8px 12px; border-radius: 999px;
  border: 0; background: none; color: var(--text-2); font: 500 14px/1.2 var(--font-body); cursor: pointer; transition: color .2s, background .2s;
}
.nav-drop__button:hover, .nav-drop__button[aria-expanded="true"] { color: var(--text); background: rgb(255 255 255 / 0.04); }
.nav-drop__button[aria-current="page"] { color: var(--text); }
.nav-drop__button[aria-current="page"]::after {
  content: ""; position: absolute; left: calc(50% - 6px); bottom: 1px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent);
}
.nav-drop__caret { width: 14px; height: 14px; color: var(--text-3); transition: transform .2s var(--ease); }
.nav-drop__button[aria-expanded="true"] .nav-drop__caret { transform: rotate(180deg); }
.nav-drop__panel { left: 0; right: auto; width: 300px; }
/* Two columns, so a dozen tools still fit on a laptop screen; it scrolls on one shorter still. */
.menu__panel.nav-drop__panel--tools { display: grid; width: 620px; grid-template-columns: 1fr 1fr; column-gap: 6px; align-items: start;
  max-height: calc(100vh - 96px); overflow-y: auto; overscroll-behavior: contain; }
.nav-drop__panel--tools .menu__section { grid-column: 1 / -1; }
.nav-drop__panel--tools .nav-drop__all { grid-column: 1 / -1; }
.menu__panel .nav-drop__item { align-items: center; gap: 12px; padding: 8px 10px; }
.nav__links .nav-drop__item::after { display: none; }   /* the links' active dot; the item's highlight says it here */
.nav-drop__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.nav-drop__icon .icon { width: 17px; height: 17px; }
.nav-drop__icon--discord { background: rgb(88 101 242 / 0.14); border-color: rgb(88 101 242 / 0.4); color: #8b96ff; }
.nav-drop__text { display: grid; gap: 1px; min-width: 0; }
.nav-drop__text b { font-weight: 550; font-size: 14px; color: var(--text); }
.menu__panel .nav-drop__text small { margin: 0; font-size: 12px; color: var(--text-3); white-space: normal; }
.menu__panel .nav-drop__all { justify-content: space-between; margin-top: 6px; padding-top: 11px; border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); color: var(--accent); font-weight: 550; font-size: 13.5px; }
.nav-drop__all .icon { width: 15px; height: 15px; }
/* Between the studio's side and the community's. */
.nav__divider { width: 1px; height: 18px; margin: 0 8px; background: var(--line-2); }
/* Headings for the phone menu's sections; the desktop row doesn't need them. */
.nav__group-label { display: none; }
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent-fill); color: var(--accent-ink); font: 600 11px/1 var(--font-mono); }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 999px; width: 38px; height: 38px; place-items: center; cursor: pointer; }

.user-chip {
  display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px 0 5px; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgb(255 255 255 / 0.02); transition: border-color .2s;
}
.user-chip:hover { border-color: var(--line-3); }
.user-chip img, .user-chip__blank { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; }
.user-chip__name { font-size: 13.5px; font-weight: 500; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip__caret { width: 15px; color: var(--text-3); }
.menu { position: relative; }
.notif__button {
  position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgb(255 255 255 / 0.02); color: var(--text-2); cursor: pointer; transition: .2s;
}
.notif__button:hover, .notif__button[aria-expanded="true"] { border-color: var(--line-3); color: var(--text); }
.nav__search {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgb(255 255 255 / 0.02); color: var(--text-2); transition: .2s;
}
.nav__search:hover { border-color: var(--line-3); color: var(--text); }
.nav__search .icon { width: 17px; height: 17px; }

/* The search box that opens over any page (static/js/search.js), and the /search page. */
kbd { font: 500 11px/1 var(--font-mono); padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); }
dialog.searchbox {
  width: min(640px, calc(100vw - 24px)); margin: 12vh auto auto; padding: 0; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); color: var(--text);
  box-shadow: 0 40px 100px -30px rgb(0 0 0 / 0.95);
}
dialog.searchbox::backdrop { background: rgb(4 5 6 / 0.72); backdrop-filter: blur(4px); }
dialog.searchbox[open] { animation: pop .18s var(--ease); }
.searchbox__form { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.searchbox__icon { flex: none; width: 18px; height: 18px; color: var(--text-3); }
.searchbox__input { flex: 1; min-width: 0; height: 56px; border: 0; outline: 0; background: none; color: var(--text); font: 500 17px/1 var(--font-body, inherit); }
.searchbox__input::placeholder { color: var(--text-3); }
.searchbox__results { list-style: none; margin: 0; padding: 8px; max-height: min(52vh, 440px); overflow-y: auto; display: grid; gap: 2px; }
.searchbox__group { padding: 10px 10px 4px; font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.searchbox__hit { display: grid; gap: 2px; padding: 9px 12px; border-radius: 10px; color: var(--text); }
.searchbox__hit small { color: var(--text-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.searchbox__hit:hover, .searchbox__hit.is-active { background: var(--accent-soft); }
.searchbox__none { padding: 18px 12px; color: var(--text-3); }
.searchbox__foot { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); }
.searchbox__foot kbd { margin-right: 4px; }
.searchbox__foot a { color: var(--text-2); }
.searchbox__foot a:hover { color: var(--text); }
.search-page { display: flex; gap: 12px; margin-top: 18px; max-width: 720px; }
.search-page .input { flex: 1; min-width: 0; }
.search-group { font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin: 0; }
.search-list { list-style: none; margin: 0; padding: 6px; display: grid; }
.search-hit { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; color: inherit; }
.search-hit:hover { background: var(--accent-soft); }
.search-hit__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--bg-raise); border: 1px solid var(--line-2); color: var(--accent); }
.search-hit__icon .icon { width: 17px; height: 17px; }
.search-hit__text { display: grid; min-width: 0; flex: 1; }
.search-hit__text small { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-hit__go { flex: none; width: 16px; height: 16px; color: var(--text-3); }
@media (max-width: 520px) { .search-page { flex-direction: column; } dialog.searchbox { margin-top: 8vh; } .searchbox__esc { display: none; } }
.notif__button .icon { width: 17px; height: 17px; }
.user-chip[aria-expanded="true"] { border-color: var(--accent-line); }
.user-chip .count { margin-left: -2px; }
.notif.has-unread .notif__button { color: var(--accent); border-color: var(--accent-line); }
.notif.has-unread .notif__button .icon { animation: bell-ring .9s var(--ease) 1; transform-origin: 50% 10%; }
.notif__count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; background: var(--accent-fill); color: var(--accent-ink); font: 600 10.5px/1 var(--font-mono);
  box-shadow: 0 0 0 2px var(--bg);
}
.notif__panel { width: 320px; padding: 0; overflow: hidden; }
.notif__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.menu__panel .notif__settings {
  display: inline-flex; width: auto; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px;
  border: 1px solid var(--line-2); color: var(--text-2);
}
.menu__panel .notif__settings .icon { width: 13px; height: 13px; }
.notif__list { max-height: 360px; overflow-y: auto; padding: 6px; }
.menu__panel .notif__item { display: grid; gap: 2px; align-items: start; padding: 10px 10px; border-radius: var(--radius-sm); }
.notif__item strong { font-size: 13.5px; color: var(--text); font-weight: 550; }
.notif__item span { font-size: 12.5px; color: var(--text-3); }
.notif__empty { padding: 18px 10px; text-align: center; color: var(--text-3); font-size: 13.5px; }
@keyframes bell-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 290px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.8); animation: pop .18s var(--ease);
}
.menu__head { display: grid; gap: 3px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu__clearance { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--text-3); }
.menu__panel a, .menu__panel button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: var(--radius-sm);
  background: none; border: 0; text-align: left; font-size: 14px; color: var(--text-2); cursor: pointer;
}
.menu__panel a:hover, .menu__panel button:hover { background: var(--surface-2); color: var(--text); }
.menu__panel a[aria-current="page"] { color: var(--text); background: var(--accent-soft); }
.menu__panel a small { margin-left: auto; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.menu__panel a .count { margin-left: auto; }
.menu__panel form { margin: 0; }
/* ——— Website ——— : a heading on a rule, splitting the menu into what's for everyone and what's staff only. */
.menu__section { display: flex; align-items: center; gap: 10px; padding: 10px 10px 4px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.menu__section::before, .menu__section::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.menu__section::before { flex: 0 0 12px; }
.menu__foot { margin-top: 6px !important; padding-top: 6px; border-top: 1px solid var(--line); }
.menu__head .menu__signin { justify-content: center; margin-top: 10px; background: #5865f2; color: #fff; font-weight: 600; }
.menu__head .menu__signin:hover { background: #4752c4; color: #fff; }
.menu__head .menu__signin--alt { background: transparent; color: var(--text, #e8eefc); font-weight: 600; border: 1px solid rgb(255 255 255 / 0.18); margin-top: 8px; }
.menu__head .menu__signin--alt:hover { background: rgb(255 255 255 / 0.08); color: var(--text, #e8eefc); }

/* The mark: the server logo, masked from the real artwork in two layers -
   the ring and plate in white, and the A cut out of the plate, in violet. */
.mark { position: relative; display: inline-block; width: 30px; height: 30px; flex: none; transition: filter .3s; }
.mark__frame, .mark__a { position: absolute; inset: 0; }
.mark__frame {
  background: linear-gradient(160deg, #f4f6f8, #b9c0c9);
  -webkit-mask: url("../brand/frame-640.png?v=tres1") center / contain no-repeat; mask: url("../brand/frame-640.png?v=tres1") center / contain no-repeat;
}
.mark__a {
  background: linear-gradient(160deg, #9bc9ff, #2f6fed);
  -webkit-mask: url("../brand/logo-a-640.png?v=tres1") center / contain no-repeat; mask: url("../brand/logo-a-640.png?v=tres1") center / contain no-repeat;
}
.brand:hover .mark { filter: drop-shadow(0 0 6px rgb(47 111 237 / 0.84)); }

/* ── The opening sequence, on the first page of a visit ───────────────
   The ship's computer coming up (partials/intro.html). 0.1s the ring draws
   and the log starts its checks, 0.3s a sweep draws the frame, 0.5s the name
   decodes, 1.0s the A drops in, 2.15s the sync completes with every node lit,
   2.2s it reports ready, 2.8s the jump to the page. A returning visitor gets
   it in under a second (data-intro="warm"). It is all CSS, so it plays out and
   gets out of the way with no script at all; intro.js, when it runs, takes
   over the exit (html.intro-js): a jump to lightspeed, the emblem flying up
   into the header, whenever the timeline ends or a click or key skips it. */
@property --intro-sweep { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --intro-sync { syntax: "<integer>"; inherits: true; initial-value: 0; }
.intro { display: none; }
html[data-intro] { --intro-length: 2.8s; }
html[data-intro="warm"] { --intro-length: .95s; }
:is(.intro, .intro-fx) { --intro-a: #e0243a; --intro-b: #eceae2; --intro-c: #28c4d6; --intro-glyph: #e0243a; }   /* the poster's red, paper and cyan, whatever the season (the seasons keep their lines) */
html[data-intro] .intro {
  display: block; position: fixed; inset: 0; z-index: 200; overflow: hidden; pointer-events: auto; user-select: none;
  background: #050507;
  animation: intro-leave .6s ease var(--intro-length) forwards, intro-gone 0s linear calc(var(--intro-length) + .6s) forwards;
}
html.intro-done .intro { display: none; }
/* Scanlines and a vignette over everything. */
.intro::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.025) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 45%, rgb(0 0 0 / 0.75)); }
.intro__glow { position: absolute; left: 50%; top: 46%; width: 1000px; height: 1000px; translate: -50% -50%; background: radial-gradient(circle, color-mix(in srgb, var(--intro-a) 20%, transparent), transparent 58%); animation: intro-in 1.2s ease .15s both; }

/* Corners and readouts. */
.intro__corner { position: absolute; width: 26px; height: 26px; border: 0 solid var(--intro-c); opacity: .65; animation: intro-corner .6s cubic-bezier(.2, .8, .2, 1) .1s both; }
.intro__corner--tl { top: 18px; left: 18px; border-width: 1.5px 0 0 1.5px; --from: 12px 12px; }
.intro__corner--tr { top: 18px; right: 18px; border-width: 1.5px 1.5px 0 0; --from: -12px 12px; }
.intro__corner--bl { bottom: 18px; left: 18px; border-width: 0 0 1.5px 1.5px; --from: 12px -12px; }
.intro__corner--br { bottom: 18px; right: 18px; border-width: 0 1.5px 1.5px 0; --from: -12px -12px; }
.intro__hud { position: absolute; top: 28px; display: grid; gap: 3px; font-size: 10.5px; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); animation: intro-in .5s ease .2s both; }
.intro__hud b { color: var(--text-2); font-weight: 600; }
.intro__hud--tl { left: 56px; }
.intro__hud--tr { right: 56px; justify-items: end; }
.intro__signal { display: inline-flex; align-items: flex-end; gap: 2px; }
.intro__signal span { margin-right: 6px; }
.intro__signal i { width: 3px; height: calc(4px + var(--n) * 2px); background: rgb(255 255 255 / 0.12); animation: intro-lit 0s linear var(--at) forwards; }

/* The log: each check spins, then reports. */
.intro__log { position: absolute; left: 56px; bottom: 44px; width: min(420px, calc(100vw - 112px)); margin: 0; padding: 0; list-style: none; font-size: 11px; line-height: 1.95; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.intro__log li { display: flex; gap: 8px; align-items: baseline; animation: intro-line .22s ease var(--at) both; }
.intro__log li::before { content: ">"; color: var(--intro-c); }
.intro__label { color: var(--text-2); white-space: nowrap; }
.intro__lead { flex: 1; min-width: 14px; border-bottom: 1px dotted rgb(255 255 255 / 0.16); translate: 0 -4px; }
.intro__result { display: grid; justify-items: end; white-space: nowrap; }
.intro__result > * { grid-area: 1 / 1; }
.intro__result i { width: 9px; height: 9px; align-self: center; border: 1.5px solid var(--text-3); border-right-color: transparent; border-radius: 50%;
  animation: intro-spin .6s linear infinite, intro-hide 0s linear calc(var(--at) + var(--wait)) forwards; }
.intro__result b { font-weight: 500; visibility: hidden; animation: intro-show 0s linear calc(var(--at) + var(--wait)) forwards; }
.intro__result .is-ok { color: var(--ok); }
.intro__result .is-warn { color: var(--warn); }
.intro__result .is-season { color: var(--intro-c); }
.intro__result :is(.is-visitor, .is-cleared) { padding: 0 7px; border-radius: 3px; color: var(--text); background: rgb(255 255 255 / 0.08); }
.intro__result .is-cleared { color: #fff; background: var(--intro-a); box-shadow: 0 0 14px color-mix(in srgb, var(--intro-a) 60%, transparent); }
.intro__skip { position: absolute; right: 56px; bottom: 44px; font-size: 10.5px; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); animation: intro-in .5s ease .9s both; }
.intro__skip kbd { font: inherit; margin-left: 6px; padding: 4px 7px; border: 1px solid rgb(255 255 255 / 0.14); border-bottom-width: 2px; border-radius: 4px; color: var(--text-2); }
.intro__skip-tap { display: none; }
@media (hover: none) { .intro__skip-key { display: none; } .intro__skip-tap { display: inline; } }
html:not(.intro-js) .intro__skip { display: none; }

/* The centre: the emblem in its ring, the name, the status and the sync. */
.intro__core { position: absolute; left: 50%; top: 46%; translate: -50% -50%; display: grid; justify-items: center; gap: 18px; width: max-content; max-width: calc(100vw - 32px); }
.intro__emblem { position: relative; width: 210px; height: 210px; display: grid; place-items: center; margin-bottom: 4px; }
.intro__emblem svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; }
.intro__ticks { stroke: var(--intro-c); stroke-width: 3; stroke-dasharray: .5 5.5; opacity: .45; animation: intro-in .6s ease .15s both, intro-spin 30s linear infinite; }
.intro__ring circle { stroke-width: 1.2; stroke: rgb(255 255 255 / 0.06); }
.intro__ring circle + circle { stroke: var(--intro-c); stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: center; filter: drop-shadow(0 0 4px var(--intro-a));
  animation: intro-ring .9s cubic-bezier(.6, 0, .2, 1) .15s forwards; }
.intro__node { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: #050507;
  border: 1.5px solid color-mix(in srgb, var(--intro-c) 55%, transparent); transform: rotate(calc(var(--k) * 60deg - 90deg)) translateX(96.6px);
  animation: intro-in .3s ease .15s both, intro-node .2s ease var(--at) forwards; }
.intro__mark { position: relative; width: 118px; height: 118px; filter: drop-shadow(0 0 18px var(--intro-a));
  animation: intro-sweep .8s cubic-bezier(.6, 0, .2, 1) .32s both, intro-pulse .55s ease-out 2.2s; }
:is(.intro, .intro-fx) :is(.intro__sweep, .intro__frame, .intro__edge, .intro__a) { position: absolute; inset: 0; }
.intro__sweep { -webkit-mask: conic-gradient(#000 var(--intro-sweep), transparent 0); mask: conic-gradient(#000 var(--intro-sweep), transparent 0); }
.intro__frame, .intro__edge { -webkit-mask: url("../brand/frame-640.png?v=tres1") center / contain no-repeat; mask: url("../brand/frame-640.png?v=tres1") center / contain no-repeat; }
.intro__frame { background: linear-gradient(160deg, #f4f6f8, #b9c0c9); }
/* A glint riding the sweep's leading edge. */
.intro__edge { background: conic-gradient(from calc(var(--intro-sweep) - 50deg), transparent, var(--intro-b) 50deg, transparent 50.5deg); opacity: 0; animation: intro-edge .9s linear .32s; }
.intro__a { background: var(--intro-glyph); -webkit-mask: url("../brand/logo-a-640.png?v=tres1") center / contain no-repeat; mask: url("../brand/logo-a-640.png?v=tres1") center / contain no-repeat; }
.intro .intro__a { opacity: 0; translate: 0 -24px; scale: .7; animation: intro-drop .5s cubic-bezier(.3, 1.6, .5, 1) 1s forwards; }
/* As it lands, a red and a cyan copy tear across it. */
.intro .intro__a--r, .intro .intro__a--c { translate: none; scale: none; mix-blend-mode: screen; animation: intro-glitch .42s steps(1) 1.22s; }
.intro .intro__a--r { background: #ff2a6d; }
.intro .intro__a--c { background: #00e5ff; --dir: -1; }
.intro__word { display: flex; gap: .5em; font: 700 clamp(24px, 4.2vw, 40px)/1 var(--font-display); text-transform: uppercase; color: #f4f6f8; }
.intro__word span { display: flex; }
.intro__word span + span { color: var(--intro-c); }
.intro__word i { display: inline-block; width: .82em; font-style: normal; text-align: center; animation: intro-char .3s ease calc(.48s + var(--i) * 16ms) both; }
.intro__word i.is-scrambled { color: var(--intro-c); opacity: .55; }
.intro__status { display: grid; justify-items: center; height: 1.3em; font-size: 11.5px; line-height: 1.3; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.intro__status > * { grid-area: 1 / 1; }
.intro__typed { overflow: hidden; white-space: nowrap; width: 0; border-right: 1px solid var(--intro-c);
  animation: intro-type .7s steps(var(--chars, 20)) .82s forwards, intro-caret .5s step-end .82s 4, intro-leave .25s ease 2.2s forwards; }
.intro__ready { max-width: min(560px, calc(100vw - 48px)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--intro-c); animation: intro-in .35s ease 2.25s both; }
/* One season line in the status and the log, the plain one otherwise. */
html:is([data-season="halloween"], [data-season="dayofthedead"], [data-season="remembrance"], [data-season="thanksgiving"], [data-season="blackfriday"], [data-season="christmas"], [data-season="newyear"], [data-season="winter"], [data-season="valentine"], [data-season="easter"], [data-season="aprilfools"]) .intro__typed:not([data-season-text]),
html:not([data-season="dayofthedead"]) .intro [data-season-text="dayofthedead"], html:not([data-season="remembrance"]) .intro [data-season-text="remembrance"],
html:not([data-season="thanksgiving"]) .intro [data-season-text="thanksgiving"], html:not([data-season="blackfriday"]) .intro [data-season-text="blackfriday"],
html:not([data-season="halloween"]) .intro [data-season-text="halloween"], html:not([data-season="christmas"]) .intro [data-season-text="christmas"],
html:not([data-season="newyear"]) .intro [data-season-text="newyear"], html:not([data-season="winter"]) .intro [data-season-text="winter"],
html:not([data-season="valentine"]) .intro [data-season-text="valentine"], html:not([data-season="easter"]) .intro [data-season-text="easter"],
html:not([data-season="aprilfools"]) .intro [data-season-text="aprilfools"] { display: none; }
/* The sync: 24 segments and a count, rushing and stalling the way loading does. */
.intro__bar { display: flex; align-items: center; gap: 12px; width: min(320px, 76vw); filter: drop-shadow(0 0 5px color-mix(in srgb, var(--intro-a) 60%, transparent));
  animation: intro-in .5s ease .3s both, intro-sync 2.15s ease-in-out forwards; }
.intro__segs { position: relative; flex: 1; height: 6px; background: rgb(255 255 255 / 0.08);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(100% / 24 - 3px), transparent 0 calc(100% / 24)); mask: repeating-linear-gradient(90deg, #000 0 calc(100% / 24 - 3px), transparent 0 calc(100% / 24)); }
.intro__segs i { position: absolute; inset: 0 auto 0 0; width: calc(var(--intro-sync) * 1%); background: var(--intro-c); }
@supports (width: round(down, 5px, 2px)) { .intro__segs i { width: calc(round(down, var(--intro-sync) * .24, 1) / 24 * 100%); } }
.intro__pct { min-width: 9.5ch; text-align: right; font-family: var(--font-mono); font-size: 10.5px; line-height: 1; letter-spacing: .12em; color: var(--text-2); counter-reset: intro-sync var(--intro-sync); }
.intro__pct::before { content: "SYNC " counter(intro-sync) "%"; }

/* The short boot: no log, everything at once. */
html[data-intro="warm"] :is(.intro__log, .intro__skip, .intro__typed, .intro__a--r, .intro__a--c) { display: none; }
html[data-intro="warm"] .intro__ring circle + circle { animation-duration: .45s; animation-delay: 0s; }
html[data-intro="warm"] .intro__node { animation-delay: 0s, calc(.08s + var(--k) * 60ms); }
html[data-intro="warm"] .intro__signal i { animation-delay: calc(.05s + var(--n) * 70ms); }
html[data-intro="warm"] .intro__mark { animation-duration: .4s, .55s; animation-delay: 0s, .5s; }
html[data-intro="warm"] .intro__edge { animation-duration: .45s; animation-delay: 0s; }
html[data-intro="warm"] .intro .intro__a { animation-duration: .3s; animation-delay: .12s; }
html[data-intro="warm"] .intro__word i { animation-delay: calc(var(--i) * 8ms); }
html[data-intro="warm"] .intro__ready { animation-delay: .1s; }
html[data-intro="warm"] .intro__bar { animation-duration: .3s, .48s; animation-delay: 0s; }

/* With no script the centre rushes forward as the screen fades. intro.js
   takes the exit over (a failsafe still clears the screen should it stall),
   and holds the scroll until then. */
html[data-intro] .intro__core { animation: intro-rush .45s cubic-bezier(.5, 0, .75, 0) var(--intro-length) forwards; }
html.intro-js[data-intro] .intro { animation: intro-gone 0s linear 8s forwards; }
html.intro-js[data-intro] .intro__core { animation: none; }
html.intro-js:not(.intro-out) body { overflow: hidden; }
html.intro-js.intro-out .intro { animation: intro-leave .6s ease .2s forwards, intro-gone 0s linear .8s forwards; }
html.intro-js.intro-out .intro__core { animation: intro-rush .45s cubic-bezier(.5, 0, .75, 0) forwards; }
html.intro-js.intro-out :is(.intro__rule, .intro__portrait) { animation: intro-leave .3s ease forwards; }
html.intro-js.intro-out :is(.intro__hud, .intro__log, .intro__corner, .intro__skip) { animation: intro-leave .2s ease forwards; }
/* The jump, laid over the page as the screen fades (intro.js). */
.intro-fx { position: fixed; z-index: 201; pointer-events: none; }
.intro-warp { inset: 0; width: 100%; height: 100%; }
.intro-flash { width: 150vmax; height: 150vmax; translate: -50% -50%; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--intro-b) 75%, transparent), color-mix(in srgb, var(--intro-a) 30%, transparent) 22%, transparent 50%); }
.intro-flyer { z-index: 202; transform-origin: 0 0; }
.intro-ping { z-index: 202; border: 1.5px solid var(--intro-c); border-radius: 50%; }

@media (max-width: 640px) {
  .intro__hud--tr { display: none; }
  .intro__hud--tl, .intro__log { left: 28px; }
  .intro__log { bottom: 30px; width: calc(100vw - 56px); font-size: 10px; }
  .intro__skip { top: 30px; bottom: auto; right: 28px; }
  .intro__core { top: 40%; gap: 14px; }
  .intro__glow { top: 40%; }
  .intro__emblem { width: 170px; height: 170px; }
  .intro__node { transform: rotate(calc(var(--k) * 60deg - 90deg)) translateX(78px); }
  .intro__mark { width: 96px; height: 96px; }
}
@media (max-height: 560px) { .intro__log { display: none; } }

/* The boot as the poster of the studio's intro video and the home hero (2026-11-23): ink with a breath of cyan
   from the left and red from the right, worn paper and film grain, a cyan rule drawing in across the top and a
   red one along the foot, corner ticks cyan and red, the hexagon printed off-register in cyan and red, ASTERION
   in paper over STUDIOS in red, the access log in capitals - and on a wide screen Chernivor's split portrait
   glitching in on the right, as he does in the video. */
html[data-intro] .intro {
  background: radial-gradient(1100px 760px at 0% 45%, rgb(40 196 214 / .10), transparent 70%),
              radial-gradient(1100px 760px at 100% 60%, rgb(224 36 58 / .12), transparent 70%), var(--poster-ink);
}
.intro::before { content: ""; position: absolute; inset: -40%; pointer-events: none; mix-blend-mode: overlay; opacity: .45;
  background: url("../brand/hero/grain.png") repeat, url("../brand/hero/paper.webp") 0 0 / 1024px repeat;
  animation: poster-grain .9s steps(6) infinite; }
.intro__glow { background: radial-gradient(circle, rgb(40 196 214 / .09), transparent 58%); }
.intro__rule { position: absolute; left: 0; right: 0; height: 2px; transform-origin: left; animation: poster-rule .9s var(--ease) .1s both; }
.intro__rule--top { top: 74px; background: var(--poster-cyan); }
.intro__rule--foot { bottom: 24px; background: var(--poster-red); transform-origin: right; animation-delay: .25s; }
.intro__corner--tl { border-color: var(--poster-cyan); opacity: 1; }
.intro__corner--br { border-color: var(--poster-red); opacity: 1; }
.intro__corner--tr, .intro__corner--bl { display: none; }
.intro__hud { letter-spacing: .3em; }
.intro__hud b { color: var(--poster-paper); }
.intro__log li::before { content: ">>"; color: var(--poster-red); font-weight: 700; letter-spacing: -.1em; }
.intro__label { color: var(--poster-paper); }
.intro__result .is-ok { color: var(--poster-cyan); }
.intro__result .is-warn { color: var(--poster-red); }
.intro__result :is(.is-visitor, .is-cleared) { border-radius: 0; }
.intro__result .is-cleared { background: var(--poster-red); box-shadow: none; }
.intro__mark { filter: drop-shadow(-4px 0 0 rgb(40 196 214 / .85)) drop-shadow(4px 0 0 rgb(224 36 58 / .85)); animation-name: intro-sweep, intro-print-pulse; }
.intro__frame { background: var(--poster-paper); }
.intro__word { color: var(--poster-paper); -webkit-mask: var(--worn-soft); mask: var(--worn-soft); }
.intro__word span + span { color: var(--poster-red); }
.intro__word i.is-scrambled { color: var(--poster-cyan); }
.intro__bar { filter: none; }
.intro__segs i { background: var(--poster-red); }
.intro__pct { color: var(--poster-paper); }
.intro__portrait { display: none; }
@media (min-width: 1100px) and (min-height: 620px) {
  .intro__core, .intro__glow { left: 34%; }
  .intro__portrait { display: block; position: absolute; right: 3vw; bottom: 0; height: min(74vh, 700px); aspect-ratio: 958 / 1100;
    background: url("../brand/hero/asteri.webp") center bottom / contain no-repeat;
    animation: intro-portrait 1.1s var(--ease) .35s both; }
  html[data-intro="warm"] .intro__portrait { animation-duration: .45s; animation-delay: 0s; }
}
@media (max-width: 640px) { .intro__rule--top { top: 66px; } .intro__rule--foot { bottom: 14px; } }
@keyframes intro-print-pulse { 45% { filter: drop-shadow(-9px 0 0 rgb(40 196 214 / .9)) drop-shadow(9px 0 0 rgb(224 36 58 / .9)) brightness(1.5); } }
@keyframes intro-portrait {
  0% { opacity: 0; transform: translateX(46px); filter: brightness(2.4) drop-shadow(-14px 0 0 rgb(40 196 214 / .8)) drop-shadow(14px 0 0 rgb(224 36 58 / .8)); }
  30% { opacity: 1; }
  55% { filter: brightness(1.2) drop-shadow(-6px 0 0 rgb(40 196 214 / .6)) drop-shadow(6px 0 0 rgb(224 36 58 / .6)); }
  100% { opacity: 1; transform: none; filter: brightness(1) drop-shadow(0 0 0 transparent) drop-shadow(0 0 0 transparent); }
}
@media (prefers-reduced-motion: reduce) { .intro::before, .intro__rule, .intro__portrait { animation: none; } }

@keyframes intro-in { from { opacity: 0; } }
@keyframes intro-leave { to { opacity: 0; } }
@keyframes intro-gone { to { visibility: hidden; pointer-events: none; } }
@keyframes intro-corner { from { opacity: 0; translate: var(--from); } }
@keyframes intro-lit { to { background-color: var(--intro-c); } }
@keyframes intro-line { from { opacity: 0; translate: -6px 0; } }
@keyframes intro-spin { to { rotate: 1turn; } }
@keyframes intro-show { to { visibility: visible; } }
@keyframes intro-hide { to { visibility: hidden; } }
@keyframes intro-ring { to { stroke-dashoffset: 0; } }
@keyframes intro-node { to { background: var(--intro-b); border-color: var(--intro-b); box-shadow: 0 0 10px 2px var(--intro-a); } }
@keyframes intro-sweep { from { --intro-sweep: 0deg; } to { --intro-sweep: 360deg; } }
@keyframes intro-edge { 10%, 80% { opacity: 1; } }
@keyframes intro-drop { to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes intro-glitch {
  0% { opacity: .85; translate: calc(-7px * var(--dir, 1)) 0; clip-path: inset(8% 0 62% 0); }
  20% { translate: calc(5px * var(--dir, 1)) 0; clip-path: inset(48% 0 22% 0); }
  40% { translate: calc(-3px * var(--dir, 1)) 0; clip-path: inset(28% 0 44% 0); }
  60% { translate: calc(4px * var(--dir, 1)) 0; clip-path: inset(70% 0 6% 0); }
  80% { opacity: .5; translate: calc(-2px * var(--dir, 1)) 0; clip-path: inset(15% 0 70% 0); }
  100% { opacity: 0; }
}
@keyframes intro-pulse { 45% { filter: drop-shadow(0 0 42px var(--intro-c)) brightness(1.7); } }
@keyframes intro-char { from { opacity: 0; translate: 0 .3em; filter: blur(4px); } }
@keyframes intro-type { to { width: calc(var(--chars, 20) * (1ch + .2em) + 1ch); } }
@keyframes intro-caret { 50% { border-color: transparent; } }
@keyframes intro-sync { 11.6% { --intro-sync: 6; } 30.2% { --intro-sync: 29; } 39.5% { --intro-sync: 33; } 58.1% { --intro-sync: 61; } 69.8% { --intro-sync: 64; } 90.7% { --intro-sync: 93; } to { --intro-sync: 100; } }
@keyframes intro-rush { to { opacity: 0; scale: 1.5; filter: blur(6px); } }
@keyframes intro-lattice-out { to { opacity: 0; scale: 2.4; } }

/* Every visit: the headline cascades in letter by letter, and the emblem
   powers up - after the opening when there is one. With intro.js running,
   the page holds its entrance until the jump, however soon that comes. */
.page-home { --enter: .15s; }
html[data-intro] .page-home { --enter: calc(var(--intro-length) + .3s); }
html[data-intro] :is(.hero, .page-head, main > .section:first-of-type) [data-reveal] { transition-delay: calc(var(--delay, 0ms) + var(--intro-length) + .3s); }
html.intro-js[data-intro] .page-home { --enter: .25s; }
html.intro-js[data-intro] :is(.hero, .page-head, main > .section:first-of-type) [data-reveal] { transition-delay: calc(var(--delay, 0ms) + .25s); }
html.intro-js:not(.intro-out) :is(.hero__title .char, .page-home .emblem, .page-home .emblem__ring) { animation-play-state: paused; }
html.intro-js:not(.intro-out) :is(.hero, .page-head, main > .section:first-of-type) [data-reveal].is-in { opacity: 0; transform: translateY(14px); }
.hero__title .word { display: inline-block; white-space: nowrap; }
.hero__title .char { display: inline-block; opacity: 0; transform: translateY(.45em) rotate(6deg); filter: blur(6px);
  animation: char-in .7s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--enter) + .25s + var(--i) * 24ms); }
@keyframes char-in { to { opacity: 1; transform: none; filter: blur(0); } }
/* On a phone the letters rise without the blur, which is the costly part. */
@media (max-width: 760px) { .hero__title .char { filter: none; animation-name: char-in-lite; } }
@keyframes char-in-lite { to { opacity: 1; transform: none; } }
.page-home .emblem { animation: emblem-boot 1.3s cubic-bezier(.2, .8, .2, 1) var(--enter) both; }
.page-home .emblem__ring { animation: ring-spin-up 1.6s cubic-bezier(.2, .8, .2, 1) var(--enter) both; }
@keyframes emblem-boot { 0% { opacity: 0; scale: .7; filter: brightness(3) blur(8px); } 60% { opacity: 1; filter: brightness(1.4) blur(0); } 100% { opacity: 1; scale: 1; filter: none; } }
@keyframes ring-spin-up { from { rotate: -140deg; opacity: 0; } to { rotate: 0deg; opacity: 1; } }

/* Right now at the studio: a grid of tiles in mixed sizes (a "bento" grid). Tiles that
   belong to a project glow in its colour, --accent-project, from its picture. */
.section--bento { padding-bottom: 24px; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(170px, auto); gap: 14px; }
.bento__tile {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-width: 0;
  padding: 22px; border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--surface)); color: var(--text);
  transition: border-color .25s, transform .35s var(--ease);
}
a.bento__tile:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.bento__label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.bento__tile--stat strong { font: 700 clamp(40px, 4.4vw, 58px)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.bento__tile--stat > span:last-child { font-size: 13px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.bento__tile--stat > span:last-child .icon { width: 14px; }
.bento__tile--discord { border-color: rgb(88 101 242 / 0.4); background: linear-gradient(160deg, rgb(88 101 242 / 0.18), var(--surface)); }
.bento__tile--discord .bento__label { color: #9aa4ff; }
.bento__tile--asteri strong { color: var(--accent-2); }
.bento__tile--donate { border-color: var(--accent-line); background: linear-gradient(160deg, var(--accent-soft), var(--surface)); }
.bento__tile--donate .bento__label { color: var(--accent); }
.bento__tile--donate strong { color: var(--accent); }
.bento__tile--now {
  grid-column: span 2; grid-row: span 2; justify-content: flex-end; padding: 0; min-height: 360px;
  border-color: color-mix(in srgb, var(--accent-project) 40%, transparent);
  background: radial-gradient(120% 90% at 50% 20%, color-mix(in srgb, var(--accent-project) 22%, transparent), transparent 70%), var(--surface);
}
.bento__shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bento__tile--now:hover .bento__shot { transform: scale(1.03); }
.bento__tile--now::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(5 6 8 / 0.95), rgb(5 6 8 / 0.15) 58%, transparent); pointer-events: none; }
.bento__logo { position: absolute; left: 50%; top: 42%; width: 42%; max-width: 220px; transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 40px color-mix(in srgb, var(--accent-project) 60%, transparent)); }
.bento__now-copy { position: relative; z-index: 1; display: grid; gap: 8px; justify-items: start; padding: 24px; }
.bento__pill { padding: 5px 10px; border-radius: 999px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  background: color-mix(in srgb, var(--accent-project) 20%, transparent); color: color-mix(in srgb, var(--accent-project) 70%, white); }
.bento__now-title { font: 700 clamp(28px, 3vw, 36px)/1.05 var(--font-display); }
.bento__now-text { font-size: 15px; color: var(--text-2); max-width: 46ch; }
.bento__tile--video { grid-column: span 2; flex-direction: row; align-items: center; justify-content: flex-start; gap: 18px; padding: 16px; }
.bento__video-thumb { position: relative; flex: 0 0 min(46%, 260px); aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; }
.bento__video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bento__video-thumb .icon { position: absolute; left: 50%; top: 50%; width: 42px; height: 46px; padding: 12px 11px 12px 13px; transform: translate(-50%, -50%);
  background: var(--poster-red); color: #fff; fill: currentColor; clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%); }
.bento__video-copy { display: grid; gap: 8px; min-width: 0; }
.bento__video-copy strong { font: 700 22px/1.15 var(--font-display); }
.bento__tile--tools { grid-column: span 2; justify-content: flex-start; }
.bento__tools { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento__tile--now, .bento__tile--video, .bento__tile--tools { grid-column: auto; }
  .bento__tile--video { flex-direction: column; align-items: stretch; }
  .bento__video-thumb { flex-basis: auto; }
}

/* The projects: a full-width band each, lit in the project's own colour. */
.section--bands { padding-bottom: 32px; }
.section--bands .section__head { margin-bottom: 26px; }
.band {
  border-top: 1px solid color-mix(in srgb, var(--accent-project) 28%, transparent);
  background: radial-gradient(1000px 420px at 22% 50%, color-mix(in srgb, var(--accent-project) 17%, transparent), transparent 70%), var(--bg);
}
.band--shot { background: radial-gradient(1100px 440px at 78% 50%, color-mix(in srgb, var(--accent-project) 19%, transparent), transparent 70%), var(--bg); }
.band:last-of-type { border-bottom: 1px solid color-mix(in srgb, var(--accent-project) 28%, transparent); }
.band__inner { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(24px, 4vw, 48px); padding-block: clamp(36px, 5vw, 56px); }
.band__logo { flex: 0 0 180px; display: grid; place-items: center; }
.band__logo img { width: 160px; height: 160px; object-fit: contain; filter: drop-shadow(0 0 40px color-mix(in srgb, var(--accent-project) 55%, transparent)); transition: transform .8s var(--ease); }
.band:hover .band__logo img { transform: scale(1.05) rotate(-2deg); }
.band__copy { flex: 999 1 420px; min-width: 0; display: grid; gap: 14px; justify-items: start; }
.band__kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--accent-project) 70%, white); }
.band__title { margin: 0; font: 700 clamp(36px, 4.4vw, 52px)/1 var(--font-display); }
.band__title a:hover { color: color-mix(in srgb, var(--accent-project) 60%, white); }
.band__text { margin: 0; max-width: 58ch; font-size: 17px; line-height: 1.55; color: var(--text-2); }
.band__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.band__on { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.band__store { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.band__store .icon { width: 16px; }
.band__store--curseforge { background: #f16436; color: #fff; }
.band__store--curseforge:hover { background: #ff7a4d; color: #fff; }
.band__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: color-mix(in srgb, var(--accent-project) 70%, white); }
.band__more .icon { width: 16px; transition: transform .25s var(--ease); }
.band__more:hover .icon { transform: translateX(3px); }
.band__shot { flex: 1 1 420px; border-radius: 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent-project) 30%, transparent); box-shadow: 0 30px 80px rgb(0 0 0 / .5); }
.band__shot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s var(--ease); }
.band:hover .band__shot img { transform: scale(1.02); }
.section--bands + .container .cat-chips { margin-top: 0; }

/* The hero's link to the mod updated last. */
.hero__release {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%; margin-top: 4px; padding: 8px 16px 8px 8px;
  border: 1px solid var(--line-2); border-radius: 14px; background: rgb(16 19 23 / 0.8); transition: border-color .2s, background-color .2s;
}
.hero__release:hover { border-color: var(--accent-line); background: var(--surface-2); }
.hero__release img, .hero__release-glyph { flex: none; width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.hero__release-glyph { display: grid; place-items: center; background: var(--surface-3); color: var(--accent); }
.hero__release-text { display: grid; gap: 3px; min-width: 0; line-height: 1.3; }
.hero__release-text small { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hero__release-text strong { font-size: 14px; font-weight: 550; }
.hero__release > .icon { flex: none; width: 16px; color: var(--text-3); transition: transform .25s var(--ease), color .2s; }
.hero__release:hover > .icon { color: var(--text); transform: translateX(3px); }

/* Every category, with how much is in it, under the selected work. */
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cat-chips a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 550; transition: border-color .2s, background-color .2s; }
.cat-chips a:hover { border-color: var(--accent-line); background: var(--surface-2); }
.cat-chips .icon { width: 16px; height: 16px; color: var(--accent); }
.cat-chips b { font: 500 12px var(--font-mono); color: var(--accent-2); }

/* The Discord's member count, beside its invite. */
.discord-count { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .06em; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) {
  .hero__title .char { animation: none; opacity: 1; transform: none; filter: none; }
  .page-home .emblem, .page-home .emblem__ring { animation: none; }
}

/* ── Toasts ───────────────────────────────────────────────────────────── */
.toast {
  position: fixed; z-index: 60; left: 50%; top: calc(var(--nav-h) + 14px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; max-width: min(560px, calc(100vw - 32px));
  padding: 11px 12px 11px 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.9); font-size: 14px; animation: toast-in .35s var(--ease);
}
/* A deploy or a new season while a form is half-written: a refresh offered, not forced (site.js). */
.update-bar {
  position: fixed; z-index: 60; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px);
  padding: 9px 9px 9px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--accent-line);
  box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.9), 0 0 30px -12px var(--accent); font-size: 14px; animation: toast-in .35s var(--ease);
}
.toast--ok .icon:first-child { color: var(--ok); }
.toast--warn .icon:first-child { color: var(--accent); }
.toast--bad .icon:first-child { color: var(--bad); }
.toast__close { background: none; border: 0; color: var(--text-3); cursor: pointer; padding: 2px; margin-left: 4px; }
.toast.is-leaving { opacity: 0; transform: translate(-50%, -8px); transition: .3s; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
/* Deep space behind the lattice: two layers of stars drifting up at different
   speeds. Each moves exactly one tile and starts over, so the loop never shows,
   and only transforms change, so the browser never repaints them. */
.hero::before, .hero::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; pointer-events: none;
  animation: hero-stars var(--drift) linear infinite;
}
.hero::before {
  --tile: 260px; --drift: 70s; bottom: -260px; opacity: .45;
  background-image:
    radial-gradient(1px 1px at 23px 41px, #fff, transparent), radial-gradient(1px 1px at 97px 173px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 151px 63px, #b8d7ff, transparent), radial-gradient(1px 1px at 211px 219px, #fff, transparent),
    radial-gradient(1px 1px at 60px 230px, #fff, transparent), radial-gradient(1.5px 1.5px at 240px 120px, #fff, transparent),
    radial-gradient(1px 1px at 130px 12px, #a6d3ff, transparent);
  background-size: 260px 260px;
}
.hero::after {
  --tile: 410px; --drift: 150s; bottom: -410px; opacity: .3;
  background-image:
    radial-gradient(2px 2px at 70px 90px, #fff, transparent), radial-gradient(1.5px 1.5px at 300px 40px, #d4e9ff, transparent),
    radial-gradient(2px 2px at 220px 330px, #fff, transparent), radial-gradient(1.5px 1.5px at 380px 210px, #82afff, transparent);
  background-size: 410px 410px;
}
@keyframes hero-stars { to { transform: translateY(calc(-1 * var(--tile))); } }
@media (prefers-reduced-motion: reduce) { .hero::before, .hero::after { animation: none; } }
.hero__lattice { position: absolute; inset: 0; pointer-events: none; }
.hero__lattice::before, .hero__lattice::after {
  content: ""; position: absolute; inset: 0; background: var(--hex); background-size: 60px 34.641px;
}
.hero__lattice::before { opacity: .07; -webkit-mask: linear-gradient(180deg, #000 20%, transparent 95%); mask: linear-gradient(180deg, #000 20%, transparent 95%); }
.hero__lattice::after {
  opacity: .5; transition: opacity .6s;
  -webkit-mask: radial-gradient(circle 240px at var(--mx, 70%) var(--my, 40%), #000, transparent 70%);
  mask: radial-gradient(circle 240px at var(--mx, 70%) var(--my, 40%), #000, transparent 70%);
}
/* The avatar walking the header's bottom edge (static/js/avatar.js). The
   canvas covers the whole header, so he can be carried right up to the top bar,
   and sits in front of the text, but takes no clicks: the script hit-tests him. */
.hero__avatar { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__avatar canvas, .avatar-stage canvas { display: block; width: 100%; height: 100%; }
[data-avatar-area].is-over-avatar { cursor: grab; }
[data-avatar-area].is-carrying-avatar, [data-avatar-area].is-carrying-avatar * { cursor: grabbing !important; user-select: none; }
/* His own stage on other pages: the support desk beside the heading, and the 404's floor. */
.avatar-stage { position: relative; width: 100%; height: 250px; }
.page-head .avatar-stage--desk { position: absolute; right: max(var(--gutter), calc((100% - var(--container)) / 2)); bottom: 0; width: 440px; height: 100%; min-height: 240px; z-index: 2; }
.avatar-stage--lost { max-width: 620px; height: 230px; margin: 0 auto -12px; }
@media (max-width: 1020px) { .page-head .avatar-stage--desk { display: none; } }
/* Visiting another page: the whole title area is his, in front of its text. */
.avatar-stage--visit { display: none; }
.page-head > .avatar-stage--visit { display: block; position: absolute; inset: 0; z-index: 2; height: auto; pointer-events: none; }
.avatar-stage--visit .avatar-deaths { display: none; }
@media (max-width: 760px) { .page-head > .avatar-stage--visit { display: none; } }
/* The shared count of how many times he's been killed, live. */
.avatar-deaths {
  position: absolute; left: 18px; bottom: 14px; font: 500 11px/1 var(--font-mono); letter-spacing: .06em;
  color: var(--text-3); opacity: 0; transition: opacity .4s; pointer-events: none;
}
.avatar-deaths b { color: var(--accent); font-weight: 600; }
.avatar-deaths { text-shadow: 0 1px 6px rgb(0 0 0 / 0.85); }  /* readable over the season's fog */
.avatar-deaths.is-shown { opacity: 1; }
/* What Asteri says, over his head the way Minecraft's chat-bubble mods show it: on the see-through dark
   plate a name tag has, in white pixel letters with the game's hard grey shadow - square, no tail. */
.avatar-bubble {
  position: absolute; left: 0; top: 0; max-width: 250px; padding: 4px 8px 5px; border-radius: 0; background: rgb(0 0 0 / 0.5);
  color: #ffffff; font: 400 15px/1.3 "Pixelify Sans", var(--font-mono); letter-spacing: .02em; text-align: center;
  text-shadow: 2px 2px 0 #3f3f3f; transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .15s;
  pointer-events: none; width: max-content;
}
.avatar-bubble.is-shown { opacity: 1; }
/* Asteri's settings on a screen too narrow for him: there, but greyed out. */
.settings-card.is-unavailable .settings-group--sound { opacity: .45; }
.settings-card__note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); color: var(--text-2); font-size: 14px; }
.settings-card__note .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.settings-card__note[hidden] { display: none; }
/* The speaker in the header's corner: Asteri's sound and voice, off or on. */
.avatar-mute {
  position: absolute; right: 18px; bottom: 12px; z-index: 3; display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: 999px; background: rgb(8 9 11 / 0.6); color: var(--text-3);
  cursor: pointer; transition: color .2s, border-color .2s;
}
.avatar-mute:hover, .avatar-mute:focus-visible { color: var(--text); border-color: var(--accent); }
.avatar-mute .icon { width: 15px; height: 15px; }
.avatar-mute .avatar-mute__off, .avatar-mute[aria-pressed="true"] .avatar-mute__on { display: none; }
.avatar-mute[aria-pressed="true"] .avatar-mute__off { display: block; }
.avatar-mute[hidden] { display: none; }
@media (max-width: 760px) { .avatar-mute { display: none; } }
/* A lit creeper's hiss, over its head. */
.avatar-hiss {
  position: absolute; left: 0; top: 0; padding: 4px 9px; border-radius: 10px; background: #0d8a0b; color: #eaffe6;
  font: 700 12px/1.2 var(--font-mono); letter-spacing: .08em; white-space: nowrap;
  transform: translate(-50%, calc(-100% - 8px)); opacity: 0; transition: opacity .15s; pointer-events: none;
}
.avatar-hiss.is-shown { opacity: 1; }
/* With its health bar showing, the hiss sits above it. */
.avatar-hiss.is-raised { transform: translate(-50%, calc(-100% - 22px)); }
.avatar-health.avatar-health--creeper { width: 50px; }
/* The overhead health bar, green over red, shown once he's hurt. */
.avatar-health {
  position: absolute; left: 0; top: 0; width: 58px; height: 7px; border-radius: 4px; overflow: hidden;
  background: #b3261e; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.65), 0 4px 10px -4px rgb(0 0 0 / 0.8);
  transform: translate(-50%, -100%); opacity: 0; transition: opacity .3s; pointer-events: none;
}
.avatar-health.is-shown { opacity: 1; }
.avatar-health__fill { display: block; width: 100%; height: 100%; background: #3ddc5f; transition: width .25s ease, background-color .25s; }
.avatar-health.is-low .avatar-health__fill { background: #f0b429; }
.avatar-health.is-critical .avatar-health__fill { background: #ff6a3d; }
/* With the bar showing, the speech bubble sits above it. */
[data-avatar-stage].has-health .avatar-bubble { transform: translate(-50%, calc(-100% - 24px)); }
/* The page breaking under him (static/js/wreckage.js): shattered glass and scorch
   marks behind him, the pieces in flight on a canvas of their own. */
.wreck-glass, .wreck-fx, .wreck-scan { position: absolute; pointer-events: none; }
.wreck-fx, .wreck-scan { inset: 0; }
.wreck-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Put back: the marks flicker out like a bad signal. */
.is-wreck-gone { animation: wreck-out .45s steps(6, end) forwards; }
@keyframes wreck-out {
  0% { opacity: 1; }
  20% { opacity: .25; translate: 5px 0; }
  40% { opacity: .9; translate: -4px 0; clip-path: inset(25% 0 35% 0); }
  60% { opacity: .4; translate: 2px 0; clip-path: inset(0 0 55% 0); }
  80% { opacity: .7; translate: 0 0; clip-path: inset(60% 0 0 0); }
  100% { opacity: 0; }
}
/* The rewind: the page flickers out of register, with scanlines rolling over it. */
.wreck-scan { opacity: 0; background: repeating-linear-gradient(0deg, rgb(255 255 255 / 0.06) 0 1px, transparent 1px 3px); }
[data-avatar-area].is-rewinding .wreck-scan { animation: wreck-scan 1.15s steps(9) both; }
[data-avatar-area].is-rewinding .hero__grid, [data-avatar-area].is-rewinding > .container { animation: wreck-rgb 1.15s steps(1) both; }
@keyframes wreck-scan { 0% { opacity: .9; background-position: 0 0; } 60% { opacity: .5; background-position: 0 48px; } 100% { opacity: 0; background-position: 0 96px; } }
@keyframes wreck-rgb { 0%, 18%, 36%, 61%, 82% { filter: url(#wreck-rgb); } 9%, 27%, 48%, 70%, 100% { filter: none; } }
/* A creeper going off: a flash where it was, and the whole screen glitching. */
.wreck-flash {
  position: fixed; inset: 0; z-index: 70; pointer-events: none;
  background: radial-gradient(circle at var(--x) var(--y), rgb(255 236 200 / 0.7), rgb(255 140 40 / 0.3) 16%, transparent 50%);
  animation: wreck-flash .65s ease-out forwards;
}
@keyframes wreck-flash { to { opacity: 0; } }
html.wreck-glitch :is(.nav, main) { animation: wreck-jitter .7s steps(1) both; }
@keyframes wreck-jitter {
  0% { translate: 7px 0; filter: url(#wreck-rgb); }
  14% { translate: -8px 2px; }
  28% { translate: 3px -2px; filter: none; }
  42% { translate: -4px 0; filter: url(#wreck-rgb); clip-path: inset(8% 0 0 0); }
  57% { translate: 2px 1px; clip-path: none; }
  71% { translate: -1px 0; filter: none; }
  100% { translate: 0 0; }
}
/* A hole broken through the header's top or bottom edge. On the page itself, so it
   straddles the line, above the sticky top bar (50) and under toasts (60). */
.edge-damage { position: absolute; z-index: 55; pointer-events: none; transition: opacity 2.2s ease; }
.edge-damage.is-fading { opacity: 0; }
/* --shake and --shake-time are set by the script from how hard he hit. */
@keyframes hero-shake {
  0%, 100% { transform: none; }
  15% { transform: translate(calc(var(--shake) * -1), calc(var(--shake) * 0.4)); }
  30% { transform: translate(var(--shake), calc(var(--shake) * -0.6)); }
  45% { transform: translate(calc(var(--shake) * -0.7), calc(var(--shake) * 0.5)); }
  60% { transform: translate(calc(var(--shake) * 0.5), calc(var(--shake) * -0.3)); }
  80% { transform: translate(calc(var(--shake) * -0.25), calc(var(--shake) * 0.15)); }
}
.hero.is-shaken .hero__grid, .page-head.is-shaken > .container { animation: hero-shake var(--shake-time, .36s) linear; }
/* Knocked one way by a hit, then springing back past centre and settling. */
@keyframes hero-jolt {
  0%, 100% { transform: none; }
  12% { transform: translate(var(--jolt-x), var(--jolt-y)) rotate(var(--jolt-r)); }
  30% { transform: translate(calc(var(--jolt-x) * -0.55), calc(var(--jolt-y) * -0.55)) rotate(calc(var(--jolt-r) * -0.55)); }
  50% { transform: translate(calc(var(--jolt-x) * 0.3), calc(var(--jolt-y) * 0.3)) rotate(calc(var(--jolt-r) * 0.3)); }
  70% { transform: translate(calc(var(--jolt-x) * -0.14), calc(var(--jolt-y) * -0.14)) rotate(calc(var(--jolt-r) * -0.14)); }
  86% { transform: translate(calc(var(--jolt-x) * 0.05), calc(var(--jolt-y) * 0.05)); }
}
.hero.is-jolted .hero__grid, .page-head.is-jolted > .container { animation: hero-jolt var(--shake-time, .4s) cubic-bezier(.2, .7, .3, 1); }
@media (max-width: 760px) { .hero__avatar, .avatar-stage { display: none; } }
.hero__grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center;
  gap: clamp(24px, 5vw, 72px); padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 104px);
}
.hero__copy { display: grid; gap: 24px; justify-items: start; }
.hero__title { max-width: 14ch; text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* The emblem: the server logo, lit. The frame catches a travelling band of
   light under a bezel of ticks; the A switches on like a tube lamp, and a
   light in each of the ring's three openings pulses in turn. */
.emblem { position: relative; width: min(470px, 100%); aspect-ratio: 1; justify-self: center; animation: emblem-in 1.2s var(--ease) both; }
.emblem__stage {
  position: absolute; inset: 0;
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .8s var(--ease);
}
.emblem__ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgb(255 255 255 / 0.22) 0deg 0.5deg, transparent 0.5deg 6deg);
  -webkit-mask: radial-gradient(circle, transparent 64.5%, #000 65%, #000 67.5%, transparent 68%);
  mask: radial-gradient(circle, transparent 64.5%, #000 65%, #000 67.5%, transparent 68%);
  animation: spin 120s linear infinite;
}
.emblem__ring::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent) 0deg 2deg, transparent 2deg 360deg);
  animation: spin 8s linear infinite reverse;
}
.emblem__halo { position: absolute; inset: 13%; filter: drop-shadow(0 0 2px rgb(47 111 237 / 0.98)) drop-shadow(0 0 26px rgb(47 111 237 / 0.63)); animation: breathe 6s ease-in-out infinite; }
.emblem__halo--a {
  filter: drop-shadow(0 0 3px rgb(160 200 255 / 0.9)) drop-shadow(0 0 34px rgb(47 111 237 / 0.77));
  animation: ignite 1.3s linear .5s both, breathe 5s ease-in-out 1.8s infinite;
}
.emblem__frame, .emblem__a, .emblem__sweep { position: absolute; inset: 0; }
.emblem__frame {
  background: linear-gradient(160deg, #fafbfc 0%, #d8dce2 46%, #9ea6b1 100%);
  -webkit-mask: url("../brand/frame-640.png?v=tres1") center / contain no-repeat;
  mask: url("../brand/frame-640.png?v=tres1") center / contain no-repeat;
}
.emblem__a {
  background: linear-gradient(165deg, #d2e6ff 0%, #4d8dff 50%, #2f6fed 100%);
  -webkit-mask: url("../brand/logo-a-640.png?v=tres1") center / contain no-repeat;
  mask: url("../brand/logo-a-640.png?v=tres1") center / contain no-repeat;
}
/* The band of light crosses the whole logo, A included. */
.emblem__sweep {
  inset: 13%;
  background: linear-gradient(105deg, transparent 42%, rgb(220 236 255 / 0.95) 50%, transparent 58%) no-repeat;
  background-size: 320% 100%; animation: sweep 7s cubic-bezier(.5, 0, .2, 1) infinite;
  -webkit-mask: url("../brand/logo-640.png?v=tres1") center / contain no-repeat;
  mask: url("../brand/logo-640.png?v=tres1") center / contain no-repeat;
}
/* A light in each of the ring's three openings, top and lower corners.
   Positions are the openings' centres (branding/logo/make_logo.py, opening_centres),
   mapped into the 13% inset. */
.emblem__node { position: absolute; width: 1.6%; height: 1.6%; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px 2px rgb(47 111 237 / 1.00); transform: translate(-50%, -50%); animation: node 3.6s ease-in-out infinite; }
.emblem__node--top { left: 50%; top: 20.09%; }
.emblem__node--right { left: 75.9%; top: 64.96%; animation-delay: 1.2s; }
.emblem__node--left { left: 24.1%; top: 64.96%; animation-delay: 2.4s; }
.emblem__readout {
  position: absolute; left: 50%; bottom: -2%; transform: translateX(-50%); display: flex; gap: 14px;
  font-size: 11px; letter-spacing: .12em; color: var(--text-3);
}
.emblem__readout span:last-child { color: var(--accent); min-width: 6.5ch; text-align: right; }

@keyframes spin { to { transform: rotate(360deg); } }
/* A tube lamp catching: two stutters, then on. */
@keyframes ignite { 0% { opacity: 0; } 10% { opacity: .85; } 14% { opacity: .1; } 24% { opacity: .9; } 29% { opacity: .25; } 42%, 100% { opacity: 1; } }
@keyframes sweep { 0% { background-position: 100% 0; } 55%, 100% { background-position: 0% 0; } }
@keyframes breathe { 0%, 100% { opacity: .82; } 50% { opacity: 1; } }
@keyframes node { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes emblem-in { from { opacity: 0; transform: scale(.94); } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -10px); } }
@keyframes tip-in { from { opacity: 0; transform: translateY(4px) scale(.96); } }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tight { padding-top: 0; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section__head > div { display: grid; gap: 14px; }
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); border-bottom: 2px solid var(--poster-red); position: relative; overflow: hidden;
  background: radial-gradient(900px 420px at 0% 30%, rgb(40 196 214 / .08), transparent 70%),
              radial-gradient(900px 420px at 100% 85%, rgb(224 36 58 / .10), transparent 70%), var(--poster-ink); }
.tool-hued .page-head { background: radial-gradient(900px 340px at 18% 0%, color-mix(in srgb, var(--accent-fill) 15%, transparent), transparent 72%); }
.page-head::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: .3;
  background: url("../brand/hero/grain.png") repeat, url("../brand/hero/paper.webp") 0 0 / 1024px repeat; }
.page-head .container { position: relative; z-index: 1; display: grid; gap: 16px; }
.page-head h1 { font-size: clamp(36px, 5vw, 60px); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.crumbs a:hover { color: var(--text); }
.crumbs .icon { width: 14px; }

/* Portfolio cards */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); transition: border-color .3s, transform .4s var(--ease), box-shadow .4s;
}
.work-card:hover { border-color: var(--line-3); transform: translateY(-3px); box-shadow: 0 30px 60px -36px rgb(0 0 0 / 0.9); }
/* A card that knows its project's colour glows in it. */
.work-card[style*="--accent-project"]:hover {
  border-color: color-mix(in srgb, var(--accent-project) 55%, transparent);
  box-shadow: 0 30px 60px -36px rgb(0 0 0 / 0.9), 0 0 40px -12px color-mix(in srgb, var(--accent-project) 45%, transparent);
}

/* Portfolio doors grouped by the kind of work inside. */
.engine-tiles { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; margin-bottom: 8px; }
.engine-tiles__group { flex: var(--door-count) 1 0; min-width: min(100%, calc(var(--door-count) * 152px)); }
.engine-tiles__title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 17px; }
.engine-tiles__title::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.engine-tiles__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr)); gap: 12px; }
@media (max-width: 900px) { .engine-tiles__group { flex-basis: 100%; } }
.engine-tile {
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface);
  transition: border-color .25s, transform .35s var(--ease), box-shadow .35s;
}
.engine-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent-project) 60%, transparent);
  box-shadow: 0 0 40px -14px color-mix(in srgb, var(--accent-project) 55%, transparent); }
.engine-tile img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.engine-tile__glyph { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--surface-2); color: var(--accent); }
.engine-tile__glyph .icon { width: 34px; height: 34px; }
.engine-tile__name { padding: 13px 15px 2px; font-weight: 600; font-size: 15px; }
.engine-tile__count { margin-top: auto; padding: 0 15px 14px; font-size: 12px; color: var(--text-2); }
/* A HUD's corner brackets lock on to a card under the pointer. */
.work-card { position: relative; }
.work-card::after {
  content: ""; position: absolute; inset: 8px; pointer-events: none; opacity: 0; transform: scale(1.04);
  transition: opacity .25s, transform .35s var(--ease);
  background:
    linear-gradient(var(--accent), var(--accent)) top left / 16px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top left / 1.5px 16px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 16px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) top right / 1.5px 16px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 16px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom left / 1.5px 16px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 16px 1.5px no-repeat,
    linear-gradient(var(--accent), var(--accent)) bottom right / 1.5px 16px no-repeat;
}
.work-card:hover::after, .work-card:focus-within::after { opacity: 1; transform: none; }
.work-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-card:hover .work-card__media img { transform: scale(1.04); }
.work-card__media .work-card__thumb { scale: 1.12; } /* past YouTube's letterbox bars */
/* A category's card: what's inside it, side by side. */
.work-card__collage { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: 2px; background: var(--line); }
.work-card__collage--2 { --n: 2; }
.work-card__collage--3 { grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; }
.work-card__collage--3 > :first-child { grid-row: span 2; }
.work-card__tile { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--surface-2); }
.work-card__tile img { position: absolute; left: 0; top: 0; }
.work-card__tile.is-logo { background: radial-gradient(circle at 50% 120%, rgb(47 111 237 / 0.22), transparent 60%), var(--surface-2); }
.work-card__tile.is-logo img { object-fit: contain; padding: 14%; }
/* YouTube's stills are 4:3 with the 16:9 picture between black bars: the
   picture is stretched over a box a third taller, so the bars fall outside. */
.work-card__tile.is-video img { top: -16.7%; height: 133.4%; }
/* Hovered (or tabbed to), a category's card lists what's inside it. */
.work-card__inside {
  position: absolute; inset: 0; z-index: 2; display: grid; align-content: end; gap: 6px; padding: 16px 18px;
  background: linear-gradient(180deg, rgb(8 9 11 / 0.55), rgb(8 9 11 / 0.92) 40%); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s var(--ease); pointer-events: none;
}
.work-card__inside-head { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.work-card__inside-row {
  display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13.5px; font-weight: 550; color: var(--text);
  opacity: 0; translate: 0 8px; transition: opacity .3s var(--ease), translate .35s var(--ease); transition-delay: calc(var(--i, 0) * 45ms);
}
/* Two lines, so names that differ only at the end ("... development 1", "... 2") stay apart. */
.work-card__inside-row > span { flex: 1; min-width: 0; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.work-card__media .work-card__inside-row img, .work-card__inside-row > i {
  flex: none; width: 28px; height: 28px; border-radius: 7px; object-fit: cover; border: 1px solid var(--line-2); background: var(--surface-3); transform: none;
}
.work-card__media .work-card__inside-row img.is-logo { object-fit: contain; }
.work-card:hover .work-card__media .work-card__inside-row img { transform: none; }
.work-card__inside-row > i { display: grid; place-items: center; color: var(--accent); }
.work-card__inside-row > i .icon { width: 14px; height: 14px; }
.work-card__inside-row em { flex: none; font: normal 500 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.work-card__inside-more { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.work-card:focus-visible .work-card__inside, .work-card:focus-visible .work-card__inside-row { opacity: 1; translate: none; }
@media (hover: hover) {
  .work-card:hover .work-card__inside, .work-card:hover .work-card__inside-row { opacity: 1; translate: none; }
}
@media (prefers-reduced-motion: reduce) { .work-card__inside-row { translate: none; transition-delay: 0s; } }
.work-card__media--blank { display: grid; place-items: center; background: radial-gradient(circle at 50% 120%, rgb(47 111 237 / 0.22), transparent 60%), var(--surface-2); }
.work-card__media--blank::before { content: ""; position: absolute; inset: 0; background: var(--hex); background-size: 60px 34.641px; opacity: .12; }
.work-card__glyph { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; border: 1px solid var(--accent-line); background: rgb(8 9 11 / 0.6); color: var(--accent); }
.work-card__glyph .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.work-card__draft { position: absolute; top: 12px; left: 12px; padding: 4px 9px; border-radius: 999px; background: rgb(0 0 0 / 0.7); border: 1px solid var(--line-3); font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.work-card__body { display: grid; gap: 10px; padding: 20px 22px 22px; flex: 1; align-content: start; }
.work-card__body p { color: var(--text-2); font-size: 14.5px; }
.work-card__more { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 13.5px; font-weight: 500; color: var(--text-3); transition: color .2s; }
.work-card:hover .work-card__more { color: var(--accent); }
.work-card__more .icon { width: 15px; transition: transform .25s var(--ease); }
.work-card:hover .work-card__more .icon { transform: translateX(3px); }

.chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 13.5px; transition: .2s; }
.chip:hover { color: var(--text); border-color: var(--line-3); }
.chip[aria-current="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Project page */
/* The whole cover, at its own shape: cropping cut the top off tall images. */
.project-hero { display: grid; place-items: center; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.project-hero img { width: auto; max-width: 100%; height: auto; max-height: min(72vh, 760px); }
.project-video { margin-top: 36px; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #000; }
.project-video--short { aspect-ratio: 9 / 16; width: min(100%, 420px); margin-inline: auto; }
.project-video iframe { display: block; width: 100%; height: 100%; border: 0; }
/* Showcase videos: a row to scroll sideways, the one playing above outlined. */
.showcases { margin-top: 22px; }
.showcases__title { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0 0 10px; }
.showcases__title .faint { font-weight: 500; }
.showcases__row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity;
  scrollbar-width: thin; }
.showcase { flex: 0 0 220px; scroll-snap-align: start; color: inherit; text-decoration: none; }
.showcase__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--line); background: #000; transition: border-color .15s, transform .15s; }
.showcase__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.showcase__thumb .icon { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; padding: 8px;
  transform: translate(-50%, -50%); border-radius: 50%; background: rgb(0 0 0 / .6); color: #fff; }
.showcase:hover .showcase__thumb { transform: translateY(-2px); border-color: var(--accent-line); }
.showcase.is-playing .showcase__thumb { border-color: var(--accent); }
.showcase__label { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 6px; font-size: 13px; line-height: 1.35; }
.picture-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 2fr) 72px auto; gap: 8px; align-items: center; }
.picture-row + .picture-row { margin-top: 8px; }
.picture-row img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.picture-row--new { grid-template-columns: auto minmax(0, 1fr) minmax(0, 2fr); }
.picture-row--new .field__hint { grid-column: 1 / -1; }
.picture-row--new .field__hint:empty { display: none; }
@media (max-width: 760px) { .picture-row, .picture-row--new { grid-template-columns: minmax(0, 1fr); } }
/* A project's pictures tool by tool, with an arrow wherever the work moved on */
.journey { display: flex; align-items: center; gap: 14px; margin-top: 36px; }
.journey__group { flex: var(--n, 1) 1 0; min-width: 0; display: grid; gap: 10px; }
.journey__tool { justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); font: 500 12px/1.3 var(--font-mono); letter-spacing: .04em; color: var(--text); }
.journey__tool .icon { width: 14px; height: 14px; }
.journey__shots { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: 10px; }
.journey__shot { margin: 0; display: grid; align-content: start; gap: 7px; }
.journey__shot .memory__image { aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--radius); }
.journey__shot .memory__image img { height: 100%; object-fit: contain; }
.journey__shot figcaption { font-size: 13px; line-height: 1.45; color: var(--text-2); }
.journey__arrow { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.journey__arrow .icon { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .journey { flex-direction: column; align-items: stretch; }
  .journey__arrow { align-self: center; transform: rotate(90deg); }
  .journey__shots { grid-template-columns: minmax(0, 1fr); }
}
.project-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 48px 0 96px; }
.prose { font-size: 16px; line-height: 1.75; color: #d6dade; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.6em; color: var(--text); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-line); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); padding: .1em .4em; border-radius: 5px; }
.prose pre { background: var(--surface); border: 1px solid var(--line); padding: 16px; border-radius: var(--radius); overflow-x: auto; }
.prose blockquote { margin: 0; padding-left: 16px; border-left: 2px solid var(--accent); color: var(--text-2); }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); height: auto; }
/* A description synced from CurseForge shows its pictures as CurseForge does: plain, at their own width. */
.prose--curseforge img { border: 0; border-radius: 0; margin: 14px 0; }
.prose--curseforge a img { margin: 0; }
.prose--curseforge table { margin: 14px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.meta-card { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; display: grid; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
/* A project page is lit in its project's colour: a glow behind the title, the download button. */
.page-head--project { background: radial-gradient(900px 380px at 30% 0%, color-mix(in srgb, var(--accent-project) 16%, transparent), transparent 72%); }
.meta-card { border-color: color-mix(in srgb, var(--accent-project, var(--line)) 22%, var(--line)); }
.meta-card__store { border: 1px solid var(--line-2); }
.meta-card__store--main { background: var(--accent-project); border-color: transparent; color: #080e12; font-weight: 700; }
.meta-card__store--main:hover { background: color-mix(in srgb, var(--accent-project) 82%, white); color: #080e12; }
.meta-card__store + .meta-card__store { margin-top: -8px; }
.meta-card dl { margin: 0; display: grid; gap: 14px; }
.meta-card dt { font: 500 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--text-3); margin-bottom: 6px; }
.meta-card dd { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }
.tag .icon { width: 13px; height: 13px; color: var(--text); }
/* A mod loader's own icon (NeoForge's fox, Forge's anvil...), in its own colours: the pixel art kept sharp */
.tag .loader-icon { width: 14px; height: 14px; flex: none; object-fit: contain; }
.tag .loader-icon[src*="neoforge.png"] { width: 12px; height: 12px; image-rendering: pixelated; margin: 0 1px; }   /* 12x12 sprite, at its size */
.tag .loader-icon[src*="fabric.png"] { width: 16px; height: 16px; image-rendering: pixelated; margin: -1px; }     /* 16x16 sprite */
/* Pixel art (the redstone dust): a little bigger, and drawn square-edged. */
.icon[data-pixel] { image-rendering: pixelated; }
.tag .icon[data-pixel] { width: 16px; height: 16px; margin: -2px -1px; }
time[data-exact-time] { cursor: default; text-decoration: underline dotted rgb(255 255 255 / .35); text-underline-offset: 3px; }
time[data-exact-time]:focus-visible { outline-offset: 3px; }
.link-list { display: grid; gap: 6px; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); transition: .2s; font-size: 14px; }
.link-list a:hover { border-color: var(--accent-line); color: var(--accent); }

/* Portfolio sections by stage */
.work-sections { display: grid; gap: clamp(52px, 7vw, 88px); padding: clamp(44px, 6vw, 72px) 0 clamp(64px, 9vw, 112px); }
.work-section .section__head { margin-bottom: 28px; }
.work-section .section__head p { max-width: 60ch; }
.work-section--discontinued .eyebrow .dot { background: var(--text-3); box-shadow: 0 0 0 4px rgb(255 255 255 / 0.04); }
.work-card__stage {
  position: absolute; top: 12px; right: 12px; padding: 4px 9px; border-radius: 999px;
  font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  background: rgb(0 0 0 / 0.72); border: 1px solid var(--line-3); color: var(--text-2);
  backdrop-filter: blur(6px);
}
.work-card__stage--development { color: var(--accent); border-color: var(--accent-line); }
.work-card__stage--delayed { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
/* A category card: a small stack, with a count of what is inside. */
.work-card--category { --stack: 0 -8px 0 -3px var(--surface-2), 0 -8px 0 -2px var(--line-2), 0 -16px 0 -7px var(--surface), 0 -16px 0 -6px var(--line-2); box-shadow: var(--stack); margin-top: 10px; }
.work-card--category:hover { box-shadow: var(--stack), 0 30px 60px -36px rgb(0 0 0 / 0.9); }
.work-card__count {
  position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px;
  font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  background: rgb(0 0 0 / 0.72); border: 1px solid var(--accent-line); color: var(--accent); backdrop-filter: blur(6px);
}
.category-intro { padding-top: clamp(32px, 4vw, 44px); max-width: 72ch; }

/* A heading with a picture behind it: blurred, faint, fading into the page. */
.page-head__backdrop {
  position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover;
  opacity: .26; filter: blur(30px) saturate(1.2); pointer-events: none;
  -webkit-mask: linear-gradient(180deg, #000 30%, transparent); mask: linear-gradient(180deg, #000 30%, transparent);
}
.page-head--backdrop { padding-top: clamp(64px, 9vw, 120px); }
/* A heading's numbers, in a line under it. */
.head-figures { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.head-figures span { display: inline-flex; align-items: baseline; gap: 7px; }
.head-figures b { font: 700 22px/1 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--text); font-variant-numeric: tabular-nums; }
.page-head--project .head-figures b { color: color-mix(in srgb, var(--accent-project) 55%, white); }
.stack--xl { gap: clamp(44px, 6vw, 72px); }

/* The videos page leads with the newest one, big, over its own blurred picture. */
.feature { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); background: #050608; }
.feature__backdrop { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); object-fit: cover; opacity: .38; filter: blur(40px) saturate(1.3); }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(5 6 8 / 0.92) 25%, rgb(5 6 8 / 0.35)), linear-gradient(0deg, var(--bg), transparent 40%); }
.feature__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.feature__copy { display: grid; gap: 18px; justify-items: start; }
.feature__title { margin: 0; font: 700 clamp(30px, 3.8vw, 50px)/1.05 var(--font-display); }
.feature__meta { margin: 0; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.feature__screen { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-3); background: #000;
  box-shadow: 0 40px 90px -40px rgb(0 0 0 / 0.95), 0 0 80px -30px rgb(224 36 58 / 0.35); }
.feature__screen--short { aspect-ratio: 9 / 16; width: min(100%, 360px); justify-self: center; }
.feature__screen iframe { display: block; width: 100%; height: 100%; border: 0; }
.feature__poster { all: unset; position: absolute; inset: 0; cursor: pointer; }
/* YouTube's still is 4:3 with the picture between black bars: stretched a third taller, the bars fall outside. */
.feature__poster img { position: absolute; left: 0; top: -16.7%; width: 100%; height: 133.4%; object-fit: cover; transition: transform .8s var(--ease); }
.feature__screen--short .feature__poster img { top: 0; height: 100%; }
.feature__poster:hover img { transform: scale(1.03); }
/* Play buttons are the studio's hexagon in the poster's red, a cyan edge printed off-register beside it
   (the hexagon is a ::before, so the drop-shadow on the button isn't cut off with it). */
.feature__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 88px; height: 96px; transform: translate(-50%, -50%);
  color: #fff; filter: drop-shadow(-5px 0 0 rgb(40 196 214 / .85)) drop-shadow(0 12px 22px rgb(0 0 0 / .55)); transition: transform .3s var(--ease), filter .3s; }
.feature__play::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--poster-red); clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%); }
.feature__play .icon { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.feature__poster:hover .feature__play { transform: translate(-50%, -50%) scale(1.08);
  filter: drop-shadow(-8px 0 0 rgb(40 196 214 / .9)) drop-shadow(0 12px 22px rgb(0 0 0 / .55)); }
.feature__poster:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
/* YouTube's buttons in the poster's red and capitals. Its logo keeps its own shape, in white (YouTube's
   brand rules allow a one-colour logo, not a reshaped one). */
.btn--youtube { background: var(--poster-red); color: #fff; border-radius: 2px; font-family: var(--font-display); font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; transition: background-color .2s, box-shadow .2s, transform .2s var(--ease); }
.btn--youtube:hover { background: #f0364d; color: #fff; box-shadow: -4px 4px 0 var(--poster-cyan); transform: translate(2px, -2px); }
/* Shelves: a heading and a row, the way the big video sites lay out a channel. */
.shelf__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.shelf__head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: clamp(22px, 2.4vw, 28px); }
.shelf__head h2 .icon { width: 22px; height: 22px; color: var(--accent); }
.shelf__head h2 .faint { font-size: .6em; font-weight: 500; }
/* min-width: 0 on the shelf: else its row of cards sets the page's width (a phone's page went 1,226 px wide)
   instead of scrolling inside it. */
.shelf { min-width: 0; }
.shelf__row { min-width: 0; display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.short-card { flex: 0 0 190px; scroll-snap-align: start; display: grid; gap: 8px; align-content: start; }
.short-card__thumb { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.short-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.short-card:hover .short-card__thumb img { transform: scale(1.05); }
.short-card:hover .short-card__thumb { border-color: var(--accent-line); }
.short-card__title { font-size: 14px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.short-card__views { font-size: 11.5px; color: var(--text-3); }
@media (max-width: 900px) { .feature__inner { grid-template-columns: minmax(0, 1fr); } .feature__screen { order: -1; } }

/* Memories: a gallery, the first album big, each a picture with its name laid over it. */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 260px; gap: 14px; }
.gallery__tile {
  position: relative; display: flex; align-items: flex-end; overflow: hidden; border-radius: 22px; border: 1px solid var(--line-2);
  background: radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--accent-project) 30%, transparent), transparent 60%), var(--surface-2);
  transition: border-color .25s, transform .35s var(--ease), box-shadow .35s;
}
.gallery__tile--big { grid-column: span 2; grid-row: span 2; }
/* One or two albums: side by side across the whole width, taller. */
.gallery--few { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); grid-auto-rows: clamp(300px, 34vw, 420px); }
.gallery--few .gallery__title { font-size: clamp(26px, 2.6vw, 34px); }
.gallery__tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent-project) 60%, transparent);
  box-shadow: 0 30px 60px -36px rgb(0 0 0 / 0.9), 0 0 40px -12px color-mix(in srgb, var(--accent-project) 50%, transparent); }
.gallery__tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gallery__tile > img.is-video { top: -16.7%; height: 133.4%; }
.gallery__tile:hover > img { transform: scale(1.04); }
.gallery__tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(5 6 8 / 0.94), rgb(5 6 8 / 0.2) 55%, transparent); pointer-events: none; }
.gallery__glyph { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); color: var(--accent); }
.gallery__glyph .icon { width: 40px; height: 40px; }
.gallery__copy { position: relative; z-index: 1; display: grid; gap: 6px; padding: 22px; max-width: 60ch; }
.gallery__count { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--accent-project) 60%, white); }
.gallery__title { font: 700 22px/1.1 var(--font-display); }
/* Each album's mark (SCP, Discord, Call of Duty...) in a small plate before its name. */
.gallery__mark, .album-head__mark { display: inline-grid; place-items: center; flex: none; border-radius: 10px; border: 1px solid rgb(255 255 255 / 0.16); background: rgb(5 6 8 / 0.55); color: #fff; backdrop-filter: blur(6px); }
.gallery__mark { width: 1.6em; height: 1.6em; margin-right: .45em; vertical-align: -.35em; }
.gallery__mark .icon { width: .95em; height: .95em; }
.album-head { display: flex; align-items: center; gap: .4em; }
.album-head__mark { width: 1.25em; height: 1.25em; border-radius: 14px; }
.album-head__mark .icon { width: .7em; height: .7em; }
.gallery__tile--big .gallery__title { font-size: clamp(28px, 3vw, 40px); }
.gallery__text { font-size: 14px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gallery__go { position: absolute; z-index: 1; top: 16px; right: 16px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgb(5 6 8 / 0.6); border: 1px solid var(--line-3); backdrop-filter: blur(6px); opacity: 0; transform: translateY(4px); transition: .3s var(--ease); }
.gallery__go .icon { width: 16px; height: 16px; }
.gallery__tile:hover .gallery__go, .gallery__tile:focus-visible .gallery__go { opacity: 1; transform: none; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 240px; } .gallery__tile--big { grid-column: auto; grid-row: span 1; } }

/* Rules: docs-style, the contents down the side following you. */
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 112px); }
.docs__nav { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; display: grid; gap: 2px; }
.docs__nav-head { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); padding: 0 12px 10px; }
.docs__nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; border-left: 2px solid transparent; font-size: 14px; color: var(--text-2); transition: color .2s, background .2s, border-color .2s; }
.docs__nav a .icon { width: 15px; height: 15px; flex: none; }
.docs__nav a:hover { color: var(--text); background: var(--surface); }
.docs__nav a[aria-current="true"] { color: var(--text); background: var(--accent-soft); border-left-color: var(--accent); border-radius: 0 10px 10px 0; }
.docs__nav a[aria-current="true"] .icon { color: var(--accent); }
.docs__nav .docs__nav-cta { margin-top: 14px; border: 1px solid var(--line-2); }
.docs__nav-cta .icon:last-child { margin-left: auto; }
.docs__nav .docs__nav-cta:hover { border-color: var(--accent-line); }
.docs__body { display: grid; gap: clamp(56px, 7vw, 88px); min-width: 0; }
.docs__section { scroll-margin-top: calc(var(--nav-h) + 24px); }
.docs__section .section__head { margin-bottom: 0; }
.docs .rule { scroll-margin-top: calc(var(--nav-h) + 24px); }
.docs .rule:target { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 40px -14px var(--accent); }
.rule h3 a.mono:hover { color: var(--accent); }
#choices { scroll-margin-top: calc(var(--nav-h) + 24px); }
@media (max-width: 1020px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs__nav { position: sticky; top: var(--nav-h); z-index: 5; display: flex; gap: 4px; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter);
    background: rgb(8 9 11 / 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .docs__nav-head { display: none; }
  .docs__nav a { flex: none; white-space: nowrap; border-left: 0; }
  .docs__nav a[aria-current="true"] { border-radius: 10px; }
  .docs__nav .docs__nav-cta { margin-top: 0; }
}
/* Memories: a wall of screenshots at their own shapes (no cropping), each
   opening full size. Columns keep tall and wide images packed together. */
.memory-wall { columns: 3 300px; column-gap: 20px; }
.memory { break-inside: avoid; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.memory__image { display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in; overflow: hidden; }
.memory__image img { display: block; width: 100%; height: auto; transition: transform .6s var(--ease); }
.memory__image:hover img { transform: scale(1.02); }
.memory__image:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.memory figcaption { display: grid; gap: 4px; padding: 14px 16px 16px; }
/* A clip plays where it is; a note is just words. */
.memory__video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 0; }
div.memory__video iframe { display: block; width: 100%; height: 100%; border: 0; }
.memory__note { display: grid; gap: 8px; padding: 18px 18px 20px; background: linear-gradient(160deg, rgb(47 111 237 / 0.12), transparent 70%); }
.memory__note > .icon { width: 18px; height: 18px; color: var(--accent); }
.memory__note strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.25; }
.memory__note p { margin: 0; color: var(--text-2); white-space: pre-line; line-height: 1.6; }
.memory-more { border: 1px dashed var(--line); border-radius: var(--radius); padding: 10px 14px; }
.memory-more summary { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-2); font-size: 14px; }
.memory-more summary .icon { width: 15px; height: 15px; }
.memory-more__forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 14px; }
.memory-more__forms strong { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.memory-more__forms strong .icon { width: 16px; height: 16px; color: var(--accent); }
.memory-row video, .memory-row__glyph { width: 140px; height: 100px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.memory-row video { object-fit: cover; background: #000; }
.memory-row__glyph { display: grid; place-items: center; background: var(--surface-2); color: var(--accent); }
.memory figcaption strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.25; }
.memory figcaption span { color: var(--text-2); font-size: 14px; line-height: 1.55; }
.memory time { font: 12px var(--font-mono); color: var(--text-3); }
.map-data .section__head { flex-wrap: wrap; }
.map-picker { display: grid; gap: 6px; min-width: min(280px, 100%); }
.map-version__note { color: var(--text-2); margin: -12px 0 20px; max-width: 72ch; }
.memory-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding-top: 14px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 20px); }
.memory-row img { width: 140px; height: 100px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); }
.memory-row__fields { display: grid; gap: 8px; }
.memory-row__fields .textarea { min-height: 64px; }
.memory-row__actions { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.icon--flip { transform: rotate(180deg); }
.icon-btn:disabled { opacity: .3; cursor: default; background: none; }
.icon-btn.is-busy { opacity: .4; pointer-events: none; }
.icon-btn--danger:hover { color: #ff9a9d; background: rgb(239 90 95 / 0.12); }

/* A mod's logo, from CurseForge: square, so shown whole rather than cropped. */
.work-card__media--logo .work-card__logo { position: absolute; inset: 0; margin: auto; width: auto; height: 74%; aspect-ratio: 1; object-fit: contain; border-radius: 18px; box-shadow: 0 22px 44px -22px rgb(0 0 0 / 0.95), 0 0 0 1px var(--line-2); }
.work-card__stats { font: 500 12px var(--font-mono); letter-spacing: .04em; color: var(--text-3); }
.project-title { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 24px); }
.project-name { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.project-logo { width: clamp(64px, 8vw, 88px); height: auto; aspect-ratio: 1; border-radius: 20px; box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -20px rgb(0 0 0 / 0.9); flex: none; }
.sync-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.sync-bar > div { display: grid; gap: 3px; font-size: 14px; }
.sync-bar strong { display: inline-flex; align-items: center; gap: 8px; font-weight: 550; }
.sync-bar strong .icon { width: 16px; height: 16px; color: var(--accent); }
.sync-bar form { margin: 0; flex: none; }
.meta-card__link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); }
.meta-card__link .icon { width: 14px; }
.table td.nested { padding-left: 34px; }
/* A finished chapter reads as one: colour drains from its art until it is pointed at. */
.work-card--discontinued .work-card__media img { filter: grayscale(1) brightness(.8); transition: transform .8s var(--ease), filter .5s; }
.work-card--discontinued:hover .work-card__media img { filter: grayscale(.35) brightness(.95); }
.work-card--discontinued .work-card__media--blank { background: radial-gradient(circle at 50% 120%, rgb(255 255 255 / 0.06), transparent 60%), var(--surface-2); }
.work-card--discontinued .work-card__glyph { color: var(--text-3); border-color: var(--line-3); }
.work-card--discontinued:hover .work-card__more { color: var(--text); }
.stage-note {
  display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--bg-raise); color: var(--text-2); font-size: 14.5px; line-height: 1.55;
}
.stage-note .icon { margin-top: 3px; color: var(--text-3); }
.stage-note--development { border-color: var(--accent-line); background: var(--accent-soft); color: #cce2ff; }
.stage-note--development .icon { color: var(--accent); }
.stage-note--delayed { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.stage-note--delayed .icon { color: var(--warn); }
.stage-note--owned { margin-top: 28px; font-size: 14px; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.video-card { display: grid; gap: 10px; align-content: start; }
.video-card__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; filter: saturate(.9); }
.video-card:hover .video-card__thumb img { transform: scale(1.04); filter: saturate(1.05); }
.video-card__play { position: absolute; left: 50%; top: 50%; width: 50px; height: 56px; margin: -28px 0 0 -25px; display: grid; place-items: center; color: #fff; filter: drop-shadow(-3px 0 0 rgb(40 196 214 / .85)); transform: scale(.9); opacity: 0; transition: .3s var(--ease); }
.video-card__play::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--poster-red); clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%); }
.video-card__play .icon { width: 20px; fill: currentColor; margin-left: 2px; }
.video-card:hover .video-card__play { opacity: 1; transform: none; }
.video-card__tag { position: absolute; left: 10px; top: 10px; padding: 4px 8px; border-radius: 2px; background: var(--poster-red); color: #fff; font: 600 10.5px/1.2 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; }
.video-card h3 { font: 500 15.5px/1.4 var(--font-body); letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Community + support split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { position: relative; display: grid; gap: 16px; align-content: start; padding: clamp(24px, 3.5vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.panel--community::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; background: radial-gradient(circle, rgb(88 101 242 / 0.16), transparent 65%); pointer-events: none; }
.panel--support::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; background: radial-gradient(circle, rgb(47 111 237 / 0.17), transparent 65%); pointer-events: none; }
.panel__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 4px; }
.ladder__step { display: grid; justify-items: center; gap: 8px; padding: 14px 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raise); font-size: 13px; color: var(--text-2); text-align: center; }

/* Tiles: the enforcement emoji, as the bot draws them in Discord */
.tile { display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; border: 1px solid; }
.tile .icon { width: 19px; height: 19px; stroke-width: 2; }
.tile--warn { color: var(--warn); border-color: rgb(230 126 34 / 0.35); background: rgb(230 126 34 / 0.1); }
.tile--bad { color: var(--bad); border-color: rgb(239 90 95 / 0.35); background: rgb(239 90 95 / 0.1); }
.tile--ok { color: var(--ok); border-color: rgb(61 220 151 / 0.3); background: rgb(61 220 151 / 0.08); }
.tile--accent { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.tile--muted { color: var(--text-2); border-color: var(--line-2); background: var(--surface-2); }
.tile--lg { width: 48px; height: 48px; border-radius: 14px; }
.tile--lg .icon { width: 23px; height: 23px; }
/* The coloured-text tools: a tile of slowly turning colour, and their page's heading in it too. */
.tile--rainbow { color: #fff; border-color: rgb(255 255 255 / .22);
  background: linear-gradient(120deg, #ff5f6d, #ffb347, #f9e45b, #4ade80, #38bdf8, #a78bfa, #f472b6, #ff5f6d) 0 0 / 300% 100%;
  animation: rainbow-slide 8s linear infinite; }
.tile--rainbow .icon { filter: drop-shadow(0 1px 1px rgb(0 0 0 / .45)); }
.tool-hued--rainbow .page-head h1 { background: linear-gradient(100deg, #ff7a85, #ffc25a, #f9e45b, #5ee08f, #5ccafb, #b9a2ff, #f78bc8, #ff7a85) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: rainbow-slide 12s linear infinite; }
.tool-hued--rainbow .page-head h1 .icon { color: var(--text-2); }
@keyframes rainbow-slide { to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) { .tile--rainbow, .tool-hued--rainbow .page-head h1 { animation: none; } }

/* Pills and clearance */
.pill { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; border: 1px solid var(--line-2); color: var(--text-2); }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--ok { color: var(--ok); border-color: rgb(61 220 151 / 0.3); background: rgb(61 220 151 / 0.07); }
.pill--bad { color: #ff8589; border-color: rgb(239 90 95 / 0.35); background: rgb(239 90 95 / 0.08); }
.pill--warn { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.pill--info { color: var(--info); border-color: rgb(90 169 255 / 0.32); background: rgb(90 169 255 / 0.08); }
.pill--muted i { background: var(--text-3); }
.clearance { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 999px; font: 500 11.5px/1.3 var(--font-mono); letter-spacing: .04em; border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.clearance .icon { width: 13px; height: 13px; }
.clearance--owner { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.clearance--director { color: #c9d6e5; border-color: rgb(159 179 200 / 0.4); background: rgb(159 179 200 / 0.08); }   /* platinum, as the role is */
.clearance--admin { color: #ff9a9d; border-color: rgb(239 90 95 / 0.35); background: rgb(239 90 95 / 0.07); }
.clearance--staff { color: var(--info); border-color: rgb(90 169 255 / 0.32); background: rgb(90 169 255 / 0.07); }

/* ── Cards, forms ─────────────────────────────────────────────────────── */
.card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.card__pad { padding: clamp(20px, 3vw, 28px); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.card__head h2, .card__head h3 { font-size: 19px; }
.stack { display: grid; gap: 16px; }
.stack--lg { gap: 28px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }

.field { display: grid; gap: 8px; }
.field > label, .field__label { font-weight: 550; font-size: 14px; }
.field__hint { font-size: 13px; color: var(--text-3); }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-2); background: var(--bg-raise); color: var(--text);
  transition: border-color .2s, box-shadow .2s; font-size: 14.5px;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2369717c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input:disabled, .select:disabled, .textarea:disabled { opacity: .5; cursor: not-allowed; background: var(--surface-2); border-color: var(--line-2); }
/* On a field that fills itself in - a synced mod's, from CurseForge. */
.synced-tag { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 2px 8px; border-radius: 999px; border: 1px solid rgb(90 169 255 / 0.3); background: rgb(90 169 255 / 0.07); color: #bcdcff; font: 500 11px/1.4 var(--font-mono); vertical-align: 1px; }
.synced-tag .icon { width: 11px; height: 11px; }
.work-card__media.is-synced { opacity: .6; }
.counter { font: 12px var(--font-mono); color: var(--text-3); justify-self: end; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { appearance: none; width: 18px; height: 18px; margin: 2px 0 0; border-radius: 5px; border: 1px solid var(--line-3); background: var(--bg-raise); flex: none; display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check.is-locked { opacity: .55; cursor: not-allowed; }
.check.is-locked input { cursor: not-allowed; }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.segmented { justify-self: start; align-self: start; display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-raise); gap: 2px; flex-wrap: wrap; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 7px 14px; border-radius: 999px; font-size: 13.5px; color: var(--text-2); cursor: pointer; transition: .2s; }
.segmented input:checked + span { background: var(--surface-3); color: var(--text); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); }
@media (max-width: 560px) { .segmented { border-radius: 14px; } .segmented span { border-radius: 10px; } }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: var(--radius); border: 1px solid; font-size: 14px; }
.mc-error { align-items: center; flex-wrap: wrap; }
.mc-error > span { flex: 1 1 260px; }
.alert .icon { margin-top: 2px; }
.alert--bad { border-color: rgb(239 90 95 / 0.35); background: rgb(239 90 95 / 0.08); color: #ffb3b5; }
.alert--warn { border-color: var(--accent-line); background: var(--accent-soft); color: #cce2ff; }
.alert--info { border-color: rgb(90 169 255 / 0.3); background: rgb(90 169 255 / 0.07); color: #bcdcff; }
.alert--ok { border-color: rgb(61 220 151 / 0.35); background: rgb(61 220 151 / 0.08); color: #b5f5d8; }
/* The verify page: one card in the middle, under a cobalt glow. */
.verify { position: relative; padding: clamp(48px, 9vh, 110px) 0 110px; overflow: hidden;
  background: radial-gradient(700px 380px at 50% 0%, rgb(77 141 255 / .16), transparent 70%); }
.verify::before { content: ""; position: absolute; inset: 0; background: var(--hex); background-size: 60px 34.641px; opacity: .05;
  -webkit-mask: radial-gradient(ellipse at 50% 30%, #000, transparent 70%); mask: radial-gradient(ellipse at 50% 30%, #000, transparent 70%); pointer-events: none; }
.verify-card { position: relative; display: grid; justify-items: center; gap: 16px; max-width: 520px; margin: 0 auto; padding: 38px clamp(22px, 5vw, 44px) 32px;
  text-align: center; box-shadow: 0 40px 90px -50px rgb(0 0 0 / .95), 0 0 0 1px rgb(77 141 255 / .08); }
.verify-card h1 { font-size: clamp(30px, 5vw, 42px); }
.verify-card .lead { margin: -4px 0 0; font-size: 16px; }
.verify-card .stack { width: 100%; }
.verify-card__mark { display: grid; place-items: center; width: 92px; height: 92px; margin-bottom: 4px; border-radius: 26px;
  background: radial-gradient(circle, rgb(77 141 255 / .22), transparent 70%); }
.verify-card__mark img { width: 64px; height: 64px; filter: drop-shadow(0 0 18px rgb(77 141 255 / .55)); }
.verify-card__badge { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; }
.verify-card__badge .icon { width: 34px; height: 34px; stroke-width: 2.6; }
.verify-card__badge--ok { background: rgb(61 220 151 / .14); color: #3ddc97; box-shadow: 0 0 0 1px rgb(61 220 151 / .4), 0 0 40px -6px rgb(61 220 151 / .6);
  animation: verify-pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.verify-card__badge--warn { background: rgb(230 126 34 / .14); color: var(--warn); box-shadow: 0 0 0 1px rgb(230 126 34 / .4); }
@keyframes verify-pop { from { transform: scale(.4); opacity: 0; } }
.verify-card__captcha { display: grid; justify-items: center; min-height: 65px; }
.verify-card__agree { justify-content: center; text-align: left; margin: 2px auto 0; max-width: 400px; font-size: 14px; }
.verify-card__go { width: 100%; justify-content: center; }
.verify-card__actions { justify-content: center; }
.verify-card__close { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin: 4px 0 0; padding: 14px 16px;
  border-radius: var(--radius); border: 1px solid rgb(61 220 151 / .35); background: rgb(61 220 151 / .08); color: #c9f5e1; font-size: 15px; }
.verify-card__close .icon { flex: none; width: 18px; height: 18px; color: #3ddc97; }
/* The three steps, lit as they're done. */
.verify-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin: 6px 0 4px; padding: 0; list-style: none; counter-reset: none; }
.verify-steps li { position: relative; display: grid; justify-items: center; gap: 7px; font-size: 12.5px; color: var(--text-3); }
.verify-steps li + li::before { content: ""; position: absolute; top: 14px; right: calc(50% + 18px); width: calc(100% - 28px); height: 2px; border-radius: 2px; background: var(--line-2); }
.verify-steps li.is-done + li::before { background: var(--accent); }
.verify-steps i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-3); font: 600 13px var(--font-mono); font-style: normal; background: var(--bg-raise); }
.verify-steps i .icon { width: 15px; height: 15px; stroke-width: 3; }
.verify-steps .is-done { color: var(--text-2); }
.verify-steps .is-done i { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.verify-steps .is-current { color: var(--text); }
.verify-steps .is-current i { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px rgb(77 141 255 / .15); animation: verify-ping 1.8s ease-out infinite; }
.verify-steps .is-problem { color: var(--warn); }
.verify-steps .is-problem i { border-color: var(--warn); color: var(--warn); }
@keyframes verify-ping { 0% { box-shadow: 0 0 0 0 rgb(77 141 255 / .45); } 100% { box-shadow: 0 0 0 12px rgb(77 141 255 / 0); } }
@media (prefers-reduced-motion: reduce) { .verify-card__badge--ok, .verify-steps .is-current i { animation: none; } }
.dropzone { display: grid; gap: 10px; padding: 16px; border: 1px dashed var(--line-3); border-radius: var(--radius); background: var(--bg-raise); transition: .2s; }
.dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-3); }
.file-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.file-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 260px; padding: 5px 6px 5px 10px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); font-size: 12.5px; }
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip button { background: none; border: 0; color: var(--text-3); cursor: pointer; display: grid; padding: 2px; }
.file-chip button:hover { color: var(--text); }
.captcha { min-height: 70px; }

/* ── Support ──────────────────────────────────────────────────────────── */
.support-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; padding: 36px 0 96px; align-items: start; }
.support-side { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 18px; }
.account { display: grid; gap: 18px; }
.account__top { display: flex; align-items: center; gap: 14px; }
.account__avatar { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-3); }
.account__name { display: grid; gap: 3px; min-width: 0; }
.account__name strong { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.kv > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
/* The "what the site keeps" table on /rules: a name, then what it is and for how long, as a left-aligned block. */
.data-keeps .kv > div { align-items: flex-start; gap: 28px; padding: 16px 0; }
.data-keeps .kv dt { flex: 0 0 190px; color: var(--text); font-weight: 600; }
.data-keeps .kv dd { flex: 1; display: grid; gap: 6px; text-align: left; color: var(--text-2); line-height: 1.55; }
.data-keeps .kv dd small { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; font-size: 13px; color: var(--text-3); }
.data-keeps .kv dd small b { font-weight: 500; color: var(--text-2); }
.choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.choices li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.choices .icon { flex: none; width: 16px; height: 16px; margin-top: 4px; color: var(--ok); }
@media (max-width: 720px) { .data-keeps .kv > div { flex-direction: column; gap: 6px; } .data-keeps .kv dt { flex: none; } .data-keeps .kv dd small { grid-template-columns: 1fr; gap: 2px; } }
.copy { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--text); font: inherit; }
.copy .icon { width: 13px; color: var(--text-3); }
.copy:hover .icon { color: var(--accent); }
.copy.mono { font-family: var(--font-mono); }
.copy--quiet { color: var(--text-3); }
.copy--quiet:hover { color: var(--text); }
.copy .icon, .copy.is-copied .icon { transition: color .2s; }
.copy.is-copied, .copy.is-copied .icon { color: var(--ok); }
/* The bubble over something just clicked: "Copied!" */
.tip {
  position: absolute; z-index: 90; padding: 6px 11px; border-radius: 8px; pointer-events: none; white-space: nowrap;
  background: var(--surface-3); border: 1px solid var(--line-3); color: var(--text); font: 500 12.5px/1.3 var(--font-body);
  box-shadow: 0 12px 30px -12px rgb(0 0 0 / 0.9); animation: tip-in .18s var(--ease);
}
.tip::after {
  content: ""; position: absolute; top: 100%; left: var(--arrow, 50%); width: 8px; height: 8px;
  background: inherit; border: inherit; border-top: 0; border-left: 0; transform: translate(-50%, -4px) rotate(45deg);
}
.tip--below::after { top: auto; bottom: 100%; transform: translate(-50%, 4px) rotate(225deg); }
.tip--ok { color: #7ff0bf; border-color: rgb(61 220 151 / 0.4); }
.tip--bad { color: #ffb3b5; border-color: rgb(239 90 95 / 0.45); }
.tip--info { color: var(--text); }   /* a fact, not a result: a date's exact time */
.tip.is-leaving { opacity: 0; transition: opacity .2s; }
.standing { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-raise); }
.standing strong { display: block; font-size: 15px; }
.standing span { font-size: 13.5px; color: var(--text-2); }

.case { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .2s; }
.case:hover { border-color: var(--line-2); }
.case--overturned { opacity: .72; }
.case__body { display: grid; gap: 10px; min-width: 0; }
.case__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.case__head h3 { font-size: 18px; }
.case__id { color: var(--text-3); font-size: 13px; font-weight: 400; }
.case__reason { color: var(--text-2); font-size: 14.5px; overflow-wrap: anywhere; }
.case__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 2px 0 0; font-size: 13px; }
.case__meta div { display: flex; gap: 7px; }
.case__meta dt { color: var(--text-3); }
.case__meta dd { margin: 0; color: var(--text-2); }
.case__action { align-self: center; }
.case__locked { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-3); max-width: 24ch; text-align: right; }
.case__locked .icon { width: 14px; flex: none; }
.case__evidence summary { cursor: pointer; font-size: 13px; color: var(--text-3); }
.case__evidence pre { margin: 8px 0 0; padding: 12px; border-radius: var(--radius-sm); background: var(--bg-raise); border: 1px solid var(--line); font: 12.5px/1.55 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); max-height: 260px; overflow: auto; }
.case__note { font-size: 13px; display: flex; gap: 7px; align-items: center; }
.case__note .icon { width: 14px; }

.list { display: grid; }
.list-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 15px 20px; border-top: 1px solid var(--line); transition: background .15s; }
.list-row:first-child { border-top: 0; }
a.list-row:hover { background: var(--surface-2); }
.list-row__main { display: grid; gap: 3px; min-width: 0; }
.list-row__main strong { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row__main span { font-size: 13px; color: var(--text-3); }
.list-row__end { display: flex; align-items: center; gap: 10px; }
.unread { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
/* "Playing now" on a game's page: lit while anyone is in the game. */
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--line-3); vertical-align: 1px; }
.live-dot.is-on { background: #3ddc84; box-shadow: 0 0 0 4px rgb(61 220 132 / 0.18); }

.empty { display: grid; justify-items: center; gap: 8px; padding: 44px 24px; text-align: center; }
.empty__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); margin-bottom: 6px; }
.empty__icon .icon { width: 24px; height: 24px; }
.empty strong { font-size: 16px; }
.empty p { color: var(--text-2); max-width: 44ch; font-size: 14px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.step { position: relative; display: grid; gap: 8px; align-content: start; padding: 22px; background: var(--surface); }
.step + .step { border-left: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font: 500 12px/1 var(--font-mono); color: var(--accent); letter-spacing: .1em; }
.step h3 { font-size: 17px; }
.step p { font-size: 13.5px; color: var(--text-2); }
.signin-card { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface), var(--bg-raise)); position: relative; overflow: hidden; }
.signin-card::before { content: ""; position: absolute; inset: 0; background: var(--hex); background-size: 60px 34.641px; opacity: .05; pointer-events: none; }
.signin-card > * { position: relative; }
.signin-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.signin-card li { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); }
.signin-card li .icon { color: var(--ok); margin-top: 3px; }

/* The thread */
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding: 28px 0 80px; align-items: start; }
.statement { display: grid; gap: 18px; padding: 22px; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: var(--radius-lg); background: var(--surface); }
.statement h3 { font: 500 11.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.statement p { white-space: pre-wrap; overflow-wrap: anywhere; color: #d9dde2; }
.thread { display: grid; gap: 2px; margin-top: 18px; }
.msg { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 16px 4px; }
.msg + .msg:not(.msg--system) { border-top: 1px solid var(--line); }
.msg__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-3); }
.msg__pic { position: relative; width: 38px; height: 38px; }
.msg__decoration { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; max-width: none; translate: -50% -50%; pointer-events: none; }
.msg__head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 5px; }
.msg__head strong { font-weight: 600; font-size: 14.5px; }
.msg__head time { font-size: 12.5px; color: var(--text-3); }
.msg__body { white-space: pre-wrap; overflow-wrap: anywhere; color: #d9dde2; font-size: 14.5px; line-height: 1.6; }
.msg__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.msg--staff .msg__avatar { border-color: var(--accent-line); }
.msg--internal { margin: 6px 0; padding: 14px; border: 1px dashed var(--accent-line); border-radius: var(--radius); background: rgb(47 111 237 / 0.06); }
.msg--internal + .msg { border-top: 0 !important; }
.internal-tag { display: inline-flex; align-items: center; gap: 5px; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.internal-tag .icon { width: 12px; }
/* "Sent" / "Seen by staff" under the latest message, in line with its text. */
.receipt { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0 4px 4px 56px; font-size: 12.5px; color: var(--text-3); }
.receipt .icon { width: 14px; height: 14px; }
.receipt--seen .icon { color: var(--ok); }
.receipt time { color: inherit; }
.msg--system { display: flex; justify-content: center; padding: 10px 0; }
.msg--system .msg__sys { display: inline-flex; gap: 9px; align-items: flex-start; max-width: 620px; padding: 9px 14px; border-radius: var(--radius); background: var(--bg-raise); border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); white-space: pre-wrap; }
.msg--system .icon { color: var(--text-3); margin-top: 3px; width: 15px; }
.attachments { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 10px; max-width: 620px; }
.attachment { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--bg-raise); }
.attachment img, .attachment video { width: 100%; max-height: 260px; object-fit: cover; cursor: zoom-in; background: #000; }
.attachment video { cursor: auto; object-fit: contain; }
.attachment--file a { display: flex; align-items: center; gap: 10px; padding: 12px; font-size: 13.5px; }
.attachment--file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer { position: sticky; bottom: 16px; margin-top: 18px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: rgb(16 19 23 / 0.94); backdrop-filter: blur(10px); box-shadow: 0 24px 60px -30px rgb(0 0 0 / 0.95); transition: border-color .2s, box-shadow .2s; }
.composer:focus-within { border-color: var(--line-3); }
.composer.is-internal { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.composer.is-over { border-color: var(--accent); }
.composer textarea { width: 100%; min-height: 52px; max-height: 280px; padding: 15px 16px 6px; border: 0; background: none; resize: none; outline: none; font-size: 14.5px; line-height: 1.55; }
.composer__files { padding: 0 12px; }
.composer__bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px 10px 12px; }
.composer__error { padding: 0 16px 8px; color: #ff9a9d; font-size: 13px; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: var(--text-2); cursor: pointer; transition: .2s; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; }
.toggle input { appearance: none; width: 30px; height: 18px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-3); position: relative; cursor: pointer; transition: .2s; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--text-2); transition: .2s var(--ease); }
.toggle input:checked { background: var(--accent-soft); border-color: var(--accent); }
.toggle input:checked::after { transform: translateX(12px); background: var(--accent); }
.hint-keys { font: 11.5px var(--font-mono); color: var(--text-3); margin-left: auto; margin-right: 6px; }
/* "New message" - on a ticket, when a reply lands while you're reading further up. */
.jump {
  position: fixed; z-index: 40; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 10px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--accent-fill); background: var(--accent-fill); color: var(--accent-ink); font: 600 13.5px/1 var(--font-body);
  box-shadow: 0 12px 30px -10px rgb(47 111 237 / 0.84); animation: toast-in .3s var(--ease);
}
/* Up to the top or down to the end of a long page, each shown once you're a
   little way from that end (site.js). */
.scroll-jumps { position: fixed; z-index: 40; right: 20px; bottom: 24px; display: grid; gap: 8px; }
/* On a ticket narrow enough for its message box to run the full width, above that. */
@media (max-width: 1020px) { body:has(.composer) .scroll-jumps { bottom: 136px; } }
.to-top {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-3); background: rgb(16 19 23 / 0.92); color: var(--text); backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px -12px rgb(0 0 0 / 0.8); transition: border-color .2s, color .2s; animation: pop .2s var(--ease);
}
.to-top:hover { border-color: var(--accent-line); color: var(--accent-2); }
.to-top .icon { width: 20px; height: 20px; }
/* Who's here: under the profile on a ticket. */
.presence { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--text-2); }
.presence i { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--text-3); }
.presence--online i { background: var(--ok); }
/* The site open only in a background tab: a hollow light. */
.presence--away i { background: transparent; box-shadow: inset 0 0 0 2px var(--ok); opacity: 0.75; }
.presence--viewing i { background: var(--ok); box-shadow: 0 0 0 0 rgb(61 220 151 / 0.6); animation: presence-pulse 1.8s ease-out infinite; }
.presence--viewing { color: var(--text); }
.presence time { color: inherit; }
@keyframes presence-pulse { 70% { box-shadow: 0 0 0 7px rgb(61 220 151 / 0); } 100% { box-shadow: 0 0 0 0 rgb(61 220 151 / 0); } }
.lookup-presence { margin: 12px 0 2px; }
.lookup-presence:empty { display: none; }
/* "Asteri is typing…", above the composer. */
.typing { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; padding: 0 4px 0 56px; min-height: 20px; font-size: 13px; color: var(--text-2); }
.typing[hidden] { display: flex !important; visibility: hidden; }
.typing__dots { display: inline-flex; gap: 3px; }
.typing__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); animation: typing-dot 1.2s ease-in-out infinite; }
.typing__dots i:nth-child(2) { animation-delay: .15s; }
.typing__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .presence--viewing i, .typing__dots i { animation: none; } }
.push-offer { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-lg); border: 1px solid var(--accent-line); background: var(--accent-soft); animation: pop .25s var(--ease); }
.push-offer__text { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; font-size: 14px; }
.push-offer__text span { color: var(--text-2); }
.push-offer__text span.is-warning { color: var(--warn); }
.push-offer__actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 560px) { .push-offer { flex-wrap: wrap; } .push-offer__actions { width: 100%; justify-content: flex-end; } }
.closed-note { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-raise); color: var(--text-2); font-size: 14px; }

dialog.modal { width: min(520px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: 0 40px 100px -30px rgb(0 0 0 / 0.95); }
dialog.modal::backdrop { background: rgb(4 5 6 / 0.72); backdrop-filter: blur(4px); }
dialog.modal[open] { animation: pop .2s var(--ease); }
.modal__body { display: grid; gap: 16px; padding: 24px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); }
dialog.lightbox { max-width: 94vw; max-height: 92vh; padding: 0; border: 0; background: none; }
dialog.lightbox::backdrop { background: rgb(0 0 0 / 0.86); }
dialog.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: var(--radius); }
dialog.lightbox figure { margin: 0; display: grid; gap: 12px; justify-items: center; }
.lightbox--captioned img { max-height: 80vh; }
dialog.lightbox figcaption { display: grid; gap: 3px; max-width: 70ch; text-align: center; color: var(--text); }
dialog.lightbox figcaption strong { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
dialog.lightbox figcaption span { color: var(--text-2); font-size: 14.5px; }
dialog.lightbox figcaption strong:empty, dialog.lightbox figcaption span:empty { display: none; }
dialog.lightbox figcaption .lightbox__count { font: 12px var(--font-mono); font-style: normal; color: var(--text-3); }
dialog.lightbox figcaption .lightbox__count:empty { display: none; }
dialog.lightbox figcaption time { font: 12.5px var(--font-mono); color: var(--text-3); }
dialog.lightbox figcaption time:empty { display: none; }
.lightbox__step, .lightbox__close {
  position: fixed; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-2); background: rgb(12 14 17 / 0.72); color: var(--text); transition: background .2s, border-color .2s;
}
.lightbox__step:hover, .lightbox__close:hover { background: var(--surface-3); border-color: var(--line-3); }
.lightbox__step { top: 50%; margin-top: -23px; }
.lightbox__step--prev { left: 16px; }
.lightbox__step--next { right: 16px; }
.lightbox__close { top: 16px; right: 16px; width: 40px; height: 40px; }
.lightbox__step .icon, .lightbox__close .icon { width: 20px; height: 20px; }

/* Staff */
/* Sideways scroll on a narrow screen, never up and down: the active underline hangs 1px below the strip, which
   would otherwise give it a little vertical scrollbar. */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 14px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="true"] { color: var(--text); border-bottom-color: var(--accent); }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1; min-width: 220px; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 16px; }
.search .input { padding-left: 36px; min-height: 38px; }
.queue-row { grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) auto; }
.queue-row img { width: 34px; height: 34px; border-radius: 50%; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.stat span { font: 500 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--text-3); }
.stat strong { font: 600 34px/1 var(--font-display); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 500 10.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); padding: 12px 20px; border-bottom: 1px solid var(--line); }
.table td { padding: 13px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--surface-2); }
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; }

/* Rules */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rule { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.rule h3 { font-size: 17px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.rule h3 .mono { color: var(--text-3); font-size: 12px; font-weight: 400; }
.rule p { color: var(--text-2); font-size: 14px; margin-top: 5px; }
.enforce { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.enforce__step { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.enforce__step .mono { color: var(--text-3); font-size: 11.5px; letter-spacing: .12em; }
.enforce__step p { color: var(--text-2); font-size: 14px; }

/* Login + errors */
.center-page { min-height: calc(100vh - var(--nav-h) - 280px); display: grid; place-items: center; padding: 64px 0; }
.login { width: min(440px, 100%); display: grid; gap: 22px; padding: 36px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); text-align: center; position: relative; overflow: hidden; }
.login::before { content: ""; position: absolute; left: 50%; top: -180px; width: 420px; height: 320px; margin-left: -210px; background: radial-gradient(circle, rgb(47 111 237 / 0.22), transparent 65%); pointer-events: none; }
.login > * { position: relative; }
.login .mark { width: 64px; height: 64px; margin: 0 auto; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font: 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.error-code { font: 700 clamp(88px, 16vw, 160px)/0.9 var(--font-display); letter-spacing: -0.03em; background: linear-gradient(180deg, var(--text), var(--line-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-raise); margin-top: auto; }
.footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 32px; padding: 36px 0 40px; }
.footer__grid h4 { font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .14em; color: var(--text-3); margin-bottom: 16px; }
.footer__grid > div { display: grid; gap: 10px; align-content: start; font-size: 14px; }
.footer__grid a:not(.brand) { color: var(--text-2); transition: color .2s; width: fit-content; }
.footer__grid a:not(.brand):hover { color: var(--text); }
.footer__brand p { font-size: 14px; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 44px 0 36px; border-bottom: 1px solid var(--line); }
.footer__brand { display: grid; gap: 8px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(255 255 255 / 0.02); font-size: 14px; font-weight: 550; color: var(--text); transition: border-color .2s, background-color .2s; }
.footer__link:hover { border-color: var(--line-3); background: rgb(255 255 255 / 0.05); }
.footer__link .icon { width: 17px; height: 17px; }
.footer__link--discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.footer__link--discord:hover { background: #6b77ff; border-color: #6b77ff; }
.footer__link--donate { border-color: var(--accent-line); color: var(--accent-2); }
.footer__link--donate:hover { background: var(--accent-soft); border-color: var(--accent); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.footer__build { opacity: .7; letter-spacing: .04em; background: none; border: 0; padding: 0; color: inherit; font-size: inherit; cursor: copy; }
.footer__build:hover { opacity: 1; color: var(--accent); }

/* Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ── Responsive ───────────────────────────────────────────────────────── */
/* Settings: sections down the side, one card per section, a row per setting. */
.settings { padding-top: 32px; }
.settings__layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.settings__nav { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 2px; }
.settings__nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 14px; }
.settings__nav a:hover { background: var(--surface-2); color: var(--text); }
.settings__nav a[aria-current="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.settings__nav .icon { width: 16px; height: 16px; }
.settings__main { display: grid; gap: 24px; max-width: 760px; }
.settings-card { overflow: hidden; scroll-margin-top: calc(var(--nav-h) + 24px); }
.settings-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.settings-card__head h2 { font-size: 22px; }
.settings-card__head p { margin-top: 4px; font-size: 14px; }
.settings__status { font: 12.5px var(--font-mono); color: var(--text-3); white-space: nowrap; }
.settings__status[data-tone="ok"] { color: var(--ok); }
.settings__status[data-tone="bad"] { color: var(--bad); white-space: normal; text-align: right; max-width: 28ch; }
.settings-group { padding: 6px 24px 10px; }
.settings-group + .settings-group { border-top: 1px solid var(--line); }
.settings-group__title { margin: 16px 0 2px; font: 600 11.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; transition: opacity .2s; }
.setting + .setting { border-top: 1px dashed var(--line); }
.setting.is-off { opacity: .45; }
.setting__text { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; cursor: pointer; }
div.setting__text { cursor: default; }
.setting__text strong { font-size: 15px; font-weight: 550; color: var(--text); }
.setting__text span { font-size: 13.5px; color: var(--text-2); max-width: 54ch; }
.setting__text span.is-warning { color: var(--warn); }
.setting__control { display: flex; align-items: center; gap: 14px; }
.settings-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line); }
.settings-card__foot p { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; max-width: 60ch; }
.settings-card__foot .icon { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.switch { appearance: none; flex: none; width: 42px; height: 24px; margin: 0; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-3); position: relative; cursor: pointer; transition: .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: .2s var(--ease); }
.switch:checked { background: var(--accent-soft); border-color: var(--accent); }
.switch:checked::after { transform: translateX(18px); background: var(--accent); }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch:disabled { opacity: .4; cursor: not-allowed; }
.range { appearance: none; -webkit-appearance: none; width: 170px; height: 4px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, var(--accent) var(--fill, 50%), var(--surface-3) var(--fill, 50%)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 3px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.range::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--text); border: 3px solid var(--accent); }
.range:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; }
  .emblem { width: min(340px, 78%); margin-top: 8px; }
  .work-grid, .video-grid { grid-template-columns: repeat(2, 1fr); }
  .support-layout, .ticket-layout, .project-layout { grid-template-columns: 1fr; }
  .support-side, .meta-card { position: static; }
  .ticket-layout aside { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
  .enforce, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .settings__layout { grid-template-columns: 1fr; }
  .settings__nav { position: static; display: flex; overflow-x: auto; }
  .settings-card__head, .settings-group, .settings-card__foot { padding-inline: 18px; }
  .setting--wide { flex-wrap: wrap; }
  .memory-row { grid-template-columns: 1fr; }
  .memory-row img, .memory-row video, .memory-row__glyph { width: 100%; height: auto; max-height: 220px; }
  .memory-row__glyph { height: 90px; }
  .memory-row__actions { justify-content: flex-start; }
  .settings-card__foot { flex-direction: column; align-items: stretch; }
  :root { --nav-h: 58px; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 16px;
    background: rgb(8 9 11 / 0.97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .25s var(--ease);
  }
  .nav.is-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links { align-items: stretch; max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; }
  /* The menus open out into headed sections of the one list. */
  .nav__group-label { display: block; padding: 16px 4px 6px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
  .nav__group-label:first-child { padding-top: 6px; }
  .nav__divider, .nav-drop__button, .nav-drop__all { display: none !important; }
  .nav-drop__panel, .nav-drop__panel[hidden] { display: grid !important; position: static; width: auto; padding: 0; border: 0;
    background: none; box-shadow: none; animation: none; }
  .menu__panel.nav-drop__panel--tools { width: auto; grid-template-columns: 1fr; max-height: none; overflow: visible; }
  .nav-drop__panel .menu__section { padding: 10px 4px 2px; }
  .nav-drop__panel .menu__section::before, .nav-drop__panel .menu__section::after { display: none; }
  .menu__panel .nav-drop__item { padding: 10px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__links a { padding: 13px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav__links a[aria-current="page"]::after { left: auto; right: 4px; top: 50%; bottom: auto; margin: -2px 0 0; }
  .nav__toggle { display: inline-grid; }
  .user-chip__name, .user-chip__caret { display: none; }
  .user-chip { padding: 0 4px; }
  .brand__word { font-size: 14px; }
  /* The bar has to fit a phone's width: its round buttons never shrink (they'd squash into ovals, and what
     didn't fit would push the page wider than the screen), and the gaps tighten instead. */
  .nav__inner { gap: 12px; }
  .nav__end { gap: 6px; }
  .nav__search, .notif__button, .user-chip, .nav__toggle { flex: none; }
  .brand { min-width: 0; }
  .work-grid, .video-grid, .split, .rules, .enforce, .steps, .stats { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); }
  .case { grid-template-columns: auto minmax(0, 1fr); }
  .case__action { grid-column: 1 / -1; justify-self: start; }
  .case__locked { text-align: left; max-width: none; }
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .section__head { flex-direction: column; align-items: start; }
  .queue-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .queue-row .queue-row__case { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; }
  .hint-keys { display: none; }
  .table th:nth-child(n+4), .table td:nth-child(n+4) { display: none; }
  .login { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ── Seasons: boot.js sets <html data-season> from the visitor's date ─── */
/* Halloween: the logo goes pumpkin orange, and a spider dangles from it. */
html[data-season="halloween"] .brand__word b { color: #ff8a1f; }
html[data-season="halloween"] .nav .mark__a { background: linear-gradient(160deg, #ffc46b, #ff7a00 55%, #c24e00); }
html[data-season="halloween"] .nav .mark { filter: drop-shadow(0 0 6px rgb(255 122 0 / 0.55)); }
html[data-season="halloween"] .nav .brand { position: relative; }
html[data-season="halloween"] .nav .brand::after {
  content: ""; position: absolute; left: 8px; top: 62%; width: 14px; height: 30px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 30'%3E %3Cline x1='7' y1='0' x2='7' y2='20' stroke='white' stroke-opacity='0.45' stroke-width='0.7'/%3E %3Cg stroke='%23cfdce8' stroke-width='0.9' stroke-linecap='round' fill='none'%3E %3Cpath d='M5.5 21 L1.5 18.5 M5.5 22.5 L1 22.5 M5.5 24 L1.5 26.5 M6 25 L3.5 29'/%3E %3Cpath d='M8.5 21 L12.5 18.5 M8.5 22.5 L13 22.5 M8.5 24 L12.5 26.5 M8 25 L10.5 29'/%3E %3C/g%3E %3Cellipse cx='7' cy='23' rx='2.6' ry='3.1' fill='%23cfdce8'/%3E %3Ccircle cx='7' cy='19.6' r='1.6' fill='%23cfdce8'/%3E %3Ccircle cx='6.3' cy='19.4' r='0.4' fill='%23ff7a00'/%3E%3Ccircle cx='7.7' cy='19.4' r='0.4' fill='%23ff7a00'/%3E %3C/svg%3E") no-repeat top center / 14px 30px;
  transform-origin: top center; animation: spider-dangle 3.4s ease-in-out infinite;
}
@keyframes spider-dangle {
  0%, 100% { transform: translateY(-9px) rotate(-4deg); }
  50% { transform: translateY(3px) rotate(4deg); }
}
/* Winter (Christmas too): a little snow settled on the flat top edge of the
   logo's hexagon, a frosty STUDIOS, and a couple of flakes drifting past. */
html:is([data-season="christmas"], [data-season="winter"]) .brand__word b { color: #9fd8ff; text-shadow: 0 0 10px rgb(159 216 255 / 0.45); }
html:is([data-season="christmas"], [data-season="winter"]) .nav .mark { filter: drop-shadow(0 0 6px rgb(159 216 255 / 0.45)); }
html:is([data-season="christmas"], [data-season="winter"]) .nav .mark::before {
  /* The frame's top edge runs from 29% to 71% across, 8% down. */
  content: ""; position: absolute; left: 25%; right: 25%; top: -2px; height: 6px; z-index: 2; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 10' preserveAspectRatio='none'%3E%3Cpath d='M0 9.5 C1.5 6 4.5 4 8.5 4.4 C11.5 1.6 15.5 0.8 18.5 2.6 C21.5 0.9 25.5 1.4 27.8 4 C31 3.6 34.3 5.8 36 9.5 C33 10.2 29 9.6 26 10 C22 9.4 14 10.2 10 9.6 C6 10.2 3 9.8 0 9.5Z' fill='%23f4f8ff'/%3E%3Cpath d='M2 9.2 C8 8.4 28 8.4 34 9.2 C30 9.9 6 9.9 2 9.2Z' fill='%23bcdcff' opacity='0.8'/%3E%3Cpath d='M24 9.6 C24.6 9.6 25 10 24.8 10 Z' fill='%23f4f8ff'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
html:is([data-season="christmas"], [data-season="winter"]) .nav .brand { position: relative; }
html:is([data-season="christmas"], [data-season="winter"]) .nav .brand::before,
html:is([data-season="christmas"], [data-season="winter"]) .nav .brand::after {
  content: ""; position: absolute; top: -6px; width: 7px; height: 7px; pointer-events: none; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg stroke='%23e8f6ff' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M10 2v16M3.1 6l13.8 8M3.1 14l13.8-8'/%3E%3Cpath d='M8 3.5l2 2 2-2M8 16.5l2-2 2 2' fill='none'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; animation: flake-fall 5s linear infinite;
}
html:is([data-season="christmas"], [data-season="winter"]) .nav .brand::before { left: 3px; }
html:is([data-season="christmas"], [data-season="winter"]) .nav .brand::after { left: 26px; width: 5px; height: 5px; animation-delay: 2.5s; animation-duration: 6s; }
@keyframes flake-fall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  15% { opacity: .9; }
  50% { transform: translate(4px, 16px) rotate(90deg); }
  85% { opacity: .6; }
  100% { transform: translate(-2px, 32px) rotate(180deg); opacity: 0; }
}
/* New Year: fireworks going off around the logo, and STUDIOS shimmering gold. */
html[data-season="newyear"] .brand__word b {
  background: linear-gradient(90deg, #ffd166, #fff3c4, #ffd166, #4d8dff, #ffd166); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: gold-shimmer 5s linear infinite;
}
@keyframes gold-shimmer { to { background-position: -300% 0; } }
html[data-season="newyear"] .nav .brand { position: relative; }
html[data-season="newyear"] .nav .brand::before, html[data-season="newyear"] .nav .brand::after {
  content: ""; position: absolute; width: 36px; height: 36px; pointer-events: none; opacity: 0;
  animation: firework 2.8s ease-out infinite;
}
html[data-season="newyear"] .nav .brand::before { left: -16px; top: -12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg stroke='%23ffd166' fill='%23ffd166' stroke-width='1.4' stroke-linecap='round'%3E%3Cline x1='25.0' y1='20.0' x2='35.0' y2='20.0'/%3E%3Ccircle cx='38.0' cy='20.0' r='1.3'/%3E%3Cline x1='24.3' y1='22.5' x2='33.0' y2='27.5'/%3E%3Ccircle cx='35.6' cy='29.0' r='1.3'/%3E%3Cline x1='22.5' y1='24.3' x2='27.5' y2='33.0'/%3E%3Ccircle cx='29.0' cy='35.6' r='1.3'/%3E%3Cline x1='20.0' y1='25.0' x2='20.0' y2='35.0'/%3E%3Ccircle cx='20.0' cy='38.0' r='1.3'/%3E%3Cline x1='17.5' y1='24.3' x2='12.5' y2='33.0'/%3E%3Ccircle cx='11.0' cy='35.6' r='1.3'/%3E%3Cline x1='15.7' y1='22.5' x2='7.0' y2='27.5'/%3E%3Ccircle cx='4.4' cy='29.0' r='1.3'/%3E%3Cline x1='15.0' y1='20.0' x2='5.0' y2='20.0'/%3E%3Ccircle cx='2.0' cy='20.0' r='1.3'/%3E%3Cline x1='15.7' y1='17.5' x2='7.0' y2='12.5'/%3E%3Ccircle cx='4.4' cy='11.0' r='1.3'/%3E%3Cline x1='17.5' y1='15.7' x2='12.5' y2='7.0'/%3E%3Ccircle cx='11.0' cy='4.4' r='1.3'/%3E%3Cline x1='20.0' y1='15.0' x2='20.0' y2='5.0'/%3E%3Ccircle cx='20.0' cy='2.0' r='1.3'/%3E%3Cline x1='22.5' y1='15.7' x2='27.5' y2='7.0'/%3E%3Ccircle cx='29.0' cy='4.4' r='1.3'/%3E%3Cline x1='24.3' y1='17.5' x2='33.0' y2='12.5'/%3E%3Ccircle cx='35.6' cy='11.0' r='1.3'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; }
html[data-season="newyear"] .nav .brand::after { left: 20px; top: -16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg stroke='%237aabff' fill='%237aabff' stroke-width='1.4' stroke-linecap='round'%3E%3Cline x1='25.0' y1='20.0' x2='35.0' y2='20.0'/%3E%3Ccircle cx='38.0' cy='20.0' r='1.3'/%3E%3Cline x1='24.3' y1='22.5' x2='33.0' y2='27.5'/%3E%3Ccircle cx='35.6' cy='29.0' r='1.3'/%3E%3Cline x1='22.5' y1='24.3' x2='27.5' y2='33.0'/%3E%3Ccircle cx='29.0' cy='35.6' r='1.3'/%3E%3Cline x1='20.0' y1='25.0' x2='20.0' y2='35.0'/%3E%3Ccircle cx='20.0' cy='38.0' r='1.3'/%3E%3Cline x1='17.5' y1='24.3' x2='12.5' y2='33.0'/%3E%3Ccircle cx='11.0' cy='35.6' r='1.3'/%3E%3Cline x1='15.7' y1='22.5' x2='7.0' y2='27.5'/%3E%3Ccircle cx='4.4' cy='29.0' r='1.3'/%3E%3Cline x1='15.0' y1='20.0' x2='5.0' y2='20.0'/%3E%3Ccircle cx='2.0' cy='20.0' r='1.3'/%3E%3Cline x1='15.7' y1='17.5' x2='7.0' y2='12.5'/%3E%3Ccircle cx='4.4' cy='11.0' r='1.3'/%3E%3Cline x1='17.5' y1='15.7' x2='12.5' y2='7.0'/%3E%3Ccircle cx='11.0' cy='4.4' r='1.3'/%3E%3Cline x1='20.0' y1='15.0' x2='20.0' y2='5.0'/%3E%3Ccircle cx='20.0' cy='2.0' r='1.3'/%3E%3Cline x1='22.5' y1='15.7' x2='27.5' y2='7.0'/%3E%3Ccircle cx='29.0' cy='4.4' r='1.3'/%3E%3Cline x1='24.3' y1='17.5' x2='33.0' y2='12.5'/%3E%3Ccircle cx='35.6' cy='11.0' r='1.3'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; animation-delay: 1.4s; }
@keyframes firework {
  0% { transform: scale(0.15); opacity: 0; }
  12% { opacity: 1; }
  65% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1.15); opacity: 0; }
}
/* Valentine's Day: a pink STUDIOS, and a heart beating over the logo. */
html[data-season="valentine"] .brand__word b { color: #ff6fae; }
html[data-season="valentine"] .nav .mark { filter: drop-shadow(0 0 6px rgb(255 111 174 / 0.55)); }
html[data-season="valentine"] .nav .brand { position: relative; }
html[data-season="valentine"] .nav .brand::after {
  content: ""; position: absolute; left: 22px; top: -6px; width: 13px; height: 13px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 28C4 20 0 12 6 6c5-5 10-1 10 3 0-4 5-8 10-3 6 6 2 14-10 22z' fill='%23ff6fae'/%3E%3C/svg%3E") no-repeat center / contain; animation: heartbeat 1.6s ease-in-out infinite;
}
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.28); } 30% { transform: scale(1); } 45% { transform: scale(1.18); } }
/* Easter: a pastel STUDIOS, and an egg sat by the logo, now and then wobbling. */
html[data-season="easter"] .brand__word b {
  background: linear-gradient(90deg, #ffb3cf, #fff3a8 35%, #a8e6cf 65%, #b6e5ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-season="easter"] .nav .mark { filter: drop-shadow(0 0 6px rgb(182 229 255 / 0.5)); }
html[data-season="easter"] .nav .brand { position: relative; }
html[data-season="easter"] .nav .brand::after {
  content: ""; position: absolute; left: 24px; top: 58%; width: 11px; height: 14px; pointer-events: none; transform-origin: 50% 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 28'%3E%3Cpath d='M11 1C5.5 1 1 10 1 17a10 10 0 0 0 20 0C21 10 16.5 1 11 1Z' fill='%23ffb3cf'/%3E%3Cpath d='M1.6 14.5 5 12l3.4 2.5L11 12l2.6 2.5L17 12l3.4 2.5' fill='none' stroke='%23ff6fae' stroke-width='2.4'/%3E%3C/svg%3E") no-repeat center / contain;
  animation: egg-wobble 4s ease-in-out infinite;
}
@keyframes egg-wobble { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-14deg); } 88% { transform: rotate(12deg); } 92% { transform: rotate(-7deg); } 96% { transform: rotate(4deg); } }
/* The Day of the Dead (with All Saints' Day): a marigold STUDIOS, and papel picado strung under the bar. */
html[data-season="dayofthedead"] .brand__word b { color: #ff9f1c; text-shadow: 0 0 10px rgb(255 159 28 / 0.4); }
html[data-season="dayofthedead"] .nav .mark { filter: drop-shadow(0 0 6px rgb(255 159 28 / 0.5)); }
.season-picado { position: absolute; left: 0; right: 0; top: 100%; height: 18px; display: flex; justify-content: space-around; pointer-events: none; }
.season-picado::before { content: ""; position: absolute; left: 0; right: 0; top: 1px; height: 1px; background: rgb(255 255 255 / 0.25); }
.season-picado i { position: relative; width: 16px; height: 14px; margin-top: 1px; background: var(--flag);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 84% 100%, 67% 72%, 50% 100%, 33% 72%, 16% 100%, 0 72%);
  -webkit-mask: radial-gradient(circle at 50% 38%, transparent 2.2px, #000 2.6px); mask: radial-gradient(circle at 50% 38%, transparent 2.2px, #000 2.6px);
  transform-origin: 50% 0; animation: picado-sway 3.6s ease-in-out infinite; animation-delay: var(--d); opacity: .9; }
@keyframes picado-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
/* Remembrance Day (Veterans Day in the US): a poppy by the logo, and a quieter STUDIOS. */
html[data-season="remembrance"] .brand__word b { color: #e8e8ea; }
html[data-season="remembrance"] .nav .brand { position: relative; }
html[data-season="remembrance"] .nav .brand::after {
  content: ""; position: absolute; left: 23px; top: -5px; width: 14px; height: 14px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cg fill='%23d7263d'%3E%3Ccircle cx='16' cy='8.5' r='7.5'/%3E%3Ccircle cx='23.5' cy='16' r='7.5'/%3E%3Ccircle cx='16' cy='23.5' r='7.5'/%3E%3Ccircle cx='8.5' cy='16' r='7.5'/%3E%3C/g%3E%3Ccircle cx='16' cy='16' r='4' fill='%23111'/%3E%3C/svg%3E") no-repeat center / contain;
}
/* US Thanksgiving: an amber STUDIOS, and a leaf drifting down past the logo now and then. */
html[data-season="thanksgiving"] .brand__word b { color: #f2a73b; }
html[data-season="thanksgiving"] .nav .mark { filter: drop-shadow(0 0 6px rgb(217 130 43 / 0.5)); }
html[data-season="thanksgiving"] .nav .brand { position: relative; }
html[data-season="thanksgiving"] .nav .brand::after {
  content: ""; position: absolute; left: 22px; top: -8px; width: 12px; height: 12px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c3 3 7 4 9 3-1 5-4 9-9 11C7 14 4 10 3 5c2 1 6 0 9-3z' fill='%23d9822b'/%3E%3Cpath d='M12 6v16' stroke='%237a3d0a' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat center / contain;
  animation: leaf-fall 7s ease-in-out infinite;
}
@keyframes leaf-fall { 0%, 55% { transform: translate(0, 0) rotate(0); opacity: 1; } 80% { transform: translate(10px, 26px) rotate(70deg); opacity: 1; } 100% { transform: translate(-4px, 44px) rotate(130deg); opacity: 0; } }
/* Black Friday: a gold STUDIOS, and a sale tag hung on the logo. */
html[data-season="blackfriday"] .brand__word b { color: #f5c542; }
html[data-season="blackfriday"] .nav .mark { filter: grayscale(1) brightness(1.15) drop-shadow(0 0 6px rgb(245 197 66 / 0.45)); }
html[data-season="blackfriday"] .nav .brand { position: relative; }
html[data-season="blackfriday"] .nav .brand::after {
  content: "SALE"; position: absolute; left: 20px; top: -9px; padding: 1px 4px; border-radius: 3px; pointer-events: none;
  font: 800 8px/1.2 var(--font-mono); letter-spacing: .06em; color: #111; background: #f5c542; transform: rotate(-12deg);
}
/* April Fools' Day: STUDIOS upside down, and the emblem too. Nobody mention it. */
html[data-season="aprilfools"] .brand__word b { display: inline-block; rotate: 180deg; }

/* The home emblem takes the season's colour: a flickering jack-o'-lantern
   orange, frost blue, gold, or pink. */
/* The colour is a still filter, drawn once; the flicker is opacity, which costs nothing to animate. */
html[data-season="halloween"] .emblem__stage { filter: hue-rotate(118deg) saturate(1.4); animation: lantern 3.4s ease-in-out infinite; }
@keyframes lantern { 0%, 100% { opacity: 1; } 44% { opacity: .8; } 50% { opacity: 1; } 56% { opacity: .88; } }
html:is([data-season="christmas"], [data-season="winter"]) .emblem__stage { filter: hue-rotate(-70deg) saturate(1.1); }
html[data-season="newyear"] .emblem__stage { filter: hue-rotate(135deg) saturate(1.25) brightness(1.05); }
html[data-season="valentine"] .emblem__stage { filter: hue-rotate(60deg) saturate(1.2); }
html[data-season="easter"] .emblem__stage { filter: hue-rotate(35deg) saturate(.55) brightness(1.2); }
html[data-season="aprilfools"] .emblem__stage { scale: 1 -1; }
html[data-season="dayofthedead"] .emblem__stage { filter: hue-rotate(160deg) saturate(1.5); }
html[data-season="remembrance"] .emblem__stage { filter: hue-rotate(130deg) saturate(1.3) brightness(.9); }
html[data-season="thanksgiving"] .emblem__stage { filter: hue-rotate(170deg) saturate(.9) brightness(1.05); }
html[data-season="blackfriday"] .emblem__stage { filter: grayscale(1) brightness(1.1); }

/* Halloween: cobwebs in the corners of the header areas, fog along their floor. */
.season-decor { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.season-decor__web { position: absolute; top: 0; left: 0; width: 160px; height: 160px; opacity: .28; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 150'%3E%3Cpath d='M0 0 L149.6 10.5 M0 0 L141.0 51.3 M0 0 L119.8 90.3 M0 0 L88.2 121.4 M0 0 L51.3 141.0 M0 0 L10.5 149.6 M20.0 1.4 Q16.8 3.6 18.8 6.8 M18.8 6.8 Q15.1 8.2 16.0 12.0 M16.0 12.0 Q12.1 12.3 11.8 16.2 M11.8 16.2 Q8.1 15.2 6.8 18.8 M6.8 18.8 Q3.6 16.8 1.4 20.0 M41.9 2.9 Q35.3 7.5 39.5 14.4 M39.5 14.4 Q31.7 17.2 33.5 25.3 M33.5 25.3 Q25.3 25.8 24.7 34.0 M24.7 34.0 Q17.0 31.9 14.4 39.5 M14.4 39.5 Q7.5 35.3 2.9 41.9 M65.8 4.6 Q55.5 11.8 62.0 22.6 M62.0 22.6 Q49.9 27.1 52.7 39.7 M52.7 39.7 Q39.8 40.5 38.8 53.4 M38.8 53.4 Q26.6 50.1 22.6 62.0 M22.6 62.0 Q11.8 55.5 4.6 65.8 M91.8 6.4 Q77.4 16.4 86.5 31.5 M86.5 31.5 Q69.5 37.8 73.5 55.4 M73.5 55.4 Q55.5 56.4 54.1 74.4 M54.1 74.4 Q37.1 69.9 31.5 86.5 M31.5 86.5 Q16.4 77.4 6.4 91.8 M119.7 8.4 Q100.9 21.5 112.8 41.0 M112.8 41.0 Q90.7 49.2 95.8 72.2 M95.8 72.2 Q72.3 73.6 70.5 97.1 M70.5 97.1 Q48.4 91.1 41.0 112.8 M41.0 112.8 Q21.5 100.9 8.4 119.7' fill='none' stroke='%23ffffff' stroke-width='0.9' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat top left / contain; }
.season-decor__web--right { left: auto; right: 0; width: 120px; height: 120px; transform: scaleX(-1); opacity: .22; }
.season-decor__fog {
  position: absolute; left: 0; bottom: -12px; width: 200%; height: 60%;
  /* Each blob fades out (at 70% of its radius) well inside its tile, so the
     repeats join without a seam. */
  background-image: linear-gradient(to top, rgb(178 205 228 / 0.07), transparent 38%),
                    radial-gradient(22% 45% at 18% 100%, rgb(178 205 228 / 0.12), transparent 70%),
                    radial-gradient(20% 38% at 50% 100%, rgb(178 205 228 / 0.10), transparent 70%),
                    radial-gradient(22% 48% at 82% 100%, rgb(178 205 228 / 0.12), transparent 70%);
  background-size: 50% 100%; background-repeat: repeat-x; animation: fog-drift 46s linear infinite;
}
.season-decor__fog { will-change: transform; }
@media (max-width: 760px) { .season-decor__fog--b { display: none; } }  /* one layer of fog is plenty on a phone */
.season-decor__fog--b { bottom: -30px; opacity: .75; animation-duration: 70s; animation-direction: reverse; background-position: 25% 0; }
@keyframes fog-drift { to { transform: translateX(-50%); } }

/* Christmas: coloured lights strung under the menu bar. Winter: icicles. */
.season-lights { position: absolute; left: 0; right: 0; top: 100%; height: 16px; display: flex; justify-content: space-around; pointer-events: none; }
.season-lights::before { content: ""; position: absolute; left: 0; right: 0; top: 1px; height: 1px; background: #1e2a20; }
.season-lights i { position: relative; width: 7px; height: 10px; margin-top: 4px; border-radius: 50% 50% 45% 45%; background: var(--bulb); box-shadow: 0 0 8px 2px var(--bulb); animation: twinkle 2.4s ease-in-out infinite; animation-delay: var(--d); }
.season-lights i::before { content: ""; position: absolute; top: -3px; left: 1.5px; width: 4px; height: 4px; border-radius: 1px; background: #2a2f2a; }
.season-lights i:nth-child(5n+1) { --bulb: #ff4d5e; }
.season-lights i:nth-child(5n+2) { --bulb: #ffd166; }
.season-lights i:nth-child(5n+3) { --bulb: #3ddc97; }
.season-lights i:nth-child(5n+4) { --bulb: #4db8ff; }
.season-lights i:nth-child(5n) { --bulb: #7aabff; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }  /* opacity alone: no repaint */
.season-icicles { position: absolute; left: 0; right: 0; top: 100%; height: 12px; pointer-events: none; opacity: .85; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12'%3E%3Cdefs%3E%3ClinearGradient id='i' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e8f6ff'/%3E%3Cstop offset='1' stop-color='%239fd8ff' stop-opacity='0.2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M-0.4 0 L2.0 7 L4.4 0Z M6.6 0 L9.0 12 L11.4 0Z M13.6 0 L16.0 5 L18.4 0Z M19.6 0 L22.0 10 L24.4 0Z M27.6 0 L30.0 6 L32.4 0Z M34.6 0 L37.0 11 L39.4 0Z M42.6 0 L45.0 7 L47.4 0Z M49.6 0 L52.0 9 L54.4 0Z' fill='url(%23i)'/%3E%3Crect width='60' height='1.6' fill='%23e8f6ff'/%3E%3C/svg%3E") repeat-x top left / 60px 12px; }

/* New Year: a countdown to midnight on the home page, and confetti. */
.season-countdown { display: inline-flex; width: fit-content; padding: 6px 12px; border: 1px solid rgb(255 209 102 / 0.35); border-radius: 999px; background: rgb(255 209 102 / 0.06); color: #ffd166; font-size: 13px; letter-spacing: .06em; }
.confetti { position: fixed; inset: 0; z-index: 150; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -14px; left: var(--x); width: 8px; height: 13px; border-radius: 2px; background: var(--c); transform: rotate(var(--r)); animation: confetti-fall var(--t) cubic-bezier(.25, .6, .4, 1) var(--d) forwards; }
@keyframes confetti-fall { 90% { opacity: 1; } to { transform: translate(var(--dx), 105vh) rotate(calc(var(--r) + 720deg)); opacity: 0; } }

/* Easter: an egg perched on something on the page, found with a click. */
.easter-egg {
  position: absolute; z-index: 30; width: 22px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer;
  transform-origin: 50% 100%; animation: egg-wobble 5s ease-in-out infinite; filter: drop-shadow(0 3px 4px rgb(0 0 0 / 0.5));
}
.easter-egg svg { display: block; width: 100%; height: 100%; }
.easter-egg:hover, .easter-egg:focus-visible { animation-duration: 1.2s; }
.easter-egg.is-found { animation: none; cursor: default; }
.easter-egg.is-found svg { animation: egg-found .6s cubic-bezier(.2, .9, .3, 1.2) forwards; }
@keyframes egg-found { 40% { transform: translateY(-14px) scale(1.25); } to { transform: translateY(-22px) scale(.2); opacity: 0; } }
.easter-egg__note {
  position: absolute; left: 50%; bottom: 100%; translate: -50% -4px; white-space: nowrap; padding: 3px 8px; border-radius: 999px;
  background: rgb(12 17 22 / 0.92); border: 1px solid rgb(182 229 255 / 0.45); color: #fff3a8; font-size: 12px;
  animation: egg-note 1.8s ease forwards;
}
@keyframes egg-note { 0% { opacity: 0; translate: -50% 4px; } 15%, 75% { opacity: 1; translate: -50% -4px; } to { opacity: 0; translate: -50% -12px; } }
@media (prefers-reduced-motion: reduce) { .easter-egg, html[data-season="easter"] .nav .brand::after { animation: none; } }

/* April Fools' Day: the update everyone has been waiting for. */
.fools-update { gap: 12px; }
.fools-update__icon { width: 20px; height: 20px; flex: none; background: #3ddc97; -webkit-mask: url("/static/icons/sparkles.svg") center / contain no-repeat; mask: url("/static/icons/sparkles.svg") center / contain no-repeat; }
.fools-update.is-fooled .fools-update__icon { background: #ffd166; -webkit-mask-image: url("/static/icons/fish.svg"); mask-image: url("/static/icons/fish.svg"); }
.fools-update .btn { flex: none; }

/* Badges: a hexagon tile with the badge's icon, in a pop-up and in Settings. */
.badge-tile { display: grid; place-items: center; width: 46px; height: 46px; flex: none;
  clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); background: linear-gradient(160deg, #7aabff, #2f6fed 55%, #0a317d); }
/* A seasonal badge wears its season's colours. */
.badge-tile--halloween { background: linear-gradient(160deg, #ffc46b, #ff7a00 55%, #8a3200); }
.badge-tile--christmas { background: linear-gradient(160deg, #ff8a95, #c8102e 55%, #1f6e3f); }
.badge-tile--newyear { background: linear-gradient(160deg, #fff3c4, #e0a800 55%, #6b4a00); }
.badge-tile--winter { background: linear-gradient(160deg, #e3f4ff, #3aa0ff 55%, #124a85); }
.badge-tile--valentine { background: linear-gradient(160deg, #ffd6e5, #ff6fae 50%, #a8173f); }
.badge-tile--aprilfools { background: linear-gradient(160deg, #fff3a8, #3ddc97 55%, #156b48); }
.badge-tile--easter { background: linear-gradient(160deg, #fff3a8, #ffb3cf 45%, #6bc0ff); }
.badge-tile i { width: 22px; height: 22px; background: #ffffff; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
/* The corner they stack in: newest at the bottom, the stack growing upward. */
.badge-stack { position: fixed; right: 20px; bottom: 20px; z-index: 65; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.badge-toast {
  display: flex; align-items: center; gap: 14px; max-height: 140px; overflow: hidden;
  max-width: min(360px, calc(100vw - 40px)); padding: 14px 18px 14px 14px; border: 1px solid rgb(77 141 255 / 0.4); border-radius: 14px;
  background: rgb(12 17 22 / 0.95); box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.85);
  opacity: 0; transform: translateY(24px) scale(.96);
  transition: transform .45s cubic-bezier(.2, .9, .3, 1.2), opacity .3s, max-height .4s ease .1s, padding .4s ease .1s, margin .4s ease .1s, border-width .4s ease .1s;
}
.badge-toast.is-shown { opacity: 1; transform: none; }
/* Clearing off: it slides out sideways and folds away, and the ones below close up. */
.badge-toast.is-shown.is-leaving { opacity: 0; transform: translateX(40px); max-height: 0; padding-top: 0; padding-bottom: 0; margin-top: -10px; border-width: 0; }
.badge-toast .badge-tile { width: 52px; height: 52px; animation: badge-pop .6s cubic-bezier(.2, .9, .3, 1.4) .15s both; }
@keyframes badge-pop { from { transform: scale(.4) rotate(-25deg); } to { transform: none; } }
.badge-toast__text { display: grid; gap: 2px; }
.badge-toast__text small { font: 600 11px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: #7aabff; }
.badge-toast__text strong { font-family: var(--font-display); font-size: 19px; line-height: 1.15; }
.badge-toast__text > span { font-size: 13px; color: var(--text-2); }
.badge-count { margin-left: 8px; font: 500 12px/1 var(--font-mono); color: var(--text-3); letter-spacing: .04em; }
.badge-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.badge-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.badge-item > span { display: grid; gap: 2px; min-width: 0; }
.badge-item strong { font-size: 14px; }
.badge-item small { font-size: 12.5px; line-height: 1.4; color: var(--text-2); }
.badge-item em { font: normal 11px/1.2 var(--font-mono); color: #7aabff; }
.badge-item .badge-item__season { font: normal 11px/1.3 var(--font-mono); color: var(--text-3); }
.badge-item .badge-item__season.is-now { color: #3ddc97; }
.badge-item:not(.is-earned) .badge-tile { background: var(--surface-2); }
.badge-item:not(.is-earned) .badge-tile i { background: var(--text-3); }
.badge-item:not(.is-earned) strong { color: var(--text-3); }
.badge-item.is-earned { border-color: rgb(77 141 255 / 0.35); background: linear-gradient(160deg, rgb(47 111 237 / 0.08), transparent 70%); }
@media (prefers-reduced-motion: reduce) { .badge-toast, .badge-toast .badge-tile { transition: none; animation: none; } }

/* Halloween's ghost says Boo in a bubble of its own. */
.avatar-hiss.avatar-hiss--boo { background: #f4f0ff; color: #1d2d3d; }

@media (prefers-reduced-motion: reduce) {
  html[data-season] .nav .brand::before, html[data-season] .nav .brand::after, html[data-season] .brand__word b { animation: none; }
  html[data-season] .emblem__stage, .season-decor__fog, .season-lights i, .season-picado i { animation: none; }
  .confetti { display: none; }
}

/* The donate page: the form, and a checkout-style summary beside it that stays in view. */
.page-head--donate { background: radial-gradient(900px 340px at 18% 0%, rgb(236 72 153 / 0.14), transparent 72%); }
.donate { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.amount { position: relative; }
.amount input { position: absolute; opacity: 0; pointer-events: none; }
.amount span {
  display: grid; place-items: center; min-height: 84px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg-raise);
  font: 700 28px/1 var(--font-display); color: var(--text-2); cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .25s var(--ease);
}
.amount span:hover { border-color: var(--line-3); color: var(--text); transform: translateY(-2px); }
.amount input:checked + span { border-color: var(--accent); color: var(--text); background: radial-gradient(120% 120% at 50% 0%, var(--accent-soft), transparent 70%), var(--bg-raise);
  box-shadow: 0 0 0 1px var(--accent), 0 0 30px -10px var(--accent); }
.amount input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.input--lg { height: 52px; font-size: 18px; }
.donate__summary { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 12px; }
.donate__total { font: 700 54px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.donate__points { list-style: none; margin: 8px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.donate__points li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.donate__points .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
@media (max-width: 900px) { .donate { grid-template-columns: minmax(0, 1fr); } .donate__summary { position: static; } }

/* The Accounts page. */
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.account-card h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.account-card h2 .icon { width: 22px; height: 22px; }

/* Robux donors, from the game's donor board (webapp/robux.py). */
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.stats__item { display: grid; gap: 8px; align-content: start; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.stats__item strong { font: 600 32px/1.05 var(--font-display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stats__item span { font: 500 11px/1.45 var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); }
.stats__item--lead { border-color: var(--accent-line); background: radial-gradient(120% 140% at 0% 0%, var(--accent-soft), transparent 70%), var(--surface); }
.stats__item--lead strong { color: var(--accent); }
.donors { list-style: none; margin: 0; padding: 6px; display: grid; }
.donors__row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 14px; }
.donors__row + .donors__row { border-top: 1px solid var(--line); }
/* Coloured by rank, the same as the board in the game: gold, blue, bronze, two reds, then grey. */
.donors__row { --rank: #505050; box-shadow: inset 3px 0 0 var(--rank); background: linear-gradient(90deg, color-mix(in srgb, var(--rank) 14%, transparent), transparent 60%); }
.donors__row--r1 { --rank: #ffd700; }
.donors__row--r2 { --rank: #006fe6; }
.donors__row--r3 { --rank: #cd7f32; }
.donors__row--r4, .donors__row--r5 { --rank: #c83232; }
.donors__row--r1, .donors__row--r2, .donors__row--r3 { background: linear-gradient(90deg, color-mix(in srgb, var(--rank) 20%, transparent), transparent 65%); }
.earned .num { text-align: right; font-variant-numeric: tabular-nums; }
.earned td.num { display: table-cell; }
.earned td.num small { display: block; color: var(--text-3); font-size: 12.5px; }
.earned__total td { border-top: 1px solid var(--line-2); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.donors__updated { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--text-3); }
.donors__updated .icon { flex: none; width: 14px; height: 14px; color: var(--ok); }
.donors__updated time { color: var(--text-2); font-weight: 500; }
.donors__row:first-child { border-top-left-radius: 12px; border-top-right-radius: 12px; }
.donors__row:last-child { border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; }
.donors__rank { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--rank); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.donors__row--r1 .donors__rank { color: #1a1400; }
.donors__row--rn .donors__rank { background: transparent; border: 1px solid var(--line-2); color: var(--text-3); font-weight: 500; }
.donors__row--r1 .donors__amount strong { color: #ffd700; }
.donors__who { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; }
.donors__who:hover .donors__names strong { color: var(--accent); }
.donors__pic { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--bg-raise); border: 1px solid var(--line-2); }
.donors__pic--blank { display: grid; place-items: center; font: 700 16px/1 var(--font-display); color: var(--text-2); }
.donors__names { display: grid; min-width: 0; }
.donors__names strong, .donors__names small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donors__names small { color: var(--text-3); }
.donors__amount { display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.donors__amount small { color: var(--text-3); }
@media (max-width: 520px) { .donors__row { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; padding: 10px; } }

/* ── Tools ─────────────────────────────────────────────────────────────── */
.back-link { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: 13.5px; color: var(--text-3); }
.back-link:hover { color: var(--text); }
.back-link .icon { width: 15px; height: 15px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tool-card { display: grid; gap: 10px; align-content: start; padding: 24px; transition: border-color .2s, transform .2s var(--ease), background .2s; }
.tool-card:hover { border-color: var(--accent-line); background: var(--surface-2); transform: translateY(-2px); }
.tool-card__title { font-size: 18px; margin-top: 6px; }
.tool-card__text { color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.tool-card__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--accent); font-size: 14px; font-weight: 550; }
.tool-card__go .icon { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.tool-card:hover .tool-card__go .icon { transform: translateX(3px); }
.input--sm { height: 34px; padding: 0 10px; font-size: 13.5px; }
.copy-field { display: flex; gap: 8px; align-items: center; }
.copy-field .input { flex: 1; min-width: 0; height: 38px; font-size: 13px; text-overflow: ellipsis; }
.copy-field .btn { flex: none; }
.copy-field--pick .select { flex: none; width: auto; height: 38px; font-size: 13px; }
@media (max-width: 560px) {
  .copy-field .btn span { display: none; }
  .copy-field--pick { flex-wrap: wrap; }
  .copy-field--pick .input { flex-basis: 100%; order: 3; }
}

/* The video tools */
button.chip { background: none; cursor: pointer; }
.vtool { display: grid; gap: 20px; }
.vtool__drop { position: relative; display: grid; justify-items: center; gap: 10px; padding: clamp(40px, 7vw, 72px) 24px; text-align: center;
  border: 1.5px dashed var(--line-3); border-radius: var(--radius-lg); background: var(--bg-raise); cursor: pointer; transition: .2s; }
.vtool__drop:hover, .vtool__drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.vtool__drop.is-off { opacity: .5; pointer-events: none; }
.vtool__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.vtool__drop strong { font-size: 17px; }
.vtool__work { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.vtool__work[hidden], .vtool__drop[hidden] { display: none; }
.vtool__preview { overflow: hidden; }
.vtool__screen { position: relative; background: #000; }
.vtool__screen video { display: block; width: 100%; max-height: 56vh; cursor: pointer; }
.vtool__sound { display: grid; place-items: center; align-content: center; gap: 8px; height: 160px; color: var(--text-3); font-size: 13.5px; }
.vtool__sound .icon { width: 34px; height: 34px; color: var(--accent); }
.vtool__sound[hidden] { display: none; }
.vtool__nopic { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 24px;
  text-align: center; background: #0b0f18; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.vtool__nopic[hidden] { display: none; }
.vtool__nopic .icon { width: 28px; height: 28px; color: #ffb35c; }
.vtool__nopic strong { color: var(--text); font-size: 15px; }
.vtool__nopic span { max-width: 52ch; }
.vtool__screen.is-nopic { min-height: 240px; }
.vtool__screen.is-nopic .vtool__big-play { top: auto; bottom: 14px; translate: -50% 0; width: 44px; height: 44px; }
.vtool__big-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 64px; height: 64px;
  border-radius: 50%; border: 0; background: rgb(8 12 24 / 0.7); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: opacity .2s, scale .2s; }
.vtool__big-play .icon { width: 26px; height: 26px; margin-left: 3px; }
.vtool__big-play:hover { scale: 1.06; }
.vtool__screen.is-playing .vtool__big-play { opacity: 0; pointer-events: none; }
.vtool__player { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.vtool__player .btn { margin-left: auto; }
.vtool__play { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--accent-fill); color: var(--accent-ink); cursor: pointer; }
.vtool__play .icon { width: 17px; height: 17px; }
.vtool__icon-pause, .vtool__play.is-playing .vtool__icon-play { display: none; }
.vtool__play.is-playing .vtool__icon-pause { display: contents; }
/* The timeline: frames, the part boxed in blue, the rest dimmed, a white line for "now". */
.vtl { display: grid; gap: 10px; padding: 16px 14px; border-bottom: 1px solid var(--line); }
.vtl__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.vtl__top .mono { color: var(--accent); }
.vtl__track { position: relative; height: 58px; border-radius: 8px; cursor: pointer; touch-action: none; user-select: none; }
.vtl__strip { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 8px; }
.vtl__shade { position: absolute; top: 0; bottom: 0; background: rgb(5 7 13 / 0.72); pointer-events: none; }
.vtl__shade--before { left: 0; border-radius: 8px 0 0 8px; }
.vtl__shade--after { right: 0; border-radius: 0 8px 8px 0; }
.vtl__pick { position: absolute; top: -3px; bottom: -3px; border: 3px solid var(--accent-fill); border-radius: 9px; cursor: grab;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.4), 0 0 18px rgb(47 111 237 / 0.35); }
.vtl__track.is-dragging .vtl__pick { cursor: grabbing; }
.vtl__handle { position: absolute; top: -3px; bottom: -3px; width: 14px; background: var(--accent-fill); cursor: ew-resize; display: grid; place-items: center; }
.vtl__handle::after { content: ""; width: 3px; height: 22px; border-radius: 2px; background: rgb(255 255 255 / 0.85); }
.vtl__handle--start { left: -9px; border-radius: 8px 0 0 8px; }
.vtl__handle--end { right: -9px; border-radius: 0 8px 8px 0; }
.vtl__handle:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.vtl__head { position: absolute; top: -8px; bottom: -8px; width: 2px; margin-left: -1px; background: #fff; border-radius: 1px; pointer-events: none;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.5); }
.vtl__head::before { content: ""; position: absolute; top: -2px; left: 50%; translate: -50% 0; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.vtl__scale { display: flex; justify-content: space-between; font-size: 11.5px; margin-top: -2px; }
.vtool__facts { display: grid; gap: 6px; margin: 0; padding: 16px 18px; }
.vtool__facts div { display: flex; gap: 12px; }
.vtool__facts dt { width: 64px; flex: none; color: var(--text-3); }
.vtool__facts dd { margin: 0; color: var(--text-2); overflow-wrap: anywhere; }
.vtool__times { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-2); }
.vtool__times label { display: inline-flex; align-items: center; gap: 8px; }
.vtool__time { display: flex; align-items: center; gap: 8px; }
.vtool__times .input { width: 104px; }
.vtool__progress { display: grid; gap: 10px; }
.vtool__gif { display: block; max-width: 100%; max-height: 320px; border-radius: 8px; border: 1px solid var(--line-2);
  background: repeating-conic-gradient(#20252c 0 25%, #171b20 0 50%) 0 0 / 16px 16px; }
.vtool__progress[hidden] { display: none; }
.vtool__bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.vtool__bar span { display: block; height: 100%; width: 0; background: var(--accent-fill); transition: width .2s linear; }
@media (max-width: 900px) { .vtool__work { grid-template-columns: 1fr; } }

/* The image converter */
.itool { display: grid; gap: 20px; }
.itool__form { display: grid; gap: 22px; }
.itool__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; align-items: start; }
.itool__row .input { max-width: 260px; }
.itool__slider { width: 100%; max-width: 420px; accent-color: var(--accent-fill); }
.itool__colour { width: 64px; height: 38px; padding: 2px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-raise); cursor: pointer; }
.itool__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.itool__list:empty { display: none; }
.itool__item { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.itool__item.is-bad { border-color: rgb(239 90 95 / 0.35); }
.itool__item.is-bad .itool__state { color: #ff9a9d; }
.itool__thumb { width: 52px; height: 52px; flex: none; object-fit: contain; border-radius: 8px;
  background: repeating-conic-gradient(#1a1f2b 0 25%, #12161f 0 50%) 0 0 / 12px 12px; }
.itool__info { display: grid; gap: 3px; min-width: 0; flex: 1; }
.itool__info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.itool__state { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; color: var(--text-2); text-align: right; }
@media (max-width: 560px) { .itool__item { flex-wrap: wrap; } .itool__state { flex-basis: 100%; justify-content: flex-start; text-align: left; } }

/* The Minecraft lookup */
.mc-viewer__tools button, .mc-hero__copy-name, .mc-uuid button, .mc-names__copy, .mc-skin { background: none; border: 0; cursor: pointer; }
.mc-search__form { display: flex; gap: 10px; max-width: 640px; flex-wrap: wrap; }
.mc-search__form .search { min-width: 240px; }
.mc-search__form .search .input { padding-left: 40px; min-height: 50px; }
.mc-about { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.mc-about p { margin: 0; }
.mc-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(800px 420px at 28% 30%, color-mix(in srgb, var(--accent-fill) 22%, transparent), transparent 70%), linear-gradient(180deg, #0a1430, var(--bg)); }
.mc-hero::after { content: ""; position: absolute; inset: 0; background: var(--hex); background-size: 60px 34.641px; opacity: .05; pointer-events: none; }
.mc-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(300px, 520px) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding-top: 24px; padding-bottom: 24px; }
.mc-viewer { position: relative; display: grid; justify-items: center; gap: 10px; }
.mc-viewer__canvas { display: block; width: 100%; height: clamp(400px, 60vh, 560px); cursor: grab; touch-action: pan-y; opacity: 0; transition: opacity .4s; }
.mc-viewer.is-ready .mc-viewer__canvas { opacity: 1; }
.mc-viewer__canvas:active { cursor: grabbing; }
.mc-viewer.is-broken .mc-viewer__canvas, .mc-viewer.is-broken .mc-viewer__tools { display: none; }
.mc-viewer__tools { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid var(--line-2); background: rgb(8 12 24 / 0.75); backdrop-filter: blur(8px); }
.mc-viewer__tools button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: var(--text-3); transition: .15s; }
.mc-viewer__tools button:hover { color: var(--text); background: var(--surface-2); }
.mc-viewer__tools button[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
.mc-viewer__tools .icon { width: 18px; height: 18px; }
.mc-viewer__tools button { position: relative; }
.mc-viewer__play, .mc-viewer__tools button[aria-pressed="true"] .mc-viewer__pause { display: contents; }
.mc-viewer__pause, .mc-viewer__tools button[aria-pressed="true"] .mc-viewer__play { display: none; }
/* What a button does, over it: shown on hover straight away, and when it's focused by keyboard. */
.mc-viewer__tools button::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 4px;
  padding: 5px 9px; border-radius: 7px; border: 1px solid var(--line-2); background: #1b2130; color: var(--text); font-size: 12px;
  font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .12s, translate .12s; z-index: 5; }
.mc-viewer__tools button:hover::after, .mc-viewer__tools button:focus-visible::after { opacity: 1; translate: -50% 0; }
.mc-viewer__hint { margin: 0; }
.mc-hero__copy { display: grid; gap: 18px; align-content: center; }
.mc-hero__name { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(40px, 6vw, 72px); overflow-wrap: anywhere; }
.mc-hero__copy-name { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--text-3); flex: none; }
.mc-hero__copy-name:hover { color: var(--text); background: var(--surface-2); }
.mc-facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0; }
.mc-facts div { display: grid; gap: 4px; }
.mc-facts dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.mc-facts dd { margin: 0; color: var(--text-2); font-size: 14.5px; }
.mc-uuid button { color: var(--text); font-size: 13.5px; padding: 0; text-align: left; overflow-wrap: anywhere; border-bottom: 1px dashed var(--line-3); cursor: copy; }
.mc-uuid button:hover { color: var(--accent); border-color: var(--accent); }
.mc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: start; }
/* Emote GIF: the preview on a checkerboard, as image editors show see-through, beside the picks. */
.mc-emotes__body { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: start; }
.mc-emotes__preview { display: block; width: 100%; height: 100%; }
.mc-emotes__pick { border-radius: 14px; }
.mc-emotes__stage { position: relative; width: 150px; height: 190px; overflow: hidden; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2);
  background: repeating-conic-gradient(#20242c 0 25%, #171a20 0 50%) 0 0 / 16px 16px; }
.mc-emotes__tag { position: absolute; left: 0; top: 0; padding: 1px 5px; background: rgb(24 24 28); color: #fff;
  font: 11px/1.4 "Pixelify Sans", var(--font-mono); white-space: nowrap; pointer-events: none; }
@media (max-width: 520px) { .mc-emotes__body { grid-template-columns: 1fr; } .mc-emotes__stage { justify-self: center; } }
.mc-card__title { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 13px; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.mc-card__title .icon { width: 16px; height: 16px; }
.mc-card__title .faint { letter-spacing: 0; }
.mc-skins { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-skin { display: grid; place-items: center; padding: 4px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-raise); transition: .15s; cursor: pointer; }
.mc-skin:hover { border-color: var(--line-3); transform: translateY(-1px); }
.mc-skin.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mc-skin { position: relative; }
/* The card above a skin: shown after a short hover, or straight away when it's focused. */
.mc-tip { position: absolute; bottom: calc(100% + 10px); left: 50%; z-index: 5; display: grid; gap: 3px; width: max-content; max-width: 260px;
  padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: #1b2130; box-shadow: 0 8px 24px rgb(0 0 0 / 0.45);
  color: var(--text-3); font-size: 12px; text-align: left; line-height: 1.4; white-space: nowrap; pointer-events: none;
  opacity: 0; translate: calc(-50% + var(--shift, 0px)) 4px; transition: opacity .15s, translate .15s; }
.mc-tip b { color: var(--text); font-weight: 600; }
.mc-tip::after { content: ""; position: absolute; top: 100%; left: 50%; translate: calc(-50% - var(--shift, 0px)) 0; border: 6px solid transparent; border-top-color: #1b2130; }
.mc-skin:hover .mc-tip { opacity: 1; translate: calc(-50% + var(--shift, 0px)) 0; transition-delay: .35s; }
.mc-skin:focus-visible .mc-tip { opacity: 1; translate: calc(-50% + var(--shift, 0px)) 0; }
/* A face from the skin itself: the 8x8 face, with the hat layer over it, a pixel to six. */
.mc-face { display: block; width: 48px; height: 48px; image-rendering: pixelated;
  background: var(--skin) -240px -48px / 384px 384px no-repeat, var(--skin) -48px -48px / 384px 384px no-repeat; }
.mc-names { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mc-names li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-raise); }
.mc-names__n { width: 18px; text-align: right; }
.mc-names__when { margin-left: auto; text-align: right; }
.mc-names__copy { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--text-3); flex: none; }
.mc-names__copy:hover { color: var(--text); background: var(--surface-2); }
.mc-names__copy .icon { width: 15px; height: 15px; }
.mc-api { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mc-api .btn { justify-content: center; }
@media (max-width: 860px) {
  .mc-hero__inner, .mc-grid { grid-template-columns: 1fr; }
  .mc-hero__copy { justify-items: center; text-align: center; }
  .mc-facts, .mc-hero__copy .row { justify-content: center; }
  .mc-viewer__canvas { height: 420px; }
}
@media (max-width: 560px) { .mc-api { grid-template-columns: 1fr; } .mc-names__when { display: none; } }

/* The Discord tools */
.page-head--tight { padding-top: clamp(28px, 4vw, 44px); padding-bottom: 24px; }
.dc-self { display: inline-flex; align-items: center; gap: 6px; justify-self: start; color: var(--accent); }
.dc-self .icon { width: 15px; height: 15px; }
.dc-result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
/* An account or server laid out like Discord's own profile card: banner, picture over its edge, then names. */
.dc-profile { position: relative; overflow: hidden; padding: 0; }
/* Discord's banner shape, 17:6 (680 x 240). Grey behind it, as Discord shows, until it loads; a profile with
   no banner shows its colour, if it chose one. */
.dc-profile__banner { position: relative; aspect-ratio: 17 / 6; background: var(--dc-accent, var(--surface-3)); }
.dc-profile__banner.is-colour { aspect-ratio: 17 / 4; }
.dc-profile__banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The picture sits in a ring the card's colour; a decoration is drawn 1.2 times the picture's size, centred
   on it, as Discord draws it. */
.dc-profile__avatar { --pic: 100px; position: relative; width: calc(var(--pic) + 12px); height: calc(var(--pic) + 12px);
  margin: calc(var(--pic) / -2 - 6px) 0 0 22px; padding: 6px; border-radius: 50%; background: var(--surface); }
.dc-profile__picture { display: grid; place-items: center; width: var(--pic); height: var(--pic); border-radius: 50%; object-fit: cover;
  background: var(--surface-3); }
.dc-profile__decoration { position: absolute; left: 50%; top: 50%; width: calc(var(--pic) * 1.2); height: calc(var(--pic) * 1.2);
  max-width: none; translate: -50% -50%; pointer-events: none; }
/* A name's style, as Discord draws each effect. */
.dc-name { color: var(--c1, inherit); }
.dc-name--neon { color: color-mix(in srgb, var(--c1) 30%, white);
  text-shadow: 0 0 2px var(--c1), 0 0 8px var(--c1), 0 0 18px color-mix(in srgb, var(--c1) 70%, transparent); }
.dc-name--glow { text-shadow: 0 0 14px color-mix(in srgb, var(--c1) 80%, transparent); }
.dc-name--toon { -webkit-text-stroke: 0.05em color-mix(in srgb, var(--c1) 30%, black); paint-order: stroke fill;
  text-shadow: 0 0.06em 0 color-mix(in srgb, var(--c1) 30%, black); }
.dc-name--pop { text-shadow: 0.07em 0.07em 0 color-mix(in srgb, var(--c1) 35%, black); }
.dc-name-gradient { background: linear-gradient(90deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dc-server .dc-profile__banner { aspect-ratio: 16 / 9; }
.dc-server .dc-profile__banner.is-colour { aspect-ratio: 17 / 4; }
.dc-server .dc-profile__avatar { border-radius: 30%; }
.dc-profile__body { display: grid; gap: 12px; padding: 14px 22px 24px; }
.dc-profile__name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: clamp(28px, 4vw, 40px); overflow-wrap: anywhere; }
.dc-profile__handle { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -6px 0 0; color: var(--text-2); }
.dc-app { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px; border-radius: 5px; background: #5865f2; color: #fff;
  font: 600 12px/1 var(--font-body); letter-spacing: .02em; }
.dc-app .icon { width: 13px; height: 13px; stroke-width: 3; }
.dc-app--ok { background: #23a55a; }
.dc-tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); font: 600 12.5px/1 var(--font-body); }
.dc-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dc-badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text-2); font-size: 13px; }
.dc-badge .icon { width: 14px; height: 14px; color: var(--badge, var(--accent)); }
.dc-badge img { width: 18px; height: 18px; object-fit: contain; }
.dc-badges__note { margin: -4px 0 0; }
.dc-badge--verified-app { --badge: #23a55a; }
.dc-facts { display: grid; gap: 14px; margin: 0; }
.dc-facts > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; }
.dc-facts dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.dc-facts dd { margin: 0; color: var(--text-2); font-size: 14.5px; overflow-wrap: anywhere; }
.dc-swatch { display: inline-block; width: 16px; height: 16px; border-radius: 4px; vertical-align: -3px; border: 1px solid rgb(255 255 255 / 0.15); }
.dc-hex { border: 0; background: none; color: var(--text-2); cursor: pointer; padding: 0; }
.dc-hex:hover { color: var(--text); }
.dc-files { display: grid; gap: 8px; }
.dc-file { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-raise); }
.dc-file > span:not(.row) { display: grid; gap: 2px; flex: 1; min-width: 0; }
.dc-file .row { flex: none; gap: 6px; }
.dc-file__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-3); }
.dc-file__banner { width: 88px; height: 31px; border-radius: 6px; object-fit: cover; flex: none; }
.dc-file__plate { background: var(--surface-3); }
/* The member list, as Discord draws it: the nameplate across the row, in its colour, behind the picture
   and name. */
.dc-member { position: relative; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 14px; overflow: hidden;
  border-radius: 8px; background: linear-gradient(90deg, transparent 20%, color-mix(in srgb, var(--plate, transparent) 45%, transparent)), var(--surface-2); }
.dc-member__plate { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; pointer-events: none; }
.dc-member > :not(.dc-member__plate) { position: relative; }
.dc-member__avatar { position: relative; width: 32px; height: 32px; flex: none; }
.dc-member__avatar img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.dc-member__avatar .dc-member__decoration { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; max-width: none; translate: -50% -50%; border-radius: 0; }
.dc-member__name { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.6); }
.mc-card__title .icon { width: 16px; height: 16px; color: var(--accent); vertical-align: -2px; margin-right: 4px; }
.dc-counts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -4px 0 0; color: var(--text-2); font-size: 14px; }
.dc-counts span { display: inline-flex; align-items: center; gap: 7px; }
.dc-counts b { color: var(--text); }
.dc-dot { width: 9px; height: 9px; border-radius: 50%; background: #80848e; }
.dc-dot--online { background: #23a55a; }
.dc-server .dc-profile__picture { border-radius: 28%; }
.dc-server__initials { font: 600 30px/1 var(--font-display); color: var(--text); }
.dc-inline-user { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.dc-inline-user img { border-radius: 50%; }
@media (max-width: 900px) { .dc-result { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .dc-facts > div { grid-template-columns: 1fr; gap: 6px; } .dc-file { flex-wrap: wrap; } }

/* Timestamps */
.dc-time { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
.dc-time > p, .dc-time > noscript { grid-column: 1 / -1; }
.dc-time__pick { display: grid; gap: 20px; }
.dc-time__pick .itool__row { grid-template-columns: 1fr 1fr; }
.dc-time__pick .itool__row .field:last-child { grid-column: 1 / -1; }
.dc-time__pick .input, .dc-time__pick .select { max-width: none; width: 100%; }
.dc-time__quick { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-time__quick .chip { height: 32px; background: none; cursor: pointer; font: inherit; font-size: 13px; }
.dc-time__quick .chip .icon { width: 14px; height: 14px; }
.dc-time__out { overflow: hidden; }
.dc-time__head { display: grid; gap: 3px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dc-time__list { list-style: none; margin: 0; padding: 6px 0; }
.dc-time__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name code copy" "preview code copy";
  gap: 2px 14px; align-items: center; padding: 10px 20px; }
.dc-time__row + .dc-time__row { border-top: 1px solid var(--line); }
.dc-time__name { grid-area: name; }
.dc-time__preview { grid-area: preview; color: var(--text); font-size: 15.5px; }
.dc-time__row[data-dtime-style="R"] .dc-time__preview { color: var(--accent-2); }
.dc-time__code { grid-area: code; padding: 4px 8px; border-radius: 6px; background: var(--bg-raise); border: 1px solid var(--line); color: var(--text-2); font-size: 12.5px; }
.dc-time__row .btn { grid-area: copy; }
@media (max-width: 900px) { .dc-time { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .dc-time__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name copy" "preview copy" "code code"; }
  .dc-time__code { justify-self: start; margin-top: 4px; }
  .dc-time__pick .itool__row { grid-template-columns: 1fr; }
}

/* Coloured text: the editor is a Discord code block, in the colours Discord draws each ANSI code in. */
.dc-text { overflow: hidden; padding: 0; }
.dc-text__tools { display: flex; flex-wrap: wrap; gap: 12px 22px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dc-text__group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dc-text__label { margin-right: 4px; }
.dc-swatch-btn { width: 26px; height: 26px; border-radius: 7px; border: 1px solid rgb(255 255 255 / 0.14); background: var(--c); cursor: pointer; padding: 0;
  transition: transform .15s; }
.dc-swatch-btn:hover { transform: translateY(-2px); }
.dc-swatch-btn--none { display: grid; place-items: center; background: transparent; border-color: var(--line-3); color: var(--text-3); }
.dc-swatch-btn--none .icon { width: 14px; height: 14px; }
.dc-text__editor { min-height: 220px; max-height: 60vh; overflow: auto; margin: 16px; padding: 12px 14px; border-radius: 6px; border: 1px solid #1e1f22;
  background: #2b2d31; color: #b9bbbe; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; outline: none; }
.dc-text__editor:focus { border-color: var(--accent-line); }
.dc-text__editor [data-b="1"] { font-weight: 700; }
.dc-text__editor [data-u="1"] { text-decoration: underline; }
.dc-text__editor [data-fg="0"] { color: #4f545c; }
.dc-text__editor [data-fg="1"] { color: #dc322f; }
.dc-text__editor [data-fg="2"] { color: #859900; }
.dc-text__editor [data-fg="3"] { color: #b58900; }
.dc-text__editor [data-fg="4"] { color: #268bd2; }
.dc-text__editor [data-fg="5"] { color: #d33682; }
.dc-text__editor [data-fg="6"] { color: #2aa198; }
.dc-text__editor [data-fg="7"] { color: #ffffff; }
.dc-text__editor [data-bg="0"] { background: #002b36; }
.dc-text__editor [data-bg="1"] { background: #cb4b16; }
.dc-text__editor [data-bg="2"] { background: #586e75; }
.dc-text__editor [data-bg="3"] { background: #657b83; }
.dc-text__editor [data-bg="4"] { background: #839496; }
.dc-text__editor [data-bg="5"] { background: #6c71c4; }
.dc-text__editor [data-bg="6"] { background: #93a1a1; }
.dc-text__editor [data-bg="7"] { background: #fdf6e3; }
[data-dtext-count].is-over { color: #ff9a9d; }

/* Emoji and stickers */
.dc-emoji { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.dc-emoji[hidden] { display: none; }
.dc-emoji__result { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; }
.dc-emoji__canvas { display: grid; place-items: center; width: 180px; height: 180px; border-radius: 12px; border: 1px solid var(--line-2);
  background: repeating-conic-gradient(#20252c 0 25%, #171b20 0 50%) 0 0 / 16px 16px; }
.dc-emoji__canvas img { max-width: 160px; max-height: 160px; }
.dc-emoji__canvas img:not([src]), .dc-chat img:not([src]) { visibility: hidden; }
.dc-emoji__previews { display: grid; gap: 12px; }
.dc-chat { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: #313338; color: #dbdee1; }
.dc-chat--light { background: #ffffff; color: #313338; border-color: #e3e5e8; }
.dc-chat__msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.dc-chat__avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(140deg, var(--accent), var(--accent-fill)); }
.dc-chat__name { display: block; margin-bottom: 2px; font-weight: 600; color: inherit; }
.dc-chat__name small { margin-left: 6px; font-weight: 400; font-size: 11.5px; opacity: .55; }
.dc-chat__text { margin: 0 0 4px; font-size: 15px; line-height: 1.4; }
.dc-chat__inline { display: inline-block; width: 22px; height: 22px; object-fit: contain; vertical-align: -5px; }
.dc-chat__jumbo { width: 48px; height: 48px; object-fit: contain; }
.dc-chat__sticker { width: 160px; height: 160px; object-fit: contain; }
.dc-chat__reaction { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border-radius: 8px; font-size: 13.5px; font-weight: 600;
  border: 1px solid #5865f2; background: rgb(88 101 242 / 0.15); color: #c9cdfb; }
.dc-chat--light .dc-chat__reaction { color: #3c45c4; }
.dc-chat__reaction img { width: 16px; height: 16px; object-fit: contain; }
@media (max-width: 960px) { .dc-emoji { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .dc-emoji__result { grid-template-columns: 1fr; justify-items: center; } }

/* Minecraft coloured text: the game's sixteen colours, its letters and their shadows */
[data-mtext] {
  --mc-0: #000000; --mc-1: #0000aa; --mc-2: #00aa00; --mc-3: #00aaaa; --mc-4: #aa0000; --mc-5: #aa00aa; --mc-6: #ffaa00; --mc-7: #aaaaaa;
  --mc-8: #555555; --mc-9: #5555ff; --mc-a: #55ff55; --mc-b: #55ffff; --mc-c: #ff5555; --mc-d: #ff55ff; --mc-e: #ffff55; --mc-f: #ffffff;
}
.mtext__swatch { border-color: rgb(255 255 255 / 0.22); }
.mtext__italic b { font-style: italic; font-family: Georgia, serif; }
.mtext__strike b { text-decoration: line-through; }
.mtext__editor, .mtext__preview { font-family: "Pixelify Sans", var(--font-mono); font-size: 19px; line-height: 1.5; letter-spacing: .02em; }
.mtext__editor { min-height: 150px; background: #1d1d1d; border-color: #000; color: #ffffff; text-shadow: 0.1em 0.1em 0 #3f3f3f; }
.mtext__editor [data-l="1"] { font-weight: 700; }
.mtext__editor [data-o="1"] { font-style: italic; }
.mtext__editor [data-n="1"] { text-decoration-line: underline; }
.mtext__editor [data-m="1"] { text-decoration-line: line-through; }
.mtext__editor [data-n="1"][data-m="1"] { text-decoration-line: underline line-through; }
/* In the editor, obfuscated text stays readable, marked so it can be found: the preview shows it glitching. */
.mtext__editor [data-k="1"] { background: rgb(255 255 255 / 0.08); outline: 1px dashed rgb(255 255 255 / 0.35); outline-offset: 1px; }
.mtext__editor [data-c="0"] { color: var(--mc-0); text-shadow: 0.1em 0.1em 0 #000000; }
.mtext__editor [data-c="1"] { color: var(--mc-1); text-shadow: 0.1em 0.1em 0 #00002a; }
.mtext__editor [data-c="2"] { color: var(--mc-2); text-shadow: 0.1em 0.1em 0 #002a00; }
.mtext__editor [data-c="3"] { color: var(--mc-3); text-shadow: 0.1em 0.1em 0 #002a2a; }
.mtext__editor [data-c="4"] { color: var(--mc-4); text-shadow: 0.1em 0.1em 0 #2a0000; }
.mtext__editor [data-c="5"] { color: var(--mc-5); text-shadow: 0.1em 0.1em 0 #2a002a; }
.mtext__editor [data-c="6"] { color: var(--mc-6); text-shadow: 0.1em 0.1em 0 #3f2a00; }
.mtext__editor [data-c="7"] { color: var(--mc-7); text-shadow: 0.1em 0.1em 0 #2a2a2a; }
.mtext__editor [data-c="8"] { color: var(--mc-8); text-shadow: 0.1em 0.1em 0 #151515; }
.mtext__editor [data-c="9"] { color: var(--mc-9); text-shadow: 0.1em 0.1em 0 #15153f; }
.mtext__editor [data-c="a"] { color: var(--mc-a); text-shadow: 0.1em 0.1em 0 #153f15; }
.mtext__editor [data-c="b"] { color: var(--mc-b); text-shadow: 0.1em 0.1em 0 #153f3f; }
.mtext__editor [data-c="c"] { color: var(--mc-c); text-shadow: 0.1em 0.1em 0 #3f1515; }
.mtext__editor [data-c="d"] { color: var(--mc-d); text-shadow: 0.1em 0.1em 0 #3f153f; }
.mtext__editor [data-c="e"] { color: var(--mc-e); text-shadow: 0.1em 0.1em 0 #3f3f15; }
.mtext__editor [data-c="f"] { color: var(--mc-f); text-shadow: 0.1em 0.1em 0 #3f3f3f; }
.mtext__preview-wrap { display: grid; gap: 8px; margin: 0 16px 16px; }
/* Like chat over the dirt-dark menu background. */
.mtext__preview { min-height: 64px; padding: 12px 14px; border-radius: 4px; white-space: pre-wrap; overflow-wrap: anywhere;
  background: linear-gradient(rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.55)), repeating-conic-gradient(#3b2a1d 0 25%, #33241a 0 50%) 0 0 / 32px 32px; }
.mtext__out { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.mtext__out-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.mtext__out-head > span { display: grid; gap: 2px; flex: 1; min-width: 220px; }
.mtext__out-head small { font-size: 12.5px; }
.mtext__version { width: auto; height: 34px; font-size: 13px; }
.mtext__code { width: 100%; min-height: 0; height: auto; resize: vertical; font-size: 12.5px; line-height: 1.5; }

/* QR codes: the settings beside the code, which stays in view while they change */
.qr { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.qr > noscript { grid-column: 1 / -1; }
.qr__about { margin-top: 16px; }
.qr__out { position: sticky; top: 90px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.qr__frame { display: grid; place-items: center; width: 100%; max-width: 380px; padding: 10px; border-radius: 14px;
  border: 1px solid var(--line-2); background: repeating-conic-gradient(#20252c 0 25%, #171b20 0 50%) 0 0 / 16px 16px; }
.qr__frame canvas { width: 100%; height: auto; image-rendering: pixelated; border-radius: 6px; }
.qr__out .row { justify-content: center; }
.qr textarea.input { min-height: 86px; resize: vertical; }
@media (max-width: 900px) { .qr { grid-template-columns: 1fr; } .qr__out { position: static; } }

/* Minecraft server status: the server as the game's multiplayer list shows it */
.mcs__edition { width: auto; min-height: 46px; }
.mcs { display: grid; gap: 16px; }
.mcs__head { display: grid; gap: 16px; }
.mcs__entry { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: 12px; border-radius: 8px;
  background: rgb(0 0 0 / 0.35); border: 1px solid var(--line-2); }
.mcs__icon { width: 64px; height: 64px; image-rendering: pixelated; border-radius: 4px; }
.mcs__icon--none { display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); }
.mcs__body { display: grid; gap: 4px; min-width: 0; }
.mcs__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mcs__name { margin: 0; font-family: "Pixelify Sans", var(--font-mono); font-size: 22px; font-weight: 400; color: #ffffff; overflow-wrap: anywhere; }
.mcs__players { color: #aaaaaa; font-size: 14px; }
.mcs__motd { min-height: 0; padding: 0; background: none; font-size: 17px; text-shadow: 0.1em 0.1em 0 rgb(0 0 0 / 0.6); }
.mcs__actions { margin-left: auto; gap: 8px; }
.mcs__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.mcs__people { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mcs__people a, .mcs__people span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 6px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg-raise); font-size: 14px; }
.mcs__people a { color: var(--text); }
.mcs__people a:hover { border-color: var(--accent-line); }
.mcs__people img { image-rendering: pixelated; border-radius: 3px; }
.mcs__mods { list-style: none; margin: 0; padding: 0; columns: 2 200px; column-gap: 20px; max-height: 340px; overflow: auto; }
.mcs__mods li { break-inside: avoid; padding: 3px 0; }
@media (max-width: 560px) { .mcs__actions { margin-left: 0; } }

/* The optional watermark: a little screen of nine places to put it */
.wm { display: grid; gap: 14px; }
.wm__options { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 32px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-raise); }
.wm__screen { display: grid; grid-template-columns: repeat(3, 34px); grid-template-rows: repeat(3, 22px); gap: 4px; padding: 6px;
  border-radius: 8px; border: 2px solid var(--line-3); background: var(--surface-2); width: max-content; }
.wm__screen label { position: relative; cursor: pointer; }
.wm__screen input { position: absolute; opacity: 0; pointer-events: none; }
.wm__screen span { display: block; width: 100%; height: 100%; border-radius: 4px; background: var(--surface-3); transition: background .15s; }
.wm__screen label:hover span { background: var(--line-3); }
.wm__screen input:checked + span { background: var(--accent-fill); box-shadow: 0 0 0 2px var(--accent-soft); }
.wm__screen input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.qr__symbols { gap: 8px; }
.qr__symbols .chip { height: 32px; background: none; cursor: pointer; font: inherit; font-size: 13px; }
.qr__symbols .chip .icon { width: 14px; height: 14px; }
.itool__chips { gap: 6px; margin-top: 2px; }
.itool__chips .chip { height: 28px; background: none; cursor: pointer; font: inherit; font-size: 12.5px; padding: 0 10px; }

/* The avatar and banner maker's previews: a Discord profile card, and a server's list and channels */
.dc-art__canvas { width: 240px; height: auto; min-height: 120px; padding: 10px; }
.dc-art__canvas img { max-width: 220px; max-height: 220px; }
.dc-art__profile { overflow: hidden; border-radius: 12px; background: #232428; border: 1px solid #1e1f22; }
.dc-art__banner { aspect-ratio: 17 / 6; background: linear-gradient(135deg, #3b4b8c, #5865f2); }
.dc-art__banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dc-art__avatar { width: 92px; height: 92px; margin: -46px 0 0 16px; border-radius: 50%; border: 6px solid #232428; overflow: hidden;
  background: linear-gradient(140deg, var(--accent), var(--accent-fill)); position: relative; }
.dc-art__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dc-art__lines { display: grid; gap: 8px; padding: 10px 18px 18px; color: #f2f3f5; }
.dc-art__lines span { height: 10px; width: 60%; border-radius: 5px; background: #2e3035; }
.dc-art__lines span + span { width: 40%; }
.dc-art__server { display: grid; grid-template-columns: 72px minmax(0, 1fr); min-height: 260px; overflow: hidden; border-radius: 12px;
  border: 1px solid #1e1f22; background: #2b2d31; }
.dc-art__rail { display: grid; align-content: start; justify-items: center; gap: 10px; padding: 12px 0; background: #1e1f22; }
.dc-art__rail span, .dc-art__rail img { width: 48px; height: 48px; border-radius: 50%; background: #313338; object-fit: cover; }
.dc-art__rail img:not([src]) { visibility: visible; background: linear-gradient(140deg, var(--accent), var(--accent-fill)); }
.dc-art__channels { display: grid; align-content: start; gap: 8px; color: #949ba4; font-size: 14px; }
.dc-art__channels > span { padding: 0 14px; }
.dc-art__server-banner { position: relative; aspect-ratio: 16 / 9; max-height: 150px; background: #232428; }
.dc-art__server-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dc-art__server-banner b { position: absolute; left: 12px; top: 10px; color: #fff; text-shadow: 0 1px 3px rgb(0 0 0 / 0.7); }

/* SCP: SL server list */
.scpsl__totals { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; color: var(--text-2); }
.scpsl__totals b { color: var(--text); font-size: 20px; }
.scpsl__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.scpsl__filters .select { width: auto; max-width: 100%; }   /* a long game mode's name mustn't widen a phone's page */
.scpsl__filters { min-width: 0; }
.scpsl__search { flex: 1 1 240px; }
.scpsl__list { padding: 0; overflow: hidden; }
.scpsl__head { display: flex; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.scpsl__row { display: grid; grid-template-columns: minmax(0, 1fr) auto 120px; align-items: center; gap: 16px; padding: 11px 18px;
  color: #e6e6e6; border-bottom: 1px solid var(--line); transition: background .15s; }
.scpsl__row:last-child { border-bottom: 0; }
.scpsl__row:hover { background: var(--surface-2); }
.scpsl__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.scpsl__count { font-size: 13.5px; text-align: right; }
.scpsl__bar { display: block; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.scpsl__bar span { display: block; height: 100%; border-radius: inherit; background: var(--ok); }
.scpsl__bar.is-full span { background: var(--warn); }
.scpsl__bar--big { height: 10px; width: 100%; max-width: 420px; }
.scpsl__none { padding: 24px 18px; margin: 0; }
.scpsl__pages { justify-content: center; gap: 14px; }
.scpsl__hero { display: grid; gap: 16px; }
.scpsl__title { margin: 0; font-size: clamp(22px, 3.4vw, 34px); line-height: 1.25; overflow-wrap: anywhere; color: #e6e6e6; }
.scpsl__big { display: grid; gap: 8px; font-size: 18px; }
.scpsl__address { max-width: 460px; }
@media (max-width: 640px) { .scpsl__row { grid-template-columns: minmax(0, 1fr) auto; } .scpsl__row .scpsl__bar { grid-column: 1 / -1; } }

/* Credits */
.credits__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.credits__item { display: grid; gap: 6px; align-content: start; color: var(--text); transition: border-color .2s; }
.credits__item:hover { border-color: var(--accent-line); }
.credits__item strong { display: flex; align-items: center; gap: 6px; }
.credits__item strong .icon { width: 14px; height: 14px; color: var(--text-3); }
.scpsl__next { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.scpsl__next .icon { width: 13px; height: 13px; }
.scpsl__next.is-due .icon { animation: spin 1s linear infinite; color: var(--accent); }

/* The country filter with flags (tools-scpsl.js) */
.cselect { position: relative; }
.cselect__button { display: flex; align-items: center; gap: 9px; min-width: 180px; text-align: left; cursor: pointer; }
.cselect__button .cselect__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.cselect__flag { display: inline-grid; place-items: center; width: 20px; flex: none; }
.cselect__flag img, .scpsl__flag { display: block; width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08); }
.cselect__panel { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 290px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--surface); box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.8); overflow: hidden; }
.cselect__search { padding: 8px; border-bottom: 1px solid var(--line); }
.cselect__search .input { width: 100%; height: 36px; }
.cselect__list { list-style: none; margin: 0; padding: 4px; max-height: 300px; overflow-y: auto; }
.cselect__item { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 7px; cursor: pointer; font-size: 14px; }
.cselect__item[hidden] { display: none; }
.cselect__item:hover, .cselect__item.is-active { background: var(--surface-2); }
.cselect__item[aria-selected="true"] { color: var(--accent); }
.cselect__item .cselect__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect__code { color: var(--text-3); font-size: 11.5px; }
.cselect__flag .icon { width: 17px; height: 17px; color: var(--text-2); }
/* the regions come first in the place filter, then a line, then the countries */
.cselect__item--region + .cselect__item:not(.cselect__item--region) { margin-top: 5px; position: relative; }
.cselect__item--region + .cselect__item:not(.cselect__item--region)::before { content: ""; position: absolute; left: 6px; right: 6px; top: -3px; border-top: 1px solid var(--line); }
.scpsl__country { display: flex; align-items: center; gap: 8px; }

/* Steam game server status */
.steam__hero { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 22px; }
.steam__game { width: 230px; height: auto; border-radius: 8px; border: 1px solid var(--line-2); }
.steam__people { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 360px; overflow: auto; }
.steam__people li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border-radius: 8px; background: var(--bg-raise); }
.steam__people li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { .steam__hero { grid-template-columns: 1fr; } }
/* A platform's logo after a tool's name (the Steam game server checker): it only works there */
.tool-mark { display: inline-block; width: .8em; height: .8em; margin-left: .4em; vertical-align: -0.05em; opacity: .75; }
.tool-mark-head .tool-mark { width: .62em; height: .62em; vertical-align: 0.04em; }


/* ── The game picker over the server lists, and the Rust / Garry's Mod lists ── */
.game-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.game-pick__item { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg-raise); color: var(--text-2); font-size: 14px; transition: .2s; }
.game-pick__item .icon { width: 16px; height: 16px; color: var(--accent); }
.game-pick__item:hover { color: var(--text); border-color: var(--line-3); }
.game-pick__item[aria-current="page"] { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--accent-ink); }
.game-pick__item[aria-current="page"] .icon { color: inherit; }
[data-live-results] { transition: opacity .15s; }
[data-live-results].is-loading { opacity: .55; }
.srv__row { display: grid; grid-template-columns: 44px minmax(0, 1fr) 130px auto; align-items: center; gap: 14px; padding: 11px 18px;
  border-bottom: 1px solid var(--line); }
.srv__row:last-child { border-bottom: 0; }
.srv__row:hover { background: var(--surface-2); }
.srv__rank { color: var(--text-3); font-size: 12.5px; }
.srv__main { display: grid; gap: 4px; min-width: 0; }
.srv__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; color: var(--text); }
.srv__name:hover { color: var(--accent); }
.srv__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--text-2); }
.srv__addr { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: var(--text-2);
  font-size: 12.5px; cursor: pointer; }
.srv__addr .icon { width: 12px; height: 12px; opacity: .6; }
.srv__addr:hover { color: var(--accent); }
.srv__flag { display: inline-flex; align-items: center; gap: 5px; }
.srv__flag img { border-radius: 2px; }
.srv__count { display: grid; gap: 6px; text-align: right; }
.srv__queue { color: var(--warn); font-size: 12px; }
.srv__join { padding: 0 10px; }
.srv__tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.srv__tags li { padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 12px; }
.srv-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.srv-top__card { display: grid; gap: 10px; align-content: start; min-width: 0; }
.srv-top__head { display: flex; justify-content: space-between; align-items: center; color: var(--text-2); font-size: 13px; }
.srv-top__rank { font-weight: 700; color: var(--accent); font-size: 15px; }
.srv-top__name { font-weight: 600; font-size: 15.5px; line-height: 1.35; color: var(--text); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.srv-top__name:hover { color: var(--accent); }
.srv-top__count b { font-size: 18px; }
.srv-top__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.srv-top__facts div { display: grid; gap: 2px; min-width: 0; }
.srv-top__facts dt { color: var(--text-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.srv-top__facts dd { margin: 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv-top .btn[data-copy] span { overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
@media (max-width: 640px) {
  .srv__row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .srv__rank { display: none; }
  .srv__count { grid-column: 1; grid-row: 2; text-align: left; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
  .srv__join { grid-column: 2; grid-row: 1 / span 2; }
}

/* The Minecraft server list under the status checker: icon, name, banner (or message), address */
.mcl__row { display: grid; grid-template-columns: 44px 64px minmax(0, 1fr) 130px; align-items: center; gap: 14px; padding: 12px 18px;
  border-bottom: 1px solid var(--line); }
.mcl__row:last-child { border-bottom: 0; }
.mcl__row:hover { background: var(--surface-2); }
.mcl__icon { width: 64px; height: 64px; border-radius: 6px; image-rendering: pixelated; display: grid; place-items: center; background: var(--surface-2); }
.mcl__main { display: grid; gap: 7px; min-width: 0; }
.mcl__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mcl__top .srv__name { min-width: 0; }
.mcl__flag { flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08); }
.mcl__edition { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text-2); font-size: 11.5px; }
.mcl__edition .icon { width: 12px; height: 12px; }
.mcl__mode { display: inline-flex; align-items: center; gap: 5px; }
.mcl__mode .icon { width: 13px; height: 13px; color: var(--accent); opacity: .85; }
.mcl__banner { display: block; width: min(468px, 100%); }
.mcl__banner img { display: block; width: 100%; height: auto; aspect-ratio: 468 / 60; object-fit: cover; border-radius: 4px; }
.mcl__row .mcs__motd { font-size: 14px; line-height: 1.35; }
.mcl__more .icon { width: 13px; height: 13px; }
.mcl__more:hover { color: var(--accent); }
@media (max-width: 640px) {
  .mcl__row { grid-template-columns: 48px minmax(0, 1fr); gap: 10px 12px; }
  .mcl__row .srv__rank { display: none; }
  .mcl__icon { width: 48px; height: 48px; }
  .mcl__row .srv__count { grid-column: 1 / -1; text-align: left; grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
}


/* ── Cursor spotlight (site.js): cards and list rows light up where the pointer is ──
   On a card, its border glows cobalt nearest the pointer and a faint light fills it; on a list row, just
   the light. --mx / --my are the pointer's place in the element, kept by site.js. */
.tool-card, .srv-top__card { position: relative; }
.tool-card::before, .work-card::before, .srv-top__card::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: radial-gradient(200px circle at var(--mx, -999px) var(--my, -999px), color-mix(in srgb, var(--accent) 35%, white), color-mix(in srgb, var(--accent) 80%, transparent) 35%, transparent 72%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .3s;
}
.tool-card:hover::before, .work-card:hover::before, .srv-top__card:hover::before { opacity: 1; }
.tool-card:hover, .srv-top__card:hover, .srv__row:hover, .mcl__row:hover, .scpsl__row:hover {
  background-image: radial-gradient(360px circle at var(--mx, -999px) var(--my, -999px), color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%);
}

/* ── Loading shimmer: a list being fetched afresh has a sweep of light across it ── */
[data-live-results] { transition: opacity .2s; }
[data-live-results].is-loading { opacity: .8; }
[data-live-results] .scpsl__list { position: relative; }
[data-live-results].is-loading .scpsl__list::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .07) 43%, color-mix(in srgb, var(--accent) 20%, transparent) 50%, rgb(255 255 255 / .07) 57%, transparent 70%);
  background-size: 250% 100%; animation: list-shimmer 1.1s linear infinite;
}
@keyframes list-shimmer { from { background-position: 140% 0; } to { background-position: -40% 0; } }

/* ── A ring of light running round a button: Join the Discord, and Donate ──
   Two copies of a turning cone of colour: one cut to a thin ring on the edge, one blurred behind as a glow. */
@property --glow-turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.glow-ring { position: relative; isolation: isolate; --glow: #5865f2; }
.glow-ring--donate { --glow: #ec4899; }
.glow-ring::before, .glow-ring::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--glow-turn), transparent 0 50%, color-mix(in srgb, var(--glow) 60%, transparent) 64%,
              var(--glow) 74%, color-mix(in srgb, var(--glow) 40%, white) 78%, transparent 92%);
  animation: glow-turn 4s linear infinite;
}
.glow-ring::before { padding: 1.5px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.glow-ring::after { z-index: -1; filter: blur(12px); opacity: .45; }
.glow-ring:hover::after { opacity: .75; }
@keyframes glow-turn { to { --glow-turn: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .glow-ring::before, .glow-ring::after, [data-live-results].is-loading .scpsl__list::after { animation: none; }
}

/* Support: what do you need? Each choice is a card; one that needs a sign-in you don't have is greyed out. */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.choice { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.choice:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.choice__icon { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.choice__icon svg { width: 20px; height: 20px; }
.choice--off { opacity: 0.55; filter: grayscale(0.6); }
.choice--off a { pointer-events: auto; }

.support-discord-widget { display: block; max-width: 100%; border: 0; border-radius: var(--radius); }

/* -- The home hero in the poster style of the studio's intro video (branding/video/make_poster_intro.py):
   ink black, a cyan / red split, worn print, film grain, and Asteri's split portrait on the right in
   place of the emblem (branding/make_site_hero.py). The rest of the site wears the look more lightly (below). */
.hero--poster {
  --accent: var(--poster-cyan); --accent-soft: rgb(40 196 214 / .16); --accent-line: rgb(40 196 214 / .45);
  background: radial-gradient(900px 620px at 0% 45%, rgb(40 196 214 / .09), transparent 70%),
              radial-gradient(900px 620px at 100% 60%, rgb(224 36 58 / .11), transparent 70%), #090c10;
  border-bottom: 0;
}
.hero--poster .hero__lattice { display: none; }
.hero--poster::before, .hero--poster::after { opacity: 1; height: 2px; background: none; }
.hero--poster::before { top: 0; bottom: auto; background: var(--poster-cyan); transform-origin: left; animation: poster-rule 1s var(--ease) var(--enter) both; }
.hero--poster::after { top: auto; bottom: 0; background: var(--poster-red); transform-origin: right; animation: poster-rule 1s var(--ease) calc(var(--enter) + .15s) both; }
@keyframes poster-rule { from { transform: scaleX(0); } }
.hero__paper { display: none; }
.hero--poster .hero__paper { display: block; position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  background: url("../brand/hero/paper.webp") 0 0 / 1024px repeat; opacity: .32; mix-blend-mode: overlay; }
.hero--poster .hero__paper::after { content: ""; position: absolute; inset: -40%; background: url("../brand/hero/grain.png") repeat;
  opacity: .5; animation: poster-grain .9s steps(6) infinite; }
@keyframes poster-grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-7%, 4%); } 40% { transform: translate(5%, -6%); }
  60% { transform: translate(-3%, 8%); } 80% { transform: translate(8%, 2%); } 100% { transform: translate(0, 0); } }
.hero--poster .eyebrow { letter-spacing: .42em; color: var(--poster-paper); }
.hero--poster .hero__title { text-transform: uppercase; font-weight: 700; color: var(--poster-paper); max-width: 16ch;
  -webkit-mask: var(--worn); mask: var(--worn); }
.hero--poster .btn { border-radius: 2px; padding: 0 15px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; letter-spacing: .03em; text-transform: uppercase; }
.hero--poster .hero__actions { gap: 10px; }
.hero--poster .btn--primary { background: var(--poster-red); color: #fff; }
.hero--poster .btn--primary:hover { background: #f0364d; box-shadow: 0 8px 28px -10px rgb(224 36 58 / .8); }
.hero--poster .btn--ghost { border-color: rgb(236 234 226 / .22); }
.hero--poster .btn--ghost:hover { border-color: var(--poster-cyan); color: var(--poster-cyan); }
.hero--poster .hero__release { border-radius: 2px; border-left: 3px solid var(--poster-cyan); background: rgb(9 12 16 / .65); }

.hero-portrait { position: relative; justify-self: end; width: min(540px, 100%); aspect-ratio: 958 / 1100; margin: -30px -10px -120px 0;
  translate: var(--px, 0) var(--py, 0); transition: translate .9s var(--ease); }   /* site.js eases it after the pointer */
.page-home .hero-portrait { animation: portrait-in 1.1s var(--ease) var(--enter) both; }
html.intro-js:not(.intro-out) .page-home .hero-portrait { animation-play-state: paused; }
@keyframes portrait-in { 0% { opacity: 0; transform: translateX(34px); filter: brightness(2.2); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; filter: none; } }
.hero-portrait__frame { position: absolute; inset: 0; transform-origin: 50% 85%; animation: portrait-drift 9s ease-in-out infinite alternate; }
.hero-portrait__frame img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
@keyframes portrait-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-8px, -10px, 0) scale(1.035); } }
/* Now and then the picture tears, as the video's glitches do. */
.hero-portrait__img { animation: portrait-split 7s steps(1) infinite; }
@keyframes portrait-split { 0%, 92.9% { filter: none; } 93% { filter: drop-shadow(-6px 0 0 rgb(40 196 214 / .75)) drop-shadow(6px 0 0 rgb(224 36 58 / .75)); }
  96.5%, 100% { filter: none; } }
.hero-portrait__tear { opacity: 0; }
/* His eyes shut (asteri-blink.webp is only them): site.js shows it for a moment every few seconds. */
.hero-portrait__blink { opacity: 0; }
.hero-portrait.is-blinking .hero-portrait__blink { opacity: 1; }
.hero-portrait__tear--a { animation: portrait-tear-a 7s steps(1) infinite; }
.hero-portrait__tear--b { animation: portrait-tear-b 7s steps(1) infinite; }
@keyframes portrait-tear-a { 0%, 92.9% { opacity: 0; } 93% { opacity: 1; clip-path: inset(17% 0 67% 0); transform: translateX(16px); }
  94.2% { clip-path: inset(50% 0 32% 0); transform: translateX(-12px); } 95.4% { clip-path: inset(8% 0 85% 0); transform: translateX(9px); } 96.5%, 100% { opacity: 0; } }
@keyframes portrait-tear-b { 0%, 93.4% { opacity: 0; } 93.5% { opacity: 1; clip-path: inset(36% 0 52% 0); transform: translateX(-18px); }
  95% { clip-path: inset(70% 0 18% 0); transform: translateX(12px); } 96.2%, 100% { opacity: 0; } }
.hero-portrait__label { position: absolute; left: 0; top: 14%; display: grid; gap: 4px; font-size: 10.5px; letter-spacing: .3em; color: var(--text-3); }
.hero-portrait__label span:last-child { color: var(--poster-red); }
@media (max-width: 1020px) {
  .hero-portrait { justify-self: center; width: min(400px, 86%); margin: 0 auto -60px; }
  .hero-portrait__label { display: none; }   /* stacked, it would run across his face */
}
@media (prefers-reduced-motion: reduce) {
  .hero--poster::before, .hero--poster::after, .hero--poster .hero__paper::after,
  .hero-portrait, .hero-portrait__frame, .hero-portrait__img, .hero-portrait__tear { animation: none; }
}

/* -- The poster look beyond the home hero: page headers, section heads, the menu, the footer and the
   error page take the intro video's ink, cyan and red rules, condensed capitals and worn print. Links,
   buttons and form controls keep the studio's cobalt. */
.page-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3; pointer-events: none;
  background: var(--poster-cyan); transform-origin: left; animation: poster-rule .9s var(--ease) .1s both; }
/* Titles in capitals, worn like print - but not names or ticket subjects (.keep-case), where the case is the person's. */
.page-head :is(h1:not([class]), h1.tool-mark-head, h1.album-head):not(.keep-case),
.section__head h2, .page-home .panel > h2 {
  text-transform: uppercase; font-weight: 700; letter-spacing: .005em; -webkit-mask: var(--worn-soft); mask: var(--worn-soft); }
.page-head :is(h1:not([class]), h1.tool-mark-head, h1.album-head):not(.keep-case) { color: var(--poster-paper); }
.page-head .eyebrow, .section__head .eyebrow { letter-spacing: .3em; }

/* The menu: condensed capitals, and a red bar under the page you're on. */
.nav__links > a, .nav-drop__button { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; letter-spacing: .06em; text-transform: uppercase; }
.nav__links a[aria-current="page"]::after { width: 14px; height: 2px; margin-left: -7px; border-radius: 0; background: var(--poster-red); }

/* The footer: the poster's split rule along the top, and square, capitalled links. */
.footer { position: relative; border-top: 0; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--poster-cyan) 0 50%, var(--poster-red) 50% 100%); }
.footer__link { border-radius: 2px; font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; }

/* The home page under the hero. */
.bento__pill { border-radius: 2px; background: var(--poster-red); color: #fff; letter-spacing: .16em; }
.bento__tile--asteri strong { color: var(--poster-red); }

/* Errors (error.html): a poster of their own, like the offline page (cloudflare-worker/offline-worker.js). */
.poster-page { position: relative; }
.poster-page::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); pointer-events: none;
  border-top: 2px solid var(--poster-cyan);   /* the footer's split rule closes it */
  background: radial-gradient(800px 560px at 0% 45%, rgb(40 196 214 / .09), transparent 70%),
              radial-gradient(800px 560px at 100% 60%, rgb(224 36 58 / .11), transparent 70%), var(--poster-ink); }
.poster-page > * { position: relative; }
.poster-page .error-code { color: var(--poster-paper); background: none; -webkit-background-clip: border-box; background-clip: border-box;
  font-size: clamp(110px, 20vw, 200px); letter-spacing: -.01em; -webkit-mask: var(--worn); mask: var(--worn);
  text-shadow: -5px 0 0 rgb(40 196 214 / .7), 5px 0 0 rgb(224 36 58 / .7); }
.poster-page h1 { text-transform: uppercase; font-weight: 700; color: var(--poster-paper); }
.poster-status { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px; border: 1px solid rgb(224 36 58 / .5);
  background: rgb(224 36 58 / .1); color: #ffd2d8; font: 600 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.poster-status i { width: 7px; height: 7px; background: var(--poster-red); animation: poster-pulse 1.6s ease-in-out infinite; }
@keyframes poster-pulse { 50% { opacity: .3; } }
.poster-chevrons { color: var(--poster-red); font: 700 18px/1 var(--font-display); letter-spacing: .1em; }
.poster-page .btn { border-radius: 2px; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; letter-spacing: .03em; text-transform: uppercase; }
.poster-page .btn--primary { background: var(--poster-red); color: #fff; }
.poster-page .btn--primary:hover { background: #f0364d; box-shadow: 0 8px 28px -10px rgb(224 36 58 / .8); }
.poster-page .btn--ghost:hover { border-color: var(--poster-cyan); color: var(--poster-cyan); }
@media (prefers-reduced-motion: reduce) { .page-head::before, .poster-status i { animation: none; } }

/* The Videos page: its newest-video header gets the page headers' rules and capitals, and the shelves
   their section heads' (the shelf icons in the poster's red). */
.feature { border-bottom: 2px solid var(--poster-red); }
.feature::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2; pointer-events: none;
  background: var(--poster-cyan); transform-origin: left; animation: poster-rule .9s var(--ease) .1s both; }
.feature__title, .shelf__head h2 { text-transform: uppercase; letter-spacing: .005em; -webkit-mask: var(--worn-soft); mask: var(--worn-soft); }
.feature__title { color: var(--poster-paper); }
.shelf__head h2 { font-weight: 700; }
.shelf__head h2 .icon { color: var(--poster-red); }
.shelf__head h2 .faint { -webkit-mask: none; mask: none; }
@media (prefers-reduced-motion: reduce) { .feature::before { animation: none; } }

/* The narrowest phones (320-420 px): the name stacks, ASTERION over STUDIOS as on the logo's lockups, and
   the bar's buttons go to 36 px, so the logo, the name and all four buttons fit a 320 px screen. */
@media (max-width: 420px) {
  .brand { gap: 9px; }
  .brand__word { font-size: 12.5px; line-height: 1.05; letter-spacing: .12em; }
  .brand__word b { display: block; margin-left: 0; }
  .nav__search, .notif__button, .nav__toggle { width: 36px; height: 36px; }
  .user-chip { height: 36px; padding: 0 3px; }   /* 28 px picture + 3 + 3 + the border: round */
}

/* The audio trimmer (tools/audio.html, tools-audio.js): the video tools' timeline with the sound's waveform in it. */
.atool__track { height: 96px; }
.atool__name { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.atool__fades { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.atool__listen { width: 100%; max-width: 440px; height: 36px; }

/* "Beta" / "Alpha" over a mod's name while all its CurseForge files are marked so: a tilted poster stamp. */
.channel-stamp { --stamp: var(--poster-cyan); align-self: flex-start; justify-self: start; width: max-content; display: inline-block; padding: 3px 10px 2px;
  border: 2px solid var(--stamp); color: var(--stamp); background: color-mix(in srgb, var(--stamp) 12%, transparent);
  font: 700 12px/1.3 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; transform: rotate(-5deg);
  transform-origin: left center; -webkit-mask: var(--worn-soft); mask: var(--worn-soft); }
.channel-stamp--alpha { --stamp: var(--poster-red); }
.band__copy > .channel-stamp { margin-bottom: 10px; }
.work-card__body > .channel-stamp { margin: 2px 0 6px; font-size: 11px; }
