/* =============================================
   Game Page — Defense of Kyrath
   Fantasy theme
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cinzel+Decorative:wght@400;700&family=IM+Fell+English:ital@0;1&family=Lato:wght@300;400;700&display=swap');

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

:root {
  --bg-dark: #0a0b10;
  --bg-deep: #0e0f16;
  --bg-forest: #0f1a0f;
  --bg-card: #111418;
  --gold: #c9a84c;
  --gold-light: #e0c068;
  --gold-dim: #6b5520;
  --green-deep: #1a2e1a;
  --green-accent: #2a4a2a;
  --blood: #8b1a1a;
  --blood-light: #a83030;
  --text-primary: #e8e4d9;
  --text-muted: #9a9080;
  --text-lore: #d4c8a8;
  --border-gold: rgba(201, 168, 76, 0.25);
  --border-green: rgba(42, 74, 42, 0.4);
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

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

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

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


/* =============================================
   Hero — Full Viewport Map Background
   ============================================= */
.game-hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background-image: url('../assets/game/promo/main_capsule.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.game-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 10, 0.55);
}

.game-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-dark));
}

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

.game-hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.5rem;
}

.game-hero-logo {
  max-width: 420px;
  width: 80%;
  height: auto;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 4px 30px rgba(0,0,0,0.7)) drop-shadow(0 0 60px rgba(201,168,76,0.15));
}

.game-hero-tagline {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.game-hero-subtitle {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  max-width: 560px;
  margin: 0 auto 1rem;
  line-height: 1.6;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.steam-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--gold-dim);
  border-radius: 3px;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(0,0,0,0.4);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.steam-badge:hover {
  background: rgba(0,0,0,0.6);
  border-color: var(--gold);
}

/* =============================================
   Shared Section Styles
   ============================================= */
.game-section {
  padding: 5rem 2rem;
}

.game-section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.4rem;
}

.game-section-title {
  font-family: 'Cinzel', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.gold-rule {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin-bottom: 2rem;
}

/* =============================================
   Realm / Lore Section
   ============================================= */
.realm-section {
  background: var(--bg-forest);
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-gold);
}

.lore-text {
  font-family: 'IM Fell English', serif;
  font-size: 1.1rem;
  color: var(--text-lore);
  line-height: 1.85;
  max-width: 760px;
}

.lore-text p + p {
  margin-top: 1.2em;
}

/* Parchment block variant */
.parchment-block {
  background-image: url('../assets/game/ui/parchment_background.png');
  background-size: 300px;
  background-repeat: repeat;
  border: 1px solid var(--gold-dim);
  border-radius: 4px;
  padding: 2.5rem 3rem;
  position: relative;
  margin-top: 2rem;
}

.parchment-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 16, 0.75);
  border-radius: 4px;
}

.parchment-block .lore-text {
  position: relative;
  z-index: 1;
}

/* =============================================
   Tower Showcase
   ============================================= */
.towers-section {
  background: var(--bg-deep);
}

.tower-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.tower-card {
  background: #f2e8d0;
  border: 1px solid #c8a84a;
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.tower-card:hover {
  border-color: #8a6020;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.tower-sprite {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 1rem;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.tower-name {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  color: #3a2400;
  margin-bottom: 0.5rem;
}

.tower-flavor {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: #4a3c28;
  line-height: 1.5;
}

/* =============================================
   Enemy Bestiary
   ============================================= */
.bestiary-section {
  background: var(--bg-forest);
  border-top: 1px solid var(--border-green);
  position: relative;
}

.bestiary-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/game/maps/bestiary_bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  pointer-events: none;
}

.enemy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.enemy-card {
  background: #eaeddf;
  border: 1px solid #8a9a70;
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.enemy-card:hover {
  border-color: #6b1010;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.enemy-sprite {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin: 0 auto 1rem;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.enemy-name {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #6b1010;
  margin-bottom: 0.5rem;
}

.enemy-flavor {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.88rem;
  color: #3a3c30;
  line-height: 1.5;
}

/* =============================================
   Showcase Sections (Folly, Talents)
   ============================================= */
.showcase-section {
  background: var(--bg-dark);
  padding: 0;
}

.showcase-hero {
  position: relative;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.showcase-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 10, 0.6);
}

.showcase-overlay {
  position: relative;
  z-index: 1;
  padding: 3rem 4rem;
  max-width: 540px;
}

.showcase-overlay--right {
  margin-left: auto;
}

.showcase-overlay--left {
  margin-right: auto;
}

.showcase-overlay .game-section-title {
  margin-bottom: 1rem;
}

.showcase-overlay p {
  color: var(--text-lore);
  font-family: 'IM Fell English', serif;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.showcase-overlay strong {
  color: var(--gold-light);
  font-weight: normal;
}

@media (max-width: 900px) {
  .showcase-hero {
    min-height: 360px;
  }

  .showcase-overlay {
    padding: 2rem;
    max-width: 100%;
  }

  .showcase-overlay--right {
    margin-left: 0;
  }
}

/* =============================================
   Campaign Section
   ============================================= */
.campaign-section {
  background: var(--bg-dark);
  padding: 0;
}

.campaign-map-hero {
  position: relative;
  height: 480px;
  background-image: url('../assets/screenshots/campaign_overview.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.campaign-map-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 10, 0.65);
}

.campaign-overlay {
  position: relative;
  z-index: 1;
  padding: 3rem 4rem;
  max-width: 580px;
}

.campaign-overlay .game-section-title {
  margin-bottom: 1rem;
}

.campaign-overlay p {
  color: var(--text-lore);
  font-family: 'IM Fell English', serif;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.campaign-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stat-value img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* =============================================
   Screenshots Gallery
   ============================================= */
.screenshots-section {
  background: var(--bg-deep);
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.screenshot-item {
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16/10;
  position: relative;
}

.screenshot-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.screenshot-item:hover img {
  transform: scale(1.04);
}

/* =============================================
   Steam CTA
   ============================================= */
.steam-section {
  background: var(--bg-forest);
  text-align: center;
  border-top: 1px solid var(--border-gold);
}

.steam-section .game-section-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.steam-tagline {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-lore);
  max-width: 500px;
  margin: 0 auto 2rem;
}

.steam-wishlist-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.steam-email-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.steam-email-note a {
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
}

/* =============================================
   Footer
   ============================================= */
.game-footer {
  background: #060709;
  border-top: 1px solid var(--border-gold);
  padding: 2rem;
  text-align: center;
}

.game-footer a {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.game-footer a:hover {
  color: var(--gold);
}

.game-footer p {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #3a3830;
  letter-spacing: 0.05em;
}

/* =============================================
   Buttons
   ============================================= */
.btn-gold {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-gold:hover {
  background: var(--gold);
  color: var(--bg-dark);
}

/* =============================================
   Game Modes
   ============================================= */
.modes-section {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-gold);
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.mode-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.mode-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 1.25rem;
}

.mode-name {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.mode-desc {
  font-family: 'IM Fell English', serif;
  font-size: 0.92rem;
  color: var(--text-lore);
  line-height: 1.6;
}

/* =============================================
   Steam Capsule
   ============================================= */
.steam-capsule {
  display: block;
  margin: 0 auto 2rem;
  max-width: 460px;
}

.steam-capsule-img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border-gold);
}

/* =============================================
   Fade-in
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 900px) {
  .tower-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .campaign-map-hero {
    height: auto;
    min-height: 400px;
  }

  .campaign-overlay {
    padding: 2rem;
  }

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

@media (max-width: 600px) {
  .tower-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .game-hero-logo {
    max-width: 280px;
  }

  .campaign-stats {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .parchment-block {
    padding: 1.5rem;
  }

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

/* ===== Credits Section ===== */
.credits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.credit-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.credit-title {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.credit-detail {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.credit-detail a {
  color: var(--text-primary);
  text-decoration: underline;
  text-decoration-color: rgba(201, 168, 76, 0.4);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

.credit-detail a:hover {
  text-decoration-color: var(--gold);
}

@media (max-width: 700px) {
  .credits-grid {
    grid-template-columns: 1fr;
  }
}
