@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: #030d0f;
  --text: #ffffff;
  --muted: #a0adb8;
  --link: #00e5ff;
  --link-visited: #66dceb;
  --link-hover: #66ffff;
  --accent: #0cc57e;
}

@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);
	border: var(--accent, #00E5FF) 2px solid;
  border-radius: 6px;
  background: black;
  padding: 10px 15px;
  margin: 0 auto 1rem;
  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);
	border: var(--accent, #00E5FF) 2px solid;
  border-radius: 6px;
  background: black;
  padding: 10px 15px;
  margin: 0 auto 1rem;
}

#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);
	border: var(--accent, #00E5FF) 2px solid;
  border-radius: 6px;
  background: black;
  padding: 10px 15px;
  margin: 0 auto 1rem;
}

#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;
}

body {
  --bg: #3a0505;
  --panel: rgba(17, 4, 4, 0.92);
  --panel-soft: rgba(39, 10, 10, 0.9);
  --text: #f6eee5;
  --muted: #d5b79a;
  --link: #f0b968;
  --link-visited: #d99b4f;
  --link-hover: #ffe7b5;
  --accent: rgba(158, 4, 4, 0.64);
  --border: rgba(242, 193, 92, 0.48);
  --shadow: rgba(0, 0, 0, 0.45);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 200, 200, 0.04) 1px, transparent 0),
    radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.92) 72%),
    repeating-linear-gradient(
      45deg,
      transparent 0px,
      transparent 18px,
      rgba(0, 0, 0, 0.18) 18px,
      rgba(0, 0, 0, 0.18) 19px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent 0px,
      transparent 18px,
      rgba(0, 0, 0, 0.18) 18px,
      rgba(0, 0, 0, 0.18) 19px
    );
  background-attachment: scroll, fixed, scroll, scroll;
  background-repeat: repeat, no-repeat, repeat, repeat;
  background-size: 6px 6px, 100% 100%, auto, auto;
  color: var(--text);
  font-family: "Alagard", "Comicoro", sans-serif;
  line-height: 1.55;
  padding: 20px 0 28px;
}

body a {
  color: var(--link);
}

body a:visited {
  color: var(--link-visited);
}

body a:hover,
body a:focus {
  color: var(--link-hover);
}

header,
#showComic,
#authorNotes {
  width: min(860px, calc(100vw - 28px));
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 0 1px rgba(107, 18, 6, 0.72), 0 8px 24px var(--shadow);
}

header {
  padding: 14px 18px 16px;
  margin-bottom: 18px;
}

header p {
  margin: 0 0 4px;
  font-family: "Alagard", "Comicoro", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
}

.headerSubtitle {
  margin: 0 0 12px;
  color: rgb(40, 245, 166);
  font-family: "Comicoro", serif;
  font-size: 34px;
  letter-spacing: 0.02em;
  text-transform: none;
}

header #nav {
  gap: 8px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: 0.03em;
}

header #nav a,
header #nav a:visited {
  color: var(--text);
}

header #nav a:hover,
header #nav a:focus,
.comicNav a:hover,
.comicNav a:focus {
  color: var(--link-hover);
  text-decoration: none;
}

#showComic {
  padding: 18px 18px 20px;
  text-align: left;
}

#showComic h1,
#authorNotes h2 {
  margin: 0 0 14px;
  font-family: "Alagard", "Comicoro", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--text);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.78);
}

#showComic h1 {
  text-align: left;
  line-height: 1.15;
}

.entryHeading {
  margin-bottom: 14px;
}

.entryMeta {
  margin: -2px 0 0;
  color: var(--muted);
  font-family: "Comicoro", serif;
  font-size: 30px;
  letter-spacing: 0.01em;
}

.comicNav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 18px;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.navDivider {
  color: rgba(242, 193, 92, 0.4);
}

.comicPage {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scanLink {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.comicPage img {
  width: min(780px, 100%);
  display: block;
  margin: 0 auto;
  border: 1px solid rgba(242, 193, 92, 0.45);
  background: #120404;
  padding: 10px;
  box-shadow: 0 0 0 1px rgba(107, 18, 6, 0.7), 0 12px 28px rgba(0, 0, 0, 0.45);
}

#authorNotes {
  padding: 14px 18px 18px;
}

#authorNotes h2 {
  text-align: left;
  font-family: "Comicoro", serif;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-shadow: none;
  margin-bottom: 8px;
}

#authorNotes .writeAuthorNotes {
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
}

#authorNotes .writeAuthorNotes p {
  margin: 0;
}

footer {
  margin-top: 18px;
}

footer img {
  filter: sepia(0.2) saturate(0.8);
  opacity: 0.9;
}

.bgm-consent-banner-content,
.bgm-volume-control {
  border: 1px solid var(--border);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(27, 7, 7, 0.96), rgba(10, 2, 2, 0.96));
  box-shadow: 0 0 0 1px rgba(107, 18, 6, 0.72), 0 8px 24px rgba(0, 0, 0, 0.4);
  font-family: "Alagard", "Comicoro", sans-serif;
}

.bgm-consent-banner-content,
.bgm-volume-control,
.bgm-volume-title,
.bgm-volume-value,
.bgm-consent-button {
  color: var(--text);
}

.bgm-consent-button {
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(55, 14, 14, 0.9);
  margin: 0;
  padding: 8px 12px;
  font-family: "Alagard", "Comicoro", sans-serif;
}

.bgm-consent-button:hover,
.bgm-consent-button:focus {
  color: var(--link-hover);
}

.bgm-volume-slider {
  accent-color: #c46a0a;
}

body {
  padding-top: 20px;
}

.archivePage.subPage {
  width: min(860px, calc(100vw - 28px));
  border: 1px solid var(--border);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(27, 7, 7, 0.96), rgba(10, 2, 2, 0.96));
  box-shadow: 0 0 0 1px rgba(107, 18, 6, 0.72), 0 8px 24px var(--shadow);
  margin: 0 auto 1rem;
  padding: 18px 18px 20px;
}

.archivePage.subPage h1,
.archivePage.subPage h2 {
  font-family: "Alagard", "Comicoro", sans-serif;
  color: var(--text);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.78);
}

.archivePage.subPage h1 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
}

.archivePage.subPage h2 {
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
}

.archivePage .archiveTable {
  margin-top: 10px;
  border-collapse: collapse;
}

.archivePage .archiveTable td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(242, 193, 92, 0.18);
}

.archivePage .archiveTable .archiveCellTitle strong,
.archivePage .archiveTable .archiveCellNum strong {
  font-family: "Alagard", "Comicoro", sans-serif;
  font-weight: 400;
}

.archivePage .archiveCellTitle {
  color: var(--text);
}

.archivePage .archiveCellDate {
  color: var(--muted);
}

.archivePage .archiveRow:hover {
  background: rgba(242, 193, 92, 0.08);
}

@media (max-width: 700px) {
  .archivePage.subPage {
    width: min(860px, calc(100vw - 18px));
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 700px) {
  body {
    padding-top: 12px;
  }

  header,
  #showComic,
  #authorNotes {
    width: min(860px, calc(100vw - 18px));
  }

  header,
  #showComic,
  #authorNotes {
    padding-left: 12px;
    padding-right: 12px;
  }

  .comicPage img {
    padding: 6px;
  }
}

/*  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;
  padding: 10px 15px;
  margin: 0 auto 1rem;
  font-family: "Comicoro", sans-serif;
  font-size: 18px;
  color: #fff;

  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 0 1px rgba(107, 18, 6, 0.72), 0 8px 24px var(--shadow);
}

.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;
  padding: 10px 15px;
  margin: 0 auto 1rem;
  cursor: pointer;
  transition: color 0.12s;

  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 0 1px rgba(107, 18, 6, 0.72), 0 8px 24px var(--shadow);
}

.bgm-consent-button:hover {
  color: var(--accent, #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;

  padding: 10px 15px;
  margin: 0 auto 1rem;
  font-family: "Comicoro", sans-serif;
  min-width: 130px;

  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 0 1px rgba(107, 18, 6, 0.72), 0 8px 24px var(--shadow);
}

.bgm-volume-title {
  font-size: 14px;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: default;
}

.bgm-volume-slider {
  width: 100%;
  accent-color: var(--accent, #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;
  }
}

