/* DEADTAPE theme. Every color is a CSS variable: switching the board
   to amber later is a variable change, not a rebuild. Decided 2026-10-24. */
:root {
  --bg: #000000;        /* true black */
  --panel: #04140a;     /* box fill, near-black green */
  --panel2: #020a05;    /* darker fill for nested boxes */
  --ink: #4be06e;       /* body text, softened green for long reads */
  --bright: #33ff66;    /* headings, links, player, wordmark */
  --dim: #2a7a44;       /* meta text, labels, timestamps */
  --line: #1d5c33;      /* borders */
  --alert-bg: #0a2413;  /* notice and error boxes */
}
* { box-sizing: border-box; }
body {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  background: var(--bg); color: var(--ink);
  margin: 0; padding: 24px 12px 60px; font-size: 15.5px; line-height: 1.55;
  background-image: repeating-linear-gradient(to bottom, rgba(51,255,102,.025) 0 1px, transparent 1px 3px);
}
.wrap { max-width: 880px; margin: 0 auto; }
h1 { font-size: 21px; letter-spacing: .12em; color: var(--bright); margin: 22px 0 10px; font-weight: 700; }
h1.threadtitle { font-size: 18px; letter-spacing: .04em; text-transform: none; line-height: 1.4; }
h2 { font-size: 14px; margin: 30px 0 6px; letter-spacing: .14em; color: var(--bright); text-transform: uppercase; }
.cursor::after, .cursor-h::after { content: "\258C"; color: var(--bright); animation: blink 1.1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.wordmark { font-size: 18px; letter-spacing: .16em; }
.wordmark a { color: var(--bright); text-decoration: none; }
.frame { background: var(--panel2); border: 1.5px solid var(--line); padding: 14px; margin-top: 8px; }
.box { border: 1px solid var(--line); background: var(--panel); padding: 9px 11px; margin: 6px 0; }
.box.dark { background: #000; border-color: var(--bright); }
.box.dash { border-style: dashed; background: var(--panel2); }
.box.nav { color: var(--dim); }
.box.footerline { color: var(--dim); font-size: 12.5px; margin-top: 26px; }
.lab { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); display: block; margin-bottom: 4px; }
.lab a { color: var(--dim); text-decoration: underline; }
.row { display: flex; gap: 8px; }
.row > .box { flex: 1; margin: 6px 0; }
.row.post { align-items: stretch; }
.meta { flex: 0 0 160px !important; }
.small { font-size: 12.5px; color: var(--dim); }
.body { line-height: 1.6; overflow-wrap: break-word; }
a { color: var(--bright); text-decoration: none; }
a:hover { text-decoration: underline; }
a.q { color: var(--bright); font-weight: 700; }
b, strong { color: var(--bright); font-weight: 700; }
.btn {
  display: inline-block; border: 1.5px solid var(--bright); padding: 4px 12px;
  font-size: 12px; color: var(--bright); background: #000; letter-spacing: .06em;
  font-family: inherit; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--alert-bg); text-decoration: none; }
.fork { background: var(--alert-bg); border: 1.5px solid var(--bright); padding: 10px 12px; margin: 10px 0; font-size: 14px; line-height: 1.55; }
.future { opacity: .42; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
td, th { border: 1px solid var(--line); padding: 6px 8px; text-align: left; background: var(--panel); color: var(--ink); }
th { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }
input[type="text"], input[type="password"], input[type="email"], input[type="number"],
input[type="file"], textarea, select {
  width: 100%; border: 1px solid var(--line); padding: 6px;
  font-family: inherit; font-size: 14px; background: #000; color: var(--ink);
}
input[type="file"] { color: var(--dim); }
input:focus, textarea:focus, select:focus { outline: 1px solid var(--bright); }
audio { width: 100%; margin: 4px 0; accent-color: var(--bright); background: #000; }
/* Audio player skin (wireframe v2). The native <audio> element stays the
   engine and the no-JS fallback; player.js adds .dt-on to the box, which
   hides the stock controls and shows this skin instead. */
.dt-player { display: none; }
.dt-on .dt-player { display: flex; align-items: center; gap: 10px; margin: 4px 0; }
.dt-on audio { display: none; }
.dt-toggle { background: #000; border: 1.5px solid var(--bright); padding: 8px 11px; cursor: pointer; flex: 0 0 auto; }
.dt-ico { display: block; width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid var(--bright); }
.dt-toggle.playing .dt-ico { width: 12px; height: 14px; border: none; background: linear-gradient(to right, var(--bright) 0 4px, transparent 4px 8px, var(--bright) 8px 12px); }
.dt-track { flex: 1; height: 6px; background: #0d3319; position: relative; cursor: pointer; }
.dt-track i { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: var(--bright); display: block; }
.dt-time { font-size: 13px; color: var(--ink); white-space: nowrap; }
.dt-toggle:focus-visible, .dt-track:focus-visible { outline: 1.5px solid var(--bright); outline-offset: 2px; }
img.att { max-width: 100%; height: auto; display: block; border: 1px solid var(--line); }
/* Icons, account line, BBCode, plus-up, account popup (build round 2). */
.picon { vertical-align: middle; }
.authorline { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.accountline { display: flex; align-items: center; gap: 10px; }
.logoutform { margin-left: auto; }
.bbrow { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.bbtn { font-size: 11px; padding: 3px 9px; }
.tbig { font-size: 1.3em; }
.tsmall { font-size: .82em; }
pre.code {
  border: 1px dashed var(--line); background: #000; color: var(--ink);
  padding: 8px 10px; margin: 6px 0; overflow-x: auto;
  font-family: inherit; font-size: 13.5px; line-height: 1.45; white-space: pre;
}
blockquote {
  border-left: 3px solid var(--line); margin: 6px 0 6px 4px; padding: 2px 0 2px 10px; color: var(--ink);
}
.plusrow { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.plusn { color: var(--bright); font-weight: 700; font-size: 13px; }
.plusform { display: inline; }
.plusbtn { font-size: 11px; padding: 2px 8px; }
.modal-back {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .82);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 12px; z-index: 50; overflow-y: auto;
}
.modal-back[hidden] { display: none; }
.modal-card { max-width: 760px; width: 100%; background: var(--panel); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--bright); letter-spacing: .12em; }
.modal-card input { margin-bottom: 8px; }
.modal-card .btn { margin-top: 4px; }
@media (max-width: 640px) {
  .row { flex-direction: column; }
  .meta { flex: none !important; }
  body { font-size: 15px; padding: 14px 8px 40px; }
}

/* Anonymous lane: a collapsible third posting option. */
.anonbox summary { cursor: pointer; color: var(--bright); letter-spacing: 1px; }
.anonbox summary:hover { text-decoration: underline; }
.anonbox form { margin-top: 10px; }

/* Language mark: a label at the top of a flagged post. */
.xflag { display: inline-block; color: var(--bright); border: 1px dashed var(--line); padding: 2px 8px; margin: 2px 0 6px; letter-spacing: 1px; font-size: 13px; }

/* GIPHY picker */
.giphybox { margin-top: 8px; }
.giphy-panel { margin-top: 8px; }
.giphy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; }
.giphy-grid img { width: 100%; height: 84px; object-fit: cover; cursor: pointer; border: 1px solid var(--line); }
.giphy-picked { margin-top: 6px; color: var(--bright); }

/* Links inside post bodies */
.body a { text-decoration: underline; }
.body a.q { text-decoration: none; }

/* Inline staff moderation */
.modform { display: inline-block; margin-left: 10px; }

/* Text file reader (file.php text view) */
.reader p { line-height: 1.6; margin: 0 0 1em; }
.reader p:last-child { margin-bottom: 0; }

/* Two-step tombstone confirm */
.mod-confirm { margin-left: 8px; }

/* In-app browser warning */
.iab-warn { border: 1px solid #33ff66; margin-bottom: 10px; }

/* New-since-last-visit tags (index) */
.newtag { color: #33ff66; font-weight: bold; letter-spacing: 1px; }
