@font-face {
  font-family: "Comicoro";
  src:
    url("../../../font/Comicoro.woff2") format("woff2"),
    url("../../../font/Comicoro.woff") format("woff"),
    url("../../../font/Comicoro.ttf") format("truetype");
}

@font-face {
  font-family: "Alagard";
  src:
    url("../../../font/Alagard.woff2") format("woff2"),
    url("../../../font/Alagard.woff") format("woff"),
    url("../../../font/Alagard.ttf") format("truetype");
}

@font-face {
  font-family: "Notepen";
  src:
    url("../../../font/Notepen.woff2") format("woff2"),
    url("../../../font/Notepen.woff") format("woff"),
    url("../../../font/Notepen.ttf") format("truetype");
}

:root {
  --bg: #031f09;
  --text: #ffffff;
  --muted: #a0adb8;
  --link: #00e5ff;
  --link-visited: #66dceb;
  --link-hover: #66ffff;
}

@keyframes slideLeft {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -1000px 0;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: "Comicoro", "Cherry Cream Soda", sans-serif;
  line-height: 1.4;
}


a {
  color: var(--link);
  text-decoration: none;
}

a:visited {
  color: var(--link-visited);
}

a:hover,
a:focus {
  color: var(--link-hover);
  text-decoration: underline;
}


header {
  width: min(1000px, 96vw);
  margin: 12px auto 8px;
  border: 6px solid;
  border-image: url("../../../images/ui/mini-node4.png") 8 11 11 8 fill / 8px 11px 11px 8px;
  padding: 8px 11px;
  border-image-repeat: repeat;
  background: var(--panel-fill);
  color: var(--text);
}

header p {
  margin: 0 0 10px;
  font-family: "Notepen", "Comicoro", sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  letter-spacing: 0.03em;
}

header #nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: clamp(1rem, 2vw, 1.3rem);
}

header #nav a,
header #nav a:visited,
header #nav a:hover,
header #nav a:focus {
  color: #ffffff;
  text-decoration: none;
}

#showComic,
.subPage {
  width: min(1000px, 96vw);
  margin: 10px auto;
  border: 6px solid;
  border-image: url("../../../images/ui/mini-node4.png") 8 11 11 8 fill / 8px 11px 11px 8px;
  padding: 8px 11px;
  border-image-repeat: repeat;
  background: var(--panel-fill);
}

#showComic h1,
.subPage h1,
.subPage h2,
#authorNotes h2 {
  margin: 0.2rem 0 0.8rem;
  text-align: center;
  font-family: "Notepen", "Comicoro", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.comicNav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin: 8px 0;
  font-size: 1.5rem;
}

.comicNav img {
  width: min(72px, 18vw);
  max-width: 100%;
  height: auto;
}

.comicPage {
  text-align: center;
}

.comicPage img {
  width: min(900px, 100%);
  max-width: 100%;
  height: auto;
  border: 4px solid rgba(255, 255, 255, 0.15);
}

#authorNotes {
  width: min(900px, 96vw);
  margin: 12px auto;
  border: 1px solid;
  border-image: url("../../../images/ui/mini-node4.png") 8 11 11 8 fill / 8px 11px 11px 8px;
  padding: 8px 11px;
  border-image-repeat: repeat;
  background: var(--panel-fill);
}

#authorNotes .writeAuthorNotes {
  color: #e6edf3;
  text-align: left;
  font-size: 22px;
}

.archiveTable {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}

.archiveTable td {
  padding: 8px 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  vertical-align: middle;
}

.archiveCellTitle {
  text-align: left;
}

.archiveCellDate {
  color: var(--muted);
  text-align: right;
  min-width: 120px;
}

.archiveCellNum {
  text-align: center;
  min-width: 40px;
}

.archiveCellThumb {
  width: 72px;
}

.archiveCellThumb img {
  width: 56px;
  height: auto;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.archiveTable .archiveCellTitle strong {
  font-family: "Comicoro", "Alagard", sans-serif;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.15;
}

.archivePage h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.leftAlignTableText {
  text-align: left;
}

.archiveRow:hover {
  background: rgba(102, 255, 255, 0.08);
  cursor: pointer;
}

.subPage:not(.archivePage) {
  text-align: center;
}

.leftPic {
  clear: left;
  float: right;
  margin-left: 20px;
  margin-bottom: 10px;
}

.rightPic {
  clear: right;
  float: left;
  margin-right: 20px;
  margin-bottom: 10px;
}

.charTable,
.charTable td {
  width: 100%;
}

footer {
  margin: 14px 0 18px;
  text-align: center;
}

footer img {
  opacity: 0.9;
}

footer img:hover {
  opacity: 1;
}

/*  BGM Consent Banner  */
.bgm-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.bgm-consent-banner-top {
  top: 0;
}

.bgm-consent-banner-bottom {
  bottom: 0;
}

.bgm-consent-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: all;
  background: #000;
  border: 6px solid;
  border-image: url("../../../images/ui/mini-node4.png") 8 11 11 8 fill / 8px 11px 11px 8px;
  padding: 8px 11px;
  border-image-repeat: repeat;
  font-family: "Comicoro", sans-serif;
  font-size: 18px;
  color: #fff;
}

.bgm-consent-banner-text {
  flex-shrink: 0;
}

.bgm-consent-banner-actions {
  display: flex;
  gap: 8px;
}

.bgm-consent-button {
  font-family: "Comicoro", sans-serif;
  font-size: 16px;
  color: #fff;
  background: #000;
  border: 6px solid;
  border-image: url("../../../images/ui/mini-node4.png") 8 11 11 8 fill / 8px 11px 11px 8px;
  padding: 8px 11px;
  cursor: pointer;
  transition: color 0.12s;
}

.bgm-consent-button:hover {
  color: #00e5ff;
}

.bgm-consent-button:focus {
  outline: 2px solid rgba(255, 255, 255, 0.2);
}

/* BGM Volume Control */
.bgm-volume-control {
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 8500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;

  border: 6px solid;
  border-image: url("../../../images/ui/mini-node4.png") 8 11 11 8 fill / 8px 11px 11px 8px;
  padding: 8px 11px;
  font-family: "Comicoro", sans-serif;
  min-width: 130px;
}

.bgm-volume-title {
  font-size: 14px;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: default;
}

.bgm-volume-slider {
  width: 100%;
  accent-color: #00e5ff;
  cursor: pointer;
}

.bgm-volume-value {
  font-size: 14px;
  color: #ffffff;
  min-width: 2.5em;
  text-align: right;
}

.bgm-volume-control[data-muted="true"] .bgm-volume-value {
  color: #666;
}

@media (max-width: 700px) {
  #showComic,
  .subPage,
  #authorNotes,
  header {
    width: 98vw;
    padding: 10px;
  }

  .archiveCellDate {
    min-width: 96px;
    font-size: 0.9rem;
  }
}

