/* ============================================================
   CuntWars — promotional site theme
   Light "card deck" fantasy theme: parchment, crimson, gold.
   Zero inline styles; all styling lives here.
   ============================================================ */

:root {
  --bg: #faf6ef;
  --surface: #ffffff;
  --ink: #2b2420;
  --muted: #6f6256;
  --crimson: #a31621;
  --crimson-dark: #7d0f18;
  --gold: #c9971c;
  --gold-soft: #f3e3b8;
  --line: #e6dcc8;
  --shadow: 0 10px 30px rgba(43, 36, 32, 0.08);
  --radius: 12px;
  --font-display: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

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

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

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

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(43, 36, 32, 0.06);
}

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

.brand { display: inline-flex; align-items: center; }

.brand-logo { height: 42px; width: auto; }

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

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

.nav-link {
  display: inline-block; padding: 8px 12px; border-radius: 8px;
  color: var(--ink); font-weight: 600; font-size: 0.95rem;
}

.nav-link:hover { background: var(--gold-soft); text-decoration: none; color: var(--crimson-dark); }

.nav-link.active { color: var(--crimson); }

.btn-play {
  display: inline-block; padding: 11px 26px; border-radius: 999px;
  background: linear-gradient(180deg, var(--crimson) 0%, var(--crimson-dark) 100%);
  color: #fff; font-weight: 700; font-size: 0.98rem; letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(163, 22, 33, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-play:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(163, 22, 33, 0.4); text-decoration: none; color: #fff; }

.btn-ghost {
  display: inline-block; padding: 11px 26px; border-radius: 999px;
  border: 2px solid var(--gold); color: var(--crimson-dark);
  font-weight: 700; font-size: 0.98rem;
}

.btn-ghost:hover { background: var(--gold-soft); text-decoration: none; }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--gold);
  border-radius: 8px; width: 44px; height: 40px; cursor: pointer;
  position: relative;
}

.nav-toggle .bar {
  position: absolute; left: 9px; right: 9px; height: 3px;
  background: var(--crimson-dark); border-radius: 2px; transition: 0.2s ease;
}

.nav-toggle .bar:nth-child(1) { top: 10px; }
.nav-toggle .bar:nth-child(2) { top: 18px; }
.nav-toggle .bar:nth-child(3) { top: 26px; }

/* ---------- Hero (index) ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(201, 151, 28, 0.16), transparent 45%),
    linear-gradient(180deg, #fdf9f0 0%, var(--bg) 100%);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
  align-items: center;
}

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

.hero-eyebrow {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  background: var(--gold-soft); color: var(--crimson-dark);
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display); font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.12; color: var(--ink); margin-bottom: 16px;
}

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

.hero-tagline {
  font-size: 1.12rem; color: var(--muted); max-width: 34em;
  margin-bottom: 28px;
}

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

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

.hero-img {
  width: 100%; max-height: 620px; object-fit: cover; object-position: top;
  border-radius: var(--radius); border: 6px solid #fff;
  box-shadow: var(--shadow);
}

/* ---------- Sub-page hero band ---------- */
.hero-subpage {
  background:
    linear-gradient(180deg, rgba(201, 151, 28, 0.14), transparent 70%),
    var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 44px 0 36px;
}

.hero-subpage h1 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  color: var(--ink); margin-bottom: 10px;
}

.sub-lead { color: var(--muted); font-size: 1.05rem; max-width: 46em; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }

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

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

.section-title {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--ink); margin-bottom: 12px;
}

.section-title .pip { color: var(--gold); }

.section-sub { color: var(--muted); max-width: 44em; margin-bottom: 34px; }

.article { max-width: 760px; }

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

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

.lead { font-size: 1.08rem; color: var(--ink); }

.content-img {
  margin: 26px 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow);
}

.content-img img { border-radius: 8px; }

.content-img figcaption {
  padding: 10px 6px 4px; font-size: 0.88rem; color: var(--muted);
  text-align: center; font-style: italic;
}

/* ---------- Facts ---------- */
.facts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-bottom: 8px;
}

.fact-card {
  background: var(--surface); border: 1px solid var(--line);
  border-top: 4px solid var(--gold); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow);
}

.fact-label {
  display: block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 6px;
}

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

/* ---------- Feature cards ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px 22px;
  box-shadow: var(--shadow); overflow: hidden;
}

.feature-card::before {
  content: "\25C6"; position: absolute; top: 10px; right: 14px;
  color: var(--gold-soft); font-size: 1.6rem;
}

.feature-card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--crimson));
}

.feature-title { font-family: var(--font-display); font-size: 1.18rem; color: var(--crimson-dark); 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 {
  display: block; position: relative; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--surface); cursor: zoom-in;
}

.gallery-item img { transition: transform 0.3s ease; aspect-ratio: 16 / 10; object-fit: cover; }

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

.gallery-item:hover { text-decoration: none; }

.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px;
  background: linear-gradient(transparent, rgba(43, 36, 32, 0.82));
  color: #fff; font-size: 0.88rem; font-weight: 600;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center;
  background: rgba(20, 14, 10, 0.92); padding: 32px;
}

.lightbox.open { display: flex; }

.lb-image {
  max-width: min(1000px, 92vw); max-height: 82vh; border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lb-btn {
  position: absolute; background: rgba(255, 255, 255, 0.14); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 50%;
  width: 46px; height: 46px; font-size: 1.3rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}

.lb-btn:hover { background: rgba(255, 255, 255, 0.3); }

.lb-close { top: 18px; right: 18px; }

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

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

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

.quote-card {
  background: var(--surface); border-left: 4px solid var(--crimson);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 22px;
  box-shadow: var(--shadow);
}

.quote-text { font-style: italic; color: var(--ink); margin-bottom: 14px; }

.quote-author { display: block; font-size: 0.86rem; font-weight: 700; color: var(--gold); }

/* ---------- Play banner ---------- */
.play-banner {
  background: linear-gradient(120deg, var(--crimson-dark) 0%, var(--crimson) 55%, #c23a22 100%);
  border-radius: 16px; padding: 42px 40px; color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap; box-shadow: 0 14px 34px rgba(163, 22, 33, 0.35);
}

.banner-title { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 6px; }

.banner-text { opacity: 0.92; max-width: 34em; }

.banner-btn { background: #fff; color: var(--crimson-dark); }
.banner-btn:hover { background: var(--gold-soft); color: var(--crimson-dark); }

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

.char-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}

.char-art { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--gold-soft); }

.char-body { padding: 16px 18px 20px; }

.char-name { font-family: var(--font-display); font-size: 1.12rem; color: var(--crimson-dark); margin-bottom: 2px; }

.char-family { display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }

.char-desc { color: var(--muted); font-size: 0.93rem; }

/* ---------- Tips / lists ---------- */
.tips-list { list-style: none; counter-reset: tip; }

.tip-item {
  counter-increment: tip; position: relative;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 22px 18px 64px; margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.tip-item::before {
  content: counter(tip, decimal-leading-zero);
  position: absolute; left: 18px; top: 18px; font-family: var(--font-display);
  font-size: 1.3rem; color: var(--gold); font-weight: 700;
}

.tip-title { font-weight: 700; color: var(--crimson-dark); margin-bottom: 4px; }

.tip-text { color: var(--muted); font-size: 0.96rem; }

/* ---------- Mini cards (2-col) ---------- */
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.mini-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}

.mini-title { font-family: var(--font-display); color: var(--crimson-dark); margin-bottom: 8px; }

.mini-text { color: var(--muted); font-size: 0.96rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; }

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

.faq-question {
  padding: 16px 20px; font-weight: 700; color: var(--ink); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; gap: 12px;
  align-items: center;
}

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

.faq-question::after { content: "+"; color: var(--gold); font-size: 1.4rem; line-height: 1; }

.faq-item[open] .faq-question::after { content: "\2013"; }

.faq-answer { padding: 0 20px 18px; color: var(--muted); }

.table-wrap { overflow-x: auto; margin-bottom: 8px; }

.sysreq-table { width: 100%; border-collapse: collapse; background: var(--surface); }

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

.sysreq-table th { background: var(--gold-soft); color: var(--crimson-dark); font-weight: 700; }

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

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

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface); border-top: 3px solid var(--gold);
  padding: 26px 0; margin-top: 40px;
}

.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

.footer-copy { color: var(--muted); font-size: 0.9rem; }

.lang-switch { display: flex; gap: 6px; flex-wrap: wrap; }

.lang-link {
  padding: 4px 10px; border-radius: 999px; font-size: 0.84rem;
  color: var(--muted); border: 1px solid var(--line);
}

.lang-link:hover { border-color: var(--gold); color: var(--crimson-dark); text-decoration: none; }

.lang-switch a.active, .lang-switch .lang-link.active { background: var(--crimson); color: #fff; border-color: var(--crimson); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .site-nav {
    flex-basis: 100%; display: none; flex-direction: column; align-items: flex-start;
    gap: 10px; padding: 10px 0 6px;
  }

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

  .nav-links { flex-direction: column; align-items: flex-start; width: 100%; }

  .nav-link { width: 100%; }

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

  .hero { padding: 40px 0 36px; }

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

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

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

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

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

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

  .section { padding: 44px 0; }

  .play-banner { padding: 30px 24px; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }

  .container { padding: 0 16px; }

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

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

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

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

  .footer-inner { flex-direction: column; align-items: flex-start; }

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

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