:root {
  color-scheme: dark;
  --ink: #d2d2d2;
  --muted: #a4a4a4;
  --accent: #53b4ec;
  --line: #303030;
  --paper: #181818;
  --heading: Audiowide, "Trebuchet MS", sans-serif;
  background: #181818;
  color: var(--ink);
  font: 13px/1.4 Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(ellipse at top, #252525, transparent 62rem),
    repeating-linear-gradient(135deg, #ffffff02 0 1px, transparent 1px 3px), #181818;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid #76cbff; outline-offset: 2px; }
.shell { width: min(922px, calc(100% - 24px)); margin-inline: auto; }
.masthead { border-top: 3px solid #101010; }
.identity, .navigation, .toolbar, .actions, .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}
.identity, .navigation { justify-content: space-between; padding-inline: 5px 10px; }
.identity { min-height: 136px; align-items: flex-start; padding-top: 6px; }
.brand {
  margin: 20px 0 0 14px;
  color: #81d7fb;
  font: italic clamp(27px, 5vw, 40px)/1.2 var(--heading);
  letter-spacing: -.065em;
  text-shadow: 0 2px #0a5783, 0 0 16px #168ccbaa;
}
.brand:hover { text-decoration: none; }
.account {
  width: min(316px, 100%);
  padding: 5px 15px 12px;
  color: var(--muted);
  border: 1px solid #080808;
  border-radius: 6px;
  background: linear-gradient(#1b1b1b, #111);
  box-shadow: 0 1px #343434;
  font-size: 11px;
}
.account > a {
  display: block;
  padding: 7px 9px;
  border-radius: 6px;
  background: #505050;
  color: #fff;
  font-size: 13px;
}
.account > div { padding: 6px 9px 0; }
.account > div a { color: #fff; font-weight: bold; border-bottom: 1px dotted; }
.navigation { margin-bottom: 10px; }
.navigation nav { display: flex; flex-wrap: wrap; gap: 2px; }
.navigation nav a {
  padding: 11px 10px 8px;
  border-radius: 6px 6px 3px 3px;
  background: #242424;
  color: #e2e2e2;
  font: 700 20px/1.3 Jura, "Trebuchet MS", sans-serif;
  letter-spacing: -.045em;
  text-shadow: 0 1px #000;
}
.navigation nav a.selected { background: #1a1a1a; }
.search {
  display: flex;
  align-items: center;
  height: 26px;
  width: min(290px, 100%);
  border-radius: 4px;
  background: #fff;
  color: #555;
}
.search input[type=search] {
  min-width: 0;
  margin: 0;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: #222;
}
.search input::placeholder { font-style: italic; }
.search span { padding: 0 8px; border-left: 1px solid #ccc; font-size: 11px; }
.search button { align-self: stretch; border-radius: 0 4px 4px 0; padding: 0 8px; }
.search i {
  display: block;
  position: relative;
  width: 11px;
  height: 11px;
  border: 2px solid;
  border-radius: 50%;
  margin: 0 3px 3px 0;
}
.search i::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  width: 6px;
  height: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left;
}
main.shell {
  padding: 5px 10px 30px;
  border-radius: 7px 7px 0 0;
  background: #222d;
  box-shadow: 0 0 12px #101010;
}
.crumbs {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 7px;
  border: 1px solid #080808;
  border-radius: 5px;
  box-shadow: inset 0 1px 4px #090909, 0 1px #383838;
  background: #181818;
  font-size: 11px;
}
.crumbs a { color: #bbb; }
.crumbs span { padding-inline: 5px; color: var(--muted); }
.new-content { flex: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
h1, h2 { font-family: var(--heading); font-weight: normal; }
h1 { margin: 14px 0; font-size: clamp(18px, 4vw, 24px); overflow-wrap: anywhere; }
h2 { margin: 0; font-size: 16px; }
h3 { font-size: 14px; }
.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 198px;
  gap: 18px;
  margin-top: 15px;
}
.announcement { background: #191919; padding: 8px 10px; margin: 0 4px 12px; color: var(--muted); font-size: 11px; }
.panel { margin: 12px 0 20px; background: var(--paper); border-radius: 6px; }
.panel > h2, .panel > details > summary {
  padding: 9px 12px 8px;
  background: linear-gradient(#262626 51%, #1b1b1b 52%, #171717);
  border-radius: 6px 6px 0 0;
  color: #efefef;
  text-shadow: 0 2px #0f0f0f;
}
.panel > details > summary { position: relative; list-style: none; padding-right: 40px; }
.panel > details > summary::-webkit-details-marker { display: none; }
.panel > details > summary::after {
  content: "+";
  position: absolute;
  inset: 9px 14px auto auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #414141;
  text-align: center;
  line-height: 18px;
}
.panel > details[open] > summary::after { content: "−"; }
.recent { align-self: start; margin: 0; border: 1px solid #080808; box-shadow: 0 1px #383838; }
.recent > h2 { font-size: 13px; padding-inline: 8px; }
.recent > h2::before { content: "✦"; color: #8bd8f9; margin-right: 5px; }
.topic-entries { list-style: none; padding: 0; margin: 0; overflow-wrap: anywhere; }
.topic-entries li { padding: 6px 9px; }
.topic-entries li:nth-child(odd) { background: #1d1d1d; }
.recent .topic-entries { font-size: 11px; }
.recent small { font-size: 10px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 10px 7px; vertical-align: top; overflow-wrap: anywhere; }
thead th { padding-block: 7px; background: linear-gradient(#141414, #191919); color: var(--muted); font-size: 11px; font-weight: normal; }
tbody tr { background: linear-gradient(#1c1c1c 40%, #171717 41%, #181818); }
tbody tr:nth-child(even) { background: linear-gradient(#191919 40%, #151515 41%, #171717); }
tbody th { width: 55%; }
td { font-size: 12px; color: var(--muted); }
.forum-list thead th:first-child, .forum-list tbody th { padding-left: 76px; }
.forum-list tbody th { position: relative; width: 58.5%; }
.forum-list td, .forum-list tbody th { vertical-align: middle; }
.forum-list tbody tr { height: 52px; }
.forum-list .counts, .forum-list thead th:nth-child(2) { text-align: right; }
.forum-list .counts { width: 14%; }
.last-post { width: 27.5%; }
.post-date::before { content: "➜"; color: white; background: #187caa; border-radius: 2px; padding: 0 2px; margin-right: 4px; }
small, .hint { display: block; color: var(--muted); font-size: 11px; font-weight: normal; }
.subforums { font-size: 11px; margin-top: 9px; font-weight: normal; }
.subforums a { display: inline-block; margin-right: 4px; }
.subforums a::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 4px 1px 2px;
  border-radius: 50%;
  background: #a1dc98;
  box-shadow: 0 0 3px #7ab671;
}
.forum-icon {
  position: absolute;
  left: 19px;
  top: 50%;
  width: 32px;
  height: 24px;
  border-radius: 4px;
  transform: translateY(-50%) skew(14deg, -3deg);
  background: linear-gradient(145deg, #355d7c, #172e46 54%, #27415c);
  box-shadow: -6px 1px #497f69, 0 4px 4px #0008;
}
.forum-icon::after {
  content: "“”";
  display: block;
  text-align: center;
  color: #cfe6f8;
  font: bold 20px Georgia, serif;
}
.forum-icon.redirect::after { content: "➜"; font: bold 17px Arial, sans-serif; }
.forum-icon.folder::after {
  content: "";
  width: 10px;
  height: 10px;
  margin: 8px 0 0 17px;
  border: solid #a2bbcf;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 3px;
}
.stats, .empty, .moderation, .editor { padding: 13px; }
.stats > h2 { padding: 0; background: none; }
.stats p { margin: .4rem 0; }
.empty { margin: 0; border-top: 1px solid var(--line); }
.toolbar { margin-block: 1rem; justify-content: space-between; }
.button, button {
  display: inline-block;
  border: 1px solid #235371;
  border-radius: 4px;
  background: linear-gradient(#285778, #19384d);
  color: white;
  font: inherit;
  padding: 5px 9px;
  text-decoration: none;
  cursor: pointer;
}
.button:hover, button:hover { background: #356686; }
.label { padding: 2px 5px; border-radius: 3px; background: #303030; font-size: 11px; }
.post { display: grid; grid-template-columns: minmax(8rem, 15%) minmax(0, 1fr); border: 1px solid var(--line); }
.post aside { padding: 1rem; background: #202020; border-radius: 5px 0 0 5px; overflow-wrap: anywhere; }
.post aside > a { font-weight: bold; }
.message { padding: 1rem; overflow-wrap: anywhere; }
.message header { font-size: 11px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.message .body { min-height: 3rem; margin: .75rem 0 1rem; }
.message footer { min-height: 1rem; font-size: 12px; }
.quotetop, .codetop { font-size: 11px; font-weight: bold; }
.quotemain, .codemain { border-left: 3px solid #345975; background: #222; padding: .6rem; }
.codemain { font-family: monospace; white-space: pre-wrap; }
summary { cursor: pointer; }
.moderation .actions { margin-top: .75rem; }
label { display: block; margin-bottom: 1rem; }
.hint { display: inline; }
input:not([type=hidden]), textarea {
  display: block;
  width: 100%;
  margin-top: .4rem;
  padding: .5rem;
  border: 1px solid #454545;
  border-radius: .3rem;
  font: inherit;
  background: #111;
}
textarea { resize: vertical; }
.calendar { table-layout: fixed; }
.calendar th, .calendar td { text-align: center; }
.calendar td { height: 54px; border: 1px solid var(--line); }
.calendar td[aria-current=date] { background: #223d50; color: #fff; font-weight: bold; }
@media (max-width: 46rem) {
  .identity { min-height: 0; padding-bottom: 20px; }
  .brand { margin: 10px 0; }
  .board-layout { grid-template-columns: minmax(0, 1fr); }
  .recent { grid-row: 1; }
}
@media (max-width: 36rem) {
  .post { display: block; }
  .post aside { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; border-radius: 5px 5px 0 0; }
  .forum-list thead th:first-child, .forum-list tbody th { padding-left: 34px; }
  .forum-icon { left: 7px; width: 20px; height: 18px; box-shadow: -3px 1px #497f69; }
  .forum-icon.folder::after { margin: 4px 0 0 7px; }
}
