/* ============================================================
   Gay Harem — "Haremverse" theme
   Light scheme. Unique identity: warm paper, plum ink,
   hot-pink→orange→violet gradient energy, chunky display type.
   Mobile-first: 768px / 480px breakpoints.
   ============================================================ */

:root {
  --paper: #fdf6ee;
  --paper-2: #f7ecdf;
  --card: #ffffff;
  --ink: #2b1f2e;
  --ink-soft: #5c4a5e;
  --pink: #ff4f9a;
  --orange: #ff9f43;
  --violet: #a55eea;
  --grad: linear-gradient(100deg, #ff4f9a 0%, #ff7a59 45%, #ff9f43 70%, #a55eea 130%);
  --grad-soft: linear-gradient(100deg, rgba(255, 79, 154, 0.12), rgba(165, 94, 234, 0.12));
  --line: #ead9cf;
  --shadow: 0 14px 40px rgba(120, 60, 40, 0.14);
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

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

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

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

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

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.3px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; flex-wrap: wrap; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { background: var(--paper-2); text-decoration: none; color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--grad-soft); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 1.3rem; cursor: pointer; color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.4px;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-play {
  background: var(--grad);
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(255, 79, 154, 0.4);
}
.btn-play::after { content: "▶"; font-size: 0.8rem; }
.btn-ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--violet); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 84px; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(255, 79, 154, 0.16), transparent 60%),
    radial-gradient(500px 260px at 8% 90%, rgba(165, 94, 234, 0.16), transparent 60%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-kicker {
  display: inline-block;
  background: var(--grad-soft);
  color: var(--pink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); line-height: 1.06; letter-spacing: -1px; margin-bottom: 18px; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-tagline { font-size: 1.18rem; color: var(--ink-soft); max-width: 30em; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 36px; padding-top: 22px; border-top: 2px dashed var(--line); }
.hero-facts div strong { display: block; font-size: 1.25rem; }
.hero-facts div span { font-size: 0.85rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 1px; }
.hero-art { position: relative; }
.hero-art figure { position: relative; transform: rotate(1.6deg); }
.hero-art img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 8px solid #fff;
  aspect-ratio: 16 / 7.6;
  object-fit: cover;
  width: 100%;
}
.hero-badge {
  position: absolute;
  top: -18px;
  right: -12px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(255, 79, 154, 0.45);
  transform: rotate(4deg);
  font-size: 0.95rem;
}
.hero-note { margin-top: 16px; font-size: 0.8rem; color: var(--ink-soft); text-align: center; }

/* ---------- sub-page hero ---------- */
.hero-subpage { padding: 52px 0 30px; }
.hero-subpage h1 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -0.5px; margin-bottom: 10px; }
.breadcrumbs { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 10px; }
.breadcrumbs a { color: var(--pink); }

/* ---------- sections ---------- */
section.block { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .kicker { color: var(--pink); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -0.5px; margin: 8px 0 12px; }
.section-head h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head p { color: var(--ink-soft); }

/* ---------- info table ---------- */
.info-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.info-table th, .info-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.info-table th { width: 34%; background: var(--paper-2); font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; font-size: 0.82rem; color: var(--ink-soft); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table td a { font-weight: 700; }
.tag-chip { display: inline-block; background: var(--grad-soft); color: var(--ink); border-radius: 999px; padding: 3px 12px; font-size: 0.85rem; font-weight: 700; margin: 2px 4px 2px 0; }

/* ---------- feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 4px 14px rgba(120, 60, 40, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--pink); }
.feature-card .num {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.feature-card h3 { font-size: 1.22rem; margin: 8px 0 10px; }
.feature-card p { color: var(--ink-soft); font-size: 0.95rem; }
.feature-card .emoji { font-size: 1.9rem; line-height: 1; }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid figure { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.gallery-grid figure:hover { transform: scale(1.03); box-shadow: var(--shadow); }
.gallery-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery-grid figcaption { padding: 10px 14px; font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(30, 18, 34, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 84vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-size: 0.95rem; }

/* ---------- prose / articles ---------- */
.prose { max-width: 780px; }
.prose p { margin-bottom: 18px; color: var(--ink-soft); }
.prose h2 { font-size: 1.55rem; margin: 42px 0 14px; letter-spacing: -0.4px; }
.prose h3 { font-size: 1.2rem; margin: 30px 0 10px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose blockquote { border-left: 5px solid var(--pink); background: var(--card); padding: 18px 22px; border-radius: 0 14px 14px 0; margin: 24px 0; font-style: italic; color: var(--ink); box-shadow: 0 4px 14px rgba(120, 60, 40, 0.08); }
.prose figure { margin: 30px 0; }
.prose figure img { border-radius: var(--radius); box-shadow: var(--shadow); border: 6px solid #fff; }
.prose figcaption { font-size: 0.85rem; color: var(--ink-soft); text-align: center; margin-top: 10px; }
.side-img { float: right; width: min(44%, 340px); margin: 0 0 18px 26px; }
.side-img img { border-radius: var(--radius); box-shadow: var(--shadow); border: 6px solid #fff; }

/* ---------- quotes ---------- */
.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote-card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 4px 14px rgba(120, 60, 40, 0.06); }
.quote-card p { font-style: italic; color: var(--ink); margin-bottom: 14px; }
.quote-card cite { display: block; font-style: normal; font-weight: 800; font-size: 0.9rem; color: var(--pink); }

/* ---------- banner (index CTA) ---------- */
.banner-play {
  background: var(--grad-soft);
  border: 2px dashed var(--pink);
  border-radius: var(--radius);
  padding: 44px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.banner-play h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; letter-spacing: -0.4px; }
.banner-play p { color: var(--ink-soft); max-width: 46em; margin: 0 auto 22px; }

/* ---------- characters ---------- */
.char-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.char-card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 14px rgba(120, 60, 40, 0.06); }
.char-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.char-card .char-body { padding: 20px 22px; }
.char-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.char-card p { color: var(--ink-soft); font-size: 0.95rem; }
.rarity { display: inline-block; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.rarity.epic { background: rgba(165, 94, 234, 0.16); color: #7b3fc4; }
.rarity.mythic { background: rgba(255, 79, 154, 0.16); color: #d81b78; }
.rarity.rare { background: rgba(255, 159, 67, 0.18); color: #c26a12; }
.rarity.common { background: rgba(92, 74, 94, 0.12); color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-item { background: var(--card); border: 2px solid var(--line); 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.05rem;
  position: relative;
  padding-right: 56px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  color: var(--pink);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.2rem;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { border-top: 2px solid var(--line); background: var(--paper-2); padding: 40px 0 32px; margin-top: 40px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.lang-switch { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; list-style: none; }
.lang-switch a {
  display: inline-block;
  padding: 5px 13px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
}
.lang-switch a:hover { border-color: var(--pink); color: var(--pink); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--grad); color: #fff; border-color: transparent; }
.copyright { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .feature-grid, .quotes-grid, .char-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 4%;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 12px; }
  .hero { padding: 44px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; }
  .hero-badge { top: -14px; right: 6px; }
  section.block { padding: 48px 0; }
  .side-img { float: none; width: 100%; margin: 0 0 18px; }
  .prose h2 { margin-top: 34px; }
}

@media (max-width: 480px) {
  .feature-grid, .quotes-grid, .char-grid, .gallery-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.05rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .info-table th, .info-table td { padding: 10px 12px; font-size: 0.9rem; }
  .banner-play { padding: 34px 20px; }
  .lang-switch a { padding: 4px 10px; font-size: 0.78rem; }
  .site-footer { padding: 32px 0 26px; }
}
