/* ============================================================
   Negligee — boutique visual novel promo site
   Light "lingerie boutique" theme: cream, blush, plum, gold
   ============================================================ */

:root {
  --bg: #fdf7f2;
  --bg-alt: #f8ebf1;
  --bg-deep: #f3e0e9;
  --white: #ffffff;
  --ink: #46323c;
  --plum: #5e2b46;
  --berry: #b0436a;
  --rose: #d98ba6;
  --gold: #b98a2f;
  --gold-soft: #e4c98a;
  --line: #ecd9e0;
  --shadow: 0 14px 40px rgba(94, 43, 70, 0.10);
  --shadow-sm: 0 6px 18px rgba(94, 43, 70, 0.08);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 1.02rem;
}

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

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

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

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253, 247, 242, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 0;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--plum);
  font-family: var(--serif); font-size: 1.45rem; font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img { width: 42px; height: 42px; border-radius: 50%; }

.site-nav { display: flex; gap: 6px; margin-left: auto; }

.site-nav a {
  color: var(--ink); text-decoration: none;
  padding: 8px 13px; border-radius: 999px;
  font-size: 0.96rem; font-weight: 600;
}

.site-nav a:hover { background: var(--bg-alt); color: var(--berry); }

.btn-play {
  display: inline-block;
  background: linear-gradient(135deg, var(--berry), var(--plum));
  color: var(--white);
  padding: 11px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn-play:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 40px; padding: 8px;
  border-radius: 8px;
}

.nav-toggle span {
  display: block; height: 2px; width: 24px;
  background: var(--plum); margin: 5px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero (index) ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(217, 139, 166, 0.18), transparent 42%),
    radial-gradient(ellipse at 88% 90%, rgba(185, 138, 47, 0.14), transparent 46%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(176, 67, 106, 0.16) 1px, transparent 1.4px);
  background-size: 26px 26px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  align-items: center; gap: 48px;
  padding: 72px 0 64px;
}

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

.hero-kicker {
  display: inline-block;
  color: var(--berry);
  font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px dashed var(--rose);
  padding: 5px 14px; border-radius: 999px;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--serif);
  font-size: 3.1rem; line-height: 1.12;
  color: var(--plum);
  margin-bottom: 18px;
}

.hero-title .accent { color: var(--berry); font-style: italic; }

.hero-tagline {
  font-size: 1.15rem; color: #5d4a54;
  max-width: 34em; margin-bottom: 26px;
}

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

.btn-ghost {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--berry);
  color: var(--berry);
  padding: 10px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700; font-size: 0.98rem;
  transition: background 0.18s ease, color 0.18s ease;
}

.btn-ghost:hover { background: var(--berry); color: var(--white); }

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

.hero-media::before {
  content: "";
  position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid var(--gold-soft);
  border-radius: 22px;
}

.hero-img {
  position: relative;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 6px solid var(--white);
}

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

.page-hero {
  background:
    radial-gradient(ellipse at 85% 20%, rgba(185, 138, 47, 0.12), transparent 40%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--line);
  padding: 56px 0 44px;
  text-align: center;
}

.page-hero-inner { max-width: 780px; margin: 0 auto; }

.page-title {
  font-family: var(--serif);
  font-size: 2.6rem; color: var(--plum);
  margin-bottom: 12px;
}

.page-sub {
  font-size: 1.08rem; color: #5d4a54;
  max-width: 40em; margin: 0 auto;
}

/* ---------- sections ---------- */

.section { padding: 64px 0; }

.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-divider { border-top: 1px dashed var(--rose); margin-top: 8px; }

.section-title {
  font-family: var(--serif);
  font-size: 2rem; color: var(--plum);
  text-align: center;
  margin-bottom: 10px;
}

.section-title .accent { color: var(--berry); font-style: italic; }

.section-desc {
  text-align: center; color: #5d4a54;
  max-width: 46em; margin: 0 auto 40px;
}

.section-desc-left { text-align: left; margin-left: 0; margin-right: 0; }

/* ---------- facts strip ---------- */

.facts { border-bottom: 1px solid var(--line); background: var(--white); }

.facts-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 14px; padding: 26px 0;
}

.fact {
  text-align: center;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}

.fact-label {
  display: block;
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--berry); margin-bottom: 5px;
}

.fact-value { font-weight: 700; color: var(--plum); font-size: 0.98rem; }

/* ---------- feature cards ---------- */

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 8px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.feature-card::before {
  content: "";
  position: absolute; top: 12px; right: 14px;
  width: 22px; height: 22px;
  border-top: 2px solid var(--gold-soft);
  border-right: 2px solid var(--gold-soft);
  border-radius: 0 6px 0 0;
}

.feature-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-family: var(--serif);
  color: var(--plum); font-size: 1.22rem;
  margin-bottom: 8px;
}

.feature-card p { font-size: 0.97rem; color: #5d4a54; }

/* ---------- about (index) ---------- */

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 44px; align-items: center;
}

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

.about-copy h2 {
  font-family: var(--serif); color: var(--plum);
  font-size: 1.9rem; margin-bottom: 14px;
}

.about-copy p { margin-bottom: 14px; }

.about-img-wrap { min-width: 0; position: relative; }

.about-img-wrap img {
  border-radius: 18px;
  border: 6px solid var(--white);
  box-shadow: var(--shadow);
}

.about-img-wrap::after {
  content: "";
  position: absolute; inset: -12px 12px 12px -12px;
  border: 1px dashed var(--rose);
  border-radius: 20px; z-index: -1;
}

/* ---------- gallery ---------- */

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

.gallery-item {
  display: block; position: relative;
  border-radius: 14px; overflow: hidden;
  cursor: zoom-in;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.gallery-item img { transition: transform 0.3s ease; }

.gallery-item:hover img { transform: scale(1.05); }

.gallery-cap {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(94, 43, 70, 0.82));
  color: var(--white);
  font-size: 0.82rem; padding: 22px 12px 8px;
}

/* ---------- quotes ---------- */

.quotes-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.quote::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 3.4rem; line-height: 1;
  color: var(--gold-soft);
  position: absolute; top: 8px; left: 18px;
}

.quote-text {
  font-style: italic; color: #5d4a54;
  margin: 18px 0 12px; font-size: 0.98rem;
}

.quote-author {
  display: block;
  font-weight: 700; color: var(--plum);
  font-size: 0.9rem; font-style: normal;
}

/* ---------- play banner ---------- */

.play-banner {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.25), transparent 45%),
    linear-gradient(135deg, var(--berry), var(--plum));
  border-radius: 22px;
  color: var(--white);
  text-align: center;
  padding: 46px 32px;
  box-shadow: var(--shadow);
}

.play-banner h2 {
  font-family: var(--serif);
  font-size: 2rem; margin-bottom: 10px;
}

.play-banner p { max-width: 38em; margin: 0 auto 22px; opacity: 0.94; }

.btn-banner {
  display: inline-block;
  background: var(--white);
  color: var(--plum);
  padding: 13px 30px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800; font-size: 1.02rem;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease;
}

.btn-banner:hover { transform: translateY(-2px); }

/* ---------- article pages ---------- */

.article { max-width: 780px; margin: 0 auto 40px; }

.article-center { max-width: 780px; margin: 0 auto 40px; }

.article h2 {
  font-family: var(--serif); color: var(--plum);
  font-size: 1.65rem; margin: 34px 0 12px;
}

.article h3 {
  font-family: var(--serif); color: var(--berry);
  font-size: 1.25rem; margin: 24px 0 8px;
}

.article p { margin-bottom: 14px; }

.article ul { margin: 0 0 16px 22px; }

.article li { margin-bottom: 8px; }

.figure { margin: 26px 0; }

.figure img {
  border-radius: 16px;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.figure figcaption {
  font-size: 0.85rem; color: #7a6672;
  text-align: center; margin-top: 8px;
}

.img-right { float: right; width: 46%; margin: 6px 0 16px 22px; }
.img-left { float: left; width: 46%; margin: 6px 22px 16px 0; }

.page-end {
  border-top: 1px dashed var(--rose);
  margin-top: 10px; padding-top: 26px;
}

.ghost-wrap { text-align: center; margin-top: 34px; }

/* ---------- characters ---------- */

.chars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.char-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.char-head { padding: 22px 22px 0; }

.char-avatar {
  width: 74px; height: 74px;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.5rem; color: var(--white);
}

.avatar-grad-1 { background: linear-gradient(135deg, #b0436a, #5e2b46); }
.avatar-grad-2 { background: linear-gradient(135deg, #5f8fb4, #34506e); }
.avatar-grad-3 { background: linear-gradient(135deg, #6f9e6f, #3c6b47); }
.avatar-grad-4 { background: linear-gradient(135deg, #d98ba6, #a0435f); }
.avatar-grad-5 { background: linear-gradient(135deg, #b98a2f, #7a5a14); }
.avatar-grad-6 { background: linear-gradient(135deg, #8b6fa8, #553a72); }

.char-name {
  font-family: var(--serif); color: var(--plum);
  font-size: 1.35rem;
}

.char-role {
  display: inline-block;
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--berry);
  border: 1px solid var(--rose);
  border-radius: 999px;
  padding: 3px 12px;
  margin: 6px 0 10px;
}

.char-desc { padding: 0 22px 22px; font-size: 0.96rem; color: #5d4a54; }

/* ---------- routes ---------- */

.route-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--berry);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.route-block h3 {
  font-family: var(--serif); color: var(--plum);
  font-size: 1.3rem; margin-bottom: 8px;
}

.route-block p { font-size: 0.98rem; color: #5d4a54; }

.route-table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; }

.route-table th, .route-table td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  font-size: 0.95rem;
}

.route-table th {
  background: var(--bg-alt);
  color: var(--plum);
  font-weight: 700;
}

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

.tips-list { margin: 10px 0 22px 20px; }

.tips-list li { margin-bottom: 10px; }

/* ---------- faq ---------- */

.faq-list { max-width: 800px; margin: 0 auto 26px; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700; color: var(--plum);
  font-family: var(--serif); font-size: 1.08rem;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--berry);
  font-size: 1.3rem; font-weight: 700;
}

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

.faq-item p { padding: 0 20px 18px; font-size: 0.97rem; color: #5d4a54; }

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

.sysreq-table { width: 100%; border-collapse: collapse; margin-top: 14px; }

.sysreq-table th, .sysreq-table td {
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-align: left;
  font-size: 0.93rem;
}

.sysreq-table th { background: var(--bg-alt); color: var(--plum); }

/* ---------- footer ---------- */

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 30px 0 40px;
  text-align: center;
}

.footer-copy {
  font-size: 0.88rem; color: #7a6672;
  margin-bottom: 16px;
}

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

.lang-switch .lang-link {
  color: var(--plum);
  text-decoration: none;
  font-size: 0.88rem; font-weight: 600;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.lang-switch .lang-link:hover { border-color: var(--berry); color: var(--berry); }

.lang-switch a.active, .lang-switch .lang-link.active {
  background: var(--plum);
  border-color: var(--plum);
  color: var(--white);
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(40, 18, 30, 0.94);
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 88vw; max-height: 80vh;
  border-radius: 10px;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.14);
  border: 0; color: var(--white);
  cursor: pointer;
  font-size: 1.5rem; line-height: 1;
  border-radius: 50%;
  width: 46px; height: 46px;
  transition: background 0.15s ease;
}

.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255, 255, 255, 0.3); }

.lb-close { top: 22px; right: 26px; }

.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }

.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .feature-grid, .chars-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes-grid { grid-template-columns: 1fr; }
  .facts-grid { grid-template-columns: repeat(3, 1fr); }
}

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

  .header-inner { flex-wrap: wrap; }

  .nav-toggle { display: block; order: 3; margin-left: auto; }

  .site-nav {
    display: none;
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0 14px;
  }

  .site-nav.open { display: flex; }

  .site-nav a { padding: 12px 16px; }

  .btn-play { order: 2; margin-left: auto; }

  .hero-inner { grid-template-columns: 1fr; padding: 48px 0 40px; gap: 30px; }

  .hero-title { font-size: 2.4rem; }

  .hero-media { order: -1; }

  .hero-media::before { inset: 10px -10px -10px 10px; }

  .page-title { font-size: 2.1rem; }

  .about-grid { grid-template-columns: 1fr; gap: 28px; }

  .section { padding: 50px 0; }

  .section-title { font-size: 1.7rem; }

  .img-right, .img-left { float: none; width: 100%; margin: 8px 0 14px; }

  .facts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .feature-grid, .chars-grid, .gallery-grid { grid-template-columns: 1fr; }

  .facts-grid { grid-template-columns: 1fr; }

  .hero-title { font-size: 1.95rem; }

  .hero-cta { flex-direction: column; align-items: stretch; }

  .hero-cta .btn-play, .hero-cta .btn-ghost { text-align: center; }

  .header-inner { gap: 10px; }

  .brand { font-size: 1.2rem; }

  .brand img { width: 36px; height: 36px; }

  .btn-play { padding: 10px 18px; font-size: 0.9rem; }

  .play-banner { padding: 34px 20px; }

  .play-banner h2 { font-size: 1.6rem; }

  .route-table th, .route-table td { padding: 8px; font-size: 0.85rem; }

  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: 12px; right: 12px; }
}
