/* ============================================================
   Rise of Eros — "Temple of Love" theme
   Ivory marble, antique rose, gold leaf. Light scheme.
   Unique design: arch frames, serif display, ornamented cards.
   ============================================================ */

:root {
  --bg: #fbf4ec;
  --bg-alt: #f3e7d9;
  --surface: #fffdfa;
  --ink: #3a2a2e;
  --muted: #7d6a70;
  --rose: #b23a48;
  --rose-dark: #8e2b37;
  --gold: #c08a3e;
  --gold-soft: #e9d2a4;
  --line: #e9d8cb;
  --shadow: 0 18px 44px rgba(122, 74, 62, 0.14);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--rose-dark); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--rose-dark); color: #fff;
  padding: 10px 18px; z-index: 200; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

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

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 250, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--gold-soft); }
.brand-name {
  font-family: var(--serif); font-weight: 700; font-size: 1.45rem;
  letter-spacing: 0.04em; color: var(--ink);
}
.brand-name span { color: var(--rose); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; cursor: pointer;
}
.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-burger { display: none; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.nav-menu { list-style: none; display: flex; align-items: center; gap: 6px; }
.nav-menu a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--ink); font-weight: 400; font-size: 0.95rem;
}
.nav-menu a:hover { color: var(--rose-dark); background: var(--bg-alt); }
.nav-menu a.active { color: var(--rose-dark); background: var(--bg-alt); font-weight: 500; }

.btn-play {
  display: inline-block; background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: #fff; padding: 11px 26px; border-radius: 999px;
  font-weight: 500; letter-spacing: 0.04em; font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(178, 58, 72, 0.35);
  border: none; cursor: pointer;
}
.btn-play:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(178, 58, 72, 0.42); }

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

.btn {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  font-family: var(--sans); font-weight: 500; font-size: 0.98rem;
  letter-spacing: 0.03em; cursor: pointer; border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  color: #fff; box-shadow: 0 10px 26px rgba(178, 58, 72, 0.35);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--rose-dark);
  border-color: var(--rose); 
}
.btn-ghost:hover { background: rgba(178, 58, 72, 0.08); transform: translateY(-2px); }

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

.hero { padding: 64px 0 40px; }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
}
.hero-copy { min-width: 0; }
.hero-kicker {
  display: inline-block; font-size: 0.82rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--gold-soft); border-radius: 999px;
  padding: 6px 16px; margin-bottom: 20px; background: var(--surface);
}
.hero-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4.1rem); line-height: 1.05;
  color: var(--ink); margin-bottom: 18px;
}
.hero-title em { font-style: italic; color: var(--rose); }
.hero-ornament { margin: 0 0 18px; color: var(--gold); }
.hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--rose-dark); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
}
.hero-media { position: relative; }
.hero-frame {
  position: relative; padding: 8px; border-radius: 200px 200px 22px 22px;
  background: linear-gradient(160deg, var(--gold-soft), var(--gold) 45%, var(--rose));
  box-shadow: var(--shadow);
}
.hero-frame img {
  border-radius: 192px 192px 16px 16px;
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%;
}
.hero-media::after {
  content: ""; position: absolute; inset: -14px -14px auto auto; z-index: -1;
  width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 207, 159, 0.75), transparent 70%);
}

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

.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-kicker {
  font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.section-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--ink);
  margin-bottom: 12px;
}
.section-sub { color: var(--muted); font-size: 1.02rem; }

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

.facts-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.fact-card {
  background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--gold); border-radius: 14px;
  padding: 18px 16px; text-align: center;
}
.fact-label {
  display: block; font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.fact-value { font-family: var(--serif); font-weight: 600; font-size: 1.14rem; color: var(--ink); }

/* ---------- Features ---------- */

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature-card {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 26px 26px; box-shadow: 0 6px 18px rgba(122, 74, 62, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 26px; right: 26px;
  height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.feature-num {
  font-family: var(--serif); font-weight: 700; font-size: 1.5rem;
  color: var(--gold); display: block; margin-bottom: 8px;
}
.feature-title { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; margin-bottom: 8px; }
.feature-text { color: var(--muted); font-size: 0.96rem; }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.gallery-item { cursor: zoom-in; }
.gallery-cell {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden; cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.gallery-cell:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow); }
.gallery-cell img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery-cell figcaption {
  padding: 10px 14px; font-size: 0.85rem; color: var(--muted);
  border-top: 1px solid var(--line);
}

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

.quotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px 24px; position: relative;
}
.quote-card::after {
  content: "\201D"; position: absolute; top: 6px; right: 18px;
  font-family: var(--serif); font-size: 4rem; color: var(--gold-soft); line-height: 1;
}
.quote-card blockquote { font-family: var(--serif); font-size: 1.12rem; font-style: italic; color: var(--ink); margin-bottom: 14px; }
.quote-author { display: block; font-style: normal; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }

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

.play-banner {
  background: linear-gradient(135deg, #7d2230, var(--rose-dark) 55%, #a02f3c);
  border-radius: 26px; padding: 46px 40px; text-align: center;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.play-banner::before {
  content: ""; position: absolute; top: -60px; right: -40px; width: 220px; height: 220px;
  border-radius: 50%; border: 30px solid rgba(233, 210, 164, 0.16);
}
.play-banner h2 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #fff; margin-bottom: 10px;
}
.play-banner p { color: rgba(255, 255, 255, 0.85); max-width: 40em; margin: 0 auto 26px; }
.play-banner .btn-primary { background: #fff; color: var(--rose-dark); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
.play-banner .btn-primary:hover { color: var(--rose-dark); }

/* ---------- Sub-page hero ---------- */

.page-hero { padding: 44px 0 8px; }
.crumbs {
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--rose-dark); }
.page-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.08;
  margin-bottom: 14px;
}
.page-lead { font-size: 1.1rem; color: var(--muted); max-width: 42em; }
.page-ornament { margin: 18px 0 0; color: var(--gold); }

/* ---------- Article / content ---------- */

.article { max-width: 760px; }
.article-center { max-width: 760px; margin: 0 auto 40px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.article h2 {
  font-family: var(--serif); font-weight: 700; font-size: 1.7rem;
  color: var(--ink); margin: 40px 0 12px; padding-left: 16px;
  border-left: 4px solid var(--gold);
}
.article h3 { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--rose-dark); margin: 26px 0 8px; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 18px 22px; }
.article li { margin-bottom: 8px; }
.article strong { font-weight: 500; color: var(--ink); }

.figure {
  margin: 10px 0 26px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  box-shadow: 0 8px 20px rgba(122, 74, 62, 0.08);
}
.figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; cursor: zoom-in; }
.figure figcaption {
  padding: 10px 16px; font-size: 0.88rem; color: var(--muted);
  border-top: 1px solid var(--line); font-style: italic;
}

.content-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.content-grid .figure { margin-top: 6px; }

/* ---------- Cards (characters / guide) ---------- */

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px; position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; margin-bottom: 6px; }
.card .card-role {
  display: inline-block; font-size: 0.74rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--gold-soft); border-radius: 999px;
  padding: 3px 12px; margin-bottom: 12px;
}
.card p { color: var(--muted); font-size: 0.96rem; }

.tip-card { border-left: 4px solid var(--rose); }
.tip-num { font-family: var(--serif); font-weight: 700; color: var(--gold); font-size: 1.1rem; margin-right: 8px; }

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

.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; margin-bottom: 12px; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-family: var(--serif); font-weight: 700; font-size: 1.14rem;
  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%); color: var(--rose);
  font-family: var(--sans); font-weight: 500; font-size: 1.4rem;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--line); }
.faq-item .faq-a { padding: 16px 22px 20px; color: var(--muted); }

.table-wrap { max-width: 820px; margin: 30px auto 0; overflow-x: auto; }
.sysreq { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 14px; overflow: hidden; }
.sysreq th, .sysreq td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.sysreq th { background: var(--bg-alt); font-family: var(--serif); font-size: 1.02rem; color: var(--ink); letter-spacing: 0.03em; }
.sysreq tr:last-child td { border-bottom: none; }

/* ---------- Ghost CTA (sub-page ending) ---------- */

.ghost-wrap { text-align: center; margin: 44px 0 10px; }

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

.site-footer {
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 34px 0 40px; margin-top: 40px;
}
.footer-inner { text-align: center; }
.footer-copy { color: var(--muted); font-size: 0.88rem; margin-bottom: 18px; }
.lang-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lang-switch a {
  font-size: 0.82rem; letter-spacing: 0.04em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px;
}
.lang-switch a:hover { color: var(--rose-dark); border-color: var(--rose); }
.lang-switch a.active { background: var(--rose-dark); color: #fff; border-color: var(--rose-dark); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: flex;
  align-items: center; justify-content: center;
  background: rgba(30, 16, 20, 0.92); opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lb-figure { max-width: min(1080px, 92vw); max-height: 88vh; text-align: center; }
#lightboxImage {
  max-width: 92vw; max-height: 82vh; width: auto; height: auto;
  border-radius: 12px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  margin: 0 auto;
}
.lb-figure figcaption { color: rgba(255, 255, 255, 0.8); margin-top: 14px; font-size: 0.95rem; font-style: italic; }
.lb-close, .lb-nav {
  position: absolute; background: rgba(255, 255, 255, 0.12);
  color: #fff; border: none; border-radius: 50%;
  cursor: pointer; font-size: 1.5rem; line-height: 1;
  width: 48px; height: 48px; transition: background 0.2s ease;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, 0.28); }
.lb-close { top: 22px; right: 26px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }

/* ---------- Responsive 768 ---------- */

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 4%; display: none;
  }
  .site-nav.open { display: flex; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-menu a { border-radius: 10px; padding: 12px 16px; }
  .site-nav .btn-play { margin: 10px 0 14px; text-align: center; }

  .hero { padding: 44px 0 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { max-width: 520px; margin: 0 auto; }

  .facts-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .quotes-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; gap: 20px; }
  .card-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .play-banner { padding: 38px 24px; }
}

/* ---------- Responsive 480 ---------- */

@media (max-width: 480px) {
  .brand-name { font-size: 1.2rem; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-title { font-size: 2.3rem; }
  .section-title { font-size: 1.7rem; }
  .page-title { font-size: 2rem; }
  .play-banner h2 { font-size: 1.6rem; }
  .article h2 { font-size: 1.45rem; }
  .lb-nav { width: 40px; height: 40px; font-size: 1.2rem; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: 12px; right: 14px; }
}
