/* ============================================================
   The Gentlemen — gentlemensgame.app
   Dark "gentleman / speakeasy" theme, mobile-first, no build.
   ============================================================ */

:root {
  --bg:        #0e0d0b;
  --bg-2:      #16130f;
  --panel:     #1c1815;
  --panel-2:   #241f19;
  --line:      #3a3128;
  --gold:      #c9a24b;
  --gold-2:    #e6c877;
  --gold-soft: rgba(201, 162, 75, 0.14);
  --cream:     #f3ead6;
  --text:      #d8cfbe;
  --muted:     #9a8f7c;
  --radius:    14px;
  --maxw:      1120px;
  --shadow:    0 18px 50px rgba(0, 0, 0, 0.55);
  --serif:     "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:      system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--cream); }

h1, h2, h3 { font-family: var(--serif); color: var(--cream); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 600;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 13, 11, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 34px; width: auto; }
.brand span { font-family: var(--serif); color: var(--cream); font-size: 1.15rem; letter-spacing: .04em; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--text); font-size: .92rem; letter-spacing: .03em; }
.nav a:hover { color: var(--gold-2); }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 10px;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #241a06; box-shadow: 0 10px 24px rgba(201,162,75,.28); }
.btn-gold:hover { color: #241a06; }
.btn-ghost { background: var(--panel); color: var(--cream); border-color: var(--line); }
.btn-ghost:hover { color: var(--cream); border-color: var(--gold); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 80% 10%, var(--gold-soft), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  z-index: -2;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 18px; }
.hero h1 .accent { color: var(--gold-2); display: block; }
.hero p.lead { font-size: 1.15rem; color: var(--text); max-width: 30em; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 20px; font-size: .82rem; color: var(--muted); }
.hero-art { position: relative; }
.hero-art img {
  width: 100%; border-radius: 20px; border: 1px solid var(--line);
  box-shadow: var(--shadow); transform: rotate(1.4deg);
}
.hero-art::after {
  content: ""; position: absolute; inset: -18px -18px auto auto; width: 130px; height: 130px;
  background: radial-gradient(circle, var(--gold-soft), transparent 70%); z-index: -1;
}

/* ---------- Section shell ---------- */
.section { padding: 74px 0; }
section[id] { scroll-margin-top: 82px; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--gold); transform: translateY(-4px); }
.feature .ico {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px;
  display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-2);
}
.feature .ico svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Gallery (full character posters, never cropped) ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery img {
  width: 100%; height: auto; display: block; border-radius: 14px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
}
.gallery img:hover { transform: translateY(-6px); border-color: var(--gold); }

/* ---------- Characters ---------- */
.chars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.char {
  background: radial-gradient(120% 90% at 50% 0%, var(--gold-soft), transparent 60%), linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center;
  transition: transform .2s ease, border-color .2s ease;
}
.char:hover { transform: translateY(-4px); border-color: var(--gold); }
.char img { width: 100%; height: auto; display: block; }
.char span { display: block; padding: 12px 6px; font-size: .82rem; color: var(--muted); letter-spacing: .04em; }

/* ---------- Community / CTA ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.social {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: .92rem;
}
.social:hover { border-color: var(--gold); color: var(--cream); }
.social svg { width: 20px; height: 20px; }

.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.cta-band .hero-cta { justify-content: center; margin-top: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0908; border-top: 1px solid var(--line); padding: 48px 0 34px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 32px; width: auto; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a { color: var(--text); font-size: .92rem; }
.footer-legal { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.age-badge { display: inline-block; border: 1px solid var(--gold); color: var(--gold-2); border-radius: 6px; padding: 1px 7px; font-weight: 700; font-size: .78rem; margin-right: 8px; }

/* ============================================================
   Legal (privacy / terms) pages
   ============================================================ */
.legal { padding: 56px 0 80px; }
.legal .doc { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 6px; }
.legal .updated { color: var(--gold); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 34px; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--gold-2); }
.legal h3 { font-size: 1.15rem; margin: 26px 0 10px; color: var(--cream); }
.legal p { margin: 0 0 14px; color: var(--text); }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin-bottom: 8px; color: var(--text); }
.legal a { word-break: break-word; }
.legal .back { display: inline-block; margin-bottom: 26px; color: var(--muted); font-size: .9rem; }
.legal .back:hover { color: var(--gold-2); }
.legal .tbl-wrap { overflow-x: auto; margin: 0 0 20px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.legal-table th, .legal-table td { text-align: left; padding: 11px 14px; border: 1px solid var(--line); vertical-align: top; }
.legal-table thead th { background: var(--panel); color: var(--gold-2); font-family: var(--serif); }
.legal-table tbody td { color: var(--text); }
.legal-table tbody td strong { color: var(--cream); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 460px; margin: 0 auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .chars { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 48px; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .chars { grid-template-columns: repeat(2, 1fr); }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .footer-grid { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero-art img { transform: none; }
}
