:root {
  --bg: #2f2f2f;
  --header: #252525;
  --accent: #2f9bad;
  --accent-light: #39c5df;
  --text: #ffffff;
  --text-muted: #cfcfcf;
  --panel: #202020;
  --field: #141414;
  --line: #4c4c4c;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

body.age-locked {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-wrap {
  min-height: 100vh;
  transition: filter 0.25s ease, transform 0.25s ease;
}

body.age-locked .site-wrap {
  filter: blur(8px);
  transform: scale(1.01);
  pointer-events: none;
  user-select: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(37, 37, 37, 0.96);
  border-bottom: 4px solid var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 60px;
}

.brand {
  color: var(--accent-light);
  text-decoration: none;
}

.brand:hover {
  color: #72e7f8;
}

.logo {
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
  flex-wrap: wrap;
}

.logo-box {
  width: 42px;
  height: 42px;
  background: var(--accent-light);
  color: #202020;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 29px;
  font-weight: bold;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08) inset;
}

.logo-word {
  font-size: 34px;
  font-weight: bold;
}

.tagline {
  margin-top: 8px;
  color: #d7d7d7;
  font-size: 14px;
  font-style: italic;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.header-link,
.submit-button,
.age-actions button,
.age-actions a {
  border-radius: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: bold;
}

.header-link {
  color: var(--text);
  text-decoration: none;
  padding: 10px 16px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.request-link {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent-light);
}

.request-link:hover,
.request-link[aria-current="page"] {
  background: rgba(47, 155, 173, 0.18);
}

.login-link {
  background: var(--accent);
  color: var(--text);
}

.login-link:hover {
  background: var(--accent-light);
}

main {
  width: min(1180px, 100%);
  margin: 40px auto;
  padding: 0 24px;
}

.page-title {
  margin: 0 0 28px;
  border-bottom: 1px solid #555;
  padding-bottom: 12px;
  font-size: 26px;
  line-height: 1.25;
}

.meta {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 42px;
}

.comic-card {
  display: block;
  color: var(--text);
  text-decoration: none;
}

.comic-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  background: #111;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comic-card h2 {
  margin: 12px 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

.comic-card:hover img {
  transform: translateY(-4px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5);
}

.comic-card:hover h2 {
  color: var(--accent-light);
}

.request-panel {
  max-width: 760px;
  background: var(--panel);
  border: 1px solid #444;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.35);
  padding: 28px;
}

.intro {
  margin: -10px 0 24px;
  color: var(--text-muted);
  line-height: 1.6;
}

form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: bold;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #555;
  background: var(--field);
  color: var(--text);
  font: 16px Georgia, "Times New Roman", serif;
  padding: 12px 14px;
  border-radius: 4px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(57, 197, 223, 0.15);
}

textarea {
  min-height: 170px;
  resize: vertical;
  line-height: 1.5;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-weight: normal;
}

.checkbox-label input {
  width: auto;
}

.submit-button {
  justify-self: start;
  border: 0;
  background: var(--accent);
  color: var(--text);
  cursor: pointer;
  font-size: 17px;
  padding: 13px 22px;
}

.submit-button:hover {
  background: var(--accent-light);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.note {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.success-message {
  display: none;
  margin-top: 18px;
  border: 1px solid var(--accent);
  background: rgba(47, 155, 173, 0.16);
  color: #e9fbff;
  padding: 14px 16px;
  line-height: 1.5;
}

.error-message {
  display: none;
  margin-top: 18px;
  border: 1px solid #d96a6a;
  background: rgba(217, 106, 106, 0.16);
  color: #ffe8e8;
  padding: 14px 16px;
  line-height: 1.5;
}

.reader-main {
  max-width: 820px;
}

.reader-heading {
  margin-bottom: 28px;
}

.reader-heading .page-title {
  margin-bottom: 8px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent-light);
  text-decoration: none;
  font-weight: bold;
}

.back-link:hover {
  text-decoration: underline;
}

.manga-page {
  margin-bottom: 40px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid #383838;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

video {
  width: 100%;
  display: block;
  background: #000;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.78);
}

body.age-locked .age-gate {
  display: flex;
}

.age-box {
  width: min(100%, 520px);
  background: var(--panel);
  border: 2px solid var(--accent);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.75);
  padding: 34px;
  text-align: center;
}

.age-box h1 {
  margin: 0 0 14px;
  color: var(--accent-light);
  font-size: 34px;
}

.age-box p {
  margin: 10px 0;
  color: #e6e6e6;
  line-height: 1.55;
  font-size: 16px;
}

.age-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.age-actions button,
.age-actions a {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-size: 16px;
  padding: 12px 22px;
}

.enter-button {
  background: var(--accent);
  color: var(--text);
}

.enter-button:hover {
  background: var(--accent-light);
}

.leave-button {
  background: #e6e6e6;
  color: #222;
}

@media (max-width: 760px) {
  .site-header {
    padding: 22px 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .logo-word {
    font-size: 28px;
  }

  .logo-box {
    width: 36px;
    height: 36px;
    font-size: 25px;
  }

  .header-actions {
    width: 100%;
    justify-content: stretch;
  }

  .header-link {
    flex: 1;
    text-align: center;
  }

  main {
    margin-top: 28px;
  }
}

@media (max-width: 700px) {
  .row {
    grid-template-columns: 1fr;
  }

  .request-panel {
    padding: 22px;
  }
}
