/* ============================================================
   BLACK SCREEN OPERATIONS — Option 3: Grimdark
   Gothic near-black, blood crimson + aged gold. For the fans
   of a certain grim, dark, far future.
   ============================================================ */

:root {
  --bg: #0b0a09;
  --bg-alt: #121009;
  --panel: #171410;
  --line: #322a1c;
  --text: #e6ddc9;
  --text-dim: #a89d85;
  --gold: #c9a227;
  --gold-dim: #8a7220;
  --crimson: #b3242c;
  --crimson-bright: #d8434b;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .btn { font-family: var(--font-display); }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.container-narrow { width: min(780px, 100% - 2.5rem); }

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

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--gold); color: #0b0a09;
  padding: 0.5rem 1rem; z-index: 100; font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

a { color: var(--gold); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--crimson-bright);
  outline-offset: 3px;
}

/* ---------- Ornamental divider ---------- */
.ornament {
  display: flex; align-items: center; gap: 1rem;
  color: var(--gold); justify-content: center;
  margin: 0.4rem auto 2rem; max-width: 420px;
  font-size: 0.95rem;
}
.ornament span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dim)); }
.ornament span:last-child { background: linear-gradient(90deg, var(--gold-dim), transparent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 10, 9, 0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 4.2rem; gap: 1rem;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: var(--text);
  font-weight: 700; font-size: 1.08rem; letter-spacing: 0.06em;
}
.brand-mark { color: var(--crimson-bright); font-size: 1.25rem; }

.nav-menu { display: flex; align-items: center; gap: 1.7rem; list-style: none; }
.nav-menu a {
  color: var(--text-dim); text-decoration: none;
  font-weight: 600; font-size: 0.94rem; letter-spacing: 0.04em;
}
.nav-menu a:hover { color: var(--gold); }

.soon-tag {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--gold); border: 1px solid var(--gold-dim);
  padding: 0.06rem 0.36rem; vertical-align: middle; text-transform: uppercase;
}
.nav-soon, .link-soon { cursor: default; opacity: 0.75; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  width: 2.7rem; height: 2.7rem; cursor: pointer; position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: ""; display: block; position: absolute;
  left: 0.6rem; right: 0.6rem; height: 2px;
  background: var(--gold); transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle-bar { top: calc(50% - 1px); }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-open .nav-toggle-bar { background: transparent; }
.nav-open .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; cursor: pointer; text-decoration: none;
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.06em;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: var(--crimson); color: #f5ecd8;
  border-color: var(--crimson-bright);
  padding: 0.75rem 1.6rem;
  box-shadow: 0 0 0 1px #000, 0 4px 22px rgba(179, 36, 44, 0.35);
}
.btn-primary:hover { background: var(--crimson-bright); }
.btn-ghost {
  background: transparent; color: var(--gold);
  border-color: var(--gold-dim); padding: 0.75rem 1.6rem;
}
.btn-ghost:hover { border-color: var(--gold); box-shadow: 0 0 18px rgba(201, 162, 39, 0.2); }
.btn-lg { padding: 0.95rem 2rem; font-size: 1rem; }
.btn-nav { padding: 0.55rem 1.2rem; font-size: 0.82rem; }
.btn-small {
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 0.28rem 0.8rem; font-size: 0.75rem;
}
.btn-small:hover { background: var(--gold); color: #0b0a09; }
.btn.copied { background: var(--gold); border-color: var(--gold); color: #0b0a09; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(5rem, 14vh, 9rem) 0 5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% -5%, rgba(179, 36, 44, 0.16), transparent 62%),
    radial-gradient(ellipse 45% 40% at 50% 0%, rgba(201, 162, 39, 0.07), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-kicker {
  color: var(--gold); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 1.6rem;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.08; font-weight: 700; letter-spacing: 0.04em;
  text-shadow: 0 2px 30px rgba(179, 36, 44, 0.35);
}
.hero .ornament { margin-top: 1.6rem; }

.hero-tagline {
  margin: 0 auto 2.4rem; max-width: 44ch;
  font-size: clamp(1.05rem, 2.3vw, 1.3rem);
  font-style: italic; color: var(--text-dim);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.discord-stats { margin-top: 1.8rem; font-size: 0.95rem; color: var(--text-dim); }
.discord-stats strong { color: var(--gold); }
.status-dot {
  display: inline-block; width: 0.55em; height: 0.55em;
  border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 9px var(--gold); margin-right: 0.45em;
}

.hero-creed {
  margin-top: 3rem; font-size: 0.82rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-dim);
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.8vw, 2.4rem);
  letter-spacing: 0.06em; margin-bottom: 0.5rem;
}
.section-lead {
  color: var(--text-dim); max-width: 62ch; margin: 0 auto 2.6rem;
  text-align: center; font-style: italic;
}
.section-note {
  margin-top: 2.6rem; text-align: center;
  color: var(--gold); font-size: 0.9rem; letter-spacing: 0.06em;
}

/* ---------- About ---------- */
.about-text { color: var(--text-dim); }
.about-text strong, .about-text em { color: var(--text); }
.about-text p + p { margin-top: 1.1rem; }

.about-quote {
  margin: 2.4rem auto 0; max-width: 460px; text-align: center;
  border-block: 1px solid var(--line); padding: 1.4rem 1rem;
}
.about-quote p {
  font-family: var(--font-display); font-size: 1.25rem; color: var(--gold);
}
.about-quote cite { font-size: 0.85rem; color: var(--text-dim); font-style: normal; }

/* ---------- Games cards ---------- */
.cards {
  display: grid; gap: 1.3rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.card {
  position: relative; background: var(--panel);
  border: 1px solid var(--line); padding: 1.7rem 1.6rem 1.6rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid rgba(201, 162, 39, 0.14);
  pointer-events: none; transition: border-color 0.2s;
}
.card:hover { border-color: var(--gold-dim); box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5); }
.card:hover::before { border-color: rgba(201, 162, 39, 0.4); }

.card-tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--crimson-bright);
  margin-bottom: 0.65rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: 0.55rem; letter-spacing: 0.03em; }
.card p { color: var(--text-dim); font-size: 0.96rem; }

.card-connect {
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
  margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line);
}
.card-connect code {
  color: var(--gold); font-size: 0.82rem; word-break: break-all;
  font-family: ui-monospace, monospace;
}

/* ---------- Culture / rules ---------- */
.rules {
  display: grid; gap: 1.3rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.rule {
  background: var(--panel); border: 1px solid var(--line);
  padding: 1.6rem; text-align: center; position: relative;
}
.rule-num {
  display: inline-grid; place-items: center;
  width: 2.4rem; height: 2.4rem; margin-bottom: 0.8rem;
  border: 1px solid var(--gold-dim); border-radius: 50%;
  font-family: var(--font-display); font-weight: 700;
  color: var(--gold); font-size: 1.05rem;
}
.rule h3 { font-size: 1.1rem; margin-bottom: 0.45rem; }
.rule p { color: var(--text-dim); font-size: 0.94rem; }

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--line); background: var(--panel);
  margin-bottom: 0.9rem;
}
.faq-item summary {
  cursor: pointer; padding: 1.05rem 1.3rem; font-weight: 600;
  list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "✠"; position: absolute; right: 1.3rem; top: 50%;
  transform: translateY(-50%); color: var(--gold-dim); font-size: 0.9rem;
  transition: transform 0.2s, color 0.2s;
}
.faq-item[open] summary::after {
  color: var(--crimson-bright);
  transform: translateY(-50%) rotate(45deg);
}
.faq-item summary:hover { color: var(--gold); }
.faq-item p { padding: 0 1.3rem 1.15rem; color: var(--text-dim); font-size: 0.97rem; }

/* ---------- Join band ---------- */
.join-band {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 85% at 50% 115%, rgba(179, 36, 44, 0.18), transparent 65%),
    var(--bg-alt);
  border-block: 1px solid var(--line);
}
.join-kicker {
  color: var(--gold); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
}
.join-title {
  font-size: clamp(2rem, 5.5vw, 3.4rem); letter-spacing: 0.05em;
  margin: 0.9rem 0 0.7rem;
}
.join-sub { color: var(--text-dim); margin-bottom: 2.2rem; font-style: italic; }

/* ---------- Footer ---------- */
.site-footer { padding: 2.8rem 0; }
.footer-inner { display: grid; gap: 1.2rem; justify-items: center; text-align: center; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.16em;
}
.footer-brand .brand-mark { color: var(--crimson-bright); }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem;
  list-style: none; justify-content: center; font-size: 0.9rem;
}
.footer-links a { color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  background: none; border: none; color: var(--text-dim);
  font: inherit; cursor: pointer; padding: 0;
}
.footer-copy:hover { color: var(--gold); }
.footer-copy.copied { color: var(--gold); }
.footer-legal { color: var(--text-dim); font-size: 0.75rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--line);
    display: none; padding: 0.6rem 1.25rem 1.2rem;
  }
  .nav-open .nav-menu { display: flex; }
  .nav-menu li { border-bottom: 1px solid var(--line); }
  .nav-menu li:last-child { border-bottom: none; padding-top: 0.9rem; }
  .nav-menu a { display: block; padding: 0.85rem 0; }
  .btn-nav { width: 100%; }
  .hero-cta { flex-direction: column; align-items: stretch; }
}
