/* 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;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  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;
}

/* Header & Nav - Wide 1240px */
.site-header {
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.95rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.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;
}
.brand span {
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
}
.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;
}
.nav-links a:hover { color: #fff; }

/* Main Container - Expansive 1240px */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

/* ========================================================
   Hero Section - Massive Impact (First 3 Seconds Rule)
   ======================================================== */
.hero {
  padding: 1.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-layout {
    grid-template-columns: 1.18fr 0.82fr;
    gap: 3rem;
  }
}
.hero-content {
  display: flex;
  flex-direction: column;
}

/* Eyebrow Badge */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fda4af;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.4);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  width: fit-content;
}
.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.8rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
}
@media (min-width: 768px) {
  .hero-title {
    font-size: 3.8rem;
  }
}
.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));
}

.hero-tagline {
  font-size: 1.12rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.85rem;
}
.hero-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.6rem;
  max-width: 680px;
}

/* 4-Column Game Highlights Grid (like farevergame.wiki & gamblewithyourfriends) */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}
@media (min-width: 600px) {
  .hero-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.hero-stat-card {
  background: rgba(17, 21, 29, 0.85);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}
.hero-stat-card:hover {
  border-color: rgba(225, 29, 72, 0.4);
}
.stat-num {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
}
.stat-num.highlight-amber {
  color: #fbbf24;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}
.stat-lbl {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
}

/* 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);
}

/* Hero Right Side - CRTV Atmospheric Frame */
.hero-banner-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(225, 29, 72, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(225, 29, 72, 0.2);
  background-color: #05070a;
}
.hero-banner-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.hero-banner-frame:hover .hero-banner-img {
  transform: scale(1.03);
}
.hero-badge-overlay {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(8, 10, 14, 0.9);
  backdrop-filter: blur(10px);
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  border: 1px solid rgba(225, 29, 72, 0.35);
  font-size: 0.8rem;
  color: #f1f5f9;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* ========================================================
   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;
}
.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);
}

.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%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.92rem;
}
.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);
}
