/* Light: off-white and amber. Also the fallback for anything a look leaves unset. (The default
   look, set on <html> by the server, is in src/shared/looks.ts.) */
:root {
  --bg: #f6f5f1;
  --panel-bg: #e4e2db;
  --fg: #1d1d20;
  --muted: #5a5852;
  --post-bg: #d5d2c9;
  --post-border: #9b998f;
  --op-bg: transparent;
  --accent: #7a5100;
  --link: #74490a;
  --link-hover: #1d1d20;
  --name: #28603a;
  --trip: #45506a;
  --subject: #7a5100;
  --green: #2e510e;
  --pink: #972d64;
  --spoiler: #1d1d20;
  --code-bg: #1d1d20;
  --code-fg: #f6f5f1;
  --input-bg: #ffffff;
  --highlight: #f8e3a8;
  --btn-bg: #f2c14e;
  --btn-ink: #1d1d20;
  --card-hover: #8d8a80;
  /* Type. Each look may set these; the defaults are the system's own fonts. */
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-title: var(--font-body);
  --font-display: var(--font-body);
  --font-meta: var(--font-body);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-size: 15px;
  --line-height: 1.45;
  --title-size: 26px;
  --title-weight: 700;
  --title-style: normal;
  --title-spacing: normal;
  --title-case: none;
  --display-weight: 700;
  --display-style: normal;
  color-scheme: light;
  --bar-bg: #7a5100;
  --bar-ink: #ffffff;
  /* Warnings in the rules ([alert]): red that stays readable here. */
  --alert: #a62222;
}
/* Dark: charcoal and amber. */
:root[data-theme='dark'] {
  --bg: #141416;
  --panel-bg: #242429;
  --fg: #ecebe8;
  --muted: #a9a7a2;
  --post-bg: #2f2f35;
  --post-border: #595963;
  --accent: #f2c14e;
  --link: #edc463;
  --link-hover: #fff1c7;
  --name: #9fd4a7;
  --trip: #b9c4d6;
  --subject: #f2c14e;
  --green: #a6cf6b;
  --pink: #ee93b6;
  --spoiler: #0e0e10;
  --code-bg: #0e0e10;
  --code-fg: #ecebe8;
  --input-bg: #0e0e10;
  --highlight: #3d3420;
  --btn-bg: #f2c14e;
  --btn-ink: #141416;
  --card-hover: #5c5c68;
  color-scheme: dark;
  --bar-bg: linear-gradient(135deg, #f2c14e 0%, #dcaa36 100%);
  --bar-ink: #141416;
  /* Warnings in the rules ([alert]): red that stays readable here. */
  --alert: #ed7e82;
}
/* Paper: high contrast, black on white. */
:root[data-theme='paper'] {
  --bg: #ffffff;
  --title-spacing: -0.01em;
  --title-size: 30px;
  --line-height: 1.5;
  --font-size: 16.5px;
  --font-body: 'Scuzz Source Serif 4', Georgia, 'Times New Roman', serif;
  --panel-bg: #eaecf0;
  --fg: #111111;
  --muted: #4a4a4a;
  --post-bg: #d8dbe3;
  --post-border: #8b919c;
  --accent: #b00020;
  --link: #0645ad;
  --link-hover: #b00020;
  --name: #116611;
  --trip: #224488;
  --subject: #6a1b9a;
  --green: #1f5922;
  --pink: #ad1457;
  --spoiler: #111111;
  --code-bg: #1e1e1e;
  --code-fg: #f5f5f5;
  --input-bg: #ffffff;
  --highlight: #ffe082;
  color-scheme: light;
  --bar-bg: #b00020;
  --bar-ink: #ffffff;
  --btn-bg: #b00020;
  --btn-ink: #ffffff;
  /* Warnings in the rules ([alert]): red that stays readable here. */
  --alert: #b02424;
}
/* Midnight: deep blue, soft text. */
:root[data-theme='midnight'] {
  --bg: #090f1d;
  --title-size: 28px;
  --line-height: 1.5;
  --font-size: 15.5px;
  --title-weight: 600;
  --display-weight: 600;
  --font-meta: 'Scuzz IBM Plex Mono', ui-monospace, monospace;
  --font-display: 'Scuzz IBM Plex Mono', ui-monospace, monospace;
  --font-title: 'Scuzz IBM Plex Mono', ui-monospace, monospace;
  --font-body: 'Scuzz IBM Plex Sans', system-ui, sans-serif;
  --panel-bg: #192236;
  --fg: #cfd8e6;
  --muted: #8e9cb8;
  --post-bg: #222d47;
  --post-border: #47587c;
  --accent: #ff9e64;
  --link: #7aa2f7;
  --link-hover: #ff9e64;
  --name: #7dcfff;
  --trip: #c0caf5;
  --subject: #bb9af7;
  --green: #a8d379;
  --pink: #f993a6;
  --spoiler: #05080f;
  --code-bg: #070b14;
  --code-fg: #cfd8e6;
  --input-bg: #060a14;
  --highlight: #33405c;
  color-scheme: dark;
  --bar-bg: linear-gradient(135deg, #ff9e64 0%, #ef8a4c 100%);
  --bar-ink: #090f1d;
  --btn-bg: #ff9e64;
  --btn-ink: #090f1d;
  /* Warnings in the rules ([alert]): red that stays readable here. */
  --alert: #f09497;
}
/* Forest: muted greens on dark. */
:root[data-theme='forest'] {
  --bg: #11150d;
  --title-size: 32px;
  --line-height: 1.45;
  --font-size: 17px;
  --font-display: 'Scuzz Alegreya', Georgia, serif;
  --font-title: 'Scuzz Alegreya', Georgia, serif;
  --font-body: 'Scuzz Alegreya Sans', 'Gill Sans', system-ui, sans-serif;
  --panel-bg: #21271b;
  --fg: #dae0d4;
  --muted: #959f88;
  --post-bg: #2b3422;
  --post-border: #505e41;
  --accent: #d9a441;
  --link: #8fc0a9;
  --link-hover: #e6b85c;
  --name: #e3c27a;
  --trip: #9cc4d8;
  --subject: #d7a6d9;
  --green: #b4da8e;
  --pink: #e7a7c0;
  --spoiler: #0a0d0a;
  --code-bg: #0c100c;
  --code-fg: #d6dccf;
  --input-bg: #0b0e08;
  --highlight: #3f4a2a;
  color-scheme: dark;
  --bar-bg: linear-gradient(135deg, #d9a441 0%, #c18f30 100%);
  --bar-ink: #11150d;
  --btn-bg: #d9a441;
  --btn-ink: #11150d;
  /* Warnings in the rules ([alert]): red that stays readable here. */
  --alert: #f29fa2;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  /* The look's base size: small text below is in rem, so it grows and shrinks with it. */
  font-size: var(--font-size);
}
body {
  margin: 0;
  /* The whole window, however short the page: backgrounds cover it all. */
  min-height: 100vh;
  padding: 0 12px 24px;
  background: var(--bg);
  color: var(--fg);
  font: var(--font-size) / var(--line-height) var(--font-body);
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}
hr {
  border: 0;
  border-top: 1px solid var(--post-border);
  margin: 12px 0;
}
code,
pre {
  font-family: var(--mono);
}

.site-header,
.site-footer {
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.93rem;
}
.site-footer {
  margin-top: 24px;
  border-top: 1px solid var(--post-border);
}
.boardlist .home {
  margin-right: 0.6em;
  font-weight: 700;
}
.boardlist a[aria-current] {
  font-weight: 700;
}
.boardlist .site-links {
  margin-left: 0.6em;
  white-space: nowrap;
}
/* Top right: My posts, the account (log in / the poster's name), settings. */
.boardlist .nav-right {
  float: right;
  margin-left: 0.6em;
  white-space: nowrap;
}
.nav-right .user-links {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
}
.nav-right .bracketed {
  margin-left: 0.4em;
}
.nav-right .settings-link {
  float: none;
  margin: 0;
  padding: 0;
  text-decoration: none;
}
details.login-menu {
  display: inline-block;
  position: relative;
}
details.login-menu summary {
  display: inline;
  cursor: pointer;
  color: var(--link);
  list-style: none;
}
details.login-menu summary::-webkit-details-marker {
  display: none;
}
details.login-menu summary::after {
  content: ' ▾';
  font-size: 0.8em;
}
.login-drop {
  position: absolute;
  right: 0;
  top: 1.6em;
  z-index: 30;
  display: grid;
  gap: 6px;
  width: 210px;
  padding: 8px;
  border: 1px solid var(--post-border);
  background: var(--panel-bg);
  white-space: normal;
}
.login-drop input {
  width: 100%;
  box-sizing: border-box;
}
.login-drop a {
  text-align: center;
}
.signed-in details.login-menu {
  visibility: hidden;
}

.board-header {
  text-align: center;
  margin: 12px 0 8px;
}
.board-header h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: var(--title-size);
  font-weight: var(--title-weight);
  font-style: var(--title-style);
  letter-spacing: var(--title-spacing);
  text-transform: var(--title-case);
  color: var(--accent);
}
:is(.post-form h2, .panel h1, .panel h2),
.post-head .subject {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-style: var(--display-style);
}
.post-head :is(time, .postnum, .poster-id) {
  font-family: var(--font-meta);
}
.board-header h1 a {
  color: inherit;
}
.board-description {
  margin: 4px 0;
  color: var(--muted);
}
.board-links,
.thread-nav {
  margin: 6px 0;
}
/* A video left out because neither this browser nor the server can convert it. */
.convert-status.refused {
  color: var(--pink);
  font-weight: 600;
}
.notice {
  text-align: center;
  font-weight: 600;
  color: var(--accent);
}
.empty {
  text-align: center;
  color: var(--muted);
}

.post-form {
  max-width: 560px;
  margin: 12px auto 20px;
  padding: 10px 12px;
  background: var(--panel-bg);
  border: 1px solid var(--post-border);
  border-radius: 6px;
}
.post-form h2 {
  margin: 0 0 8px;
  font-size: 15px;
}
.post-form .fields {
  display: grid;
  gap: 6px;
}
.post-form label {
  display: grid;
  gap: 2px;
  font-size: 0.87rem;
  color: var(--muted);
}
.post-form .options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-items: end;
}
.post-form .options label:has(input[type='checkbox']) {
  display: flex;
  align-items: center;
  gap: 4px;
}
input,
textarea,
select,
button {
  font: inherit;
  color: var(--fg);
  background: var(--input-bg);
  border: 1px solid var(--post-border);
  border-radius: 4px;
  padding: 5px 7px;
}
textarea {
  resize: vertical;
  min-height: 90px;
  width: 100%;
}
button {
  cursor: pointer;
  background: var(--btn-bg, var(--accent));
  color: var(--btn-ink, #fff);
  border-color: transparent;
  margin-top: 8px;
}
button:hover {
  filter: brightness(1.1);
}

.thread {
  overflow: hidden;
}
.post {
  margin: 4px 0;
  max-width: 100%;
}
.post.reply {
  display: table;
  background: var(--post-bg);
  border: 1px solid var(--post-border);
  border-radius: 4px;
  padding: 4px 10px 6px;
  margin-left: 18px;
}
.post:target {
  background: var(--highlight);
}
.post-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  font-size: 0.93rem;
}
.post-head .subject {
  color: var(--subject);
  font-weight: 700;
}
.post-head .name {
  color: var(--name);
  font-weight: 700;
}
.post-head .trip {
  color: var(--trip);
}
.post-head .capcode {
  color: var(--accent);
  font-weight: 700;
}
.post-head .poster-id {
  font-size: 0.87rem;
  padding: 0 4px;
  border-radius: 3px;
  /* Between the border and the post colour: the ID's text stays readable on every look. */
  background: color-mix(in srgb, var(--post-border) 60%, var(--post-bg));
}
.post-head .op-label {
  font-size: 0.87rem;
  font-weight: 700;
  padding: 0 4px;
  border-radius: 3px;
  color: var(--bg);
  background: var(--accent);
}
/* Offered only to the thread's author (shown by the script). */
.post-form .options label.not-op[hidden] {
  display: none;
}
.op-quote {
  color: var(--muted);
  font-size: 0.8em;
}
.post-head .sage {
  color: var(--muted);
  font-style: italic;
}
.post-head time {
  color: var(--muted);
}
.post-head .postnum {
  color: inherit;
}
.post-head .postnum + .postnum {
  margin-left: -6px;
}
.post-head .reply-link {
  margin-left: 4px;
}
.post-head .icon {
  font-size: 0.87rem;
}

.body {
  margin: 6px 0 2px;
  overflow-wrap: anywhere;
}
.post.op .body {
  margin-left: 4px;
}
.greentext {
  color: var(--green);
}
.pinktext {
  color: var(--pink);
}
.quotelink {
  color: var(--accent);
}
.quotelink.dead {
  text-decoration: line-through;
  color: var(--muted);
}
.spoiler {
  background: var(--spoiler);
  color: var(--spoiler);
  border-radius: 2px;
}
.spoiler:hover,
.spoiler:focus {
  color: #fff;
}
.body code {
  background: var(--post-border);
  padding: 0 3px;
  border-radius: 3px;
}
pre.code {
  background: var(--code-bg);
  color: var(--code-fg);
  padding: 8px 10px;
  border-radius: 4px;
  overflow-x: auto;
  margin: 6px 0;
  max-width: 90vw;
}
pre.code code {
  background: none;
  padding: 0;
}
.backlinks {
  font-size: 0.87rem;
  color: var(--muted);
  margin-top: 4px;
}

.files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0;
}
.file {
  margin: 0;
}
.fileinfo {
  font-size: 0.87rem;
  color: var(--muted);
}
.thumb img {
  display: block;
  max-width: 250px;
  height: auto;
}
.thumb-placeholder {
  display: inline-block;
  padding: 30px 20px;
  border: 1px dashed var(--post-border);
  color: var(--muted);
}

.omitted {
  color: var(--muted);
  margin: 4px 0 4px 18px;
  font-size: 0.93rem;
}
.thread-stats {
  color: var(--muted);
  font-size: 0.93rem;
}
.delete-form {
  text-align: right;
  margin: 12px 0;
  font-size: 0.93rem;
}
.delete-form label {
  color: var(--muted);
}
.delete-form button {
  margin-left: 6px;
}
.pages {
  margin: 12px 0;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.catalog-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  color: var(--fg);
  background: var(--post-bg);
  border: 1px solid var(--post-border);
  border-radius: 4px;
  font-size: 0.93rem;
  overflow: hidden;
}
.catalog-item:hover {
  text-decoration: none;
  border-color: var(--accent);
}
.catalog-item img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  align-self: center;
}
.catalog-item .stats {
  color: var(--muted);
  font-size: 0.87rem;
}
.catalog-item .subject {
  font-weight: 700;
  color: var(--subject);
}
.catalog-item .teaser {
  overflow-wrap: anywhere;
}

section.home {
  max-width: 900px;
  margin: 16px auto 24px;
}
/* The front page: a header, then widgets (full width, or two half-width side by side). */
.home-header {
  text-align: center;
  margin-bottom: 14px;
}
.home-header h1 {
  margin: 4px 0;
}
.home-logo img {
  max-width: 100%;
  max-height: 160px;
  height: auto;
}
.home-header .tagline {
  margin: 4px 0 0;
  color: var(--muted);
}
.home-widgets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.home-widget {
  grid-column: 1 / -1;
  background: var(--panel-bg);
  border: 1px solid var(--post-border);
  border-radius: 4px;
  overflow: hidden;
}
.home-widget.half {
  grid-column: auto;
}
.home-widget > h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 10px;
  font-size: 1.05rem;
  background: var(--bar-bg, var(--accent));
  color: var(--bar-ink, #fff);
}
.home-widget .widget-close {
  all: unset;
  cursor: pointer;
  padding: 0 4px;
  font-weight: 700;
}
.home-widget .widget-close:hover,
.home-widget .widget-close:focus-visible {
  text-decoration: underline;
}
.widget-body {
  padding: 8px 12px;
  overflow-wrap: anywhere;
}
.widget-body > p:first-child {
  margin-top: 4px;
}
.home-list {
  margin: 0;
  padding-left: 1.4em;
}
ul.home-list {
  list-style: none;
  padding-left: 0;
}
.home-list li {
  padding: 2px 0;
}
/* One line each, cut short with … (the whole text is in the thread). */
.home-list li > a {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
ol.home-list li > a {
  display: inline-block;
  max-width: calc(100% - 5.5em);
  vertical-align: bottom;
}
.home-list .from {
  font-weight: 700;
}
.home-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.home-images a {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  background: var(--post-bg);
  border-radius: 3px;
  overflow: hidden;
}
.home-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-stats {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2px 12px;
  margin: 4px 0;
}
.home-stats dt {
  font-weight: 700;
}
.home-stats dd {
  margin: 0;
}
@media (max-width: 700px) {
  .home-widgets {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Admin: arranging the front page. */
.widget-edit {
  border: 1px solid var(--post-border);
  border-radius: 6px;
  padding: 8px 12px;
}
.widget-edit legend {
  font-weight: 700;
}
.widget-edit.muted legend::after {
  content: ' (hidden)';
  font-weight: 400;
  color: var(--muted);
}
.widget-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: end;
}
.logo-preview img {
  max-width: 100%;
  max-height: 120px;
  background: var(--post-bg);
  padding: 4px;
}
.board-directory {
  list-style: none;
  padding: 0;
}
.board-directory li {
  padding: 6px 0;
  border-bottom: 1px solid var(--post-border);
}
.board-directory span {
  color: var(--muted);
}
.error {
  max-width: 560px;
  margin: 40px auto;
  text-align: center;
}

@media (max-width: 600px) {
  .post.reply {
    display: block;
    margin-left: 0;
  }
  .boardlist .home {
    display: inline;
  }
}

.files-input {
  font-size: 0.87rem;
}
.files-input input[type='file'] {
  padding: 4px;
}
.thumb.play {
  position: relative;
  display: inline-block;
}
.thumb.play::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 32px;
  color: #fff;
  text-shadow: 0 0 6px #000;
  pointer-events: none;
}
.post.reply .files {
  float: left;
  margin-right: 12px;
}
.post.op .files {
  float: left;
  margin-right: 14px;
}
.post .body {
  overflow: hidden;
}
.thread::after,
.post::after {
  content: '';
  display: table;
  clear: both;
}

/* Staff pages */
.staff-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
  margin: 0 -12px;
  padding: 6px 12px;
  /* The look's bar colours (dark ink on bright bars); plain looks: white on the accent. */
  background: var(--bar-bg, var(--accent));
  color: var(--bar-ink, #fff);
  font-size: 0.93rem;
  font-weight: 600;
}
.staff-bar a,
.staff-bar button.link {
  color: inherit;
}
.staff-bar a:hover {
  text-decoration: underline;
}
.staff-bar form {
  display: inline;
  margin-left: auto;
}
.staff-bar form button.link {
  padding: 2px 10px;
  border: 1px solid currentColor;
  border-radius: 4px;
  text-decoration: none;
}
button.link {
  color: var(--link);
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  text-decoration: underline;
  cursor: pointer;
}
.panel {
  max-width: 1100px;
  margin: 16px auto;
}
.panel.narrow {
  max-width: 460px;
}
.panel h1 small {
  /* On the heading's own colours (a bright bar in some looks), not the page's grey. */
  color: inherit;
  opacity: 0.7;
  font-weight: normal;
}
.stack {
  display: grid;
  gap: 8px;
}
.stack label {
  display: grid;
  gap: 2px;
  font-size: 0.93rem;
  color: var(--muted);
}
/* A tick box with its words beside it, not above them. */
.stack label.check,
.stack label:has(> input[type='checkbox']:first-child) {
  display: flex;
  align-items: center;
  gap: 6px;
}
.flash {
  padding: 8px 10px;
  border-radius: 4px;
  background: var(--highlight);
}
.error-text {
  color: var(--accent);
  font-weight: 600;
}
.hint {
  color: var(--muted);
  font-size: 0.87rem;
}
code.secret {
  font-size: 16px;
  letter-spacing: 1px;
  user-select: all;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
table.data th,
table.data td {
  text-align: left;
  vertical-align: top;
  padding: 6px 8px;
  border-bottom: 1px solid var(--post-border);
}
table.data tr.revoked {
  opacity: 0.55;
}
table.data form {
  display: flex;
  gap: 4px;
}
table.data button {
  margin: 0;
  padding: 2px 8px;
  font-size: 0.87rem;
}
.stats-list {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  font-size: 16px;
}
.mod-form {
  margin: 16px 0;
  padding: 10px 12px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-size: 0.93rem;
}
.mod-form fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
}
.mod-form legend {
  font-weight: 700;
  margin-bottom: 4px;
}
.mod-form .thread-flags button {
  margin-top: 0;
}
.poster-cloak {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.87rem;
  padding: 0 4px;
  border-radius: 3px;
  background: var(--highlight);
}
.country {
  font-size: 0.8rem;
  color: var(--muted);
}
.capcode {
  color: var(--accent);
  font-weight: 700;
}
.delete-form > div {
  margin: 4px 0;
}

.captcha {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}
.captcha img {
  border-radius: 4px;
  border: 1px solid var(--post-border);
  background: #f3efe6;
}
.captcha input {
  text-transform: uppercase;
  letter-spacing: 2px;
  width: 12em;
}
.captcha input::placeholder {
  text-transform: none;
  letter-spacing: normal;
}

/* Script-only features */
.you-label {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.87rem;
}
.post.you {
  border-left: 3px solid var(--accent);
}
/* The opening post has no box of its own: room between the mark and its file and text. */
.post.op.you {
  padding-left: 10px;
}
.quote-preview {
  position: fixed;
  z-index: 50;
  max-width: min(640px, 90vw);
  max-height: 80vh;
  overflow: hidden;
  padding: 6px 10px;
  background: var(--panel-bg);
  border: 1px solid var(--post-border);
  border-radius: 6px;
  box-shadow: 0 6px 24px rgb(0 0 0 / 25%);
  pointer-events: none;
}
.quote-preview .post.reply {
  margin: 0;
  border: 0;
  padding: 0;
}
.post.quote-target,
.post.just-posted {
  background: var(--highlight);
}
.file.is-expanded {
  max-width: 100%;
  float: none;
}
.file .expanded {
  display: block;
  max-width: min(100%, 95vw);
  max-height: 90vh;
  height: auto;
  cursor: zoom-out;
}
.file video.expanded,
.file audio.expanded {
  cursor: auto;
}
.collapse-media {
  font-size: 0.87rem;
}
.updater {
  font-size: 0.93rem;
}
.form-status {
  min-height: 1em;
  margin: 6px 0 0;
  font-size: 0.93rem;
}
.spoiler.revealed {
  color: inherit;
  background: transparent;
  outline: 1px dashed var(--muted);
}
.captcha-refresh {
  font-size: 0.87rem;
  color: var(--link);
}
html.js .thumb img {
  cursor: zoom-in;
}

.public-note {
  color: #c0392b;
  font-weight: 700;
  font-size: 0.93rem;
  margin: 4px 0;
}
.tag {
  display: inline-block;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 0.8rem;
  background: var(--post-border);
}
.tag.danger {
  background: #c0392b;
  color: #fff;
}
.appeal {
  border-bottom: 1px solid var(--post-border);
  padding: 8px 0 16px;
}
.appeal blockquote {
  margin: 4px 0 8px;
  padding: 6px 10px;
  background: var(--post-bg);
  border-left: 3px solid var(--post-border);
}
.appeal-form {
  text-align: left;
  margin: 16px 0;
}
.narrow-form {
  max-width: 460px;
}
.poster-record {
  margin-top: 24px;
}
.note-options input[name='noteText'] {
  min-width: 18em;
}
.inline-checks {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.inline-checks legend {
  font-size: 0.93rem;
  color: var(--muted);
}
.captcha-optional summary {
  cursor: pointer;
  font-size: 0.87rem;
  color: var(--muted);
}
.captcha-optional[open] summary {
  margin-bottom: 6px;
}

/* Approval queues */
.pending-badge {
  display: inline-block;
  padding: 0 4px;
  margin-right: 4px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.87rem;
}
.file.pending-staff .thumb img {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}
form.inline {
  display: inline;
}
.queue-files {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.queue-file {
  width: 270px;
  padding: 8px;
  background: var(--post-bg);
  border: 1px solid var(--post-border);
}
.queue-file img {
  display: block;
  max-width: 250px;
  height: auto;
}
.queue-file ul {
  padding-left: 18px;
  font-size: 0.93rem;
}
.queue-post {
  margin: 12px 0;
  padding: 8px 12px;
  background: var(--post-bg);
  border: 1px solid var(--post-border);
  overflow-wrap: anywhere;
}
.queue-post h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.queue-text {
  white-space: pre-wrap;
  margin: 8px 0;
}

/* Staff noticeboard and messages */
.staff-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.notice-item,
.message {
  margin: 10px 0;
  padding: 8px 12px;
  background: var(--post-bg);
  border: 1px solid var(--post-border);
}
.notice-item h3,
.message h3 {
  margin: 0 0 4px;
  font-size: 15px;
}
.message.outgoing {
  margin-left: 40px;
}
.message.unread {
  border-left: 4px solid var(--accent);
}

/* Overboard and archive */
.board-tag {
  display: inline-block;
  margin: 0 0 4px;
  padding: 0 6px;
  border: 1px solid var(--post-border);
  background: var(--post-bg);
  font-weight: bold;
  font-size: 0.93rem;
}
.overboard-links {
  margin: 0 0 12px;
}
.archived-notice {
  text-align: center;
}
table.archive td:nth-child(2) {
  overflow-wrap: anywhere;
}

/* Dice, fortunes, deleted opening posts, alt text */
.extras {
  margin: 6px 0 0 18px;
}
.dice,
.fortune {
  display: inline-block;
  margin: 2px 8px 2px 0;
  padding: 2px 8px;
  border: 1px solid var(--post-border);
  font-size: 0.93rem;
}
.author-deleted {
  color: var(--muted);
  font-style: italic;
}
details.alt-text {
  margin: 4px 0;
  font-size: 0.93rem;
}
details.alt-text label {
  display: block;
  margin: 4px 0;
}
p.commands {
  margin: 4px 0;
}

/* Reactions and embeds */
.reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0 0 18px;
}
.reactions button,
.reactions .reaction {
  padding: 0 6px;
  border: 1px solid var(--post-border);
  border-radius: 10px;
  background: transparent;
  font-size: 0.93rem;
  line-height: 1.6;
  cursor: pointer;
  opacity: 0.55;
}
.reactions button.has,
.reactions .reaction {
  opacity: 1;
}
.reactions button.mine {
  border-color: var(--accent);
}
.reactions .count {
  margin-left: 3px;
}
iframe.embed {
  display: block;
  max-width: 100%;
  margin: 6px 0;
  border: 0;
}

/* Settings, hiding, filters, shortcuts */
.hide-toggle {
  margin-right: 4px;
  color: var(--muted);
}
article.post.hidden-post > :not(.hidden-stub) {
  display: none;
}
.hidden-stub {
  color: var(--muted);
  font-size: 0.93rem;
}
section.thread.thread-hidden > :not(article.op, .board-tag) {
  display: none;
}
.poster-id.colored {
  padding: 0 4px;
  border-radius: 3px;
  color: #fff;
}
article.post.kb-selected {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
dialog.settings {
  max-width: min(560px, 94vw);
  border: 1px solid var(--post-border);
  background: var(--panel-bg);
  color: var(--fg);
}
dialog.settings::backdrop {
  background: rgb(0 0 0 / 50%);
}
dialog.settings label {
  display: block;
  margin: 6px 0;
}
dialog.settings textarea {
  width: 100%;
  font-family: ui-monospace, monospace;
}
dialog.settings .actions {
  margin-top: 12px;
  text-align: right;
}
dl.shortcuts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
}
dl.shortcuts dt {
  font-family: ui-monospace, monospace;
  font-weight: bold;
}
dl.shortcuts dd {
  margin: 0;
}
.settings-link {
  float: right;
}

/* Thread watcher */
details.watcher {
  /* Bottom right: the top is the staff strip and the bar; bottom left is the Display chooser. */
  position: fixed;
  bottom: 8px;
  right: 8px;
  z-index: 20;
  max-width: min(360px, 90vw);
  padding: 4px 8px;
  border: 1px solid var(--post-border);
  background: var(--panel-bg);
  font-size: 0.93rem;
}
details.watcher summary {
  cursor: pointer;
}
details.watcher ul {
  margin: 6px 0 2px;
  padding-left: 16px;
  max-height: 50vh;
  overflow: auto;
}
details.watcher .unread {
  color: var(--accent);
}

/* Gallery */
dialog.gallery {
  width: 96vw;
  height: 94vh;
  max-width: none;
  max-height: none;
  padding: 8px;
  border: 0;
  background: rgb(10 10 10 / 96%);
  color: #eee;
}
dialog.gallery::backdrop {
  background: rgb(0 0 0 / 70%);
}
dialog.gallery .stage {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100% - 120px);
}
dialog.gallery .stage img,
dialog.gallery .stage video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
dialog.gallery .caption {
  margin: 4px 0;
  text-align: center;
  font-size: 0.93rem;
}
dialog.gallery .strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
dialog.gallery .strip .thumb {
  flex: none;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  background: #222;
  color: #ccc;
}
dialog.gallery .strip .thumb.current {
  border-color: #fff;
}
dialog.gallery .strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
dialog.gallery .nav,
dialog.gallery .close {
  position: absolute;
  z-index: 1;
  border: 0;
  background: rgb(0 0 0 / 50%);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}
dialog.gallery .nav {
  top: 40%;
  padding: 8px 12px;
}
dialog.gallery .prev {
  left: 8px;
}
dialog.gallery .next {
  right: 8px;
}
dialog.gallery .close {
  top: 8px;
  right: 8px;
  padding: 0 10px;
}

/* Rules */
details.board-rules {
  margin: 8px 0;
  padding: 4px 10px;
  border: 1px solid var(--post-border);
}
.rules-text {
  white-space: pre-wrap;
}

/* Live board pages, tree view */
.live-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 6px 0;
  padding: 6px 10px;
  border: 1px solid var(--accent);
  background: var(--panel-bg);
}
section.thread.tree .tree-children {
  margin-left: 22px;
  padding-left: 8px;
  border-left: 2px solid var(--post-border);
}

/* Oekaki */
dialog.oekaki {
  max-width: min(860px, 98vw);
}
.oekaki-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 8px 0;
  border: 1px solid var(--post-border);
  background: #fff;
  cursor: crosshair;
  touch-action: none;
}
.oekaki-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

/* Search */
.search-form {
  display: flex;
  gap: 6px;
  margin: 8px 0;
  max-width: 520px;
}
.search-form input[type='search'] {
  flex: 1;
  min-width: 0;
}
.board-header .search-form {
  margin: 4px auto;
}
.search-help {
  margin: 6px 0 12px;
  font-size: 0.93rem;
}
ol.search-results {
  padding: 0;
  list-style: none;
}
.search-hit {
  display: flex;
  gap: 10px;
  margin: 8px 0;
  padding: 8px 10px;
  background: var(--post-bg);
  border: 1px solid var(--post-border);
}
.hit-thumb img {
  max-width: 100px;
  max-height: 100px;
}
.hit-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  font-size: 0.93rem;
}
.hit-snippet {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.hit-snippet mark {
  background: var(--highlight);
  color: inherit;
}

/* My posts */
ol.my-posts {
  padding: 0;
  list-style: none;
}
.my-post {
  margin: 8px 0;
  padding: 8px 10px;
  background: var(--post-bg);
  border: 1px solid var(--post-border);
}
.my-post.gone {
  opacity: 0.6;
}
.my-post-replies {
  margin: 4px 0 0;
  font-size: 0.93rem;
}

/* ------------------------------------------------------------------------------------------
 * Display chooser (bottom-left corner). Added by the script; without JavaScript the theme
 * follows the system.
 * ------------------------------------------------------------------------------------------ */
details.look-picker {
  position: fixed;
  left: 8px;
  bottom: 8px;
  z-index: 25;
  font-size: 0.87rem;
}
details.look-picker > summary {
  display: inline-block;
  padding: 4px 9px;
  list-style: none;
  cursor: pointer;
  color: var(--fg);
  background: var(--panel-bg);
  border: 1px solid var(--post-border);
  border-radius: 4px;
  box-shadow: 0 2px 6px #0003;
  user-select: none;
}
details.look-picker > summary::-webkit-details-marker {
  display: none;
}
details.look-picker > summary:hover,
details.look-picker[open] > summary {
  border-color: var(--accent);
}
.look-picker .look-mark {
  color: var(--accent);
}
.look-picker .look-options {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  width: min(360px, calc(100vw - 16px));
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px;
  background: var(--panel-bg);
  border: 1px solid var(--post-border);
  border-radius: 6px;
  box-shadow: 0 6px 18px #0005;
}
.look-picker .look-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px;
  text-align: left;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--post-border);
  border-radius: 4px;
  font-size: 0.87rem;
  line-height: 1.3;
}
.look-picker .look-choice:hover {
  border-color: var(--accent);
}
.look-picker .look-choice[aria-pressed='true'] {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}
.look-choice b {
  display: block;
}
.look-choice small {
  display: block;
  color: var(--muted);
}
.look-swatch {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid #8884;
}
.look-swatch--light {
  background: linear-gradient(135deg, #f6f5f1 55%, #e1dfd7 55% 78%, #f2c14e 78%);
}
.look-swatch--dark {
  background: linear-gradient(135deg, #141416 55%, #27272e 55% 78%, #f2c14e 78%);
}
.look-swatch--paper {
  background: linear-gradient(135deg, #fff 62%, #b00020 62%);
}
.look-swatch--midnight {
  background: linear-gradient(135deg, #0d1321 62%, #ff9e64 62%);
}
.look-swatch--forest {
  background: linear-gradient(135deg, #141a14 62%, #d9a441 62%);
}
.look-swatch--seafoam {
  background: linear-gradient(135deg, #c6e9cf 55%, #ed4337 55% 78%, #55122d 78%);
}
.look-swatch--keylime {
  background: linear-gradient(135deg, #dbe7ad 55%, #b6e74a 55% 78%, #1c6648 78%);
}
.look-swatch--goldensky {
  background: linear-gradient(135deg, #efd98a 55%, #f7c619 55% 78%, #126290 78%);
}
.look-swatch--blacklight {
  background: linear-gradient(135deg, #120a24 55%, #31d0f0 55% 78%, #db3fd4 78%);
}
.look-swatch--toxic {
  background: linear-gradient(135deg, #0a1f1a 55%, #cde63d 55% 78%, #f37445 78%);
}
.look-swatch--bubblegumnoir {
  background: linear-gradient(135deg, #1c1018 55%, #f34191 55% 78%, #f9a6cf 78%);
}
.look-swatch--vicecity {
  border-color: #f739c0;
  background:
    linear-gradient(0deg, #09ecfe 0 2px, transparent 2px) 0 70% / 100% 100% no-repeat,
    linear-gradient(170deg, #0a0414 0%, #3a1048 60%, #f739c0 100%);
  box-shadow: 0 0 6px #f739c088;
}
.look-swatch--yotsuba {
  background: linear-gradient(135deg, #fed6af 0%, #ffffee 52%, #800000 52% 76%, #0e6036 76%);
}
.look-swatch--terminal {
  background: #000;
  border-color: #414141;
  color: #c0c0c0;
  font:
    16px/1 'Scuzz IBM VGA',
    ui-monospace,
    monospace;
  text-shadow: 0 0 4px #c0c0c088;
}
.look-swatch--terminal::before {
  content: '>_';
}
@media print {
  details.look-picker {
    display: none;
  }
}
/* In the top bar (the usual place): a link with a drop-down, like "Log in". */
.boardlist details.look-picker.in-bar {
  position: relative;
  display: inline-block;
  left: auto;
  bottom: auto;
  font-size: inherit;
}
.boardlist .nav-right details.look-picker.in-bar > summary {
  all: unset;
  display: inline;
  cursor: pointer;
  color: var(--link);
}
.boardlist .nav-right details.look-picker.in-bar > summary:hover,
.boardlist .nav-right details.look-picker.in-bar > summary:focus-visible {
  text-decoration: underline;
}
.boardlist .nav-right details.look-picker.in-bar > summary::after {
  content: ' ▾';
  font-size: 0.8em;
}
.look-picker.in-bar .look-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.boardlist .look-picker.in-bar .look-options {
  top: 1.6em;
  right: 0;
  left: auto;
  bottom: auto;
  z-index: 30;
  max-height: calc(100vh - 80px);
  white-space: normal;
  font-size: 0.87rem;
}
@media (max-width: 600px) {
  .boardlist .look-picker.in-bar .look-options {
    position: fixed;
    left: 8px;
    right: 8px;
    width: auto;
  }
}

/* ------------------------------------------------------------------------------------------
 * Palette looks, from Retco's Basic Light (Sea Foam, Key Lime, Golden Sky) and Basic Dark
 * (Blacklight, Toxic, Bubblegum Noir) palettes, plus Vice City (reworked: neon pink and cyan
 * on near-black violet). Each sets the usual variables and a few of its own:
 *   --atmosphere  page background   --bar-bg/--bar-ink  section headings
 *   --btn-bg/--btn-ink  buttons      --glow  focus and hover glow
 * ------------------------------------------------------------------------------------------ */
:root[data-theme='seafoam'] {
  --bg: #c6e9cf;
  --title-size: 30px;
  --line-height: 1.5;
  --font-size: 16px;
  --display-weight: 800;
  --title-weight: 800;
  --font-display: 'Scuzz Nunito', system-ui, sans-serif;
  --font-title: 'Scuzz Nunito', system-ui, sans-serif;
  --font-body: 'Scuzz Nunito', system-ui, sans-serif;
  --panel-bg: #def2e3;
  --fg: #2b2024;
  --muted: #55605a;
  --post-bg: #fffaf5;
  --post-border: #798e7c;
  --accent: #b02a23;
  --link: #55122d;
  --link-hover: #b02a23;
  --name: #1f6b4a;
  --trip: #7a3a52;
  --subject: #a52a24;
  --green: #2f5b18;
  --pink: #a0396a;
  --spoiler: #2b2024;
  --code-bg: #1d1b22;
  --code-fg: #ecfff5;
  --input-bg: #ffffff;
  --highlight: #ffd9c7;
  --btn-bg: #ed4337;
  --btn-ink: #000000;
  --bar-bg: linear-gradient(135deg, #ed4337 0%, #f45a3f 100%);
  --bar-ink: #000000;
  --glow: #ed433766;
  --atmosphere:
    radial-gradient(circle at 12% 6%, #ed43372e 0%, transparent 32%),
    radial-gradient(circle at 88% 10%, #ff804d1f 0%, transparent 30%),
    radial-gradient(circle at 52% 96%, #55122d14 0%, transparent 40%),
    linear-gradient(155deg, #c6e9cf 0%, #bde2c7 100%);
  color-scheme: light;
  /* Warnings in the rules ([alert]): red that stays readable here. */
  --alert: #b62525;
}
:root[data-theme='keylime'] {
  --bg: #dbe7ad;
  --title-spacing: -0.02em;
  --title-size: 29px;
  --line-height: 1.55;
  --font-size: 15.5px;
  --font-display: 'Scuzz Lexend', system-ui, sans-serif;
  --font-title: 'Scuzz Lexend', system-ui, sans-serif;
  --font-body: 'Scuzz Lexend', system-ui, sans-serif;
  --panel-bg: #ecf3d1;
  --fg: #26352f;
  --muted: #545e48;
  --post-bg: #fdfef3;
  --post-border: #80905c;
  --accent: #3b6611;
  --link: #1c6648;
  --link-hover: #a03a24;
  --name: #7a4518;
  --trip: #5b5a1c;
  --subject: #9a3a24;
  --green: #385a12;
  --pink: #a13a6c;
  --spoiler: #26352f;
  --code-bg: #244d45;
  --code-fg: #fff4d8;
  --input-bg: #ffffff;
  --highlight: #dcf0a8;
  --btn-bg: #b6e74a;
  --btn-ink: #26352f;
  --bar-bg: linear-gradient(135deg, #9be5a0 0%, #70ce85 100%);
  --bar-ink: #183a30;
  --glow: #38bfc466;
  --atmosphere:
    radial-gradient(circle at 15% 8%, #b6e74a2e 0%, transparent 33%),
    radial-gradient(circle at 88% 12%, #38bfc41f 0%, transparent 30%),
    linear-gradient(155deg, #dbe7ad 0%, #d2e0a0 100%);
  color-scheme: light;
  /* Warnings in the rules ([alert]): red that stays readable here. */
  --alert: #b82525;
}
:root[data-theme='goldensky'] {
  --bg: #efd98a;
  --title-size: 36px;
  --line-height: 1.5;
  --font-size: 16px;
  --display-weight: 400;
  --title-weight: 400;
  --font-display: 'Scuzz DM Serif Display', Georgia, serif;
  --font-title: 'Scuzz DM Serif Display', Georgia, serif;
  --font-body: 'Scuzz Hanken Grotesk', system-ui, sans-serif;
  --panel-bg: #f8e8a4;
  --fg: #172022;
  --muted: #585745;
  --post-bg: #fff8dc;
  --post-border: #948445;
  --accent: #115d89;
  --link: #115d89;
  --link-hover: #a02519;
  --name: #29642b;
  --trip: #28566e;
  --subject: #9c2a1e;
  --green: #314f0f;
  --pink: #933262;
  --spoiler: #172022;
  --code-bg: #173f55;
  --code-fg: #ffffff;
  --input-bg: #fffdf2;
  --highlight: #ffe58a;
  --btn-bg: #f7c619;
  --btn-ink: #000000;
  --bar-bg: linear-gradient(135deg, #f8cb2b 0%, #dcb016 100%);
  --bar-ink: #000000;
  --glow: #2b9ac666;
  --atmosphere:
    radial-gradient(circle at 13% 8%, #f7c61933 0%, transparent 34%),
    radial-gradient(circle at 87% 12%, #2b9ac629 0%, transparent 32%),
    radial-gradient(circle at 52% 96%, #ef402c1a 0%, transparent 42%),
    linear-gradient(155deg, #efd98a 0%, #e8cf7c 100%);
  color-scheme: light;
  /* Warnings in the rules ([alert]): red that stays readable here. */
  --alert: #a92222;
}
:root[data-theme='blacklight'] {
  --bg: #0b0716;
  --title-case: uppercase;
  --title-spacing: 0.06em;
  --title-size: 30px;
  --line-height: 1.5;
  --font-size: 16px;
  --font-display: 'Scuzz Chakra Petch', system-ui, sans-serif;
  --font-title: 'Scuzz Chakra Petch', system-ui, sans-serif;
  --font-body: 'Scuzz Exo 2', system-ui, sans-serif;
  --panel-bg: #201934;
  --fg: #f4f1e8;
  --muted: #aaa3c4;
  --post-bg: #2c254a;
  --post-border: #584b8e;
  --accent: #58e5ff;
  --link: #58e5ff;
  --link-hover: #ff6be7;
  --name: #ff6be7;
  --trip: #bdeffa;
  --subject: #f0f1f3;
  --green: #9bf26a;
  --pink: #ff8af0;
  --spoiler: #2a2b30;
  --code-bg: #040406;
  --code-fg: #58e5ff;
  --input-bg: #07040f;
  --highlight: #3d1d55;
  --btn-bg: #31d0f0;
  --btn-ink: #000000;
  --bar-bg: linear-gradient(135deg, #48d5f2 0%, #2cb9d6 100%);
  --bar-ink: #000000;
  --glow: #db3fd477;
  --atmosphere:
    radial-gradient(circle at 13% 8%, #31d0f033 0%, transparent 34%),
    radial-gradient(circle at 87% 12%, #db3fd429 0%, transparent 32%),
    radial-gradient(circle at 52% 96%, #f0f1f31a 0%, transparent 42%),
    linear-gradient(155deg, #0b0716 0%, #120a24 100%);
  color-scheme: dark;
  /* Warnings in the rules ([alert]): red that stays readable here. */
  --alert: #eb7074;
}
:root[data-theme='toxic'] {
  --bg: #05130f;
  --title-case: uppercase;
  --title-spacing: 0.03em;
  --title-size: 40px;
  --line-height: 1.5;
  --font-size: 16px;
  --font-display: 'Scuzz Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-title: 'Scuzz Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Scuzz Barlow', system-ui, sans-serif;
  --panel-bg: #102722;
  --fg: #edf4e8;
  --muted: #a8bdb0;
  --post-bg: #14342d;
  --post-border: #33685a;
  --accent: #d7ec52;
  --link: #d7ec52;
  --link-hover: #ff8a5b;
  --name: #55cfc5;
  --trip: #a8e0d8;
  --subject: #f37445;
  --green: #a8e1a4;
  --pink: #f7a6c4;
  --spoiler: #04100d;
  --code-bg: #081b18;
  --code-fg: #d7ec52;
  --input-bg: #030d0a;
  --highlight: #1f5144;
  --btn-bg: #cde63d;
  --btn-ink: #10170c;
  --bar-bg: linear-gradient(135deg, #e0f04e 0%, #b9d438 100%);
  --bar-ink: #10170c;
  --glow: #d7ec5255;
  --atmosphere:
    radial-gradient(ellipse 90% 55% at 50% -12%, #cde63d24 0%, #2b938c12 45%, transparent 75%),
    linear-gradient(180deg, #0a1f1a 0%, #06150f 55%, #05130f 100%);
  color-scheme: dark;
  /* Warnings in the rules ([alert]): red that stays readable here. */
  --alert: #f2a5a7;
}
:root[data-theme='bubblegumnoir'] {
  --bg: #070506;
  --title-size: 36px;
  --line-height: 1.55;
  --font-size: 16px;
  --display-style: italic;
  --title-style: italic;
  --font-display: 'Scuzz Playfair Display', Georgia, serif;
  --font-title: 'Scuzz Playfair Display', Georgia, serif;
  --font-body: 'Scuzz Karla', system-ui, sans-serif;
  --panel-bg: #251921;
  --fg: #f8f5f7;
  --muted: #b5a5ae;
  --post-bg: #36242f;
  --post-border: #6d4861;
  --accent: #ff77b7;
  --link: #ff77b7;
  --link-hover: #ffd6e9;
  --name: #f9a6cf;
  --trip: #c9a3b8;
  --subject: #ff55a2;
  --green: #9fd88a;
  --pink: #ff77b7;
  --spoiler: #1a171b;
  --code-bg: #020203;
  --code-fg: #f9a6cf;
  --input-bg: #050304;
  --highlight: #3a1529;
  --btn-bg: #f34191;
  --btn-ink: #000000;
  --bar-bg: linear-gradient(135deg, #ff55a2 0%, #d73584 100%);
  --bar-ink: #000000;
  --glow: #f3419166;
  --atmosphere:
    radial-gradient(circle at 13% 8%, #ff3f9824 0%, transparent 34%),
    linear-gradient(155deg, #070506 0%, #110a0e 100%);
  color-scheme: dark;
  /* Warnings in the rules ([alert]): red that stays readable here. */
  --alert: #ea6e72;
}
/* Vice City: neon signs over a wet street at night. Pink and cyan tubes, near-black violet. */
:root[data-theme='vicecity'] {
  --bg: #0a0414;
  --title-spacing: 0.04em;
  --title-size: 40px;
  --line-height: 1.5;
  --font-size: 15.5px;
  --title-weight: 400;
  --font-display: 'Scuzz Rubik', system-ui, sans-serif;
  --font-title: 'Scuzz Monoton', 'Rubik', system-ui, sans-serif;
  --font-body: 'Scuzz Rubik', system-ui, sans-serif;
  --panel-bg: #24153b;
  --fg: #fbefff;
  --muted: #c3a8d6;
  --post-bg: #32204b;
  --post-border: #65458a;
  --accent: #f847c4;
  --link: #38d7fd;
  --link-hover: #fc69f9;
  --name: #6cf9fb;
  --trip: #0bbffc;
  --subject: #f741d5;
  --green: #8af7c4;
  --pink: #fc69f9;
  --spoiler: #251238;
  --code-bg: #07020f;
  --code-fg: #09ecfe;
  --input-bg: #06020d;
  --highlight: #3a1048;
  --btn-bg: #f739c0;
  --btn-ink: #0a0414;
  --bar-bg: linear-gradient(90deg, #f739c0 0%, #f741d5 45%, #0bbffc 100%);
  --bar-ink: #0a0414;
  --glow: #f739c088;
  --vc-pink: #f739c0;
  --vc-cyan: #09ecfe;
  --atmosphere:
    radial-gradient(ellipse at 10% 100%, #09ecfe1f 0%, transparent 34%),
    radial-gradient(ellipse at 90% 100%, #f739c029 0%, transparent 38%),
    radial-gradient(ellipse at 50% -10%, #8a2be233 0%, transparent 45%),
    linear-gradient(170deg, #07020f 0%, #120626 52%, #0a0c22 100%);
  color-scheme: dark;
  /* Warnings in the rules ([alert]): red that stays readable here. */
  --alert: #ea6e72;
}

/* Yotsuba: the classic imageboard palette. A peach sky fading to cream, maroon text and title
   bars, tan replies, green names. Colours only (nothing copied); greentext and a few others are
   darkened just enough to stay readable. */
:root[data-theme='yotsuba'] {
  --bg: #ffffee;
  --title-spacing: -0.06em;
  --title-size: 30px;
  --line-height: 1.45;
  --font-size: 15px;
  --font-body: Arial, Helvetica, sans-serif;
  --font-title: Tahoma, Verdana, 'DejaVu Sans', sans-serif;
  --font-display: Tahoma, Verdana, 'DejaVu Sans', sans-serif;
  --font-meta: Arial, Helvetica, sans-serif;
  --panel-bg: #fbeee0;
  --fg: #7a0000;
  --muted: #714a3e;
  --post-bg: #f0e0d6;
  --post-border: #b9958b;
  --accent: #aa0a0f;
  --link: #800000;
  --link-hover: #ac0000;
  --name: #0e6036;
  --trip: #185f3b;
  --subject: #ab0e04;
  --green: #2e5a00;
  --pink: #88315a;
  --spoiler: #000000;
  --code-bg: #3a1a12;
  --code-fg: #fff3e0;
  --input-bg: #ffffff;
  --highlight: #f6d2c4;
  --btn-bg: #eeaa88;
  --btn-ink: #800000;
  --bar-bg: linear-gradient(180deg, #8f0b0b 0%, #800000 100%);
  --bar-ink: #ffffff;
  --glow: #aa0a0f44;
  --atmosphere: linear-gradient(180deg, #fed6af 0, #ffffee 220px, #ffffee 100%);
  color-scheme: light;
  /* Warnings in the rules ([alert]): red that stays readable here. */
  --alert: #9e2020;
}
/* Shared by the palette looks. */
:root:is(
    [data-theme='seafoam'],
    [data-theme='keylime'],
    [data-theme='goldensky'],
    [data-theme='blacklight'],
    [data-theme='toxic'],
    [data-theme='bubblegumnoir'],
    [data-theme='vicecity'],
    [data-theme='yotsuba']
  )
  body {
  background: var(--atmosphere) fixed;
  background-color: var(--bg);
}
:root:is(
    [data-theme='seafoam'],
    [data-theme='keylime'],
    [data-theme='goldensky'],
    [data-theme='blacklight'],
    [data-theme='toxic'],
    [data-theme='bubblegumnoir'],
    [data-theme='vicecity'],
    [data-theme='yotsuba']
  )
  :is(.post-form h2, .panel h1, .panel h2) {
  padding: 4px 10px;
  color: var(--bar-ink);
  background: var(--bar-bg);
  border-radius: 4px;
}
:root:is(
    [data-theme='seafoam'],
    [data-theme='keylime'],
    [data-theme='goldensky'],
    [data-theme='blacklight'],
    [data-theme='toxic'],
    [data-theme='bubblegumnoir'],
    [data-theme='vicecity'],
    [data-theme='yotsuba']
  )
  :is(button:not([type='button'], .link, .reactions *), ::file-selector-button) {
  color: var(--btn-ink);
  background: var(--btn-bg);
  border: 1px solid transparent;
  font-weight: 600;
  transition:
    box-shadow 0.15s,
    filter 0.15s;
}
:root:is(
    [data-theme='seafoam'],
    [data-theme='keylime'],
    [data-theme='goldensky'],
    [data-theme='blacklight'],
    [data-theme='toxic'],
    [data-theme='bubblegumnoir'],
    [data-theme='vicecity'],
    [data-theme='yotsuba']
  )
  :is(button:not([type='button'], .link, .reactions *), ::file-selector-button):hover {
  filter: brightness(1.08);
  box-shadow: 0 0 0 3px var(--glow);
}
:root:is(
    [data-theme='seafoam'],
    [data-theme='keylime'],
    [data-theme='goldensky'],
    [data-theme='blacklight'],
    [data-theme='toxic'],
    [data-theme='bubblegumnoir'],
    [data-theme='vicecity'],
    [data-theme='yotsuba']
  )
  :is(input, textarea, select):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  box-shadow: 0 0 10px var(--glow);
}
:root:is(
    [data-theme='seafoam'],
    [data-theme='keylime'],
    [data-theme='goldensky'],
    [data-theme='blacklight'],
    [data-theme='toxic'],
    [data-theme='bubblegumnoir'],
    [data-theme='vicecity'],
    [data-theme='yotsuba']
  )
  .post.reply {
  border-radius: 6px;
  box-shadow: inset 0 1px 0 #ffffff12;
}
:root:is([data-theme='blacklight'], [data-theme='toxic'], [data-theme='bubblegumnoir'])
  .board-header
  h1 {
  text-shadow: 0 0 14px var(--glow);
}
:root:is([data-theme='blacklight'], [data-theme='toxic'], [data-theme='bubblegumnoir'])
  .post.reply:target {
  box-shadow:
    0 0 0 1px var(--accent),
    0 0 14px var(--glow);
}

/* Hazard-label and rave headings. */
:root:is([data-theme='toxic'], [data-theme='blacklight']) :is(.post-form h2, .panel h1, .panel h2) {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Vice City's neon. */
:root[data-theme='vicecity'] .board-header h1 {
  color: #ffd6f4;
  text-shadow:
    0 0 2px #fff,
    0 0 8px var(--vc-pink),
    0 0 18px var(--vc-pink),
    0 0 36px #f739c088;
}
:root[data-theme='vicecity'] .board-header {
  padding-bottom: 10px;
  background:
    linear-gradient(90deg, transparent, var(--vc-pink) 20%, var(--vc-pink) 80%, transparent) bottom
      3px / 100% 2px no-repeat,
    linear-gradient(90deg, transparent 10%, var(--vc-cyan) 35%, var(--vc-cyan) 65%, transparent 90%)
      bottom / 100% 1px no-repeat;
  filter: drop-shadow(0 0 4px #f739c099);
}
:root[data-theme='vicecity'] .post.reply {
  border-color: #3d2257;
  border-left: 2px solid var(--vc-cyan);
  box-shadow:
    -3px 0 10px -5px var(--vc-cyan),
    inset 0 1px 0 #ffffff10;
}
:root[data-theme='vicecity'] .post.you {
  border-left-color: var(--vc-pink);
  box-shadow: -3px 0 10px -5px var(--vc-pink);
}
:root[data-theme='vicecity'] .post.reply:target {
  box-shadow:
    0 0 0 1px var(--vc-pink),
    0 0 18px #f739c066;
}
:root[data-theme='vicecity'] .post-head .name {
  text-shadow: 0 0 6px #6cf9fb66;
}
:root[data-theme='vicecity'] .post-head .subject {
  text-shadow: 0 0 6px #f741d566;
}
:root[data-theme='vicecity'] a:hover {
  text-shadow: 0 0 8px currentColor;
}
:root[data-theme='vicecity'] :is(.post-form h2, .panel h1, .panel h2) {
  box-shadow: 0 0 14px #f739c055;
}
:root[data-theme='vicecity']
  :is(button:not([type='button'], .link, .reactions *), ::file-selector-button) {
  color: var(--vc-pink);
  background: #0a0414;
  border-color: var(--vc-pink);
  text-shadow: 0 0 6px #f739c0aa;
  box-shadow:
    0 0 8px #f739c055,
    inset 0 0 8px #f739c033;
}
:root[data-theme='vicecity']
  :is(button:not([type='button'], .link, .reactions *), ::file-selector-button):hover {
  filter: none;
  color: #0a0414;
  background: var(--vc-pink);
  text-shadow: none;
  box-shadow: 0 0 16px var(--vc-pink);
}
:root[data-theme='vicecity'] :is(input, textarea, select) {
  border-color: #4a2a66;
}
:root[data-theme='vicecity'] :is(input, textarea, select):focus-visible {
  outline-color: var(--vc-cyan);
  box-shadow: 0 0 10px #09ecfe66;
}
:root[data-theme='vicecity'] .catalog-item:hover {
  border-color: var(--vc-cyan);
  box-shadow: 0 0 14px #09ecfe44;
}
:root[data-theme='vicecity'] .look-picker > summary {
  border-color: var(--vc-pink);
  box-shadow: 0 0 10px #f739c055;
}

/* ------------------------------------------------------------------------------------------
 * Type for the other looks. Each look picks its fonts with --font-body, --font-title (board
 * names), --font-display (section headings, subjects) and --font-meta (times, post numbers).
 * A browser only downloads a font when the chosen look uses it.
 *
 * All SIL Open Font License 1.1, latin subsets, unmodified; authors and licence texts in
 * licenses/.
 * ------------------------------------------------------------------------------------------ */
@font-face {
  font-family: 'Scuzz Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('source-serif-4-var.382475f3.woff2') format('woff2');
}
@font-face {
  font-family: 'Scuzz IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('ibm-plex-sans-var.e2291e84.woff2') format('woff2');
}
@font-face {
  font-family: 'Scuzz IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('ibm-plex-mono-400.08949f72.woff2') format('woff2');
}
@font-face {
  font-family: 'Scuzz IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('ibm-plex-mono-600.0d1f0b8d.woff2') format('woff2');
}
@font-face {
  font-family: 'Scuzz Alegreya Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('alegreya-sans-400.b2a5a35a.woff2') format('woff2');
}
@font-face {
  font-family: 'Scuzz Alegreya Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('alegreya-sans-700.5acd19a5.woff2') format('woff2');
}
@font-face {
  font-family: 'Scuzz Alegreya';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('alegreya-700.1c582501.woff2') format('woff2');
}
@font-face {
  font-family: 'Scuzz Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('nunito-var.ba344451.woff2') format('woff2');
}
@font-face {
  font-family: 'Scuzz Lexend';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('lexend-var.b7e7538f.woff2') format('woff2');
}
@font-face {
  font-family: 'Scuzz Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('hanken-grotesk-var.e9201edd.woff2') format('woff2');
}
@font-face {
  font-family: 'Scuzz DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('dm-serif-display-400.fdf61e20.woff2') format('woff2');
}
@font-face {
  font-family: 'Scuzz Exo 2';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('exo-2-var.4a259dde.woff2') format('woff2');
}
@font-face {
  font-family: 'Scuzz Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('chakra-petch-700.ce5095dc.woff2') format('woff2');
}
@font-face {
  font-family: 'Scuzz Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('barlow-400.b0a8ad37.woff2') format('woff2');
}
@font-face {
  font-family: 'Scuzz Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('barlow-700.2d797dd8.woff2') format('woff2');
}
@font-face {
  font-family: 'Scuzz Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('barlow-condensed-700.3787a5a4.woff2') format('woff2');
}
@font-face {
  font-family: 'Scuzz Karla';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('karla-var.3b1eb09a.woff2') format('woff2');
}
@font-face {
  font-family: 'Scuzz Playfair Display';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('playfair-display-700i.de2f4041.woff2') format('woff2');
}
@font-face {
  font-family: 'Scuzz Rubik';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('rubik-var.691cd1d9.woff2') format('woff2');
}
@font-face {
  font-family: 'Scuzz Monoton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('monoton-400.54dd0ac1.woff2') format('woff2');
}

/* ------------------------------------------------------------------------------------------
 * Light and Dark share a finish: Atkinson Hyperlegible for reading, Bricolage Grotesque for
 * board titles, rounded cards, small monospace labels, amber buttons and focus rings.
 *
 * Fonts: Atkinson Hyperlegible (c) 2020 Braille Institute of America; Bricolage Grotesque
 * (c) 2022 The Bricolage Grotesque Project Authors. Both SIL Open Font License 1.1, latin
 * subsets, unmodified. See licenses/README.md.
 * ------------------------------------------------------------------------------------------ */
@font-face {
  font-family: 'Scuzz Atkinson';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('atkinson-400.d64ba838.woff2') format('woff2');
}
@font-face {
  font-family: 'Scuzz Atkinson';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('atkinson-700.140e2bd2.woff2') format('woff2');
}
@font-face {
  font-family: 'Scuzz Bricolage';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('bricolage-700.5dfb9136.woff2') format('woff2');
}
:root:is([data-theme='light'], [data-theme='dark']) {
  --font-body: 'Scuzz Atkinson', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-title: 'Scuzz Bricolage', 'Segoe UI', system-ui, sans-serif;
  --font-meta: var(--mono);
  --font-size: 16px;
  --line-height: 1.55;
  --title-size: 34px;
  --title-spacing: -0.02em;
}
:root:is([data-theme='light'], [data-theme='dark']) .board-header h1 {
  line-height: 1.1;
  color: var(--fg);
}
:root:is([data-theme='light'], [data-theme='dark']) .board-header h1::after {
  content: '.';
  color: var(--btn-bg);
}
:root:is([data-theme='light'], [data-theme='dark']) :is(.post-form h2, .panel h1, .panel h2) {
  font: 600 12px/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
:root:is([data-theme='light'], [data-theme='dark']) .post-head :is(time, .postnum, .poster-id) {
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
:root:is([data-theme='light'], [data-theme='dark']) .post.reply {
  border-radius: 10px;
  padding: 6px 12px 8px;
}
:root:is([data-theme='light'], [data-theme='dark']) .post.reply:hover {
  border-color: var(--card-hover);
}
:root:is([data-theme='light'], [data-theme='dark']) .post.reply:target,
:root:is([data-theme='light'], [data-theme='dark']) .post.you {
  border-color: var(--btn-bg);
}
:root:is([data-theme='light'], [data-theme='dark'])
  :is(.post-form, .catalog-item, details.watcher, dialog.settings, .quote-preview) {
  border-radius: 12px;
}
:root[data-theme='dark'] .post-form {
  box-shadow: 0 24px 60px -30px #000;
}
:root[data-theme='light'] .post-form {
  box-shadow: 0 18px 40px -28px #5a58524d;
}
:root:is([data-theme='light'], [data-theme='dark']) :is(input, textarea, select) {
  border-color: var(--post-border);
  border-radius: 8px;
}
:root:is([data-theme='light'], [data-theme='dark'])
  :is(input, textarea, select, button, a):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
:root:is([data-theme='light'], [data-theme='dark'])
  :is(button:not([type='button'], .link, .reactions *), ::file-selector-button) {
  color: var(--btn-ink);
  background: var(--btn-bg);
  border: 0;
  border-radius: 8px;
  font-weight: 700;
}
:root:is([data-theme='light'], [data-theme='dark'])
  :is(button:not([type='button'], .link, .reactions *), ::file-selector-button):hover {
  background: #f6d27a;
}
:root:is([data-theme='light'], [data-theme='dark']) .look-picker > summary {
  border-radius: 8px;
}
:root:is([data-theme='light'], [data-theme='dark']) .look-picker .look-options {
  border-radius: 12px;
}
:root:is([data-theme='light'], [data-theme='dark']) .look-picker .look-choice {
  border-radius: 8px;
}

/* ------------------------------------------------------------------------------------------
 * Terminal: an IBM VGA text screen. Black, grey phosphor with a soft bloom, faint scanlines,
 * grain and a slow sweep (still under reduced motion).
 *
 * Font: "PxPlus IBM VGA 8x16" by VileR, The Ultimate Oldschool PC Font Pack (int10h.org),
 * CC BY-SA 4.0, unmodified. See licenses/README.md.
 * ------------------------------------------------------------------------------------------ */
@font-face {
  font-family: 'Scuzz IBM VGA';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('ibm-vga-8x16.364992ae.woff2') format('woff2');
}
:root[data-theme='terminal'] {
  --bg: #000000;
  --font-body: var(--term-font);
  --panel-bg: #181818;
  --fg: #c0c0c0;
  --muted: #9a9a9a;
  --post-bg: #252525;
  --post-border: #555555;
  --accent: #e0e0e0;
  --link: #e0e0e0;
  --link-hover: #000000;
  --name: #e0e0e0;
  --trip: #9a9a9a;
  --subject: #ffffff;
  --green: #a8c8a0;
  --pink: #c8a8c0;
  --spoiler: #414141;
  --code-bg: #111111;
  --code-fg: #e0e0e0;
  --input-bg: #000000;
  --highlight: #2a2a2a;
  --term-font: 'Scuzz IBM VGA', ui-monospace, monospace;
  --term-fill: #c0c0c0;
  --term-ink: #000000;
  --term-glow: rgba(192, 192, 192, 0.2);
  --term-glow-soft: rgba(192, 192, 192, 0.075);
  --term-sweep: rgba(224, 224, 224, 0.055);
  --term-scan: rgba(224, 224, 224, 0.025);
  --term-vignette: rgba(0, 0, 0, 0.52);
  color-scheme: dark;
  --bar-bg: #c0c0c0;
  --bar-ink: #000000;
  --btn-bg: #c0c0c0;
  --btn-ink: #000000;
  /* Warnings in the rules ([alert]): red that stays readable here. */
  --alert: #e96a6e;
}
:root[data-theme='terminal'] body {
  background:
    radial-gradient(ellipse at 50% 36%, var(--term-glow-soft) 0%, transparent 54%) fixed,
    linear-gradient(180deg, #000000, #080808) fixed;
  font: 16px/1.4 var(--term-font);
  text-shadow:
    0 0 2px currentColor,
    0 0 6px var(--term-glow-soft);
  caret-color: var(--term-fill);
}
:root[data-theme='terminal'] :is(code, pre, input, textarea, select, button) {
  font-family: var(--term-font);
}
/* The font is an 8x16 bitmap: keep text at 16px (titles at 32px) so it stays on the pixel grid.
 * The front page's title and the line under it keep the size chosen for them in the admin panel. */
:root[data-theme='terminal'] body :where(*:not(.home-title, .home-title *, .home-title-set)) {
  font-size: 16px;
  line-height: 1.4;
  border-radius: 0;
}
:root[data-theme='terminal'] :is(.board-header h1, .board-header h1 *) {
  font-size: 32px;
  line-height: 1.25;
}
:root[data-theme='terminal'] :is(h1, h2, h3, b, strong, .post-head .name, .post-head .subject) {
  font-weight: 400;
}
:root[data-theme='terminal'] .board-header h1 {
  color: var(--accent);
  letter-spacing: 1px;
}
:root[data-theme='terminal'] .board-header h1::after {
  content: '_';
  margin-left: 0.15em;
  animation: scuzz-term-blink 1.06s steps(1, end) infinite;
}
:root[data-theme='terminal'] :is(.post-form h2, .panel h1, .panel h2) {
  font-size: inherit;
  letter-spacing: 1px;
  text-transform: uppercase;
}
:root[data-theme='terminal'] :is(.post-form h2, .panel h1, .panel h2)::before {
  content: '> ';
  color: var(--muted);
}
:root[data-theme='terminal'] .post-head .subject {
  text-transform: uppercase;
}
:root[data-theme='terminal'] .post.reply,
:root[data-theme='terminal'] .catalog-item,
:root[data-theme='terminal'] :is(details.watcher, dialog.settings, .quote-preview) {
  border-radius: 0;
  box-shadow:
    inset 0 0 26px var(--term-glow-soft),
    inset 0 0 2px var(--term-fill);
}
:root[data-theme='terminal'] .post:target,
:root[data-theme='terminal'] .post.reply:target {
  box-shadow:
    inset 2px 0 var(--term-fill),
    inset 0 0 26px var(--term-glow-soft);
}
:root[data-theme='terminal'] a:hover:not(:has(img, video, canvas)) {
  color: var(--term-ink);
  background: var(--term-fill);
  text-decoration: none;
  text-shadow: none;
}
:root[data-theme='terminal'] ::selection {
  color: var(--term-ink);
  background: var(--term-fill);
  text-shadow: none;
}
:root[data-theme='terminal'] :is(input, textarea, select) {
  border-radius: 0;
  text-shadow: inherit;
}
:root[data-theme='terminal'] :is(input, textarea, select):focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 0;
  box-shadow: 0 0 8px var(--term-glow);
}
:root[data-theme='terminal'] button:not([type='button'], .link, .reactions *),
:root[data-theme='terminal'] ::file-selector-button,
:root[data-theme='terminal'] .look-picker > summary {
  font-family: var(--term-font);
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 0;
  box-shadow: none;
  text-transform: uppercase;
}
:root[data-theme='terminal']
  button:not([type='button'], .link, .reactions *):is(:hover, :focus-visible),
:root[data-theme='terminal'] ::file-selector-button:hover,
:root[data-theme='terminal'] .look-picker > summary:hover,
:root[data-theme='terminal'] .look-picker[open] > summary {
  color: var(--term-ink);
  background: var(--term-fill);
  border-color: var(--term-fill);
  text-shadow: none;
  box-shadow: 0 0 8px var(--term-glow-soft);
}
:root[data-theme='terminal'] .look-picker .look-mark {
  color: inherit;
}
:root[data-theme='terminal'] .look-picker .look-options {
  width: min(440px, calc(100vw - 16px));
}
:root[data-theme='terminal'] .look-picker .look-options,
:root[data-theme='terminal'] .look-picker .look-choice {
  border-radius: 0;
  box-shadow: none;
}
:root[data-theme='terminal'] .look-picker .look-choice:hover {
  border-color: var(--term-fill);
}
:root[data-theme='terminal'] .look-picker .look-choice[aria-pressed='true'] {
  outline: 0;
  color: var(--term-ink);
  background: var(--term-fill);
  text-shadow: none;
}
:root[data-theme='terminal'] .look-picker .look-choice[aria-pressed='true'] small {
  color: #222;
}
/* The CRT glass: scanlines, grain and vignette, and a slow sweep. Never takes clicks. */
:root[data-theme='terminal'] body::before,
:root[data-theme='terminal'] body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: 40;
}
:root[data-theme='terminal'] body::before {
  inset: -4px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 2px,
      var(--term-scan) 2px 3px,
      transparent 3px 5px
    ),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.01) 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at center, transparent 48%, var(--term-vignette) 100%);
  opacity: 0.52;
  animation:
    scuzz-term-grain 0.42s steps(2, end) infinite,
    scuzz-term-breath 8.6s steps(1, end) infinite;
  will-change: transform, opacity;
}
:root[data-theme='terminal'] body::after {
  left: 0;
  right: 0;
  top: -18vh;
  height: 18vh;
  background: linear-gradient(180deg, transparent 0%, var(--term-sweep) 48%, transparent 100%);
  filter: blur(0.4px);
  animation: scuzz-term-sweep 9.2s linear infinite;
  will-change: transform, opacity;
}
@keyframes scuzz-term-grain {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(1px, -1px);
  }
  50% {
    transform: translate(-1px, 2px);
  }
  75% {
    transform: translate(2px, 1px);
  }
  100% {
    transform: translate(0, 0);
  }
}
@keyframes scuzz-term-breath {
  0%,
  91%,
  93%,
  100% {
    opacity: 0.52;
  }
  92% {
    opacity: 0.5;
  }
  94% {
    opacity: 0.51;
  }
}
@keyframes scuzz-term-sweep {
  0% {
    transform: translateY(-28vh);
    opacity: 0;
  }
  8% {
    opacity: 0.18;
  }
  86% {
    opacity: 0.14;
  }
  100% {
    transform: translateY(128vh);
    opacity: 0;
  }
}
@keyframes scuzz-term-blink {
  50% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root[data-theme='terminal'] body::before,
  :root[data-theme='terminal'] .board-header h1::after {
    animation: none;
  }
  :root[data-theme='terminal'] body::after {
    display: none;
  }
}
@media print {
  :root[data-theme='terminal'] body::before,
  :root[data-theme='terminal'] body::after {
    display: none;
  }
}

/* Loading veil (client/loading.ts): shown only when something is slow, coloured by the Look. */
.loading-veil {
  --ld-ink: var(--accent);
  --ld-track: color-mix(in srgb, var(--fg) 16%, transparent);
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s ease,
    visibility 0s linear 0.22s;
  background: color-mix(in srgb, var(--bg) 40%, transparent);
  -webkit-backdrop-filter: blur(6px) saturate(1.1);
  backdrop-filter: blur(6px) saturate(1.1);
}
.loading-veil.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.22s ease;
}
.loading-plate {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 132px;
  padding: 22px 28px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel-bg) 90%, transparent);
  box-shadow:
    0 10px 40px rgb(0 0 0 / 28%),
    inset 0 0 0 1px color-mix(in srgb, var(--fg) 14%, transparent);
  color: var(--fg);
  font: 600 12px/1.2 var(--font-meta, system-ui, sans-serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.loading-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 12%, var(--ld-ink) 70%, transparent 71%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  box-shadow: inset 0 0 0 6px var(--ld-track);
  animation: ld-spin 0.9s linear infinite;
}
@keyframes ld-spin {
  to {
    transform: rotate(1turn);
  }
}
/* Neon Looks: the ring glows. */
:root:is(
    [data-theme='toxic'],
    [data-theme='blacklight'],
    [data-theme='vicecity'],
    [data-theme='bubblegumnoir']
  )
  .loading-ring {
  filter: drop-shadow(0 0 6px var(--ld-ink)) drop-shadow(0 0 14px var(--ld-ink));
}
:root:is(
    [data-theme='toxic'],
    [data-theme='blacklight'],
    [data-theme='vicecity'],
    [data-theme='bubblegumnoir']
  )
  .loading-plate {
  box-shadow:
    0 0 32px color-mix(in srgb, var(--accent) 30%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}
/* Vice City: the sunset, round the ring. */
:root[data-theme='vicecity'] .loading-ring {
  background: conic-gradient(
    from 0deg,
    transparent 0 10%,
    var(--pink, #ff4fa3),
    var(--accent) 72%,
    transparent 73%
  );
}
/* Bright Looks (Sea Foam, Key Lime, Golden Sky): a ring of dots that ticks round. */
:root:is([data-theme='seafoam'], [data-theme='keylime'], [data-theme='goldensky']) .loading-ring {
  background: repeating-conic-gradient(var(--ld-ink) 0 9deg, transparent 9deg 30deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  box-shadow: none;
  animation: ld-spin 1.8s steps(12) infinite;
}
:root:is([data-theme='seafoam'], [data-theme='keylime'], [data-theme='goldensky']) .loading-plate {
  border-radius: 20px;
}
/* Terminal: a blinking block cursor instead of a ring. */
:root[data-theme='terminal'] .loading-veil {
  background: color-mix(in srgb, var(--bg) 60%, transparent);
}
:root[data-theme='terminal'] .loading-plate {
  border-radius: 0;
  background: var(--panel-bg);
  box-shadow:
    0 0 0 1px var(--post-border),
    0 0 24px color-mix(in srgb, var(--accent) 35%, transparent);
  font: 400 16px/1 var(--mono, ui-monospace, monospace);
  letter-spacing: 0.06em;
  text-transform: none;
}
:root[data-theme='terminal'] .loading-plate {
  grid-auto-flow: column;
  align-items: center;
}
:root[data-theme='terminal'] .loading-ring {
  order: 2;
  width: 0.6em;
  height: 1em;
  border-radius: 0;
  background: currentColor;
  -webkit-mask: none;
  mask: none;
  box-shadow: none;
  animation: ld-blink 1s steps(1) infinite;
}
@keyframes ld-blink {
  50% {
    opacity: 0;
  }
}
/* The arriving page's own veil: CSS fades it in if the page is still arriving after 0.45 s (so it
   works before any script runs) and gives up at 12 s; the script removes it once the page is read.
   Only where scripts run (the head script marks that), so it can always be lifted. */
.loading-veil.arrival.is-active {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}
:root.has-js:not(.no-veil) .loading-veil.arrival.is-active {
  animation:
    ld-arrive 0.22s ease 0.45s forwards,
    ld-giveup 0.3s ease 12s forwards;
}
@keyframes ld-arrive {
  to {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
@keyframes ld-giveup {
  from {
    opacity: 1;
    visibility: visible;
  }
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-ring {
    animation-duration: 3s !important;
  }
  .loading-veil {
    transition: none;
  }
}

/* Contact conversations */
.dm-messages {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 10px;
}
.dm-message {
  max-width: 80%;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--post-bg);
  border: 1px solid var(--post-border);
}
.dm-message.mine {
  justify-self: end;
  background: color-mix(in srgb, var(--accent) 14%, var(--post-bg));
}
.dm-meta {
  margin: 0 0 4px;
  font-size: 0.87rem;
  color: var(--muted);
}
.dm-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.dm-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.dm-files img,
.dm-files video {
  max-width: 240px;
  max-height: 240px;
  border-radius: 6px;
}
.dm-list .unread,
tr.unread {
  font-weight: 600;
}
.contact-link.has-unread {
  font-weight: 700;
  color: var(--accent);
}

/* Links that act as buttons (staff queues and conversations). */
a.button {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  text-decoration: none;
  font: inherit;
  line-height: 1.6;
}
a.button:hover {
  filter: brightness(1.1);
}
.queue-item {
  margin: 12px 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
}

/* Admin panel (/admin/) */
.admin-nav {
  margin-bottom: 12px;
}
.admin-nav a[aria-current] {
  font-weight: 700;
}
.admin-cards {
  list-style: none;
  padding: 0;
}
.admin-cards li {
  display: grid;
  gap: 2px;
  margin-bottom: 12px;
}
.admin-cards span {
  color: var(--muted);
}
.board-settings fieldset {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 16px 16px;
  border: 1px solid var(--post-border);
}
.board-settings legend {
  padding: 0 6px;
  font-weight: 700;
}
.board-settings label {
  display: grid;
  gap: 4px;
  max-width: 560px;
}
.board-settings label.check {
  display: block;
}
.board-settings .hint {
  display: block;
  margin-top: -2px;
  font-size: 0.85em;
  color: var(--muted);
}
.board-settings input:not([type='checkbox']),
.board-settings select {
  width: 100%;
  max-width: 360px;
}
.board-settings textarea {
  width: 100%;
  max-width: none;
}
.board-settings label:has(textarea) {
  max-width: none;
}
.board-settings fieldset.multi {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  border: 0;
}
.board-settings fieldset.multi legend {
  padding: 0 0 4px;
  font-weight: normal;
}
.board-settings fieldset.multi .hint {
  flex-basis: 100%;
}
.sticky-save {
  position: sticky;
  bottom: 0;
  margin: 0;
  padding: 10px 0;
  background: var(--bg);
}
.staff-table td {
  vertical-align: top;
}
.staff-table .admin-actions form.inline,
.staff-table .admin-actions details.inline {
  display: inline-block;
  margin: 0 6px 4px 0;
}
.staff-table details.inline .stack {
  margin-top: 6px;
}
.staff-table tr.muted td {
  opacity: 0.6;
}
.danger-zone {
  padding: 12px 16px;
  border: 1px solid var(--pink);
}

/* Ticks, radios and sliders in the look's own colour (not the browser's blue). */
input[type='checkbox'],
input[type='radio'],
input[type='range'] {
  accent-color: var(--btn-bg, var(--accent));
}

/* Secondary buttons (ones that don't send a form) in the looks with filled buttons: outlined, in
   the link colour, so their text is never pale on a bright fill. */
:root:is(
    [data-theme='seafoam'],
    [data-theme='keylime'],
    [data-theme='goldensky'],
    [data-theme='blacklight'],
    [data-theme='toxic'],
    [data-theme='bubblegumnoir'],
    [data-theme='vicecity'],
    [data-theme='yotsuba']
  )
  button[type='button']:not(.link, .reactions *, .settings-link, .widget-close) {
  color: var(--link);
  background: transparent;
  border: 1px solid var(--post-border);
  font-weight: 600;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
  filter: none;
}

/* The settings dialog: room to breathe, readable notes. */
dialog.settings {
  padding: 20px 24px;
  line-height: 1.5;
}
dialog.settings h2 {
  margin-top: 0;
}
dialog.settings h3 {
  margin: 20px 0 4px;
  padding-top: 14px;
  border-top: 1px solid var(--post-border);
}
dialog.settings .hint {
  font-size: 0.93rem;
  line-height: 1.45;
}
dialog.settings label.check {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
dialog.settings label.check input {
  flex: none;
}
dialog.settings select {
  margin-left: 6px;
}
dialog.settings .filter-help {
  margin: 4px 0 8px;
  padding-left: 18px;
  font-size: 0.93rem;
  color: var(--muted);
}
dialog.settings .filter-help code {
  color: var(--fg);
}

.search-form:has(.search-any) {
  flex-wrap: wrap;
}
.search-form .search-any {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: 0.9em;
}

/* The bar across the top: full width, left and right groups, icons. */
.site-header {
  margin: 0 -12px 8px;
  padding: 0;
}
.boardlist.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 12px;
  padding: 5px 12px;
  background: var(--panel-bg);
  border-bottom: 1px solid var(--post-border);
}
.topbar .nav-left,
.topbar .nav-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  float: none;
  margin: 0;
}
.topbar .nav-group,
.topbar .user-links {
  white-space: nowrap;
}
.topbar .bracketed {
  margin: 0;
}
.topbar .home {
  font-weight: normal;
  margin: 0;
}
.nav-icon {
  width: 1.15em;
  height: 1.15em;
  margin-right: 0.3em;
  vertical-align: -0.2em;
}

/* Something to do before going on (e.g. set up two-factor login). */
.flash.must-do {
  border: 2px solid var(--btn-bg, var(--accent));
}

.qr-box {
  margin: 8px 0;
}
.qr-box svg.qr {
  width: 220px;
  height: 220px;
  border-radius: 6px;
}

/* A quieter button beside the main one: outlined, readable on every look. */
button.secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--accent);
}
.two-factor-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.two-factor-choices > div {
  border: 1px solid var(--post-border);
  border-radius: 6px;
  padding: 8px 12px;
}
.two-factor-choices h3 {
  margin: 4px 0;
}
.widget-row label.check {
  display: flex;
  gap: 6px;
  align-items: center;
  padding-bottom: 6px;
}
/* Backup codes, shown once: easy to read and copy. */
.backup-codes .codes {
  columns: 2;
  margin: 8px 0 4px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--fg);
  background: var(--input-bg);
  border-radius: 4px;
}
details.backup-login {
  margin-top: 16px;
}

/* The rules and FAQ: a title, when they were last changed, then boxes with title bars. */
.text-page {
  max-width: 820px;
  margin: 16px auto 24px;
}
.text-page-head {
  text-align: center;
  margin-bottom: 14px;
}
.text-page-head h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: var(--title-size);
  color: var(--accent);
}
.text-page-head .updated {
  margin: 2px 0 0;
  font-size: 0.87rem;
  color: var(--muted);
}
.text-box {
  margin-bottom: 14px;
  background: var(--panel-bg);
  border: 1px solid var(--post-border);
  border-radius: 4px;
  overflow: hidden;
}
.text-box > h2 {
  margin: 0;
  padding: 5px 10px;
  font-size: 1.05rem;
  background: var(--bar-bg, var(--accent));
  color: var(--bar-ink, #fff);
}
.text-box-body {
  padding: 4px 14px;
  overflow-wrap: anywhere;
}
.text-box-body :is(p, ol, ul) {
  margin: 10px 0;
}
.text-box-body li {
  margin: 3px 0;
}
.text-box-body h3 {
  margin: 14px 0 4px;
  font-size: 1rem;
}
.text-box-body hr {
  border: 0;
  border-top: 1px solid var(--post-border);
  margin: 12px 0;
}
.t-small {
  font-size: 0.85em;
}
.t-big {
  font-size: 1.25em;
}
.t-huge {
  font-size: 1.6em;
  line-height: 1.25;
}
/* The same text in the rules pop-up: boxes without the page's outer spacing. */
#rules-dialog .rules-body {
  max-height: 60vh;
  overflow-y: auto;
}
#rules-dialog .text-box {
  margin-bottom: 10px;
}
/* The admin editor's formatting buttons. */
.richtext-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0;
}
.richtext-tools button {
  margin: 0;
  padding: 3px 8px;
  font-size: 0.87rem;
}
.richtext-preview {
  border: 1px dashed var(--post-border);
  border-radius: 6px;
  padding: 8px;
}

/* [alert] in the rules and pages: bold, in the look's warning red. */
.t-alert {
  color: var(--alert);
  font-weight: 700;
}
/* The front page's board list in columns (one on phones). */
.board-directory.cols-2 {
  columns: 2;
  column-gap: 28px;
}
.board-directory.cols-3 {
  columns: 3;
  column-gap: 24px;
}
.board-directory li {
  break-inside: avoid;
}
@media (max-width: 700px) {
  .board-directory:is(.cols-2, .cols-3) {
    columns: 1;
  }
}
/* Staff applications (admin panel). */
.application {
  margin: 12px 0;
  padding: 8px 12px;
  border: 1px solid var(--post-border);
  border-radius: 6px;
  background: var(--panel-bg);
}
.application h3 {
  margin: 0 0 6px;
}
.application .answers {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  margin: 6px 0;
}
.apply-form textarea {
  min-height: 220px;
}

/* ------------------------------------------------------------------------------------------
 * The front page title: size, font and effects (admin panel → Front page). Every effect is
 * drawn in the look's own colours, so it suits whichever look a visitor chose.
 * ------------------------------------------------------------------------------------------ */
.home-title {
  display: inline-block;
  margin: 4px 0;
  line-height: 1.1;
  color: var(--accent);
}
.home-title.ts-1 {
  font-size: min(1.6rem, 5.4vw);
}
.home-logo.ts-1 img {
  max-height: 60px;
}
.home-title.ts-2 {
  font-size: min(2.1rem, 7.1vw);
}
.home-logo.ts-2 img {
  max-height: 80px;
}
.home-title.ts-3 {
  font-size: min(2.7rem, 9.2vw);
}
.home-logo.ts-3 img {
  max-height: 100px;
}
.home-title.ts-4 {
  font-size: min(3.4rem, 11.6vw);
}
.home-logo.ts-4 img {
  max-height: 130px;
}
.home-title.ts-5 {
  font-size: min(4.3rem, 14.6vw);
}
.home-logo.ts-5 img {
  max-height: 160px;
}
.home-title.ts-6 {
  font-size: min(5.3rem, 18vw);
}
.home-logo.ts-6 img {
  max-height: 200px;
}
.home-title.ts-7 {
  font-size: min(6.5rem, 22.1vw);
}
.home-logo.ts-7 img {
  max-height: 240px;
}
.home-title.ts-8 {
  font-size: min(8rem, 27.2vw);
}
.home-logo.ts-8 img {
  max-height: 300px;
}
.home-title.font-sans {
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}
.home-title.font-serif {
  font-family: Georgia, 'Times New Roman', serif;
}
.home-title.font-mono {
  font-family: var(--mono);
}
.home-title.font-display {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', 'Arial Black', sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.home-title.fx-glow {
  text-shadow:
    0 0 6px color-mix(in srgb, var(--accent) 70%, transparent),
    0 0 20px color-mix(in srgb, var(--accent) 45%, transparent);
}
.home-title.fx-neon {
  /* A glowing tube: a pale core on dark looks, the accent itself on light ones. */
  color: var(--neon-core, var(--accent));
  text-shadow:
    0 0 2px var(--neon-core, var(--accent)),
    0 0 8px var(--accent),
    0 0 18px var(--accent),
    0 0 36px var(--link);
  animation: fx-flicker 5s infinite;
}
:root:is(
  [data-theme='dark'],
  [data-theme='midnight'],
  [data-theme='forest'],
  [data-theme='blacklight'],
  [data-theme='toxic'],
  [data-theme='bubblegumnoir'],
  [data-theme='vicecity'],
  [data-theme='terminal']
) {
  --neon-core: color-mix(in srgb, var(--accent) 35%, #fff);
}
@keyframes fx-flicker {
  0%,
  91%,
  94%,
  100% {
    opacity: 1;
  }
  92%,
  95% {
    opacity: 0.55;
  }
}
.home-title.fx-shadow {
  text-shadow:
    3px 3px 0 var(--post-border),
    6px 6px 0 color-mix(in srgb, var(--post-border) 45%, transparent);
}
.home-title.fx-retro {
  --depth: color-mix(in srgb, var(--accent) 45%, var(--bg));
  text-shadow:
    1px 1px 0 var(--depth),
    2px 2px 0 var(--depth),
    3px 3px 0 var(--depth),
    4px 4px 0 var(--depth),
    5px 5px 0 var(--depth),
    6px 6px 0 var(--depth),
    8px 8px 10px color-mix(in srgb, #000 45%, transparent);
}
.home-title.fx-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
}
.home-title:is(.fx-gradient, .fx-shine) {
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}
.home-title.fx-gradient {
  background-image: linear-gradient(90deg, var(--accent), var(--link), var(--name));
}
.home-title.fx-shine {
  background-image: linear-gradient(
    110deg,
    var(--accent) 40%,
    color-mix(in srgb, var(--accent) 25%, #fff) 50%,
    var(--accent) 60%
  );
  background-size: 250% 100%;
  animation: fx-shine 3.5s linear infinite;
}
@keyframes fx-shine {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -150% 0;
  }
}
.home-title.fx-glitch {
  position: relative;
}
.home-title.fx-glitch::before,
.home-title.fx-glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.home-title.fx-glitch::before {
  color: var(--link);
  transform: translate(-2px, 0);
  clip-path: inset(0 0 55% 0);
  animation: fx-glitch 2.8s infinite steps(1);
  mix-blend-mode: screen;
}
.home-title.fx-glitch::after {
  color: var(--pink);
  transform: translate(2px, 0);
  clip-path: inset(55% 0 0 0);
  animation: fx-glitch 2.3s infinite reverse steps(1);
  mix-blend-mode: screen;
}
@keyframes fx-glitch {
  0%,
  82%,
  100% {
    transform: translate(0, 0);
    opacity: 0;
  }
  84% {
    transform: translate(-3px, 1px);
    opacity: 1;
  }
  88% {
    transform: translate(3px, -1px);
    opacity: 1;
  }
  92% {
    transform: translate(-1px, 0);
    opacity: 1;
  }
}
.home-title.fx-wave span {
  display: inline-block;
  animation: fx-wave 1.8s ease-in-out infinite;
}
@keyframes fx-wave {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-0.18em);
  }
}
/* A logo picture gets the effects that suit a picture. */
.home-logo.fx-glow img {
  filter: drop-shadow(0 0 10px var(--accent));
}
.home-logo.fx-neon img {
  filter: drop-shadow(0 0 4px var(--accent)) drop-shadow(0 0 14px var(--link));
}
.home-logo:is(.fx-shadow, .fx-outline) img {
  filter: drop-shadow(4px 4px 0 var(--post-border));
}
.home-logo.fx-retro img {
  filter: drop-shadow(3px 3px 0 color-mix(in srgb, var(--accent) 45%, var(--bg)))
    drop-shadow(3px 3px 0 color-mix(in srgb, var(--accent) 45%, var(--bg)));
}
@media (prefers-reduced-motion: reduce) {
  .home-title,
  .home-title *,
  .home-title::before,
  .home-title::after {
    animation: none !important;
  }
}
.home-title.fx-wave span:nth-child(1) {
  animation-delay: 0s;
}
.home-title.fx-wave span:nth-child(2) {
  animation-delay: 0.07s;
}
.home-title.fx-wave span:nth-child(3) {
  animation-delay: 0.14s;
}
.home-title.fx-wave span:nth-child(4) {
  animation-delay: 0.21s;
}
.home-title.fx-wave span:nth-child(5) {
  animation-delay: 0.28s;
}
.home-title.fx-wave span:nth-child(6) {
  animation-delay: 0.35s;
}
.home-title.fx-wave span:nth-child(7) {
  animation-delay: 0.42s;
}
.home-title.fx-wave span:nth-child(8) {
  animation-delay: 0.49s;
}
.home-title.fx-wave span:nth-child(9) {
  animation-delay: 0.56s;
}
.home-title.fx-wave span:nth-child(10) {
  animation-delay: 0.63s;
}
.home-title.fx-wave span:nth-child(11) {
  animation-delay: 0.7s;
}
.home-title.fx-wave span:nth-child(12) {
  animation-delay: 0.77s;
}
.home-title.fx-wave span:nth-child(13) {
  animation-delay: 0.84s;
}
.home-title.fx-wave span:nth-child(14) {
  animation-delay: 0.91s;
}
.home-title.fx-wave span:nth-child(15) {
  animation-delay: 0.98s;
}
.home-title.fx-wave span:nth-child(16) {
  animation-delay: 1.05s;
}
.home-title.fx-wave span:nth-child(17) {
  animation-delay: 1.12s;
}
.home-title.fx-wave span:nth-child(18) {
  animation-delay: 1.19s;
}
.home-title.fx-wave span:nth-child(19) {
  animation-delay: 1.26s;
}
.home-title.fx-wave span:nth-child(20) {
  animation-delay: 1.33s;
}
.home-title.fx-wave span:nth-child(21) {
  animation-delay: 1.4s;
}
.home-title.fx-wave span:nth-child(22) {
  animation-delay: 1.47s;
}
.home-title.fx-wave span:nth-child(23) {
  animation-delay: 1.54s;
}
.home-title.fx-wave span:nth-child(24) {
  animation-delay: 1.61s;
}
.home-title.fx-wave span:nth-child(25) {
  animation-delay: 1.68s;
}
.home-title.fx-wave span:nth-child(26) {
  animation-delay: 1.75s;
}
.home-title.fx-wave span:nth-child(27) {
  animation-delay: 1.82s;
}
.home-title.fx-wave span:nth-child(28) {
  animation-delay: 1.89s;
}
.home-title.fx-wave span:nth-child(29) {
  animation-delay: 1.96s;
}
.home-title.fx-wave span:nth-child(30) {
  animation-delay: 2.03s;
}
.home-title.fx-wave span:nth-child(31) {
  animation-delay: 2.1s;
}
.home-title.fx-wave span:nth-child(32) {
  animation-delay: 2.17s;
}
.home-title.fx-wave span:nth-child(33) {
  animation-delay: 2.24s;
}
.home-title.fx-wave span:nth-child(34) {
  animation-delay: 2.31s;
}
.home-title.fx-wave span:nth-child(35) {
  animation-delay: 2.38s;
}
.home-title.fx-wave span:nth-child(36) {
  animation-delay: 2.45s;
}
.home-title.fx-wave span:nth-child(37) {
  animation-delay: 2.52s;
}
.home-title.fx-wave span:nth-child(38) {
  animation-delay: 2.59s;
}
.home-title.fx-wave span:nth-child(39) {
  animation-delay: 2.66s;
}
.home-title.fx-wave span:nth-child(40) {
  animation-delay: 2.73s;
}
.effect-choices {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}
.effect-choices label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--post-border);
  border-radius: 6px;
  background: var(--bg);
  cursor: pointer;
  overflow: hidden;
}
.effect-choices label:has(input:checked) {
  outline: 2px solid var(--accent);
}
.effect-choices .home-title {
  font-size: 1.7rem;
  white-space: nowrap;
}
.home-header-preview {
  padding: 12px;
  border: 1px dashed var(--post-border);
  border-radius: 6px;
  margin-bottom: 10px;
}

/* Yotsuba (after the shared palette rules, which it changes): */
/* Square replies with the classic right and bottom edge; a bold title in the board red. */
:root[data-theme='yotsuba'] .post.reply {
  border: 0;
  border-right: 1px solid var(--post-border);
  border-bottom: 1px solid var(--post-border);
  border-radius: 0;
  box-shadow: none;
}
:root[data-theme='yotsuba'] .board-header h1 {
  font-weight: 700;
}
:root[data-theme='yotsuba'] .post-head .subject {
  font-weight: 700;
}
/* The peach sky sits at the top of the page, as on the classic boards (it doesn't follow). */
:root[data-theme='yotsuba'] body {
  background-attachment: scroll;
}
/* Yotsuba's front page: popular threads and recent posts in the blue box, recent images in the
   green one (the classic front page; the blue deepened so its white title stays readable). */
:root[data-theme='yotsuba'] {
  --lists-bg: #eeffff;
  --lists-border: #000080;
  --lists-bar: linear-gradient(180deg, #3a7891 0%, #2f6a83 100%);
  --lists-ink: #ffffff;
  --lists-link: #0000ee;
  --images-bg: #eeffee;
  --images-border: #2e6b10;
  --images-bar: linear-gradient(180deg, #a8d878 0%, #99cc66 100%);
  --images-ink: #063806;
  --images-tile: #102b00;
}
:root[data-theme='yotsuba'] :is(.w-recentPosts, .w-popular) .home-list a {
  text-decoration: underline;
}
:root[data-theme='yotsuba'] :is(.w-recentPosts, .w-popular) .home-list .from {
  color: #000080;
}
:root[data-theme='yotsuba'] :is(.w-recentPosts, .w-popular) .home-list li::marker {
  color: #000080;
}
:root[data-theme='yotsuba'] :is(.w-recentPosts, .w-popular) .home-list .hint {
  color: #3d4f66;
}
/* Links on coloured bars and notices take the bar's or notice's own text colour (underlined), so
   they never vanish into it (a link in a maroon bar was maroon). */
:is(.post-form h2, .panel h1, .panel h2, .home-widget > h2, .text-box > h2) a,
.flash a {
  color: inherit;
  text-decoration: underline;
}
/* [contents] on the rules, FAQ and Jobs pages: an index of the titles and headings. */
.contents ol {
  margin: 6px 0;
  padding-left: 1.4em;
}
.contents ul {
  margin: 2px 0 4px;
  padding-left: 1.2em;
  list-style: disc;
}
.contents li {
  margin: 2px 0;
}
.text-box :is(h2, h3)[id] {
  scroll-margin-top: 12px;
}
/* Links in the rules, FAQ and Jobs text are underlined: in some looks the link colour is close to
   the text colour. */
.text-box-body a,
.contents a {
  text-decoration: underline;
}
.text-box-body code {
  font-family: var(--mono);
  font-size: 0.92em;
  padding: 0 3px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--fg) 9%, transparent);
}

/* ------------------------------------------------------------------------------------------
 * Front page boxes in colour, per look: the lists (popular threads, recent posts), recent
 * images and statistics each get a tint, border, title bar and link colour of their own, set by
 * each look below (--lists-*, --images-*, --stats-*). Looks that set none keep the usual boxes.
 * ------------------------------------------------------------------------------------------ */
.home-widget:is(.w-popular, .w-recentPosts) {
  background: var(--lists-bg, var(--panel-bg));
  border-color: var(--lists-border, var(--post-border));
}
.home-widget:is(.w-popular, .w-recentPosts) > h2 {
  background: var(--lists-bar, var(--bar-bg, var(--accent)));
  color: var(--lists-ink, var(--bar-ink, #fff));
}
:is(.w-popular, .w-recentPosts) .home-list a {
  color: var(--lists-link, var(--link));
}
.home-widget.w-recentImages {
  background: var(--images-bg, var(--panel-bg));
  border-color: var(--images-border, var(--post-border));
}
.home-widget.w-recentImages > h2 {
  background: var(--images-bar, var(--bar-bg, var(--accent)));
  color: var(--images-ink, var(--bar-ink, #fff));
}
.w-recentImages .home-images a {
  background: var(--images-tile, var(--post-bg));
}
.home-widget.w-stats {
  background: var(--stats-bg, var(--panel-bg));
  border-color: var(--stats-border, var(--post-border));
}
.home-widget.w-stats > h2 {
  background: var(--stats-bar, var(--bar-bg, var(--accent)));
  color: var(--stats-ink, var(--bar-ink, #fff));
}
:root[data-theme='light'] {
  --lists-bg: #eef3f8;
  --lists-border: #8aa4bf;
  --lists-bar: linear-gradient(135deg, #bcd3e8 0%, #a5c1dc 100%);
  --lists-ink: #1d2a38;
  --lists-link: #1f4f7a;
  --images-bg: #eff5ea;
  --images-border: #8fae78;
  --images-bar: linear-gradient(135deg, #c6deb1 0%, #afcf95 100%);
  --images-ink: #1e3314;
  --images-tile: #dfe9d6;
  --stats-bg: #f8f0dc;
  --stats-border: #c9a24a;
  --stats-bar: linear-gradient(135deg, #f5cc68 0%, #f2c14e 100%);
  --stats-ink: #1d1d20;
}
:root[data-theme='dark'] {
  --lists-bg: #1f2530;
  --lists-border: #4d6a8f;
  --lists-bar: linear-gradient(135deg, #8fb3e0 0%, #7aa2d4 100%);
  --lists-ink: #101418;
  --lists-link: #a9c8f0;
  --images-bg: #1f281d;
  --images-border: #56734b;
  --images-bar: linear-gradient(135deg, #a8d196 0%, #92c27e 100%);
  --images-ink: #10160d;
  --images-tile: #141a12;
  --stats-bg: #26202b;
  --stats-border: #6e5880;
  --stats-bar: linear-gradient(135deg, #d3aee4 0%, #c39bd8 100%);
  --stats-ink: #17111b;
}
:root[data-theme='paper'] {
  --lists-bg: #f0f5ff;
  --lists-border: #6b8cc4;
  --lists-bar: #2a5bb8;
  --lists-ink: #ffffff;
  --lists-link: #0645ad;
  --images-bg: #f1f8f1;
  --images-border: #6aa36d;
  --images-bar: #2e7d32;
  --images-ink: #ffffff;
  --images-tile: #e3eee3;
  --stats-bg: #f5f5f5;
  --stats-border: #8b919c;
  --stats-bar: #3d3d3d;
  --stats-ink: #ffffff;
}
:root[data-theme='midnight'] {
  --lists-bg: #142039;
  --lists-border: #3d5a99;
  --lists-bar: linear-gradient(135deg, #8db0f8 0%, #7aa2f7 100%);
  --lists-ink: #0a1020;
  --lists-link: #a9c3fa;
  --images-bg: #10272c;
  --images-border: #2f7a72;
  --images-bar: linear-gradient(135deg, #86e0d2 0%, #73daca 100%);
  --images-ink: #06201b;
  --images-tile: #0a1c20;
  --stats-bg: #1d1834;
  --stats-border: #5c4a99;
  --stats-bar: linear-gradient(135deg, #c8adf8 0%, #bb9af7 100%);
  --stats-ink: #170f2a;
}
:root[data-theme='forest'] {
  --lists-bg: #1b2620;
  --lists-border: #4f7a66;
  --lists-bar: linear-gradient(135deg, #a2cdb9 0%, #8fc0a9 100%);
  --lists-ink: #0f1a14;
  --lists-link: #b5dccb;
  --images-bg: #2a1d14;
  --images-border: #8a5a3a;
  --images-bar: linear-gradient(135deg, #dd9b6e 0%, #d08a5b 100%);
  --images-ink: #1d0f06;
  --images-tile: #1c130c;
  --stats-bg: #262315;
  --stats-border: #7d6e3c;
  --stats-bar: linear-gradient(135deg, #d6c27c 0%, #c9b26a 100%);
  --stats-ink: #1a1607;
}
:root[data-theme='seafoam'] {
  --lists-bg: #f8eef2;
  --lists-border: #b07a92;
  --lists-bar: linear-gradient(135deg, #8a3358 0%, #7a2a4c 100%);
  --lists-ink: #ffffff;
  --lists-link: #6e2142;
  --images-bg: #eaf6f3;
  --images-border: #5aa89d;
  --images-bar: linear-gradient(135deg, #24756b 0%, #1e655d 100%);
  --images-ink: #ffffff;
  --images-tile: #d7ebe6;
  --stats-bg: #fbf3e6;
  --stats-border: #c9995a;
  --stats-bar: linear-gradient(135deg, #efc68a 0%, #e9b872 100%);
  --stats-ink: #2b2024;
}
:root[data-theme='keylime'] {
  --lists-bg: #f3f8e8;
  --lists-border: #6f9a62;
  --lists-bar: linear-gradient(135deg, #22774f 0%, #1c6648 100%);
  --lists-ink: #ffffff;
  --lists-link: #1c6648;
  --images-bg: #e9f6f6;
  --images-border: #4fa5a8;
  --images-bar: linear-gradient(135deg, #5ccdd1 0%, #38bfc4 100%);
  --images-ink: #0e2a2b;
  --images-tile: #d4ecec;
  --stats-bg: #f8ece6;
  --stats-border: #c07a62;
  --stats-bar: linear-gradient(135deg, #b04530 0%, #a03a24 100%);
  --stats-ink: #ffffff;
}
:root[data-theme='goldensky'] {
  --lists-bg: #e6f2f7;
  --lists-border: #5c9fbe;
  --lists-bar: linear-gradient(135deg, #1f7aa8 0%, #115d89 100%);
  --lists-ink: #ffffff;
  --lists-link: #115d89;
  --images-bg: #f9ebe6;
  --images-border: #c97a68;
  --images-bar: linear-gradient(135deg, #c8402c 0%, #b03522 100%);
  --images-ink: #ffffff;
  --images-tile: #f0d9d1;
  --stats-bg: #edf3e3;
  --stats-border: #7f9c5c;
  --stats-bar: linear-gradient(135deg, #4f8230 0%, #43702a 100%);
  --stats-ink: #ffffff;
}
:root[data-theme='blacklight'] {
  --lists-bg: #1d1028;
  --lists-border: #7a3a8a;
  --lists-bar: linear-gradient(135deg, #e85be2 0%, #db3fd4 100%);
  --lists-ink: #0b0612;
  --lists-link: #f3a0ef;
  --images-bg: #13201a;
  --images-border: #4c8a3a;
  --images-bar: linear-gradient(135deg, #aef585 0%, #9bf26a 100%);
  --images-ink: #08140a;
  --images-tile: #0b1610;
  --stats-bg: #19163a;
  --stats-border: #5a4ab0;
  --stats-bar: linear-gradient(135deg, #ab91ff 0%, #9a7bff 100%);
  --stats-ink: #0b0816;
}
:root[data-theme='toxic'] {
  --lists-bg: #0a2422;
  --lists-border: #2b8f86;
  --lists-bar: linear-gradient(135deg, #6fe0d6 0%, #3fb8ad 100%);
  --lists-ink: #04120f;
  --lists-link: #9ff0e8;
  --images-bg: #24140c;
  --images-border: #b5562f;
  --images-bar: linear-gradient(135deg, #ff9a6b 0%, #f37445 100%);
  --images-ink: #1a0a05;
  --images-tile: #120804;
  --stats-bg: #2a1420;
  --stats-border: #b0577f;
  --stats-bar: linear-gradient(135deg, #f9b3cf 0%, #f08ab4 100%);
  --stats-ink: #1f0a14;
}
:root[data-theme='bubblegumnoir'] {
  --lists-bg: #22141c;
  --lists-border: #8a4a6a;
  --lists-bar: linear-gradient(135deg, #fbb8d8 0%, #f9a6cf 100%);
  --lists-ink: #1a0b13;
  --lists-link: #ffc2de;
  --images-bg: #141d14;
  --images-border: #4f7a45;
  --images-bar: linear-gradient(135deg, #b0e09d 0%, #9fd88a 100%);
  --images-ink: #0e1a0a;
  --images-tile: #0c140b;
  --stats-bg: #1d1622;
  --stats-border: #6b4f80;
  --stats-bar: linear-gradient(135deg, #d4b3ec 0%, #c9a3e6 100%);
  --stats-ink: #170f1c;
}
:root[data-theme='vicecity'] {
  --lists-bg: #0f1530;
  --lists-border: #0bbffc;
  --lists-bar: linear-gradient(90deg, #09ecfe 0%, #0bbffc 100%);
  --lists-ink: #0a0414;
  --lists-link: #8ff4ff;
  --images-bg: #241020;
  --images-border: #ff7a59;
  --images-bar: linear-gradient(90deg, #ffb35c 0%, #ff7a59 100%);
  --images-ink: #1a0a0a;
  --images-tile: #160a14;
  --stats-bg: #1a0f33;
  --stats-border: #7a52c7;
  --stats-bar: linear-gradient(90deg, #c59cff 0%, #b98aff 100%);
  --stats-ink: #120a24;
}

.look-styles details {
  border-top: 1px solid var(--post-border);
  padding: 6px 0;
}
.look-styles summary {
  cursor: pointer;
  font-weight: 600;
}
.turf-reply {
  margin: 8px 0;
}
/* Settings read as sentences: the numbers sit in the line. */
.board-settings.turf-settings {
  max-width: 820px;
}
.board-settings.turf-settings label:not(.check) {
  display: block;
  line-height: 2.2;
}
.turf-settings select {
  display: inline-block;
  width: auto;
  margin-right: 4px;
}
.turf-settings input[type='number'] {
  display: inline-block;
  width: 7em;
  margin: 0 4px;
}
.turf-settings label .hint {
  line-height: 1.4;
}
.turf-actions form.inline {
  display: inline-block;
  margin: 2px;
}
/* A look's own title or line (admin panel → Front page → Each look): the page carries a copy for
 * each look that differs, "lo lo-<look>", shown only in that look, while the main one carries
 * "lx-<look>" for each look it gives way to. */
:root .home-header .lo {
  display: none;
}
:root[data-theme='light'] .home-header .lx-light {
  display: none;
}
:root[data-theme='light'] .home-header .lo-light {
  display: inline-block;
}
:root[data-theme='dark'] .home-header .lx-dark {
  display: none;
}
:root[data-theme='dark'] .home-header .lo-dark {
  display: inline-block;
}
:root[data-theme='paper'] .home-header .lx-paper {
  display: none;
}
:root[data-theme='paper'] .home-header .lo-paper {
  display: inline-block;
}
:root[data-theme='seafoam'] .home-header .lx-seafoam {
  display: none;
}
:root[data-theme='seafoam'] .home-header .lo-seafoam {
  display: inline-block;
}
:root[data-theme='keylime'] .home-header .lx-keylime {
  display: none;
}
:root[data-theme='keylime'] .home-header .lo-keylime {
  display: inline-block;
}
:root[data-theme='goldensky'] .home-header .lx-goldensky {
  display: none;
}
:root[data-theme='goldensky'] .home-header .lo-goldensky {
  display: inline-block;
}
:root[data-theme='midnight'] .home-header .lx-midnight {
  display: none;
}
:root[data-theme='midnight'] .home-header .lo-midnight {
  display: inline-block;
}
:root[data-theme='forest'] .home-header .lx-forest {
  display: none;
}
:root[data-theme='forest'] .home-header .lo-forest {
  display: inline-block;
}
:root[data-theme='blacklight'] .home-header .lx-blacklight {
  display: none;
}
:root[data-theme='blacklight'] .home-header .lo-blacklight {
  display: inline-block;
}
:root[data-theme='toxic'] .home-header .lx-toxic {
  display: none;
}
:root[data-theme='toxic'] .home-header .lo-toxic {
  display: inline-block;
}
:root[data-theme='bubblegumnoir'] .home-header .lx-bubblegumnoir {
  display: none;
}
:root[data-theme='bubblegumnoir'] .home-header .lo-bubblegumnoir {
  display: inline-block;
}
:root[data-theme='vicecity'] .home-header .lx-vicecity {
  display: none;
}
:root[data-theme='vicecity'] .home-header .lo-vicecity {
  display: inline-block;
}
:root[data-theme='terminal'] .home-header .lx-terminal {
  display: none;
}
:root[data-theme='terminal'] .home-header .lo-terminal {
  display: inline-block;
}
:root[data-theme='yotsuba'] .home-header .lx-yotsuba {
  display: none;
}
:root[data-theme='yotsuba'] .home-header .lo-yotsuba {
  display: inline-block;
}

/* The line under the title: its own size, font and effect (the title's effects). */
.home-title.home-tagline {
  display: inline-block;
  margin: 0;
  line-height: 1.3;
  font-weight: 400;
}
.home-tagline.fx-none {
  color: var(--muted);
}
.home-tagline.tls-0 {
  font-size: 1rem;
}
/* Terminal: the usual size stays on the bitmap font's 16px grid. */
:root[data-theme='terminal'] .home-tagline.tls-0 {
  font-size: 16px;
}
.home-tagline.tls-1 {
  font-size: 0.85rem;
}
.home-tagline.tls-2 {
  font-size: 1rem;
}
.home-tagline.tls-3 {
  font-size: 1.15rem;
}
.home-tagline.tls-4 {
  font-size: 1.35rem;
}
.home-tagline.tls-5 {
  font-size: min(1.6rem, 6.7vw);
}
.home-tagline.tls-6 {
  font-size: min(2rem, 8.4vw);
}
.home-tagline.tls-7 {
  font-size: min(2.5rem, 10.5vw);
}
.home-tagline.tls-8 {
  font-size: min(3.2rem, 13.4vw);
}
/* The title in the look's own font and weight, wherever it is drawn (the admin preview too). */
.home-title:not(.home-tagline) {
  font-weight: var(--title-weight, 700);
}
.home-title.font-look:not(.home-tagline) {
  font-family: var(--font-title);
}
/* The admins' notice at the top of every page (news, planned downtime, posting paused). */
.site-notice {
  margin: 0;
  padding: 6px 12px;
  text-align: center;
  font-weight: 600;
  color: var(--bar-ink, #fff);
  background: var(--bar-bg, var(--accent));
}
/* Closed for maintenance: a page of its own. */
.maintenance-page .maintenance {
  max-width: 560px;
  margin: 15vh auto;
  padding: 0 16px;
  text-align: center;
}
.maintenance-page .maintenance h1 {
  color: var(--accent);
  font-family: var(--font-title);
}
