/* ============================================================
   Hentai Heroes — Haremverse Pop theme (light)
   Unique design: cream-pink base, hot magenta + violet accents,
   chunky comic-style cards, speech-bubble hero, sticker badges.
   ============================================================ */

:root {
  --bg: #fdf4f9;
  --bg-soft: #f9e8f3;
  --surface: #ffffff;
  --ink: #40203a;
  --ink-soft: #6d4a66;
  --primary: #e12d7c;
  --primary-dark: #b81f63;
  --violet: #7c3aed;
  --gold: #f5a623;
  --mint: #19b8a6;
  --border: #f0d4e6;
  --border-strong: #e5b8d3;
  --shadow: 0 10px 30px rgba(90, 20, 70, 0.10);
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Trebuchet MS", Verdana, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
}

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

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 3px solid var(--border);
  box-shadow: 0 4px 18px rgba(90, 20, 70, 0.06);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 800;
}
.brand:hover { text-decoration: none; }

.brand-icon {
  width: 40px; height: 40px; border-radius: 10px;
  border: 2px solid var(--border-strong);
}

.brand-name {
  font-size: 1.15rem; letter-spacing: -0.2px;
  background: linear-gradient(90deg, var(--primary), var(--violet));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.site-nav { display: flex; align-items: center; }

.nav-list {
  list-style: none; display: flex; align-items: center; gap: 4px;
}

.nav-link {
  display: inline-block; padding: 8px 13px; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: 0.95rem;
}
.nav-link:hover { background: var(--bg-soft); text-decoration: none; }
.nav-link.active { background: var(--bg-soft); color: var(--primary-dark); }

.btn-play {
  display: inline-block; margin-left: 10px; padding: 10px 22px;
  border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--violet));
  color: #fff !important; font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(225, 45, 124, 0.35);
  border: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(225, 45, 124, 0.45); text-decoration: none; }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--border-strong);
  border-radius: 10px; width: 44px; height: 40px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 3px; border-radius: 3px;
  background: var(--primary-dark); transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--violet));
  color: #fff !important; font-weight: 800; font-size: 1.02rem;
  box-shadow: 0 8px 20px rgba(225, 45, 124, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(225, 45, 124, 0.45); text-decoration: none; }

.btn-ghost {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  background: var(--surface); color: var(--primary-dark) !important;
  font-weight: 700; font-size: 1.02rem;
  border: 2.5px solid var(--border-strong);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.btn-ghost:hover { border-color: var(--primary); transform: translateY(-2px); text-decoration: none; }

/* ---------- Hero (index) ---------- */
.hero {
  padding: 64px 0 50px;
  background:
    radial-gradient(circle at 12% 18%, rgba(245, 166, 35, 0.14) 0, transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(124, 58, 237, 0.12) 0, transparent 38%),
    radial-gradient(circle at 70% 90%, rgba(225, 45, 124, 0.12) 0, transparent 40%),
    var(--surface);
  border-bottom: 3px solid var(--border);
  overflow: hidden;
}

.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 44px; align-items: center;
}

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

.hero-badge {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--bg-soft); color: var(--primary-dark);
  font-weight: 800; font-size: 0.82rem; letter-spacing: 0.6px;
  text-transform: uppercase; border: 2px solid var(--border-strong);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  line-height: 1.12; letter-spacing: -1px; font-weight: 900;
  margin-bottom: 18px;
}
.hero-title .pop { color: var(--primary); }

.hero-tagline {
  font-size: 1.14rem; color: var(--ink-soft); max-width: 34rem;
  margin-bottom: 26px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-media { min-width: 0; position: relative; }

.hero-img {
  width: 100%; border-radius: var(--radius);
  border: 4px solid var(--surface);
  box-shadow: 0 18px 44px rgba(90, 20, 70, 0.22);
  transform: rotate(1.2deg);
}

.sticker {
  position: absolute; z-index: 2; display: inline-block;
  background: var(--gold); color: #5c3a00; font-weight: 900;
  font-size: 0.86rem; padding: 8px 16px; border-radius: 12px;
  box-shadow: 0 8px 18px rgba(90, 20, 70, 0.25);
  border: 2.5px solid #fff;
  transform: rotate(-6deg);
}
.sticker.st1 { top: -16px; right: -10px; }
.sticker.st2 { bottom: -14px; left: -6px; background: var(--mint); color: #04453d; transform: rotate(4deg); }

/* ---------- Facts strip ---------- */
.facts-strip {
  background: linear-gradient(90deg, var(--primary), var(--violet));
  padding: 22px 0; border-bottom: 3px solid var(--border);
}
.facts-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
  list-style: none;
}
.fact-item { color: #fff; }
.fact-label {
  display: block; font-size: 0.76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px; opacity: 0.85;
  margin-bottom: 2px;
}
.fact-value { font-weight: 800; font-size: 1.02rem; }

/* ---------- Sections ---------- */
.section { padding: 58px 0; }
.section-alt { background: var(--bg-soft); border-top: 3px solid var(--border); border-bottom: 3px solid var(--border); }
.section-divider { margin-top: 56px; }

.section-head { max-width: 760px; margin-bottom: 34px; }
.section-eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.4px; color: var(--primary);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 900;
  letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 12px;
}
.section-sub { color: var(--ink-soft); font-size: 1.03rem; }

/* ---------- Feature cards ---------- */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature-card {
  background: var(--surface); border: 3px solid var(--border-strong);
  border-radius: var(--radius); padding: 26px 24px;
  box-shadow: 0 8px 22px rgba(90, 20, 70, 0.07);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(90, 20, 70, 0.14); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--bg-soft); border: 2.5px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 14px;
}
.feature-title { font-size: 1.13rem; font-weight: 800; margin-bottom: 8px; }
.feature-text { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.gallery-item {
  display: block; border-radius: var(--radius); overflow: hidden;
  border: 3px solid var(--surface); box-shadow: 0 10px 26px rgba(90, 20, 70, 0.14);
  cursor: zoom-in; position: relative;
  background: var(--surface);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.gallery-item:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 16px 36px rgba(90, 20, 70, 0.2); text-decoration: none; }
.gallery-item img { width: 100%; height: 210px; object-fit: cover; }
.gallery-cap {
  display: block; padding: 10px 14px; font-size: 0.9rem;
  font-weight: 700; color: var(--ink); background: var(--surface);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(40, 8, 32, 0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.22s ease, visibility 0.22s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
#lightboxImage {
  max-width: 92vw; max-height: 84vh; border-radius: 12px;
  border: 4px solid #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.5); color: #fff;
  font-size: 1.6rem; font-weight: 900; line-height: 1;
  border-radius: 50%; cursor: pointer; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, 0.32); }
.lb-close { top: 22px; right: 26px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- Quotes ---------- */
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote-card {
  background: var(--surface); border: 3px solid var(--border-strong);
  border-radius: var(--radius); padding: 24px;
  box-shadow: 0 8px 22px rgba(90, 20, 70, 0.07);
  position: relative;
}
.quote-text { font-size: 0.98rem; color: var(--ink); font-style: italic; margin-bottom: 14px; }
.quote-author {
  display: block; font-style: normal; font-weight: 800;
  color: var(--primary-dark); font-size: 0.9rem;
}

/* ---------- Play banner ---------- */
.play-banner {
  background: linear-gradient(90deg, var(--primary), var(--violet));
  border-radius: var(--radius); padding: 40px 44px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; flex-wrap: wrap; color: #fff;
  box-shadow: 0 14px 34px rgba(225, 45, 124, 0.3);
}
.play-banner h2 { font-size: 1.55rem; font-weight: 900; letter-spacing: -0.4px; margin-bottom: 6px; }
.play-banner p { opacity: 0.92; max-width: 36rem; }
.play-banner .btn-primary {
  background: #fff; color: var(--primary-dark) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* ---------- Sub-page hero ---------- */
.hero-subpage {
  padding: 46px 0 40px; background: var(--surface);
  border-bottom: 3px solid var(--border);
  background-image: radial-gradient(circle at 90% 20%, rgba(124, 58, 237, 0.1) 0, transparent 40%),
                    radial-gradient(circle at 10% 80%, rgba(245, 166, 35, 0.12) 0, transparent 36%);
}
.hero-subpage h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 900;
  letter-spacing: -0.8px; line-height: 1.15; margin-bottom: 12px;
}
.hero-subpage .lede { max-width: 46rem; color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Article / prose ---------- */
.article { max-width: 780px; }
.article-center { max-width: 780px; margin: 0 auto 40px; }
.article h2 {
  font-size: 1.45rem; font-weight: 900; letter-spacing: -0.4px;
  margin: 34px 0 12px; color: var(--ink);
}
.article h3 { font-size: 1.16rem; font-weight: 800; margin: 26px 0 8px; }
.article p { margin-bottom: 16px; color: #4c2f47; }
.article ul, .article ol { margin: 0 0 18px 24px; color: #4c2f47; }
.article li { margin-bottom: 7px; }
.article strong { color: var(--ink); }

.content-img { margin: 26px 0; }
.content-img img {
  border-radius: var(--radius); border: 3px solid var(--surface);
  box-shadow: 0 12px 30px rgba(90, 20, 70, 0.16);
}
.content-img figcaption {
  font-size: 0.88rem; color: var(--ink-soft);
  margin-top: 10px; font-style: italic;
}

.img-float-left { float: left; width: 42%; margin: 6px 26px 14px 0; }
.img-float-right { float: right; width: 42%; margin: 6px 0 14px 26px; }

/* ---------- Characters page ---------- */
.char-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.char-card {
  background: var(--surface); border: 3px solid var(--border-strong);
  border-radius: var(--radius); padding: 24px; text-align: center;
  box-shadow: 0 8px 22px rgba(90, 20, 70, 0.07);
  transition: transform 0.16s ease;
}
.char-card:hover { transform: translateY(-5px); }
.char-icon {
  width: 66px; height: 66px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; border: 3px solid var(--border-strong);
  background: var(--bg-soft);
}
.char-name { font-weight: 900; font-size: 1.08rem; margin-bottom: 2px; }
.char-role {
  display: inline-block; font-size: 0.76rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--primary-dark); background: var(--bg-soft);
  padding: 3px 12px; border-radius: 999px; margin-bottom: 10px;
}
.char-text { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- Guide tips ---------- */
.tip-list { list-style: none; counter-reset: tips; }
.tip-card {
  background: var(--surface); border: 3px solid var(--border-strong);
  border-radius: var(--radius); padding: 20px 22px 20px 64px;
  margin-bottom: 16px; position: relative; counter-increment: tips;
  box-shadow: 0 6px 18px rgba(90, 20, 70, 0.06);
}
.tip-card::before {
  content: counter(tips); position: absolute; left: 18px; top: 18px;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(90deg, var(--primary), var(--violet));
  color: #fff; font-weight: 900; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.tip-card strong { display: block; margin-bottom: 4px; font-size: 1.04rem; }
.tip-card p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Tables (system requirements) ---------- */
.table-wrap { overflow-x: auto; margin: 22px 0; }
.sysreq-table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 3px solid var(--border-strong); border-radius: var(--radius);
  overflow: hidden; font-size: 0.95rem;
}
.sysreq-table th, .sysreq-table td {
  padding: 12px 16px; text-align: left; border-bottom: 2px solid var(--border);
}
.sysreq-table th { background: var(--bg-soft); color: var(--primary-dark); font-weight: 800; }
.sysreq-table tr:last-child td { border-bottom: none; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-item {
  background: var(--surface); border: 3px solid var(--border-strong);
  border-radius: var(--radius); margin-bottom: 14px; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-weight: 800; font-size: 1.02rem; position: relative;
  padding-right: 52px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%); width: 28px; height: 28px;
  border-radius: 50%; background: var(--bg-soft); color: var(--primary-dark);
  font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 22px 20px; color: var(--ink-soft); font-size: 0.97rem; }
.faq-item .faq-answer p { margin-bottom: 10px; }

.faq-sysreq { margin-top: 0; }

/* ---------- Ghost wrap (sub-page ending) ---------- */
.ghost-wrap { text-align: center; margin-top: 44px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #e8d3e4; padding: 30px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.footer-copy { font-size: 0.88rem; opacity: 0.85; }
.lang-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.lang-switch a, .lang-switch .lang-link {
  display: inline-block; padding: 5px 13px; border-radius: 999px;
  font-size: 0.84rem; font-weight: 700; color: #f3d9ec;
  border: 2px solid rgba(255, 255, 255, 0.25);
}
.lang-switch a:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.lang-switch a.active, .lang-switch .lang-link.active {
  background: linear-gradient(90deg, var(--primary), var(--violet));
  border-color: transparent; color: #fff;
}

.page-end { clear: both; }

/* ---------- Responsive 768 ---------- */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .hero { padding: 44px 0 38px; }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-media { order: -1; }
  .facts-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .features-grid, .quotes-grid, .char-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .img-float-left, .img-float-right { float: none; width: 100%; margin: 18px 0; }
  .play-banner { padding: 30px 26px; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--surface); border-bottom: 3px solid var(--border);
    box-shadow: 0 14px 30px rgba(90, 20, 70, 0.14);
    display: none; padding: 12px 22px 20px;
  }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { display: block; text-align: center; padding: 12px; }
  .btn-play { margin: 10px 0 0; text-align: center; }
}

/* ---------- Responsive 480 ---------- */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .brand-name { font-size: 1.02rem; }
  .hero-title { font-size: 2rem; }
  .hero-tagline { font-size: 1.02rem; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid, .quotes-grid, .char-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: auto; }
  .section { padding: 44px 0; }
  .play-banner { text-align: center; justify-content: center; }
  .sticker.st1 { right: 4px; }
}
