:root {
  --bg: #ffffee;
  --panel: #f0e0d6;
  --border: #d9bfb7;
  --name: #117743;
  --tripcode: #228854;
  --link: #0000ee;
  --greentext: #789922;
  --text: #800000;
  --body: #000000;
  --quote: #800080;
  --post-id: #0f0c5d;
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: arial, helvetica, sans-serif;
  font-size: 13px;
  margin: 0;
  padding: 8px;
  line-height: 1.4;
}

.board-header {
  text-align: center;
  padding: 8px 4px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.board-header h1 {
  font-family: 'Times New Roman', serif;
  font-size: 28px;
  color: var(--text);
  margin: 0;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.board-header .subtitle {
  font-size: 11px;
  color: #555;
  margin-top: 2px;
  font-style: italic;
}

.rules {
  font-size: 11px;
  color: #333;
  text-align: center;
  padding: 4px;
  margin-bottom: 8px;
}

.post {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 6px 10px 8px;
  margin: 0 0 4px 0;
  max-width: 900px;
  word-wrap: break-word;
}

.post.op {
  background: #f0e0d6;
  border-left: 3px solid #8b6f5c;
}

.post.reply {
  margin-left: 24px;
  max-width: 880px;
}

.post-header {
  margin-bottom: 4px;
  font-size: 13px;
}

.subject {
  color: #0f0c5d;
  font-weight: bold;
  margin-right: 4px;
}

.name {
  color: var(--name);
  font-weight: bold;
}

.name.anon { color: var(--name); }
.name.tripfag { color: #117743; }
.name.namefag { color: #0f0c5d; }

.tripcode { color: var(--tripcode); }

.date {
  color: #333;
  margin-left: 4px;
}

.post-id {
  color: var(--post-id);
  margin-left: 4px;
  text-decoration: none;
}

.post-id:hover { color: #d00; text-decoration: underline; }

.reply-link {
  color: var(--link);
  text-decoration: underline;
}

.reply-link:hover { color: #d00; }

.post-body {
  padding: 4px 0 4px 24px;
  white-space: pre-wrap;
}

.greentext { color: var(--greentext); }

.quote {
  color: var(--link);
  text-decoration: underline;
}

.quote.you::after {
  content: " (You)";
  color: #d00;
  font-weight: bold;
}

.file-info {
  font-size: 11px;
  margin: 2px 0 4px;
  color: #333;
}

.file-info a { color: var(--link); }

.post-image {
  float: left;
  margin: 3px 10px 5px 20px;
  max-width: 180px;
  border: none;
}

.ascii-img {
  float: left;
  font-family: 'Courier New', monospace;
  font-size: 8px;
  line-height: 8px;
  background: #222;
  color: #0f0;
  padding: 6px;
  margin: 3px 10px 5px 20px;
  border: 1px solid #000;
  white-space: pre;
  max-width: 180px;
  overflow: hidden;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.spoiler {
  background: #000;
  color: #000;
  padding: 0 2px;
}

.spoiler:hover { color: #fff; }

.dead {
  color: #999;
  text-decoration: line-through;
}

hr.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 12px 0 8px;
}

footer {
  text-align: center;
  font-size: 10px;
  color: #666;
  padding: 16px 4px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .post.reply { margin-left: 8px; }
  .post-body { padding-left: 8px; }
  .ascii-img, .post-image { float: none; display: block; margin: 4px auto; }
}
