@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;700&display=swap');

:root {
  --bg: #000000;
  --bg-gradient-top: #000000;
  --bg-gradient-bottom: #000000;
  --panel: rgba(7, 12, 8, 0.98);
  --panel-border: rgba(128, 255, 160, 0.32);
  --accent: #90ffb2;
  --accent-2: #7aff9f;
  --accent-3: #ffc94d;
  --text: #dfffe8;
  --muted: #5d7c62;
  --glow: rgba(122, 255, 159, 0.22);
  --grid-color: rgba(255, 255, 255, 0.02);
  --screen-highlight: rgba(255, 255, 255, 0.02);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #000000;
  color: var(--text);
  font-family: 'IBM Plex Mono', monospace;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.26;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent);
}

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

#showComic,
header,
h1,
h2,
h3,
h4,
h5 {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  text-shadow: 0 0 6px var(--glow);
}

.subPage p,
footer,
#authorNotes,
.archiveTable,
.archiveGuide,
.archiveIntro,
.archivePanel {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--text);
}

header,
footer {
  text-align: center;
}

header img {
  display: block;
  width: 500px;
  max-width: 98%;
  margin: 1rem auto 0;
  filter: brightness(0.95) contrast(1.05) drop-shadow(0 0 12px rgba(107, 255, 141, 0.18));
}

header #nav {
  background: rgba(4, 9, 6, 0.98);
  border: 1px solid rgba(122, 255, 159, 0.24);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.7);
  font-size: 0.95rem;
  width: min(960px, 98%);
  margin: 0 auto 1rem;
  padding: 0.75rem 1rem;
  border-radius: 1px;
}

#nav a {
  color: #ccefff;
  text-decoration: none;
  margin: 0 0.7rem;
}

#nav a:hover {
  color: var(--accent-3);
  text-shadow: 0 0 8px rgba(255, 207, 77, 0.45);
}

.subPage,
#authorNotes,
.commentBoxWrapper {
  width: min(1000px, 98%);
  background: rgba(5, 9, 6, 0.98);
  border: 1px solid rgba(122, 255, 159, 0.2);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.7);
  margin: 0 auto 1rem;
  padding: 1rem 1.2rem 1.4rem;
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}

.commentBoxWrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 2px solid rgba(122, 255, 159, 0.24);
  pointer-events: none;
}



.commentBoxWrapper {
  width: min(720px, 98%);
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 1rem 1.2rem 1.4rem;
  text-align: center;
  position: relative;
  overflow: visible;
  border: 1px solid rgba(122, 255, 159, 0.2);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.7);
  background: rgba(0, 0, 0, 0.35);
}

.commentBoxWrapper .commentBoxHeader {
  margin-bottom: 0.9rem;
  text-align: center;
}

.commentBoxWrapper .commentBoxHeader h2 {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
}

.commentBoxWrapper .commentBoxHeader p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.commentBoxWrapper #HCB_comment_box {
  width: 100%;
  margin: 0 auto;
  overflow: visible;
  word-wrap: break-word;
  white-space: normal;
}

.commentBoxWrapper #HCB_comment_box textarea,
.commentBoxWrapper #HCB_comment_box input,
.commentBoxWrapper #HCB_comment_box select {
  background: rgba(3, 8, 5, 0.95);
  color: var(--text);
  border: 1px solid rgba(122, 255, 159, 0.28);
  border-radius: 2px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.7);
  padding: 0.7rem 0.8rem;
  font-size: 0.95rem;
  width: 100%;
  max-width: 100%;
}

.commentBoxWrapper #HCB_comment_box textarea {
  min-height: 112px;
  resize: vertical;
}

.commentBoxWrapper #HCB_comment_box textarea:focus,
.commentBoxWrapper #HCB_comment_box input:focus,
.commentBoxWrapper #HCB_comment_box select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(122, 255, 159, 0.25), inset 0 0 6px rgba(0, 0, 0, 0.7);
}

.commentBoxWrapper #HCB_comment_box button,
.commentBoxWrapper #HCB_comment_box .btn,
.commentBoxWrapper #HCB_comment_box input[type="submit"] {
  background: rgba(122, 255, 159, 0.16);
  color: var(--accent-2);
  border: 1px solid rgba(122, 255, 159, 0.28);
  border-radius: 2px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.45);
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.commentBoxWrapper #HCB_comment_box button:hover,
.commentBoxWrapper #HCB_comment_box .btn:hover,
.commentBoxWrapper #HCB_comment_box input[type="submit"]:hover {
  background: rgba(122, 255, 159, 0.24);
  color: var(--accent);
}

.commentBoxWrapper #HCB_comment_box blockquote {
  border-left: 2px solid rgba(122, 255, 159, 0.3);
  padding-left: 0.8rem;
  color: var(--text);
  overflow-wrap: anywhere;
  white-space: normal;
}

.commentBoxWrapper #HCB_comment_box .hcb-comment-body,
.commentBoxWrapper #HCB_comment_box .hcb-comment-tb,
.commentBoxWrapper #HCB_comment_box .author-name,
.commentBoxWrapper #HCB_comment_box .comment-body,
.commentBoxWrapper #HCB_comment_box p {
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-word;
}

.commentBoxWrapper #HCB_comment_box a {
  color: var(--accent-2);
}

.commentBoxWrapper #HCB_comment_box a:hover {
  color: var(--accent-3);
}

.subPage::before,
#authorNotes::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 2px solid rgba(122, 255, 159, 0.24);
  pointer-events: none;
}

.subPage:not(.archivePage) {
  text-align: center;
}

.leftPic,
.rightPic {
  clear: both;
  margin: 0.6rem 0;
  filter: grayscale(0.2) contrast(0.95) brightness(0.8);
  border-radius: 2px;
  border: 1px solid rgba(107, 255, 141, 0.16);
}

.charTable,
.charTable td {
  width: 100%;
}

.charTable td {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.comicNav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 10px 0;
}

.comicNav img {
  width: 80px;
  max-width: 98%;
  height: auto;
  filter: brightness(0.85) contrast(1.2);
  transition: opacity 0.15s ease, filter 0.15s ease, transform 0.12s ease;
}

.comicNav a {
  display: inline-flex;
  align-items: center;
}

.comicNav .nav-disabled {
  display: inline-flex;
  align-items: center;
  opacity: 0.35;
  filter: grayscale(100%) brightness(0.7);
  cursor: default;
  pointer-events: none;
}

.comicNav a:hover img {
  transform: translateY(-2px);
}

.comicPage img {
  width: min(900px, 98%);
  border: 1px solid rgba(107, 255, 141, 0.18);
  box-shadow: 0 0 10px rgba(107, 255, 141, 0.06);
}

.archivePage {
  text-align: left;
}

.archiveIntro,
.archiveGuide {
  background: rgba(5, 12, 7, 0.95);
  border: 1px solid rgba(107, 255, 141, 0.2);
  border-left: 2px solid var(--accent);
  padding: 1rem 1.1rem;
  margin: 1rem 0;
  border-radius: 2px;
}

.archiveGuide ol {
  padding-left: 1.2rem;
  margin-bottom: 0;
}

.archiveTable {
  width: 100%;
  border-collapse: collapse;
}

.archiveAct {
  margin-top: 1.8rem;
}

.archiveAct h2 {
  border-bottom: 1px solid rgba(144, 255, 178, 0.35);
  padding-bottom: 0.35rem;
}

.archiveChapter {
  margin: 1rem 0 1.4rem 1rem;
}

.archiveChapter summary {
  align-items: center;
  background: rgba(5, 12, 7, 0.7);
  border: 1px solid rgba(144, 255, 178, 0.2);
  cursor: pointer;
  display: flex;
  gap: 0.75rem;
  list-style: none;
  padding: 0.45rem 0.65rem;
}

.archiveChapter summary::-webkit-details-marker {
  display: none;
}

.archiveChapter summary::before {
  color: var(--accent-3);
  content: "+";
  font-size: 1.2rem;
  line-height: 1;
  width: 0.8rem;
}

.archiveChapter[open] summary::before {
  content: "-";
}

.archiveChapter summary img {
  height: 52px;
  object-fit: cover;
  width: 52px;
}

.archiveChapter h3 {
  color: var(--accent-3);
  font-size: 1rem;
  margin: 0;
}

.archiveChapter > div {
  padding-top: 0.35rem;
}

.archiveTable td {
  padding: 0.35rem 0.25rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.archiveCellTitle:not(.leftAlignTableText) {
  max-width: 300px;
  text-align: left;
}

.archiveCellDate {
  text-align: right;
  min-width: 120px;
  color: #6cd3ff;
  font-style: italic;
}

.archiveCellNum {
  text-align: center;
  min-width: 30px;
  color: var(--accent);
}

.archiveCellThumb {
  width: 500px;
  max-width: 60px;
}

.archiveCellThumb img {
  max-width: 100%;
  border-radius: 4px;
  filter: brightness(0.9);
}

.leftAlignTableText td {
  text-align: left;
}

.archiveRow:hover {
  background: rgba(107, 255, 141, 0.08);
  cursor: pointer;
}

a {
  color: #6de0ff;
  text-decoration: none;
}

a:hover {
  color: var(--accent-3);
}

footer {
  color: var(--muted);
  margin: 1rem 0 1.4rem;
  width: 100%;
  font-size: 0.95rem;
}

footer a {
  display: inline-block;
  margin: 0 0.35rem;
  color: #8dc7ff;
}

footer a:hover {
  color: var(--accent-3);
}

footer a img {
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.14));
}