/* ============================================
   RavenForge — Main Stylesheet
   Dark atmospheric theme
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* Colors */
  --color-bg: #0a0b1a;
  --color-bg-raised: #111228;
  --color-bg-card: #161836;
  --color-bg-hover: #1c1e42;
  --color-surface: #1a1c3a;
  --color-border: #2a2d52;
  --color-border-light: #363966;

  --color-text: #e0e0ec;
  --color-text-muted: #9698b8;
  --color-text-dim: #6b6e8a;
  --color-heading: #f0f0fa;

  --color-accent: #d4a44a;
  --color-accent-hover: #e0b55e;
  --color-accent-dim: rgba(212, 164, 74, 0.15);

  --color-steam: #1b2838;
  --color-itch: #fa5c5c;
  --color-discord: #5865f2;
  --color-youtube: #ff0000;
  --color-facebook: #1877f2;
  --color-github: #e0e0ec;
  --color-linkedin: #0a66c2;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Cinzel', 'Georgia', serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.75rem;
  --text-5xl: 3.5rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --border-radius: 8px;
  --border-radius-lg: 12px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

[id] {
  scroll-margin-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-heading);
  line-height: 1.2;
  font-weight: 700;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-lg);
}

.section-description {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 700px;
}

/* --- Modifier / Utility Classes --- */
.section--flush-top { padding-top: 0; }
.section__header--center { text-align: center; }
.section__header--spaced { margin-top: var(--space-3xl); }
.section-title--sm { font-size: 1.5rem; }
.section-description--center { margin-left: auto; margin-right: auto; }
.game-grid--single { grid-template-columns: 1fr; }
.game-card--link { display: block; text-decoration: none; color: inherit; }
.game-card__body--row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-md); }
.game-card__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.game-card__genre--flush { margin-bottom: 0; }
.contact-grid--narrow { max-width: 500px; margin: var(--space-2xl) auto 0; }
.contact-card--center { text-align: center; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 11, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-heading);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav__logo span {
  color: var(--color-accent);
}

.nav__links {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-heading);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--color-text);
}

.nav__toggle-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background var(--transition-fast);
}

.nav__toggle-icon::before,
.nav__toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition-base);
}

.nav__toggle-icon::before {
  top: -7px;
}

.nav__toggle-icon::after {
  top: 7px;
}

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

  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 11, 26, 0.98);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-lg);
    gap: var(--space-lg);
  }

  .nav__links--open {
    display: flex;
  }

  .nav--open .nav__toggle-icon {
    background: transparent;
  }

  .nav--open .nav__toggle-icon::before {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav--open .nav__toggle-icon::after {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* --- Hero --- */
.hero {
  padding: calc(64px + var(--space-4xl)) 0 var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 164, 74, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero__dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

.hero__title {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Game page heroes — left-aligned */
.hero--game {
  text-align: left;
  padding-bottom: var(--space-3xl);
}

.hero--game .hero__subtitle {
  margin-left: 0;
}

.hero--game .hero__actions {
  justify-content: flex-start;
}

.hero--cover {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero--cover::before {
  background: linear-gradient(to right, rgba(10, 11, 26, 0.72) 40%, rgba(10, 11, 26, 0.15) 100%);
}

.hero--cover .hero__subtitle,
.hero--cover .hero__access {
  color: var(--color-text);
}

.hero--silent-depths {
  background-image: url("../images/silent-depths/cover.png");
}

.hero--ravenforge-isles {
  background-image: url("../images/RavenForge-Isle/Spr_Main_Capsule.png");
}

@media (max-width: 768px) {
  .hero__title {
    font-size: var(--text-3xl);
  }

  .hero__subtitle {
    font-size: var(--text-lg);
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-bg);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent-dim);
  color: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
}

.btn--icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --- Section Spacing --- */
.section {
  padding: var(--space-4xl) 0;
}

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

.section__header {
  margin-bottom: var(--space-3xl);
}

/* --- Game Cards --- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-2xl);
}

.game-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.game-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.game-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__placeholder {
  text-align: center;
  padding: var(--space-lg);
}

.game-card__placeholder-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
  margin-bottom: var(--space-xs);
}

.game-card__placeholder-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.game-card__body {
  padding: var(--space-xl);
}

.game-card__status {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: var(--space-md);
}

.game-card__status--prototype {
  background: rgba(212, 164, 74, 0.15);
  color: var(--color-accent);
}

.game-card__status--dev {
  background: rgba(88, 101, 242, 0.15);
  color: #8b9bf7;
}

.game-card__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.game-card__genre {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  margin-bottom: var(--space-md);
}

.game-card__description {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.game-card__link {
  font-weight: 600;
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.game-card__link::after {
  content: '\2192';
  transition: transform var(--transition-fast);
}

.game-card__link:hover::after {
  transform: translateX(4px);
}

/* --- Feature Cards --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--transition-base);
}

.feature-card:hover {
  border-color: var(--color-border-light);
}

.feature-card__icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
  line-height: 1;
}

.feature-card__title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Screenshot Gallery --- */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.screenshot-slot {
  aspect-ratio: 16 / 9;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: border-color var(--transition-base), background var(--transition-base);
  overflow: hidden;
  position: relative;
}

.screenshot-slot:hover {
  border-color: var(--color-border-light);
  background: var(--color-bg-hover);
}

.screenshot-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.screenshot-slot__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-sm);
}

.screenshot-slot__icon {
  font-size: var(--text-2xl);
  opacity: 0.5;
}

/* --- Status Banner --- */
.status-banner {
  background: var(--color-accent-dim);
  border: 1px solid rgba(212, 164, 74, 0.3);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.status-banner__text {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-accent);
}

.status-banner__sub {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 400;
  margin-top: var(--space-xs);
}

.status-banner--archived {
  background: rgba(107, 110, 138, 0.1);
  border-color: rgba(107, 110, 138, 0.25);
}

.status-banner--archived .status-banner__text {
  color: var(--color-text-muted);
}

.access-password {
  font-family: monospace;
  font-size: 0.95em;
  letter-spacing: 0.05em;
  background: rgba(212, 164, 74, 0.12);
  border: 1px solid rgba(212, 164, 74, 0.35);
  border-radius: 3px;
  color: var(--color-accent);
  padding: 0.1em 0.45em;
}

.hero__access {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-md);
}

/* --- Tech Info --- */
.tech-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
}

.tech-info__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.tech-info__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
  font-weight: 600;
}

.tech-info__value {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-heading);
}

/* --- Follow / CTA Section --- */
.follow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.follow-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  text-align: center;
  text-decoration: none;
  transition: transform var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.follow-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  color: var(--color-text);
}

.follow-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.follow-card__icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.follow-card__icon--steam {
  background: var(--color-steam);
  color: #c7d5e0;
}

.follow-card__icon--itch {
  background: var(--color-itch);
  color: white;
}

.follow-card__icon--discord {
  background: var(--color-discord);
  color: white;
}

.follow-card__icon--youtube {
  background: var(--color-youtube);
  color: white;
}

.follow-card__icon--facebook {
  background: var(--color-facebook);
  color: white;
}

.follow-card__title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-heading);
}

.follow-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* --- Fact Sheet (Press Kit) --- */
.fact-sheet {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-2xl);
}

.fact-sheet__header {
  background: var(--color-surface);
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.fact-sheet__title {
  font-size: var(--text-xl);
  margin: 0;
}

.fact-sheet__body {
  padding: var(--space-xl);
}

.fact-sheet__row {
  display: flex;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.fact-sheet__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fact-sheet__row:first-child {
  padding-top: 0;
}

.fact-sheet__key {
  flex: 0 0 160px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fact-sheet__value {
  flex: 1;
  color: var(--color-text);
}

@media (max-width: 600px) {
  .fact-sheet__row {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .fact-sheet__key {
    flex: none;
  }
}

/* --- Asset Downloads (Press Kit) --- */
.asset-section {
  margin-bottom: var(--space-2xl);
}

.asset-section__title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.asset-item {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  text-align: center;
  color: var(--color-text-dim);
  font-size: var(--text-sm);
}

.asset-item__icon {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
  opacity: 0.5;
}

.asset-item__note {
  font-size: var(--text-xs);
  margin-top: var(--space-sm);
  opacity: 0.5;
}

/* --- About Page --- */
.about-content {
  max-width: 720px;
}

.about-content p {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.about-content p:last-child {
  margin-bottom: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.value-card {
  padding: var(--space-xl);
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-card);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.value-card__title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.value-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
}

.contact-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
}

.contact-card__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.contact-card__value {
  font-size: var(--text-base);
  color: var(--color-heading);
  overflow-wrap: break-word;
}

/* --- Product Cards (Store) --- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
}

.product-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.product-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.product-card__type {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  background: var(--color-accent-dim);
  color: var(--color-accent);
}

.product-card__price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-heading);
}

.product-card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.product-card__text {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
  flex: 1;
}

/* --- Engagement Items (Services) --- */
.engagement-list {
  display: grid;
  gap: var(--space-xl);
}

.engagement-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
}

.engagement-item__title {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.engagement-item__text {
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Guide List (Guides) --- */
.guide-list {
  display: grid;
  gap: var(--space-xl);
}

.guide-item {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--transition-base);
  cursor: pointer;
}

.guide-item:hover {
  border-color: var(--color-accent);
}

.guide-item__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-xs);
}

.guide-item__title a {
  color: var(--color-heading);
  text-decoration: none;
}

.guide-item__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.guide-item__title a:hover {
  color: var(--color-accent);
}

.guide-item__date {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  display: block;
  margin-bottom: var(--space-sm);
}

.guide-item__description {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.guide-item__tags {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.guide-item__tag {
  font-size: var(--text-xs);
  padding: 0.2rem 0.6rem;
  background: var(--color-accent-dim);
  color: var(--color-accent);
  border-radius: 100px;
}

/* --- Guide Series: Table of Contents --- */
.guide-toc {
  list-style: none;
  display: grid;
  gap: var(--space-md);
  padding: 0;
}

.guide-toc__item {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: border-color var(--transition-base);
}

.guide-toc__item:hover {
  border-color: var(--color-accent);
}

.guide-toc__link {
  display: block;
  padding: var(--space-lg);
  text-decoration: none;
  color: inherit;
}

.guide-toc__number {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.guide-toc__title {
  display: block;
  font-size: var(--text-xl);
  font-family: var(--font-display);
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
}

.guide-toc__description {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- Guide Chapter Header --- */
.guide-chapter-header {
  padding-bottom: 0;
}

.guide-chapter-header__back {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--color-accent);
  text-decoration: none;
  margin-bottom: var(--space-lg);
  transition: color var(--transition-fast);
}

.guide-chapter-header__back:hover {
  color: var(--color-accent-hover);
}

.guide-chapter-header__number {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.guide-chapter-header__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-heading);
}

/* --- Guide Chapter In-Page TOC --- */
.guide-chapter-toc {
  margin-bottom: var(--space-2xl);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: var(--space-md) var(--space-lg);
}

.guide-chapter-toc__toggle {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  cursor: pointer;
}

.guide-chapter-toc__nav {
  margin-top: var(--space-md);
}

.guide-chapter-toc__nav ul {
  list-style: none;
  padding-left: var(--space-lg);
}

.guide-chapter-toc__nav li {
  margin-bottom: var(--space-xs);
}

.guide-chapter-toc__nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.guide-chapter-toc__nav a:hover {
  color: var(--color-accent);
}

/* --- Guide Chapter Content --- */
.guide-chapter-content {
  max-width: 800px;
  line-height: 1.8;
}

.guide-chapter-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-heading);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
}

.guide-chapter-content h3 {
  font-size: var(--text-xl);
  color: var(--color-heading);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.guide-chapter-content p {
  margin-bottom: var(--space-md);
}

.guide-chapter-content pre {
  margin-bottom: var(--space-lg);
  border-radius: var(--border-radius);
  overflow-x: auto;
}

.guide-chapter-content code {
  font-size: var(--text-sm);
}

.guide-chapter-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-lg);
  margin-bottom: var(--space-lg);
  color: var(--color-text-muted);
  font-style: italic;
}

.guide-chapter-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
}

.guide-chapter-content th,
.guide-chapter-content td {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  text-align: left;
}

.guide-chapter-content th {
  background: var(--color-bg-card);
  color: var(--color-heading);
  font-weight: 600;
}

.guide-chapter-content ul,
.guide-chapter-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.guide-chapter-content li {
  margin-bottom: var(--space-xs);
}

.guide-chapter-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-2xl) 0;
}

/* --- Guide Chapter Navigation --- */
.guide-chapter-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.guide-chapter-nav__link {
  display: block;
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: border-color var(--transition-base);
}

.guide-chapter-nav__link:hover {
  border-color: var(--color-accent);
}

.guide-chapter-nav__link--next {
  text-align: right;
}

.guide-chapter-nav__label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.guide-chapter-nav__title {
  display: block;
  font-size: var(--text-base);
  color: var(--color-heading);
}

/* --- Guide CTA Block --- */
.guide-cta {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
}

.guide-cta--subtle {
  background: transparent;
}

.guide-cta__text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Guide Item Series Badge --- */
.guide-item__tag--series {
  background: rgba(212, 164, 74, 0.15);
  color: var(--color-accent);
  font-weight: 600;
}

@media (max-width: 640px) {
  .guide-chapter-nav {
    grid-template-columns: 1fr;
  }

  .guide-chapter-nav__link--next {
    text-align: left;
  }
}

/* --- Game Card Link Variant (extended) --- */
.game-card--link .game-card__title {
  color: var(--color-heading);
}

.game-card--link .game-card__text {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.game-card__status--archived {
  background: rgba(107, 110, 138, 0.2);
  color: var(--color-text-dim);
}

/* --- Centered Actions --- */
.hero__actions--center {
  justify-content: center;
}

.cta-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.section__more {
  text-align: center;
  margin-top: var(--space-xl);
}

/* --- Follow Card Platform Colors (new) --- */
.follow-card__icon--github {
  color: #e0e0ec;
}

.follow-card__icon--linkedin {
  color: #0a66c2;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-2xl) 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-heading);
  text-decoration: none;
}

.footer__logo span {
  color: var(--color-accent);
}

.footer__links {
  display: flex;
  gap: var(--space-lg);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-heading);
}

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  cursor: pointer;
}

.lightbox--active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--border-radius);
}

.lightbox__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: none;
  border: none;
  color: white;
  font-size: var(--text-3xl);
  cursor: pointer;
  line-height: 1;
  padding: var(--space-sm);
}

/* --- Print Styles (Press Kit) --- */
@media print {
  .nav,
  .footer,
  .btn,
  .follow-card {
    display: none !important;
  }

  body {
    background: white;
    color: #333;
  }

  .hero {
    padding-top: var(--space-2xl);
  }

  .fact-sheet {
    border: 1px solid #ccc;
    break-inside: avoid;
  }

  .fact-sheet__header {
    background: #f5f5f5;
  }

  h1, h2, h3 {
    color: #111;
  }

  a {
    color: #333;
    text-decoration: underline;
  }
}
