/* Hope Inhumanity — Production Stylesheet */
:root {
  --bg-deep: #110f0d;
  --bg-surface: #1b1714;
  --bg-card: #231e1a;
  --bg-elevated: #2c2520;
  --border-subtle: rgba(224, 138, 60, 0.2);
  --border-strong: rgba(224, 138, 60, 0.48);
  --accent-amber: #e5923e;
  --accent-gold: #f4b350;
  --accent-rust: #b83a24;
  --accent-rust-hover: #d1462d;
  --text-primary: #f3ede2;
  --text-secondary: #c9bfb0;
  --text-muted: #968b7c;
  --max-width: 1080px;
  --radius: 8px;
  --shadow-lg: 0 14px 34px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .nav-link, .btn, .badge {
  font-family: 'Oswald', Impact, 'Arial Narrow', sans-serif;
  letter-spacing: 0.03em;
}

a {
  color: var(--accent-amber);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-gold);
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 15, 13, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-block;
  padding: 0.45rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--bg-deep);
  background: var(--accent-amber);
}

/* Hero Section */
.hero {
  position: relative;
  background-color: #1a1410;
  background-image:
    linear-gradient(180deg, rgba(17, 15, 13, 0.35) 0%, rgba(17, 15, 13, 0.82) 72%, var(--bg-deep) 100%),
    url('images/Web%20Site%20Header%20-%20No%20Text.png');
  background-size: cover;
  background-position: center 35%;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-compact {
  padding: 3.25rem 0 2.5rem;
}

.hero-rules {
  background-image:
    linear-gradient(180deg, rgba(17, 15, 13, 0.42) 0%, rgba(17, 15, 13, 0.82) 72%, var(--bg-deep) 100%),
    url('images/hunted_final.jpg');
  background-position: center center;
}

.hero-logo {
  max-width: 560px;
  width: 88%;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.85));
}

.hero-headline {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  text-transform: uppercase;
  color: var(--accent-gold);
  margin: 0 0 1rem;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.9);
}

.hero-pitch {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--text-primary);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.hero-pitch p {
  margin: 0.65rem 0;
}

.hero-goodluck {
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 1.25rem;
  margin-top: 1rem !important;
}

/* Sections */
.section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-alt {
  background-color: var(--bg-surface);
}

.section-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  margin: 0 auto;
  max-width: 650px;
  font-size: 1.05rem;
}

/* Video Embed */
.video-frame-wrap {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 0.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #000;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* DriveThruCards Banner */
.dtc-banner-wrap {
  max-width: 480px;
  margin: 0 auto 2rem;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

/* Product & Rules Grids */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.card-media {
  background: #100d0b;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
}

.card-media.square {
  aspect-ratio: 1 / 1;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media.contain img {
  object-fit: contain;
  padding: 0.75rem;
}

.card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}

.card-title {
  font-size: 1.3rem;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
  color: var(--text-primary);
}

.card-price {
  font-family: 'Oswald', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin: 0.25rem 0 1.1rem;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin: 0 0 1.25rem;
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  margin-top: auto;
}

.btn-primary {
  background: var(--accent-rust);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
  background: var(--accent-rust-hover);
  color: #fff;
}

.btn-amber {
  background: var(--accent-amber);
  color: #14100c;
}

.btn-amber:hover {
  background: var(--accent-gold);
  color: #14100c;
}

.btn-outline {
  background: transparent;
  color: var(--accent-amber);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  background: rgba(229, 146, 62, 0.12);
  color: var(--accent-gold);
}

/* Compose Dream Games Subsection */
.marketplace-subsection {
  margin-top: 2.75rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border-subtle);
}

.subsection-heading {
  text-align: center;
  margin-bottom: 1.5rem;
}

.subsection-heading h3 {
  font-size: 1.45rem;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
  color: var(--text-primary);
}

.subsection-heading p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.region-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: center;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(229, 146, 62, 0.14);
  color: var(--accent-gold);
  border: 1px solid var(--border-strong);
  margin-bottom: 0.65rem;
}

/* Credits & Footer */
.site-footer {
  background: #0c0a09;
  padding: 3rem 0 2.25rem;
  text-align: center;
  color: var(--text-secondary);
}

.credits-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-amber);
  margin: 0 0 1.25rem;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 780px;
  margin: 0 auto 1.5rem;
}

.credit-item strong {
  display: block;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.credit-item span {
  color: var(--text-primary);
  font-size: 1rem;
}

.fonts-credit {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 1rem 0 1.5rem;
}

.copyright {
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 1.25rem;
  margin: 0;
}

/* Quick Start Rules Specific */
.stats-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.stat-pill {
  font-family: 'Oswald', sans-serif;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(17, 15, 13, 0.78);
  border: 1px solid var(--border-strong);
  color: var(--accent-gold);
}

.jump-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.65rem 0;
  position: sticky;
  top: 65px;
  z-index: 90;
}

.jump-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.85rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.jump-links a {
  color: var(--text-secondary);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.jump-links a:hover {
  color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.05);
}

.rules-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.content-warning {
  background: rgba(184, 58, 36, 0.12);
  border-left: 4px solid var(--accent-rust);
  padding: 0.9rem 1.2rem;
  border-radius: 0 6px 6px 0;
  margin-bottom: 2rem;
  font-size: 0.96rem;
  color: var(--text-secondary);
}

.content-warning strong {
  color: #f59e8b;
}

.rules-block {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  scroll-margin-top: 130px;
}

.rules-block h2 {
  font-size: 1.65rem;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.rules-block h3 {
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--accent-amber);
  margin: 1.5rem 0 0.65rem;
}

.rules-block p {
  margin: 0 0 1rem;
}

.rules-block p:last-child {
  margin-bottom: 0;
}

.martial-law-callout {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(184, 58, 36, 0.14);
  border: 1px solid rgba(209, 70, 45, 0.45);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1.15rem;
}

.martial-law-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.martial-law-inline {
  display: inline-block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 0.35rem;
}

.rules-two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.rules-two-col .rules-block {
  margin-bottom: 0;
}

.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rules-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
}

.rules-list li::before {
  content: "»»";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-amber);
  font-weight: 700;
  font-size: 0.9rem;
}

.turn-steps {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.turn-steps li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.95rem;
}

.turn-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0.12rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--accent-gold);
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Setup Diagram Figure & Lightbox */
.diagram-figure {
  margin: 1.5rem 0 0.5rem;
  background: #fff;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 2px solid var(--border-strong);
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.diagram-figure:hover {
  transform: scale(1.01);
}

.diagram-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  background: #fff;
  padding: 0.5rem;
  border-radius: 6px;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  background: var(--accent-rust);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 0.45rem 0.9rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
}

.archive-note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 820px) {
  .card-grid-3,
  .card-grid-2,
  .rules-two-col {
    grid-template-columns: 1fr;
  }

  .jump-bar {
    position: static;
  }
}

@media print {
  .site-header, .jump-bar, .site-footer, .btn {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .rules-block {
    border: 1px solid #ccc;
    background: #fff;
    break-inside: avoid;
  }
}
