/* SILENT HILL: Townfall - Dark Psychological Survival Horror Theme (1240px Wide Layout) */
:root {
  --bg-color: #080a0d;
  --header-bg: rgba(12, 16, 22, 0.94);
  --card-bg: #11151d;
  --card-hover: #171d28;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #e11d48;
  --accent-glow: rgba(225, 29, 72, 0.4);
  --accent-hover: #f43f5e;
  --gold-accent: #f59e0b;
  --border: #1e2634;
  --border-light: rgba(255, 255, 255, 0.08);
  --code-bg: #05070a;
  --notice-bg: #1c1115;
  --notice-border: #e11d48;
  --badge-verified: #059669;
  --badge-code: #be123c;
}

html {
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.65;
  padding: 0;
  background-image: 
    radial-gradient(circle at 50% 0%, #1c1626 0%, transparent 60%),
    radial-gradient(circle at 100% 30%, #15101a 0%, transparent 50%),
    radial-gradient(circle at 0% 70%, #121520 0%, transparent 60%);
  background-repeat: no-repeat;
  min-height: 100vh;
}

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

/* Header & Nav - Wide 1240px */
.site-header {
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  transition: padding 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
.header-container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  min-width: 0;
  box-sizing: border-box;
}
.header-brand-row {
  display: flex;
  align-items: center;
  min-width: 0;
}
.brand {
  font-size: 1.22rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.brand span {
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
}
.header-nav {
  min-width: 0;
  transition: max-height 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.2s ease, transform 0.2s ease;
}
.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links a:hover { color: #fff; }

/* Mobile Adaptations & Smart Scroll Collapse */
@media (max-width: 768px) {
  .site-header {
    padding: 0.6rem 1rem;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .header-brand-row {
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .brand {
    font-size: 1.05rem;
  }
  .header-nav {
    width: 100%;
    max-width: 100%;
    min-width: 0; /* CRITICAL: Prevents 700px min-content width blowout in CSS flex */
    overflow: hidden;
    max-height: 48px;
    opacity: 1;
    transform: translateY(0);
    transition: max-height 0.25s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links {
    width: 100%;
    max-width: 100%;
    min-width: 0; /* CRITICAL: Bounded inside parent width */
    box-sizing: border-box;
    display: flex;
    gap: 0.45rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links a {
    white-space: nowrap;
    padding: 0.28rem 0.72rem;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links a:hover,
  .nav-links a:active {
    background: rgba(225, 29, 72, 0.2);
    border-color: var(--accent);
    color: #fff;
  }

  /* When scrolling down: Collapse nav pills smoothly, leaving ONLY the top Brand Logo */
  .site-header.nav-collapsed {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: rgba(5, 7, 10, 0.96);
  }
  .site-header.nav-collapsed .header-nav {
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0;
    transform: translateY(-6px);
    pointer-events: none;
  }
}

/* Main Container - Expansive 1240px */
.container {
  max-width: 1240px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}
@media (max-width: 768px) {
  .container {
    padding: 1.5rem 1rem 4rem;
  }
}

/* ========================================================
   Hero Section - High-Impact 2-Column Split Layout
   ======================================================== */
.hero {
  padding: 1rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3.5rem;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-layout {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2.5rem;
    align-items: center;
  }
}
.hero-content {
  display: flex;
  flex-direction: column;
}

/* Eyebrow Badge */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f1f5f9;
  background: rgba(16, 24, 38, 0.9);
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 20px rgba(5, 150, 105, 0.15);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 0.95rem;
  width: fit-content;
}
.live-dot-green {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-green 2s infinite;
}
@keyframes pulse-green {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 14px #34d399; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
.eyebrow-sep {
  color: #64748b;
  margin: 0 0.15rem;
}
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #f43f5e;
  box-shadow: 0 0 10px #f43f5e;
  animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 14px #e11d48; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Giant Headline */
.hero-title {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.95rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95), 0 0 30px rgba(225, 29, 72, 0.35);
  word-break: normal;
  overflow-wrap: break-word;
}
@media (max-width: 640px) {
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.15;
  }
  .hero-title-accent {
    display: block;
    margin-top: 0.2rem;
  }
}
@media (min-width: 641px) and (max-width: 959px) {
  .hero-title {
    font-size: 2.6rem;
  }
}
@media (min-width: 960px) {
  .hero-title {
    font-size: 3.35rem;
  }
}
.hero-title-accent {
  background: linear-gradient(135deg, #ff4d6d 0%, #e11d48 50%, #be123c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(225, 29, 72, 0.5));
  display: inline-block;
  white-space: nowrap;
}

.hero-tagline {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.95rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 0 24px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
}
.tagline-sep {
  color: #64748b;
  opacity: 0.8;
}
@media (max-width: 768px) {
  .hero-tagline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    font-size: 0.88rem;
    line-height: 1.35;
  }
  .hero-tagline .tagline-sep {
    display: none;
  }
}
.hero-desc {
  font-size: 0.98rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 680px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
  overflow-wrap: break-word;
  word-break: break-word;
}
@media (max-width: 768px) {
  .hero-desc {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
  }
}

/* 1 Row x 4 Columns Core Guides Navigation Grid */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.6rem;
  width: 100%;
}
.hero-stat-card {
  background: rgba(14, 18, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  padding: 0.75rem 0.65rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.hero-stat-card:hover {
  border-color: rgba(225, 29, 72, 0.7);
  background: rgba(22, 28, 42, 0.98);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(225, 29, 72, 0.25);
}
.stat-card-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.stat-icon {
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.stat-num {
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
  white-space: nowrap;
}
.stat-num.highlight-amber {
  color: #fbbf24;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}
.stat-lbl {
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.hero-stat-card:hover .stat-lbl {
  color: #f1f5f9;
}
@media (max-width: 640px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .hero-stat-card {
    padding: 0.75rem 0.65rem;
  }
  .hero-eyebrow {
    font-size: 0.65rem;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    letter-spacing: 0.4px;
    max-width: 100%;
  }
}

/* High Saturation Buttons */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.55);
  color: #020617;
}
.btn-secondary {
  background: rgba(30, 41, 59, 0.7);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
}

/* Hero Right Side - Refined Cinematic Frame (16:10 Aspect Ratio) */
.hero-banner-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(225, 29, 72, 0.45);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9), 0 0 35px rgba(225, 29, 72, 0.25);
  background-color: #05070a;
  aspect-ratio: 16 / 10;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}
.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.hero-banner-frame:hover .hero-banner-img {
  transform: scale(1.03);
}


/* ========================================================
   Start Here: 4 Essential Cards Grid (Desktop 4 Columns)
   ======================================================== */
.start-section {
  margin-bottom: 3.5rem;
}
.section-header {
  margin-bottom: 1.5rem;
}
.section-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  word-break: normal;
  overflow-wrap: break-word;
}
@media (max-width: 640px) {
  .section-header h2 {
    font-size: 1.35rem;
    line-height: 1.25;
  }
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.3rem;
}

.start-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 600px) {
  .start-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .start-grid { grid-template-columns: repeat(4, 1fr); }
}

.start-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.start-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(225, 29, 72, 0.2);
  background: var(--card-hover);
}
.card-thumb-wrap {
  width: 100%;
  height: 155px;
  overflow: hidden;
  position: relative;
  background: #05070a;
  border-bottom: 1px solid var(--border);
}
.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, opacity 0.35s ease;
  opacity: 0.88;
}
.start-card:hover .card-thumb-img {
  transform: scale(1.08);
  opacity: 1;
}
.card-content {
  padding: 1.15rem 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.start-card h3 {
  color: #fff;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.45rem;
}
.start-card p {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* ========================================================
   Interactive Cinema Trailer Section (with Fallback)
   ======================================================== */
.video-section {
  background: radial-gradient(circle at 50% 0%, #171b26 0%, #0d1118 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.25rem 1.75rem;
  margin-bottom: 3.5rem;
  text-align: center;
}
.video-section .section-header {
  max-width: 720px;
  margin: 0 auto 1.75rem;
}

.cinema-player-frame {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(225, 29, 72, 0.4);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), 0 0 35px rgba(225, 29, 72, 0.25);
  background: #05070a;
}
.player-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  overflow: hidden;
}
.player-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: brightness(0.75);
}
.player-poster-wrap:hover .player-poster-img {
  transform: scale(1.03);
  filter: brightness(0.85);
}
.player-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.9);
  border: 3px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(225, 29, 72, 0.7);
  transition: all 0.25s ease;
}
.player-play-btn svg {
  width: 34px;
  height: 34px;
  fill: #ffffff;
  margin-left: 5px;
}
.player-poster-wrap:hover .player-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: #f43f5e;
  box-shadow: 0 0 45px rgba(225, 29, 72, 0.9);
}
.player-badge-top {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.player-badge-bottom {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}
@media (max-width: 600px) {
  .player-badge-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 0.72rem;
    bottom: 8px;
    left: 8px;
    right: 8px;
  }
  .player-badge-top {
    font-size: 0.68rem;
    top: 8px;
    left: 8px;
    padding: 0.25rem 0.5rem;
  }
  .player-play-btn {
    width: 64px;
    height: 64px;
  }
  .player-play-btn svg {
    width: 26px;
    height: 26px;
  }
}

.video-responsive {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05070a url('/images/hero_banner.jpg') center/cover no-repeat;
}
.video-responsive::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 10, 0.5);
  pointer-events: none;
}
.video-responsive iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: relative;
  z-index: 1;
}

.video-actions-bar {
  max-width: 920px;
  margin: 1.25rem auto 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.video-network-note {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 1rem;
}

/* ========================================================
   About Game Info Box
   ======================================================== */
.about-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.25rem;
  margin-bottom: 3.5rem;
}
.about-box h2 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
}
.about-box p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.98rem;
  line-height: 1.65;
}
.specs-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) {
  .specs-table {
    grid-template-columns: repeat(5, 1fr);
  }
}
.spec-item {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
}
.spec-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.spec-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-top: 0.25rem;
}

/* ========================================================
   All Guides Matrix (Desktop 3 Columns)
   ======================================================== */
.guides-section {
  margin-bottom: 4rem;
}
.guide-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .guide-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .guide-list { grid-template-columns: repeat(3, 1fr); }
}

.guide-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.35rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.guide-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--card-hover);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.guide-card h3 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.45rem 0 0.55rem;
  line-height: 1.35;
}
.guide-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
  line-height: 1.5;
  flex: 1;
}
.guide-meta {
  font-size: 0.78rem;
  color: #64748b;
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

/* Category Badges */
.badge-code {
  display: inline-block;
  background: var(--badge-code);
  color: #ffe4e6;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}
.badge-guide {
  display: inline-block;
  background: #1e3a8a;
  color: #dbeafe;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  width: fit-content;
}
.badge-lore {
  display: inline-block;
  background: #4c1d95;
  color: #ede9fe;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  width: fit-content;
}
.badge-specs {
  display: inline-block;
  background: #1e293b;
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  border: 1px solid #334155;
  width: fit-content;
}
.badge-verified {
  display: inline-block;
  background: var(--badge-verified);
  color: #ecfdf5;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================================
   Inner Article Pages (Rich Visual Structure)
   ======================================================== */
.guide-article {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  max-width: 980px;
  margin: 0 auto;
}
.article-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.75rem;
  margin-bottom: 2rem;
}
.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

.article-header h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.3px;
}
.meta-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  margin: 1.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.meta-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.meta-label { color: #f1f5f9; font-weight: 600; }

.article-content h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin: 2.2rem 0 1rem;
}
.article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 1.6rem 0 0.6rem;
}
.article-content p, .article-content ul, .article-content ol {
  margin-bottom: 1.15rem;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.7;
}
.article-content ul, .article-content ol {
  padding-left: 1.75rem;
}
.article-content li {
  margin-bottom: 0.45rem;
}
.article-content table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.92rem;
}
@media (max-width: 768px) {
  .article-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.article-content th, .article-content td {
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--border);
  text-align: left;
}
.article-content th {
  background-color: rgba(225, 29, 72, 0.12);
  color: #fff;
  font-weight: 800;
}
.article-content tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.02);
}
.code-highlight {
  background: var(--code-bg);
  border: 1px solid rgba(225, 29, 72, 0.5);
  color: #fda4af;
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  display: inline-block;
  letter-spacing: 2.5px;
}

/* Callouts (Visual Break from wall of text) */
blockquote {
  background: radial-gradient(circle at 0% 50%, rgba(225, 29, 72, 0.12) 0%, rgba(19, 23, 31, 0.8) 100%);
  border-left: 4px solid var(--accent);
  padding: 1.15rem 1.4rem;
  margin: 1.75rem 0;
  border-radius: 0 8px 8px 0;
  color: #ffe4e6;
  font-size: 1rem;
}

/* ========================================================
   Inner Article Enhanced Visual Components (Cardification)
   ======================================================== */

/* 1. Solution Hero Card (Instant Answer Box) */
.solution-hero-card {
  background: radial-gradient(circle at 50% 0%, #1c1524 0%, #11151e 100%);
  border: 2px solid rgba(225, 29, 72, 0.5);
  border-radius: 14px;
  padding: 2rem;
  margin: 1.75rem 0 2.5rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 30px rgba(225, 29, 72, 0.2);
  position: relative;
  overflow: hidden;
}
.solution-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f43f5e 0%, #fbbf24 50%, #f43f5e 100%);
}
.solution-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.solution-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fda4af;
  background: rgba(225, 29, 72, 0.2);
  border: 1px solid rgba(225, 29, 72, 0.45);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}
.solution-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: rgba(5, 7, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.25rem 1.75rem;
  margin-bottom: 1.5rem;
}
.solution-display-group {
  display: flex;
  flex-direction: column;
}
.solution-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}
.solution-digits {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 2.8rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 6px;
  text-shadow: 0 0 20px rgba(225, 29, 72, 0.7);
  line-height: 1.1;
}
.copy-code-btn {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
}
.copy-code-btn:hover {
  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.6);
}
.copy-code-btn.copied {
  background: #059669;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.5);
}
.solution-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .solution-facts-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.solution-fact-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
}
.fact-label {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}
.fact-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-top: 0.2rem;
  display: block;
}

/* 2. Visual Stepper Workflow (Step Cards) */
.stepper-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.75rem 0 2.5rem;
  position: relative;
}
.step-card {
  background: rgba(17, 21, 29, 0.9);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all 0.2s ease;
  position: relative;
}
.step-card:hover {
  border-color: rgba(225, 29, 72, 0.5);
  background: rgba(23, 29, 40, 0.95);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.step-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(225, 29, 72, 0.5);
  flex-shrink: 0;
}
.step-content {
  flex: 1;
}
.step-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.45rem;
  line-height: 1.3;
}
.step-desc {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
}
.step-desc p {
  margin-bottom: 0.5rem;
}
.step-desc p:last-child {
  margin-bottom: 0;
}

/* 3. Clue Matrix / Grid (for 4 Posters) */
.clue-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (min-width: 768px) {
  .clue-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.clue-card {
  background: rgba(5, 7, 10, 0.6);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}
.clue-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.clue-header {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}
.clue-subject {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
.clue-digit {
  font-family: 'Consolas', monospace;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 6px;
  padding: 0.25rem 0;
  margin-top: auto;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

/* 4. Loot & Rewards Pill Grid */
.reward-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}
@media (min-width: 680px) {
  .reward-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.reward-card {
  background: rgba(17, 21, 29, 0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}
.reward-card:hover {
  border-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.15);
}
.reward-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(5, 150, 105, 0.15);
  border: 1px solid rgba(5, 150, 105, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}
.reward-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}
.reward-desc {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.45;
}

/* 5. Multi-tone Callout Alert Boxes */
.callout {
  border-radius: 8px;
  padding: 1.15rem 1.4rem;
  margin: 1.6rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  line-height: 1.6;
  font-size: 0.95rem;
}
.callout-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.callout-body {
  flex: 1;
}
.callout-title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.callout-warning {
  background: radial-gradient(circle at 0% 50%, rgba(225, 29, 72, 0.18) 0%, rgba(17, 21, 29, 0.9) 100%);
  border-left: 4px solid #e11d48;
  border-top: 1px solid rgba(225, 29, 72, 0.3);
  border-right: 1px solid rgba(225, 29, 72, 0.3);
  border-bottom: 1px solid rgba(225, 29, 72, 0.3);
  color: #ffe4e6;
}
.callout-warning .callout-title { color: #f43f5e; }

.callout-tip {
  background: radial-gradient(circle at 0% 50%, rgba(245, 158, 11, 0.15) 0%, rgba(17, 21, 29, 0.9) 100%);
  border-left: 4px solid #f59e0b;
  border-top: 1px solid rgba(245, 158, 11, 0.3);
  border-right: 1px solid rgba(245, 158, 11, 0.3);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  color: #fef3c7;
}
.callout-tip .callout-title { color: #fbbf24; }

.callout-success {
  background: radial-gradient(circle at 0% 50%, rgba(5, 150, 105, 0.15) 0%, rgba(17, 21, 29, 0.9) 100%);
  border-left: 4px solid #059669;
  border-top: 1px solid rgba(5, 150, 105, 0.3);
  border-right: 1px solid rgba(5, 150, 105, 0.3);
  border-bottom: 1px solid rgba(5, 150, 105, 0.3);
  color: #d1fae5;
}
.callout-success .callout-title { color: #34d399; }

/* 6. Inline Highlights & Chips */
mark, .highlight-text {
  background: rgba(225, 29, 72, 0.25);
  color: #fff;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid rgba(225, 29, 72, 0.4);
}
.chip-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--accent);
}

/* Legal pages (Privacy Policy, Contact) */
.legal-updated {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.legal-article .article-content a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

/* Cookie consent banner (Accept and Reject are equal weight on purpose) */
.consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  background: #11151c;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 0.92rem;
  line-height: 1.5;
}
.consent-banner[hidden] {
  display: none;
}
.consent-banner p {
  flex: 1 1 280px;
  margin: 0;
}
.consent-banner a {
  color: var(--accent);
}
.consent-actions {
  display: flex;
  gap: 0.6rem;
  flex: 0 0 auto;
}
.consent-btn {
  min-width: 96px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  border: 1px solid var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
}
.consent-btn:hover,
.consent-btn:focus-visible {
  border-color: var(--accent);
  color: #fff;
}
