/* ============================================================
   Comix Harem — promo site theme
   Comic-book light theme: paper background, ink navy, heroic
   red, comic yellow, halftone dots. No inline styles anywhere.
   ============================================================ */

:root {
  --paper: #fbf6ec;
  --paper-alt: #f2ead9;
  --ink: #1e2440;
  --ink-soft: #545a7a;
  --red: #e23b3b;
  --red-dark: #bf2a2a;
  --yellow: #ffc93c;
  --blue: #2f7fd1;
  --line: #d8cfbc;
  --white: #ffffff;
  --shadow: 5px 5px 0 rgba(30, 36, 64, 0.14);
  --radius: 12px;
  --font-head: "Arial Black", "Avenir Next Condensed", Impact, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */

.site-header {
  background: var(--ink);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 4px solid var(--yellow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: var(--white);
  text-transform: uppercase;
}
.logo:hover { text-decoration: none; color: var(--yellow); }
.logo img { width: 42px; height: 42px; border-radius: 8px; border: 2px solid var(--yellow); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-nav a {
  color: #dcd9ec;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.3px;
}
.site-nav a:hover { color: var(--yellow); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--yellow);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 10px;
  border: 3px solid var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translate(-2px, -2px); }

.btn-play {
  background: var(--red);
  color: var(--white);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}
.btn-play:hover { background: var(--red-dark); color: var(--white); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--yellow);
}
.btn-ghost:hover { background: var(--yellow); color: var(--ink); }

.btn-big { font-size: 1.1rem; padding: 16px 38px; }

/* ---------- Hero (index) ---------- */

.hero {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 201, 60, 0.5) 0 14px, transparent 15px),
    radial-gradient(circle at 82% 14%, rgba(47, 127, 209, 0.28) 0 11px, transparent 12px),
    radial-gradient(circle at 70% 86%, rgba(226, 59, 59, 0.25) 0 16px, transparent 17px),
    radial-gradient(circle at 10% 78%, rgba(30, 36, 64, 0.14) 0 10px, transparent 11px),
    var(--paper-alt);
  border-bottom: 4px solid var(--ink);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 64px;
}

.hero-copy { min-width: 0; }

.hero-kicker {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 1.2px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}

.hero-title .accent { color: var(--red); }

.hero-tagline {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 28px;
}

.hero-figure {
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
  transform: rotate(1.2deg);
  overflow: hidden;
}
.hero-figure img { width: 100%; }

/* ---------- Sections ---------- */

.section { padding: 56px 0; }

.section-alt { background-color: var(--paper-alt); }

.section-divider {
  border-top: 3px dashed var(--line);
  padding-top: 44px;
}

.section-title {
  font-family: var(--font-head);
  font-size: 1.7rem;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
  display: inline-block;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  height: 8px;
  background: var(--yellow);
  border-radius: 4px;
  margin-top: 6px;
  width: 72px;
}

.section-sub {
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 70ch;
}

/* ---------- Facts table ---------- */

.facts-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 18px;
}

.facts-table th,
.facts-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.facts-table th {
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.85rem;
  width: 34%;
}

.facts-table tr:last-child th,
.facts-table tr:last-child td { border-bottom: none; }

.facts-table tr:nth-child(even) td { background: #faf5e9; }

.facts-table a { font-weight: 600; }

/* ---------- Feature cards ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 26px;
}

.feature-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  position: relative;
  border-top: 8px solid var(--red);
}

.feature-card.fc-2 { border-top-color: var(--yellow); }
.feature-card.fc-3 { border-top-color: var(--blue); }
.feature-card.fc-4 { border-top-color: var(--blue); }
.feature-card.fc-5 { border-top-color: var(--yellow); }
.feature-card.fc-6 { border-top-color: var(--red); }

.feature-card h3 {
  font-family: var(--font-head);
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
  color: var(--ink);
}

.feature-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Generic prose / article ---------- */

.article { max-width: 78ch; }

.article h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--ink);
  margin: 34px 0 12px;
}

.article h2:first-child { margin-top: 0; }

.article h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  text-transform: uppercase;
  color: var(--red-dark);
  margin: 24px 0 8px;
}

.article p { margin-bottom: 16px; color: var(--ink-soft); }
.article p strong { color: var(--ink); }

.article ul {
  margin: 0 0 18px 22px;
  color: var(--ink-soft);
}
.article li { margin-bottom: 8px; }

.article-figure {
  margin: 26px 0;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.article-figure img { width: 100%; }

.fig-caption {
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: var(--yellow);
  border-top: 3px solid var(--ink);
  font-style: italic;
}

/* ---------- Page hero (sub-pages) ---------- */

.page-hero {
  background:
    radial-gradient(circle at 88% 30%, rgba(255, 201, 60, 0.45) 0 13px, transparent 14px),
    radial-gradient(circle at 12% 70%, rgba(47, 127, 209, 0.25) 0 10px, transparent 11px),
    var(--paper-alt);
  border-bottom: 4px solid var(--ink);
  padding: 40px 0;
}

.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 12px;
}

.page-hero-intro {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 72ch;
}

/* ---------- Gallery + lightbox ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 26px;
}

.gallery-item {
  display: block;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 4px 4px 0 rgba(30, 36, 64, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gallery-item:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 rgba(30, 36, 64, 0.2); }
.gallery-item img { width: 100%; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 38, 0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(1000px, 92vw);
  max-height: 84vh;
  border: 4px solid var(--yellow);
  border-radius: 10px;
  background: var(--white);
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: var(--ink);
  color: var(--yellow);
  border: 3px solid var(--yellow);
  border-radius: 50%;
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font-head);
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { background: var(--red); color: var(--white); }

.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

body.lb-open { overflow: hidden; }

/* ---------- Quotes ---------- */

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 26px;
}

.quote-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  position: relative;
}

.quote-card::before {
  content: "\201C";
  font-family: Georgia, serif;
  font-size: 3.2rem;
  color: var(--red);
  line-height: 1;
  display: block;
  height: 30px;
}

.quote-card p { color: var(--ink-soft); margin-bottom: 12px; }

.quote-author {
  display: block;
  font-style: normal;
  font-family: var(--font-head);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ink);
}

/* ---------- Character cards ---------- */

.char-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 26px;
}

.char-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  border-bottom: 8px solid var(--blue);
}
.char-card.cc-2 { border-bottom-color: var(--red); }
.char-card.cc-3 { border-bottom-color: var(--yellow); }
.char-card.cc-4 { border-bottom-color: var(--yellow); }
.char-card.cc-5 { border-bottom-color: var(--red); }
.char-card.cc-6 { border-bottom-color: var(--blue); }

.char-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 2px;
}

.char-role {
  display: inline-block;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 10px;
  margin-bottom: 10px;
  color: var(--ink);
}

.char-card p { color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- Champion / villain blocks ---------- */

.champ-list {
  list-style: none;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.champ-list li {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 4px 4px 0 rgba(30, 36, 64, 0.14);
}

.champ-list strong {
  font-family: var(--font-head);
  text-transform: uppercase;
  color: var(--red-dark);
  display: block;
  margin-bottom: 6px;
}

.champ-list p { color: var(--ink-soft); font-size: 0.9rem; }

.villain-box {
  margin-top: 26px;
  background: var(--ink);
  color: #e8e5f2;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.villain-box h3 {
  font-family: var(--font-head);
  color: var(--yellow);
  text-transform: uppercase;
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.villain-box p { color: #c9c6da; margin-bottom: 10px; }

/* ---------- Guide steps + tips ---------- */

.steps-list {
  list-style: none;
  counter-reset: step;
  margin-top: 24px;
}

.steps-list li {
  counter-increment: step;
  position: relative;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px 16px 78px;
  margin-bottom: 18px;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 44px;
  height: 44px;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps-list h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.steps-list p { color: var(--ink-soft); font-size: 0.96rem; }

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.tip-card {
  background: var(--paper-alt);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--ink-soft);
  font-size: 0.93rem;
  position: relative;
}

.tip-card::after {
  content: "!";
  position: absolute;
  top: -16px;
  right: 12px;
  width: 30px;
  height: 30px;
  background: var(--red);
  color: var(--white);
  border: 3px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-head);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ---------- FAQ ---------- */

.faq-list { margin-top: 26px; }

.faq-item {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 4px 4px 0 rgba(30, 36, 64, 0.12);
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-family: var(--font-head);
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 46px;
  background: var(--yellow);
  border-bottom: 3px solid transparent;
}

.faq-item[open] summary { border-bottom-color: var(--ink); }

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--red);
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item .faq-answer {
  padding: 16px 20px;
  color: var(--ink-soft);
}

.faq-item .faq-answer p { margin-bottom: 10px; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

.faq-sysreq { margin-top: 8px; }

/* ---------- Play banner ---------- */

.play-banner {
  background: var(--ink);
  color: var(--white);
  border: 4px solid var(--ink);
  border-radius: 16px;
  padding: 38px 34px;
  text-align: center;
  box-shadow: 8px 8px 0 var(--yellow);
  position: relative;
}

.play-banner::before,
.play-banner::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  background: var(--red);
  border: 3px solid var(--ink);
  transform: rotate(45deg);
}
.play-banner::before { top: -20px; left: -20px; }
.play-banner::after { bottom: -20px; right: -20px; }

.play-banner-title {
  font-family: var(--font-head);
  font-size: 1.7rem;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
}

.play-banner-text {
  color: #d5d2e6;
  max-width: 56ch;
  margin: 0 auto 24px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #b9b6cd;
  border-top: 4px solid var(--yellow);
  padding: 30px 0 36px;
  margin-top: 30px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}

.copyright { font-size: 0.9rem; }

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.lang-switch a {
  color: #dcd9ec;
  border: 2px solid #4a5072;
  border-radius: 999px;
  padding: 4px 13px;
  font-size: 0.85rem;
  font-weight: 600;
}
.lang-switch a:hover { color: var(--yellow); border-color: var(--yellow); text-decoration: none; }
.lang-switch a.is-current { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

/* ---------- Responsive: 768px ---------- */

@media (max-width: 768px) {
  body { font-size: 16px; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0 8px;
    border-top: 2px solid #4a5072;
  }
  .site-nav.open { display: flex; }

  .hero-inner { grid-template-columns: 1fr; padding: 40px 0 48px; }
  .hero-figure { transform: none; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .char-grid { grid-template-columns: repeat(2, 1fr); }
  .champ-list { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes-grid { grid-template-columns: 1fr; }

  .facts-table th { width: 40%; }
}

/* ---------- Responsive: 480px ---------- */

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: 1fr; }
  .champ-list { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }

  .section { padding: 42px 0; }
  .play-banner { padding: 28px 20px; }
  .steps-list li { padding: 16px 16px 14px 64px; }
  .steps-list li::before { width: 38px; height: 38px; left: 12px; top: 14px; font-size: 1rem; }
}
