@font-face {
  font-family: Terminal;
  src: url("/forums-terminal.ttf") format("truetype");
  font-display: swap;
}
:root {
  --green: #3a6df0;
  --dim: #2a4fb8;
  --line: 2px solid var(--dim);
  --panel-tint: rgba(58, 109, 240, 0.22);
}
#terminal {
  position: absolute;
  background: #000;
  color: #fff;
  font-family: Terminal, "Courier New", monospace;
  line-height: 1.45;
  display: flex;
  overflow: hidden;
  isolation: isolate;
}
/* A repeated, screen-blended layer gives the forum computer an animated CRT
   texture. It is deliberately non-interactive and sits below the forum UI. */
#terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: url("/forums-crt-static.gif") center / cover no-repeat;
  mix-blend-mode: screen;
  opacity: 0.125;
  filter: contrast(1.3) brightness(0.6) saturate(0.9);
}
#forumScroll {
  position: relative;
  z-index: 1;
}
#scrollRail {
  position: relative;
  z-index: 3;
}
#forumScroll {
  flex: 1;
  min-width: 0;
  overflow: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
  outline-offset: -3px;
}
#forumScroll::-webkit-scrollbar {
  display: none;
}
.terminal-content {
  width: 78%;
  margin: auto;
  padding: 0 8px 28px;
}
.forum-logo {
  display: block;
  width: 43.2%;
  margin: 0 auto 10px;
  line-height: 0;
}
.forum-logo img {
  display: block;
  width: 100%;
  height: auto;
}
#terminal a {
  color: inherit;
  text-decoration: none;
}
#terminal a:hover {
  text-decoration: underline;
}
#terminal button,
#terminal input,
#terminal textarea,
#terminal select {
  font: inherit;
  color: inherit;
  background: var(--panel-tint);
  border: var(--line);
  border-radius: 0;
  padding: 5px 7px;
  max-width: 100%;
}
#terminal button {
  cursor: pointer;
}
#terminal button:hover,
#terminal button:focus-visible {
  background: var(--green);
  color: #000;
}
#terminal :focus-visible {
  outline: 2px dashed var(--green);
  outline-offset: 3px;
}
#terminal button:disabled {
  opacity: 0.45;
  cursor: wait;
}
#terminal input,
#terminal textarea {
  min-width: 0;
}
#terminal textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
}
#terminal .forum-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  border-bottom: var(--line);
  padding: 4px 0 9px;
}
#identity {
  position: relative;
  z-index: 2;
  padding: 9px 0;
  font-size: 0.86em;
}
#terminal .identity-name {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
#terminal .identity-name:hover,
#terminal .identity-name:focus-visible,
#terminal .identity-name[aria-expanded="true"] {
  background: transparent;
  color: var(--green);
}
.account-menu {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  min-width: 230px;
  border: var(--line);
  background: #000;
}
.account-menu.is-open {
  display: block;
}
.account-menu-heading {
  padding: 6px 10px;
  border-bottom: var(--line);
  color: var(--green);
  text-transform: uppercase;
}
#terminal .account-menu a,
#terminal .account-menu button {
  display: block;
  width: 100%;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  text-align: left;
}
#terminal .account-menu a:hover,
#terminal .account-menu a:focus-visible,
#terminal .account-menu button:hover,
#terminal .account-menu button:focus-visible {
  background: var(--green);
  color: #000;
  text-decoration: none;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 12px;
}
.account-form p {
  line-height: 1.4;
}
.account-form h1 {
  text-align: center;
}
#terminal .gate-signin {
  font-size: 0.85em;
  text-decoration: underline;
}
.search {
  display: flex;
  gap: 6px;
  margin: 0 0 12px;
}
.search input {
  flex: 1;
  width: 0;
}
#forumStatus {
  font-size: 0.9em;
  margin: 8px 0;
  white-space: pre-wrap;
}
.error {
  color: #ffbc5e;
}
.forum-category {
  margin: max(18px, 1em) 0;
  border: var(--line);
  background: var(--panel-tint);
}
.forum-category h2 {
  font-size: 1.2em;
  font-weight: normal;
  margin: 0;
  padding: 5px 9px;
  border-bottom: var(--line);
}
.forum-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.forum-table th,
.forum-table td {
  border-bottom: 1px solid var(--dim);
  border-right: 1px solid var(--dim);
  padding: 8px 6px;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.forum-table th {
  font-weight: normal;
  text-align: left;
  font-size: 0.68em;
  white-space: nowrap;
  padding-inline: 3px;
}
.forum-table tr:last-child td {
  border-bottom: 0;
}
.forum-table tbody tr:nth-child(even) td {
  background: rgba(58, 109, 240, 0.1);
}
.forum-table thead th {
  background: rgba(58, 109, 240, 0.22);
}
.forum-table tbody tr[data-author] td {
  background: color-mix(in srgb, var(--tint) 14%, transparent);
}
.forum-table tbody tr[data-author]:nth-child(even) td {
  background: color-mix(in srgb, var(--tint) 20%, transparent);
}
@media (hover: hover) and (pointer: fine) {
  .forum-table tbody tr:hover td {
    background: rgba(58, 109, 240, 0.2);
  }
  .forum-table tbody tr[data-author]:hover td {
    background: color-mix(in srgb, var(--tint) 30%, transparent);
  }
}
.forum-table th:last-child,
.forum-table td:last-child {
  border-right: 0;
}
.forum-table .board-col {
  width: 54%;
}
.forum-table .count-col {
  width: max(11%, 4.8em);
  text-align: center;
}
.forum-table .last-col {
  width: 24%;
}
.forum-table small {
  display: block;
  font-size: 0.78em;
  opacity: 0.85;
}
#terminal .board-title {
  font-size: 1.05em;
}
.pinned-icon {
  display: inline-block;
  width: 0.8em;
  height: 1.3em;
  margin: -0.16em 0.2em -0.14em 0;
  vertical-align: middle;
  image-rendering: pixelated;
}
.new-dot {
  margin-right: 5px;
}
.muted {
  opacity: 0.8;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 12px 0;
}
.breadcrumbs {
  margin: 12px 0;
  font-size: 0.86em;
}
#terminal h1 {
  font-size: 1.35em;
  font-weight: normal;
  overflow-wrap: anywhere;
}
.thread-title {
  text-decoration: underline;
}
.post {
  border: var(--line);
  margin: 12px 0;
  background: var(--panel-tint);
}
.post[data-author] {
  border-color: var(--tint);
  background: color-mix(in srgb, var(--tint) 15%, transparent);
}
.post[data-author] .post-head {
  border-bottom-color: color-mix(in srgb, var(--tint) 70%, transparent);
  background: color-mix(in srgb, var(--tint) 24%, transparent);
}
.post-head {
  padding: 7px 9px;
  border-bottom: 1px solid var(--dim);
  font-size: 0.85em;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.official-badge {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  margin-left: 3px;
}
.admin-badge {
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.25em;
  vertical-align: -0.15em;
  outline: none;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}
.admin-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.admin-badge::after {
  content: attr(data-tip);
  position: absolute;
  top: 50%;
  left: calc(100% + 6px);
  z-index: 20;
  padding: 2px 7px;
  background: #000000;
  border: 1px solid currentColor;
  color: #ffffff;
  font-family: Terminal, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 0.12s ease;
}
.admin-badge:hover::after,
.admin-badge:focus-visible::after,
.admin-badge.is-tip::after {
  opacity: 1;
}
.post-body {
  padding: 14px 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: Terminal, "Courier New", monospace;
  font-size: 1.1em;
  line-height: 1.6;
}
.post .actions {
  padding: 0 9px;
  font-size: 0.8em;
}
.post .edited {
  display: block;
  padding: 0 10px 10px;
  font-size: 0.8em;
  opacity: 0.7;
}
.post blockquote {
  border-left: 3px solid var(--dim);
  margin: 6px 0 10px;
  padding-left: 12px;
  opacity: 0.8;
}
.compose {
  border: var(--line);
  padding: 12px;
  margin: 15px 0;
  background: var(--panel-tint);
}
.compose h2 {
  margin: 0 0 8px;
}
.compose label {
  display: block;
  margin: 9px 0;
}
.compose input {
  width: 100%;
}
.char-count {
  display: block;
  margin-top: 3px;
  text-align: right;
  font-size: 0.76em;
  opacity: 0.75;
}
.compose p {
  font-size: 0.85em;
}
.pager {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
}
#terminal footer {
  text-align: center;
  margin: 24px 0 0;
  font-size: 0.75em;
}
.empty {
  padding: 18px 10px;
}
.member {
  padding: 9px;
  border-bottom: 1px solid var(--dim);
}
#scrollRail {
  width: 17px;
  flex: none;
  display: flex;
  flex-direction: column;
  padding: 14px 0 14px 3px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
#scrollRail.is-visible {
  opacity: 1;
}
#scrollRail button {
  padding: 0;
  font: 10px monospace;
  width: 14px;
  height: 20px;
  flex: none;
}
#scrollTrack {
  position: relative;
  flex: 1;
  border: 1px solid var(--dim);
  margin: 3px 0;
  touch-action: none;
}
#scrollThumb {
  position: absolute;
  width: 100%;
  background: var(--green);
  min-height: 22px;
  cursor: grab;
  touch-action: none;
}
/* Desktop's terminal-content is a narrow centered column (78% width),
   which otherwise leaves the scroll rail stranded out at the screen's
   outer edge, far from the content it scrolls. Cap forumScroll to that
   same width and center the [content + rail] pair as a unit so the
   rail sits flush next to the content instead. Mobile's content is
   already full-width (see the max-width override below), so this is
   scoped to desktop only. */
@media (min-width: 861px) {
  #terminal {
    justify-content: center;
  }
  #forumScroll {
    flex: 0 1 min(66%, 1180px);
  }
  .terminal-content {
    width: 100%;
    margin: 0;
  }
  #scrollRail {
    margin-left: 8px;
  }
}
.crt-zoom-trigger {
  position: absolute;
  z-index: 6;
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: box-shadow 0.18s ease;
}
.crt-zoom-trigger:hover {
  box-shadow:
    inset 0 0 0 2px #ff7900,
    0 0 13px 3px rgba(255, 121, 0, 0.9);
}
.crt-zoom-trigger:focus-visible {
  outline: 2px solid #ff7900;
  outline-offset: 3px;
}
.crt-zoom-icon {
  position: absolute;
  left: 30.1%;
  top: 35.1%;
  width: 41%;
  height: 28%;
  pointer-events: none;
}
.forums-scene.is-zoom-animating .scene-art,
.forums-scene.is-zoom-animating #terminal,
.forums-scene.is-zoom-animating .crt-zoom-trigger {
  transition:
    left 0.46s cubic-bezier(0.33, 0, 0.2, 1),
    top 0.46s cubic-bezier(0.33, 0, 0.2, 1),
    width 0.46s cubic-bezier(0.33, 0, 0.2, 1),
    height 0.46s cubic-bezier(0.33, 0, 0.2, 1),
    font-size 0.46s cubic-bezier(0.33, 0, 0.2, 1);
}
.forums-scene.is-zoom-animating #forumScroll {
  transition: flex-basis 0.46s cubic-bezier(0.33, 0, 0.2, 1);
}
.forums-scene.is-zoomed .crt-zoom-trigger {
  pointer-events: none;
}
.forums-scene.is-zoomed #scrollRail {
  position: absolute;
  right: 6px;
  top: 0;
  bottom: 0;
  margin-left: 0;
}
.crt-exit {
  position: absolute;
  z-index: 7;
  top: 10px;
  left: 14px;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  padding: 4px 6px;
  background: #000;
  color: var(--dim);
  font-family: Terminal, "Courier New", monospace;
  font-size: 15px;
  letter-spacing: 0.08em;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease 0.2s, color 0.15s ease;
}
.crt-exit:hover,
.crt-exit:focus-visible {
  color: var(--green);
}
.forums-scene.is-zoomed .crt-exit {
  opacity: 0.75;
  pointer-events: auto;
}
@media (max-width: 860px) {
  .crt-zoom-trigger {
    display: none;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#terminal.is-gated .forum-nav,
#terminal.is-gated #identity,
#terminal.is-gated .search,
#terminal.is-gated footer {
  display: none;
}
#terminal.is-gated #forumStatus {
  text-align: center;
}
.login-gate {
  display: flex;
  justify-content: center;
  padding-top: 2px;
}
.login-gate .compose {
  width: 100%;
  max-width: 420px;
  border: none;
  background: transparent;
  padding: 0;
}
.login-gate h1 {
  text-align: center;
  margin-top: 0;
}
.prompt-row {
  position: relative;
}
#terminal .prompt-row input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  caret-color: var(--green);
}
.prompt-row .cursor-blink {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.prompt-row input:focus + .cursor-blink {
  display: none;
}
.login-gate .login-gate-note {
  font-size: 8pt;
  opacity: 0.7;
}
.cursor-blink {
  display: inline-block;
  animation: cursor-blink 1s steps(1) infinite;
}
@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}
@media (max-width: 860px) {
  .terminal-content {
    width: 100%;
    padding: 0 16px 24px;
  }
  .forum-logo {
    width: 76%;
    margin-bottom: 8px;
  }
  .forum-nav {
    font-size: 16px;
    gap: 4px 10px !important;
  }
  .forum-table th,
  .forum-table td {
    padding: 7px 4px;
  }
  .forum-table .board-col {
    width: 49%;
  }
  .forum-table .count-col {
    width: max(12%, 4.8em);
  }
  .forum-table .last-col {
    width: 27%;
    font-size: 14px;
  }
  .forum-table small {
    font-size: 14px;
  }
  .forum-category h2 {
    font-size: 23px;
  }
  #scrollRail {
    width: 14px;
  }
  #scrollRail button {
    width: 11px;
  }
  .post-body {
    font-size: 20px;
  }
}
.profile-page {
  --card-bg: #000000;
  --card-border: var(--green);
  --card-ink: #ffffff;
  --border-ink: #000000;
  margin: 6px 0 18px;
  border: 2px solid var(--card-border);
  background: var(--card-bg);
  color: var(--card-ink);
}
#terminal .profile-page a {
  color: inherit;
}
.profile-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 10px 12px;
  border-bottom: 2px solid var(--card-border);
}
.profile-banner h1 {
  margin: 0;
  font-size: 1.6em;
  overflow-wrap: anywhere;
}
.profile-banner span {
  font-size: 0.85em;
  opacity: 0.8;
}
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
}
.profile-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid var(--card-border);
  background: rgba(0, 0, 0, 0.25);
  font-size: 3em;
}
.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-facts {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-size: 0.86em;
}
.profile-facts th,
.profile-facts td {
  padding: 5px 0;
  border-bottom: 1px solid var(--card-border);
  vertical-align: top;
  text-align: left;
}
.profile-facts th {
  width: 48%;
  padding-right: 8px;
  font-weight: normal;
  opacity: 0.75;
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 12px;
}
#terminal .profile-btn {
  cursor: pointer;
  text-decoration: none;
}
#terminal .profile-btn:hover {
  text-decoration: underline;
}
.profile-box {
  margin-bottom: 12px;
  border: 2px solid var(--card-border);
}
.profile-box:last-child {
  margin-bottom: 0;
}
.profile-box h2 {
  margin: 0;
  padding: 4px 8px;
  background: var(--card-border);
  color: var(--border-ink);
  font-size: 1em;
}
.profile-box-body {
  padding: 8px;
}
.profile-box .forum-table {
  font-size: 0.9em;
}
.profile-about {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.profile-empty {
  margin: 0;
  opacity: 0.6;
}
.profile-song {
  padding: 6px 10px;
  background: #ffffff;
}
.profile-song iframe {
  display: block;
  width: 100%;
  height: 20px;
  border: 0;
}
.profile-edit {
  padding: 12px;
}
.profile-edit > label {
  display: block;
  margin: 12px 0 0;
}
.profile-edit > label:first-child {
  margin-top: 0;
}
#terminal .profile-edit input[type="file"] {
  display: none;
}
#terminal .profile-edit input:not([type="color"]):not([type="file"]),
#terminal .profile-edit textarea,
#terminal .profile-page select {
  display: block;
  width: 100%;
  margin-top: 4px;
}
.profile-edit small {
  display: block;
  margin-top: 3px;
  font-size: 0.75em;
  opacity: 0.75;
}
.profile-photo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 4px;
}
.profile-photo-row .profile-photo {
  width: 96px;
  font-size: 2.2em;
}
.profile-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 14px;
}
.profile-colors label {
  display: flex;
  align-items: center;
  gap: 8px;
}
#terminal .profile-colors input[type="color"] {
  width: 44px;
  height: 32px;
  padding: 0;
  border: 2px solid currentColor;
  background: none;
  cursor: pointer;
}
.profile-colors input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.profile-colors input[type="color"]::-webkit-color-swatch {
  border: none;
}
.profile-colors input[type="color"]::-moz-color-swatch {
  border: none;
}
@media (max-width: 860px) {
  .profile-grid {
    grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "side about"
      "side song"
      "threads threads";
    gap: 10px;
    padding: 10px;
  }
  .profile-side {
    grid-area: side;
    min-width: 0;
  }
  .profile-main {
    display: contents;
  }
  .profile-box-about {
    grid-area: about;
  }
  .profile-box-song {
    grid-area: song;
    align-self: start;
  }
  .profile-box-threads {
    grid-area: threads;
  }
  .profile-grid .profile-box {
    margin-bottom: 0;
  }
  .profile-facts {
    font-size: 0.8em;
  }
  .profile-facts tr {
    display: block;
    padding: 4px 0;
    border-bottom: 1px solid var(--card-border);
  }
  .profile-facts th,
  .profile-facts td {
    display: block;
    width: auto;
    padding: 0;
    border-bottom: 0;
  }
  .profile-side .profile-actions {
    font-size: 0.85em;
  }
}
.online-now {
  white-space: nowrap;
  color: #33e046;
}
.online-now-icon {
  display: inline-block;
  width: 1.45em;
  height: 1.45em;
  margin-left: 4px;
  overflow: hidden;
  vertical-align: -0.38em;
}
.online-now-icon img {
  display: block;
  width: 140%;
  height: 140%;
  margin: -15% 0 0 -20%;
}
