/* The acid look: green on black, with full-color icons that sit naturally on top of
   people's videos. It's built on top of style.css. */
:root { --acid: #5dff3b; }

/* The perspective lines behind everything, drawn by room.js */
canvas.room { display: none; }
html[data-acid] canvas.room { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
html[data-acid] #room { position: fixed; }

/* --- Tokens: style.css follows these, so most of the site changes here. --- */
html[data-acid] {
  --fg: var(--acid);
  --text: color-mix(in srgb, var(--acid) 22%, #fff);
  --dim: color-mix(in srgb, var(--acid) 62%, #666);
  --line: color-mix(in srgb, var(--acid) 50%, transparent);
  --glass: rgba(0, 0, 0, .62);
  --red: #ff2d2d;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
}

/* --- Squared-off controls --- */
html[data-acid] .pill, html[data-acid] .icon-btn, html[data-acid] .vote,
html[data-acid] .post-code, html[data-acid] .post-note, html[data-acid] .upload-bar,
html[data-acid] .toast, html[data-acid] .feed-empty-box, html[data-acid] .notice, html[data-acid] .modal-box, html[data-acid] .stage,
html[data-acid] .group-row, html[data-acid] .group-icon, html[data-acid] .msg, html[data-acid] .cmd-list,
html[data-acid] .chat-bar textarea, html[data-acid] .fields textarea, html[data-acid] .icon-pick,
html[data-acid] .trim-track, html[data-acid] .trim-sel, html[data-acid] .trim-handle, html[data-acid] .center-icon {
  border-radius: 0;
}
html[data-acid] .pill {
  text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700;
  /* The little marks in the corners */
  background:
    linear-gradient(var(--acid), var(--acid)) 0 0 / 7px 2px no-repeat,
    linear-gradient(var(--acid), var(--acid)) 0 0 / 2px 7px no-repeat,
    linear-gradient(var(--acid), var(--acid)) 100% 100% / 7px 2px no-repeat,
    linear-gradient(var(--acid), var(--acid)) 100% 100% / 2px 7px no-repeat,
    var(--glass);
}
html[data-acid] .pill.solid { background: var(--acid); color: #000; }
html[data-acid] .pill:active { background: var(--acid); color: #000; }
html[data-acid] .icon-btn { background-color: var(--glass); }
html[data-acid] .vote { background-color: var(--glass); }
html[data-acid] .icon-btn, html[data-acid] .vote { border-color: rgba(255, 255, 255, .28); }
/* Deleting a post (or a server, in the list): your Delete key, no box */
html[data-acid] .vote.del {
  padding: 0; border: 0; border-radius: 0; background: url(/icons/acid/delete-key.png) center / contain no-repeat;
  backdrop-filter: none; -webkit-backdrop-filter: none; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6));
}
html[data-acid] .create {
  border-radius: 0; background: var(--acid); font-weight: 700;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow: none;
}
html[data-acid] .count { font-size: 11px; color: #fff; text-shadow: 0 0 3px #000, 0 1px 3px #000; }
html[data-acid] .dot { border-radius: 0; animation: acid-blink 1s steps(2) infinite; }
/* Color pictures here, where the classic look uses one-color cutouts. */
html[data-acid] .ico, html[data-acid] .vote.on .ico {
  -webkit-mask: none; mask: none; background: var(--icon) center / contain no-repeat;
}
/* Your mouths: open with sound on, closed when muted. No box around them. */
html[data-acid] .i-sound { --icon: url(/icons/acid/sound-off.png); width: 100%; height: 100%; }
html[data-acid] .sound-on .i-sound { --icon: url(/icons/acid/sound-on.png); }
html[data-acid] .sound-on .sound-btn { height: 50px; }
/* Part of each video post. As tall as the mouth showing, in the corner under the post code. */
html[data-acid] .sound-btn .ico { background-position: left bottom; }
html[data-acid] .sound-btn {
  height: 32px; /* no animation: the mouth swaps the moment you tap */
  position: absolute; z-index: 5; left: calc(10px + env(safe-area-inset-left)); bottom: calc(10px + env(safe-area-inset-bottom));
  width: 64px; padding: 0; background: none; border: 0; border-radius: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6));
}
/* Your paper arrow (flipped for left): on the feed, and on groups and chat. They're the
   whole button, with no box around them. */
html[data-acid] #toGroups, html[data-acid] #toChat, html[data-acid] #toFeedL, html[data-acid] #toFeedR {
  width: 72px; padding: 0; background: none; border: 0; border-radius: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6));
}
html[data-acid] #toFeedL, html[data-acid] #toFeedR { width: 64px; }
html[data-acid] #toGroups .ico, html[data-acid] #toChat .ico, html[data-acid] #toFeedL .ico, html[data-acid] #toFeedR .ico { width: 100%; height: 100%; transform: none; }
html[data-acid] #toGroups .ico { --icon: url(/icons/acid/arrow-paper-left.png?v=1); }
html[data-acid] #toChat .ico { --icon: url(/icons/acid/arrow-paper-right.png?v=1); }
html[data-acid] #toFeedL .ico { --icon: url(/icons/acid/arrow-paper-right.png?v=1); }
html[data-acid] #toFeedR .ico { --icon: url(/icons/acid/arrow-paper-left.png?v=1); }
/* Your paper airplane, with no box. */
html[data-acid] .vote.share {
  padding: 0; background: none; border: 0; border-radius: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6));
}
html[data-acid] .vote.share .ico { --icon: url(/icons/acid/share.png); width: 100%; height: 100%; }
html[data-acid] .vote.del .ico { display: none; }

/* --- Like and dislike: your faces --- */
/* No box. Small, so the one you select can grow without covering too much of the post. */
html[data-acid] .vote.like, html[data-acid] .vote.dislike {
  width: 38px; height: 38px; padding: 0; background: none; border: 0; border-radius: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6));
  transition: width .18s cubic-bezier(.3, 1.6, .5, 1), height .18s cubic-bezier(.3, 1.6, .5, 1);
}
html[data-acid] .side { width: 52px; } /* room for the bigger one, so nothing slides sideways */
html[data-acid] .vote.like .ico, html[data-acid] .vote.dislike .ico { width: 100%; height: 100%; transform: none; }
html[data-acid] .like .ico { --icon: url(/icons/acid/like.png); }
html[data-acid] .dislike .ico { --icon: url(/icons/acid/dislike.png); }
html[data-acid] .vote.like.on, html[data-acid] .vote.dislike.on { width: 52px; height: 52px; }

/* --- The feed. The video itself stays clean. --- */
html[data-acid] .group-name { text-align: center; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 0 4px #000, 0 1px 3px #000; }
/* In the corner: on top of the mouth on videos, moving with its height, and alone on pictures. */
html[data-acid] .post-code {
  left: calc(10px + env(safe-area-inset-left)); bottom: calc(10px + env(safe-area-inset-bottom));
  border: 1px solid rgba(255, 255, 255, .28); color: #fff; transition: bottom .18s ease;
}
html[data-acid] .frame:has(video) .post-code { bottom: calc(48px + env(safe-area-inset-bottom)); }
html[data-acid] .sound-on .frame:has(video) .post-code { bottom: calc(66px + env(safe-area-inset-bottom)); }
html[data-acid] .post-code::before { content: "// "; opacity: .6; }
/* The poster's name: 30px above the code, moving with it */
html[data-acid] .post-author {
  border: 1px solid rgba(255, 255, 255, .28); color: #fff; transition: bottom .18s ease; border-radius: 0;
  bottom: calc(40px + env(safe-area-inset-bottom));
}
html[data-acid] .frame:has(video) .post-author { bottom: calc(78px + env(safe-area-inset-bottom)); }
html[data-acid] .sound-on .frame:has(video) .post-author { bottom: calc(96px + env(safe-area-inset-bottom)); }
html[data-acid] .center-icon { background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .28); }
/* The red border: caution tape, marching around the post. */
html[data-acid] .frame::after {
  padding: 6px; border: 0; border-radius: 0;
  background: linear-gradient(45deg, #ff2d2d 25%, #000 25% 50%, #ff2d2d 50% 75%, #000 75%) 0 0 / 28px 28px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: acid-tape 1s linear infinite;
}
html[data-acid] .screen, html[data-acid] .slide { background: none; }
@media (min-width: 700px) {
  html[data-acid] .frame { border-radius: 0; outline: 1px solid var(--line); }
}

/* --- Groups and chat --- */
html[data-acid] .screen-title { text-transform: uppercase; letter-spacing: .16em; font-weight: 800; color: var(--acid); }
/* A strip of checkers and bars under each heading */
/* The neon bar across the top, edge to edge, with black words */
html[data-acid] .screen-head {
  margin: calc(-1 * max(10px, env(safe-area-inset-top))) -12px 12px;
  padding: max(10px, env(safe-area-inset-top)) 12px 10px;
  background: var(--acid); color: #000;
}
html[data-acid] .screen-head .screen-title, html[data-acid] .screen-head .dim, html[data-acid] .screen-head .code-link, html[data-acid] .screen-head .chat-counts { color: #000; }
html[data-acid] .screen-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--acid) 0 2px, transparent 2px 5px, var(--acid) 5px 6px, transparent 6px 11px) 0 0 / 40% 100% no-repeat;
}
html[data-acid] .screen-head { position: relative; }
html[data-acid] .group-row { border: 1px solid transparent; }
html[data-acid] .group-row:hover { background: color-mix(in srgb, var(--acid) 8%, #000); }
html[data-acid] .group-row.on { background: color-mix(in srgb, var(--acid) 12%, #000); border-color: var(--acid); }
html[data-acid] .group-row-name { color: var(--text); }
html[data-acid] .group-icon { background: #000; color: var(--acid); }
/* Everyone's messages look the same: filled with a little green, like your own used to.
   (Yours still sit on the right.) */
html[data-acid] .msg { background: color-mix(in srgb, var(--acid) 14%, #000); border: 1px solid var(--line); }
html[data-acid] .msg.private { border-style: dashed; border-color: var(--acid); background: #000; }
html[data-acid] .msg.system { border: 0; background: none; color: var(--dim); font-size: 12px; }
html[data-acid] .msg-body { color: var(--text); font-size: 14px; }
html[data-acid] .msg.system .msg-body { color: var(--dim); font-size: 12px; }
html[data-acid] .code-link { color: var(--acid); text-decoration: underline; text-underline-offset: 2px; }
html[data-acid] .chat-bar textarea, html[data-acid] .fields textarea { background: #000; color: var(--text); }
html[data-acid] .chat-bar textarea:focus, html[data-acid] .fields textarea:focus { border-color: var(--acid); }
/* Monospace is wide: keep the hint on one line */
/* Your envelope stands in for the word send. */
html[data-acid] .chat-bar .pill.solid {
  flex: none; align-self: center; width: 44px; height: 30px; padding: 0; font-size: 0; border: 0;
  background: url(/icons/acid/send.png) center / contain no-repeat;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html[data-acid] textarea::placeholder { color: var(--dim); font-size: 12px; white-space: nowrap; }
html[data-acid] .cmd-list { background: #000; border-color: var(--acid); }
html[data-acid] .cmd.on { background: var(--acid); color: #000; }
html[data-acid] .cmd.on span { color: #000; }
html[data-acid] .cmd b { color: inherit; }

/* --- Popups and the make screen --- */
html[data-acid] .modal-box { background: #000; border-color: var(--acid); box-shadow: 6px 6px 0 color-mix(in srgb, var(--acid) 45%, transparent); }
html[data-acid] .icon-pick { background: #000; border-color: var(--line); color: var(--acid); }
html[data-acid] .toast, html[data-acid] .feed-empty-box, html[data-acid] .notice, html[data-acid] .upload-bar { background: #000; border-color: var(--acid); color: var(--acid); box-shadow: 4px 4px 0 color-mix(in srgb, var(--acid) 40%, transparent); }
html[data-acid] .sheet { background: #000; }
html[data-acid] .sheet-inner { position: relative; }
html[data-acid] .stage, html[data-acid] .stage-msg, html[data-acid] .frame { background-color: #000; }
html[data-acid] .crop-frame { border-color: var(--acid); }
html[data-acid] .zoom-row input { accent-color: var(--acid); }
html[data-acid] .trim-track { background: #000; }
html[data-acid] .trim-sel { background: color-mix(in srgb, var(--acid) 16%, transparent); }
html[data-acid] .trim-head, html[data-acid] .trim-head::before { background: var(--text); }
html[data-acid] .trim-head::before { border-radius: 0; }

/* --- The warning at the door --- */
/* A black box on the hallway: the name between two warning signs, a short message, and
   "go in" or "go back". */
html[data-acid] .gate-box { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; }
html[data-acid] .gate-panel {
  display: flex; flex-direction: column; align-items: center; gap: 16px; width: min(100%, 420px);
  padding: 24px 18px; background: #000; border: 1px solid var(--acid); color: var(--text); text-align: center;
}
html[data-acid] .gate-head { display: flex; align-items: center; gap: 10px; width: 100%; }
html[data-acid] .gate-warn { flex: none; width: 17%; aspect-ratio: 1; background: url(/icons/acid/warning.png) center / contain no-repeat; }
html[data-acid] .gate-head .logo { display: block; flex: 1; min-width: 0; width: auto; margin: 0; font-size: 0; }
html[data-acid] .gate-text { font-size: 14px; line-height: 1.5; }
/* The name, drawn. The words stay in the page for screen readers. */
html[data-acid] .logo {
  width: min(100%, 280px); aspect-ratio: 300 / 112; margin: 14px auto 0; color: transparent; overflow: hidden; background: var(--acid);
  -webkit-mask: url(/icons/acid/wordmark.svg) center / contain no-repeat; mask: url(/icons/acid/wordmark.svg) center / contain no-repeat;
}

@keyframes acid-blink { 50% { opacity: .35; } }
@keyframes acid-tape { to { background-position: 28px 0; } }
@media (prefers-reduced-motion: reduce) {
  html[data-acid] * , html[data-acid] *::before, html[data-acid] *::after { animation: none !important; }
}

/* --- Accounts --- */
html[data-acid] .field, html[data-acid] .account-tabs button { border-radius: 0; }
html[data-acid] .field { background: #000; color: var(--text); }
html[data-acid] .field:focus { border-color: var(--acid); }
html[data-acid] .field::placeholder { color: var(--dim); }
html[data-acid] .account-tabs button { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; }
html[data-acid] .account-tabs button.on { background: var(--acid); border-color: var(--acid); }
html[data-acid] .lost-warning .gate-warn, html[data-acid] .gone-head .gate-warn { width: 34px; }
html[data-acid] .size-pick button { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 700; }
html[data-acid] .pill.solid.danger-solid { background: var(--red); color: #000; }

/* Deleting a chat message: your red pixel X, kept sharp */
/* Deleting a message or comment: a plain green ×, like a box's own × */
html[data-acid] .msg-del { font-size: 18px; line-height: 1; color: var(--acid); background: none; width: 20px; height: 20px; top: 3px; right: 4px; }

/* The warning page's logo: D and e flicking through fonts */
html[data-acid] .de-logo { flex: 1; min-width: 0; display: flex; justify-content: center; align-items: center; }
html[data-acid] .de-logo img { height: clamp(70px, 24vw, 120px); width: auto; display: block; }
html[data-acid] .de-logo img + img { margin-left: -6%; }

/* The warning's two buttons, side by side */
html[data-acid] .gate-btns { display: flex; gap: 10px; width: 100%; }
html[data-acid] .gate-btns .pill { flex: 1; padding: 12px; }
/* Pointing at either button lights it up green (computers; on phones, while pressed) */
html[data-acid] .gate-btns .pill:hover, html[data-acid] .gate-btns .pill:focus-visible, html[data-acid] .gate-btns .pill:active {
  background: var(--acid); border-color: var(--acid); color: #000;
}
/* Your own messages sit on the right with your name on the right, so their × goes on the left */
html[data-acid] .msg.mine .msg-del { right: auto; left: 5px; }
/* Replying to a post: the comment bubble, with no box (like share) */
html[data-acid] .vote.reply {
  padding: 0; background: none; border: 0; border-radius: 0;
  backdrop-filter: none; -webkit-backdrop-filter: none; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6));
}
html[data-acid] .vote.reply .ico { --icon: url(/icons/comment.png); width: 100%; height: 100%; }
/* The thread's × on the green bar: black, like the bar's words */
/* The reply box's top: the green bar, edge to edge, with black words, over the post */
html[data-acid] .thread-layer .modal-head {
  margin: -14px -14px 0; padding: 8px 14px; background: var(--acid); color: #000;
}
html[data-acid] .thread-layer .modal-head .screen-title, html[data-acid] .thread-layer .modal-head .x { color: #000; }

html[data-acid] .upload-fill { background: color-mix(in srgb, var(--acid) 30%, transparent); border-right-color: var(--acid); }
html[data-acid] .upload-bar { min-width: 200px; }
html[data-acid] .tap-like .ico { --icon: url(/icons/post/liked.png?v=2); background: var(--icon) center / contain no-repeat; -webkit-mask: none; mask: none; }

/* An admin's name is red wherever it shows */
html[data-acid] .sender.is-admin, html[data-acid] .post-author.is-admin, .post-author.is-admin { color: var(--red); }
html[data-acid] .account-admin, html[data-acid] #accountName.is-admin { color: var(--red); }

/* --- The post page's buttons: your drawn cutouts --- */
/* Like and dislike: the outline like is unselected, the black one is the one you've
   picked; dislike is the like turned upside down. Picking one just swaps the picture. */
html[data-acid] .vote.like, html[data-acid] .vote.dislike,
html[data-acid] .vote.like.on, html[data-acid] .vote.dislike.on { width: 46px; height: 46px; transition: none; }
html[data-acid] .side { width: 50px; }
html[data-acid] .like .ico { --icon: url(/icons/post/like.png?v=2); }
html[data-acid] .like.on .ico { --icon: url(/icons/post/liked.png?v=2); }
html[data-acid] .dislike .ico { --icon: url(/icons/post/dislike.png?v=2); }
html[data-acid] .dislike.on .ico { --icon: url(/icons/post/disliked.png?v=2); }
html[data-acid] .vote.share, html[data-acid] .vote.reply { width: 46px; height: 46px; }
html[data-acid] .vote.share .ico { --icon: url(/icons/post/share.png?v=2); }
html[data-acid] .vote.reply .ico { --icon: url(/icons/post/reply.png?v=2); }
/* Sound: the speaker; faded while muted, full when the sound's on. Same size either way. */
html[data-acid] .sound-btn, html[data-acid] .sound-on .sound-btn { width: 46px; height: 46px; }
html[data-acid] .i-sound, html[data-acid] .sound-on .i-sound { --icon: url(/icons/post/sound.png?v=2); }
html[data-acid] .sound-btn .ico { background-position: center; opacity: .45; }
html[data-acid] .sound-on .sound-btn .ico { opacity: 1; }
/* The post's code and poster sit just above the speaker, which no longer changes height. */
html[data-acid] .frame:has(video) .post-code, html[data-acid] .sound-on .frame:has(video) .post-code { bottom: calc(62px + env(safe-area-inset-bottom)); }
html[data-acid] .frame:has(video) .post-author, html[data-acid] .sound-on .frame:has(video) .post-author { bottom: calc(92px + env(safe-area-inset-bottom)); }
/* Making a post: the plus cutout is the whole button */
html[data-acid] .create {
  font-size: 0; color: transparent; clip-path: none; border-radius: 0;
  background: url(/icons/post/plus.png?v=2) center / contain no-repeat;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6));
}

/* The chaos star logo: still until tapped; tapping it spins it (spin.js) */
.chaos-logo {
  display: block; width: 190px; max-width: 60%; margin: 6px auto 14px; padding: 0; border: 0; background: none; cursor: pointer;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(4px 4px 0 color-mix(in srgb, var(--acid) 35%, transparent));
}
.chaos-logo img { display: block; width: 100%; height: auto; will-change: transform; pointer-events: none; }
/* The small one in the servers page's top corner */
.chaos-logo.chaos-small { flex: none; width: 56px; max-width: none; margin: -9px 6px -9px -4px; filter: none; } /* fills the bar's height without making it taller */

html[data-acid] .public-card { border-radius: 0; }
html[data-acid] .public-full .public-box { box-shadow: none; }

/* --- Hover and tap feedback, so buttons feel alive ---
   With a mouse: buttons light up when you hover them. On phones: the same thing while
   your finger is on them (press). */
html[data-acid] .pill, html[data-acid] .group-row, html[data-acid] .public-card, html[data-acid] .size-card,
html[data-acid] .switch-row, html[data-acid] .x, html[data-acid] .icon-pick, html[data-acid] .cmd,
html[data-acid] .icon-btn, html[data-acid] .vote, html[data-acid] .code-link, html[data-acid] .flag-btn,
html[data-acid] .post-code, html[data-acid] .post-author, html[data-acid] .create, html[data-acid] .msg-thread {
  transition: background-color .12s, color .12s, border-color .12s, filter .12s, transform .08s;
}
@media (hover: hover) {
  html[data-acid] .pill:not(:disabled):hover { background: var(--acid); color: #000; }
  html[data-acid] .pill.solid:not(:disabled):hover { background: #fff; color: #000; }
  html[data-acid] .pill.danger:not(:disabled):hover { background: var(--red); color: #000; }
  html[data-acid] .group-row:hover { background: color-mix(in srgb, var(--acid) 16%, #000); border-color: var(--acid); }
  html[data-acid] .public-card:hover, html[data-acid] .size-card:hover { background: color-mix(in srgb, var(--acid) 12%, #000); border-color: var(--acid); }
  html[data-acid] .switch-row:hover, html[data-acid] .icon-pick:hover { border-color: var(--acid); background: color-mix(in srgb, var(--acid) 8%, #000); }
  html[data-acid] .cmd:hover { background: color-mix(in srgb, var(--acid) 18%, #000); }
  html[data-acid] .x:hover { color: #fff; transform: scale(1.15); }
  html[data-acid] .code-link:hover, html[data-acid] .post-code:hover, html[data-acid] .post-author:hover { background: var(--acid); color: #000; }
  html[data-acid] .icon-btn:hover, html[data-acid] .vote:hover, html[data-acid] .flag-btn:hover, html[data-acid] .create:hover { filter: brightness(1.25) drop-shadow(0 0 6px color-mix(in srgb, var(--acid) 70%, transparent)); transform: scale(1.06); }
  html[data-acid] .msg-thread:hover { color: var(--acid); }
}
/* Pressing (mouse down, or a finger on a phone) */
html[data-acid] .pill:not(:disabled):active { background: var(--acid); color: #000; }
html[data-acid] .pill.solid:not(:disabled):active { background: #fff; color: #000; }
html[data-acid] .group-row:active, html[data-acid] .public-card:active, html[data-acid] .size-card:active,
html[data-acid] .switch-row:active, html[data-acid] .icon-pick:active { background: color-mix(in srgb, var(--acid) 26%, #000); border-color: var(--acid); }
html[data-acid] .cmd:active { background: color-mix(in srgb, var(--acid) 30%, #000); }
html[data-acid] .x:active { color: #fff; transform: scale(.9); }
html[data-acid] .code-link:active, html[data-acid] .post-code:active, html[data-acid] .post-author:active { background: var(--acid); color: #000; }
html[data-acid] .icon-btn:active, html[data-acid] .flag-btn:active, html[data-acid] .create:active { filter: brightness(1.3); transform: scale(.92); }

/* Messages sent by the site itself (a new post, someone paid, a new dictator): the same
   box, with a thick double magenta border and magenta text. */
html[data-acid] .msg.from-site { border: 3px double #3bd6ff; box-shadow: none; background: rgba(0, 0, 0, .78); } /* the site's own: no green fill */
html[data-acid] .msg.from-site .msg-body { color: #3bd6ff; }
html[data-acid] .msg.from-site :is(.msg-time, .msg-reply) { color: color-mix(in srgb, #3bd6ff 65%, #666); } /* reply matches the time, in blue */

/* The + by the envelope: square and green, like the rest */
html[data-acid] .chat-plus { border-radius: 0; border-color: var(--acid); color: var(--acid); background: #000; }
html[data-acid] .image-bar img { border-radius: 0; border-color: var(--acid); background: #000; }
html[data-acid] .image-bar-x { color: var(--acid); }
/* The big picture's box: square-cornered and green-edged, like the site's other boxes */
html[data-acid] .image-view-box { border-radius: 0; border-color: var(--acid); box-shadow: 6px 6px 0 color-mix(in srgb, var(--acid) 45%, transparent); }

/* Messages from people showing a post's card: a double green edge (thin lines, like the
   pink site messages). Private ones: the same two lines, dashed. */
html[data-acid] .msg.has-post { border: 3px double var(--acid); }
html[data-acid] .msg.has-post.private { border: 1px dashed var(--acid); outline: 1px dashed var(--acid); outline-offset: -4px; }

/* Comments ("x replied to post y" in the chat): light blue, and everyone's look the way
   your own do (a tinted box), so they read as their own kind of message. */
html[data-acid] { --comment: #a77bff; } /* comments: purple */
html[data-acid] .msg.post-thread-row, html[data-acid] .msg.post-thread-row.from-site, html[data-acid] .msg.post-thread-row.mine {
  background: color-mix(in srgb, var(--comment) 14%, #000); border: 1px solid color-mix(in srgb, var(--comment) 50%, transparent); box-shadow: none;
}
html[data-acid] .msg.post-thread-row .msg-body { color: color-mix(in srgb, var(--comment) 22%, #fff); }
html[data-acid] .msg.post-thread-row .msg-time { color: color-mix(in srgb, var(--comment) 62%, #666); }
html[data-acid] .msg.post-thread-row .code-link { color: var(--comment); }
html[data-acid] .msg.post-thread-row .code-link:is(:hover, :active) { background: var(--comment); color: #000; }
html[data-acid] .msg.post-thread-row .msg-del { color: var(--comment); }

/* The comment section (a post's comments): its top bar and every comment in the
   comments' light blue, like the comment lines in the chat. */
html[data-acid] .thread-layer .modal-head { background: var(--comment); }
html[data-acid] .thread-list .msg:not(.system), html[data-acid] .thread-list .msg.mine:not(.system) {
  background: color-mix(in srgb, var(--comment) 14%, #000); border: 1px solid color-mix(in srgb, var(--comment) 50%, transparent); box-shadow: none;
}
html[data-acid] .thread-list .msg .sender { color: var(--comment); }
html[data-acid] .thread-list .msg .msg-body { color: color-mix(in srgb, var(--comment) 22%, #fff); }
html[data-acid] .thread-list .msg :is(.msg-time, .small) { color: color-mix(in srgb, var(--comment) 62%, #666); }
html[data-acid] .thread-list .msg .code-link { color: var(--comment); }
html[data-acid] .thread-list .msg .msg-del { color: var(--comment); }
html[data-acid] .thread-list .msg.private { border-style: dashed; border-color: var(--comment); }
html[data-acid] .thread-empty { color: color-mix(in srgb, var(--comment) 62%, #666); }

/* The selected message (tapped): its outline and its words swap colors. The outline
   turns the words' near-white, and the words turn green (the name, the other way). */
html[data-acid] .msg.selected:not(.system) { border-color: var(--text); }
html[data-acid] .msg.selected:not(.system) .msg-body { color: var(--acid); }
html[data-acid] .msg.selected:not(.system) .sender { color: var(--text); }
html[data-acid] .msg.has-post.private.selected { outline-color: var(--text); }
html[data-acid] #threadPop.bottom-sheet > .modal-box { border-radius: 0; }
/* Selected in the comment section: white outline and name, the words in full blue */
html[data-acid] .thread-list .msg.selected:not(.system) .msg-body { color: var(--comment); }
/* The comment section's box, + and waiting picture: light blue too */
html[data-acid] #threadForm textarea { border-color: color-mix(in srgb, var(--comment) 50%, transparent); color: color-mix(in srgb, var(--comment) 22%, #fff); }
html[data-acid] #threadForm textarea:focus { border-color: var(--comment); }
html[data-acid] #threadForm textarea::placeholder { color: color-mix(in srgb, var(--comment) 62%, #666); }
html[data-acid] #threadForm .chat-plus, html[data-acid] #threadImageBar img { border-color: var(--comment); color: var(--comment); }
html[data-acid] #threadImageBar .image-bar-x { color: var(--comment); }
/* A post in the comments: the double edge posts always get, in the comments' blue.
   Private: the same two lines, dashed. Selected: white, like any selected message. */
html[data-acid] .thread-list .msg.has-post { border: 3px double var(--comment); }
html[data-acid] .thread-list .msg.has-post.private { border: 1px dashed var(--comment); outline: 1px dashed var(--comment); outline-offset: -4px; }
html[data-acid] .thread-list .msg.has-post.selected { border-color: var(--text); }
html[data-acid] .thread-list .msg.has-post.private.selected { outline-color: var(--text); }
html[data-acid] .thread-layer .modal-head .screen-title.code-title { text-transform: none; cursor: pointer; }
/* "copied" next to the code on the comments' blue bar: black, right after the code */
html[data-acid] .thread-layer .modal-head .copied-note { color: #000; margin-right: auto; }
/* Replying to a comment: the quote above the comment box, in the comments' purple */
html[data-acid] #threadReplyBar .quote-text, html[data-acid] #threadReplyBar .reply-x { color: color-mix(in srgb, var(--comment) 62%, #666); }
html[data-acid] #threadReplyBar .quote-text b, html[data-acid] #threadReplyBar .quote-text::before { color: var(--comment); }
html[data-acid] .thread-list .msg :is(.msg-reply, .msg-quote) { color: color-mix(in srgb, var(--comment) 62%, #666); }
html[data-acid] .thread-list .msg .msg-quote b, html[data-acid] .thread-list .msg .msg-quote::before { color: var(--comment); }
/* The big logo on the continue page: no shadow behind it */
.gate-panel .chaos-logo { filter: none; }
/* "don't show this again" under the continue button */
html[data-acid] .gate-remember { align-self: center; margin-top: 2px; font-size: 12px; color: var(--text); }
html[data-acid] .gate-remember input { accent-color: var(--acid); }
/* The "don't show this again" box: a square in the site's green, filled when ticked */
html[data-acid] .gate-remember input {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin: 0; border-radius: 0;
  border: 1px solid var(--acid); background: #000; cursor: pointer;
}
/* Ticked: a green check mark over the box, big enough to break out of its lines */
html[data-acid] .gate-remember { position: relative; }
html[data-acid] .gate-remember .tick { display: none; position: absolute; left: 4px; top: -7px; width: 9px; height: 19px; border: solid var(--acid); border-width: 0 3px 3px 0; transform: rotate(40deg); pointer-events: none; }
html[data-acid] .gate-remember input:checked + .tick { display: block; }
html[data-acid] .gate-remember input:focus-visible { outline: 1px solid var(--acid); outline-offset: 2px; }

/* An admin's message: all red (box, name and words), in the chat and in comments alike */
html[data-acid] .msg.from-admin:not(.system), html[data-acid] .thread-list .msg.from-admin:not(.system) {
  background: color-mix(in srgb, var(--red) 14%, #000); border-color: color-mix(in srgb, var(--red) 55%, transparent);
}
html[data-acid] .msg.from-admin .sender, html[data-acid] .thread-list .msg.from-admin .sender { color: var(--red); }
html[data-acid] .msg.from-admin .msg-body, html[data-acid] .thread-list .msg.from-admin .msg-body { color: color-mix(in srgb, var(--red) 25%, #fff); }
html[data-acid] .msg.from-admin :is(.msg-time, .msg-reply, .msg-quote), html[data-acid] .thread-list .msg.from-admin :is(.msg-time, .msg-reply, .msg-quote) { color: color-mix(in srgb, var(--red) 60%, #666); }
html[data-acid] .msg.from-admin .code-link { color: var(--red); }
html[data-acid] .msg.from-admin.selected, html[data-acid] .thread-list .msg.from-admin.selected { border-color: var(--text); }
html[data-acid] .msg.from-admin.selected .sender { color: var(--text); }
html[data-acid] .msg.from-admin.selected .msg-body { color: var(--red); }
html[data-acid] .msg.from-admin.has-post { border-width: 3px; border-style: double; border-color: var(--red); }

/* Quotes stay grey in the acid look too (not green, blue, purple or red). */
html[data-acid] .msg.quote-row { background: #111; border: 1px solid #555; box-shadow: none; }
html[data-acid] .msg.quote-row > .msg-quote, html[data-acid] .thread-list .msg.quote-row > .msg-quote { color: #9a9a9a; }
html[data-acid] .msg.quote-row > .msg-quote b, html[data-acid] .thread-list .msg.quote-row > .msg-quote b { color: #cfcfcf; }
html[data-acid] .msg.quote-row.selected { border-color: var(--text); }

/* Bottom bar, acid look: green line on top, the screen you're on filled green */
html[data-acid] .bottom-nav { border-top: 1px solid var(--acid); gap: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
html[data-acid] .bottom-nav button { color: var(--acid); border: 1px solid color-mix(in srgb, var(--acid) 45%, transparent); border-radius: 0; }
html[data-acid] .bottom-nav button.on { background: var(--acid); color: #000; border-color: var(--acid); }

/* Someone paid: gold, double lined. Only the site writes these, so paying is the only way to get gold. */
html[data-acid] .msg.from-site.from-pay { border: 3px double #ffcf3a; background: rgba(0, 0, 0, .78); box-shadow: none; }
html[data-acid] .msg.from-site.from-pay .msg-body { color: #ffcf3a; }
html[data-acid] .msg.from-site.from-pay :is(.msg-time, .msg-reply) { color: color-mix(in srgb, #ffcf3a 65%, #666); }
html[data-acid] .msg.from-site.from-pay.selected { border-color: var(--text); }
