/* ==========================================================================
   L444 BD Official Design System - CSS Prefix: zvh5-
   Generated strictly from DESIGN_DNA.json
   ========================================================================== */

:root {
  --zvh5-bg: #F7F4F5;
  --zvh5-surface: #FFFFFF;
  --zvh5-surface-subtle: #F0EBEC;
  --zvh5-ink: #260F16;
  --zvh5-ink-muted: #5C434A;
  --zvh5-ink-light: #8E737B;
  --zvh5-accent: #D81855;
  --zvh5-accent2: #D02F62;
  --zvh5-accent-tint: rgba(216, 24, 85, 0.08);
  --zvh5-accent-hover: #B51244;
  --zvh5-on-accent: #FFFFFF;
  --zvh5-border: rgba(38, 15, 22, 0.08);
  --zvh5-border-focus: #D81855;
  --zvh5-shadow-1: 0 4px 6px -1px rgba(38, 15, 22, 0.06), 0 2px 4px -1px rgba(38, 15, 22, 0.04);
  --zvh5-shadow-2: 0 10px 20px -3px rgba(38, 15, 22, 0.08), 0 4px 8px -2px rgba(38, 15, 22, 0.05);
  --zvh5-radius: 12px;
  --zvh5-radius-sm: 8px;
  --zvh5-radius-pill: 9999px;
  --zvh5-rail-width: 260px;
  --zvh5-font-heading: 'Anton', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --zvh5-font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --zvh5-base-size: 17px;
  --zvh5-scale: 1.25;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--zvh5-base-size);
  background-color: var(--zvh5-bg);
  color: var(--zvh5-ink);
  font-family: var(--zvh5-font-body);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--zvh5-bg);
  color: var(--zvh5-ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Scroll Progress Bar (Motion: scroll-progress-bar) */
.zvh5-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--zvh5-accent), var(--zvh5-accent2));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Master Layout Structure: Left-Rail + Magazine-Grid */
.zvh5-app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Left-Rail Navigation (Nav: left-rail)
   -------------------------------------------------------------------------- */
.zvh5-left-rail {
  width: var(--zvh5-rail-width);
  background: var(--zvh5-surface);
  border-right: 1px solid var(--zvh5-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1000;
  box-shadow: var(--zvh5-shadow-1);
}

.zvh5-rail-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--zvh5-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zvh5-rail-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--zvh5-ink);
}

.zvh5-rail-logo img {
  height: 42px;
  width: auto;
  display: block;
}

.zvh5-rail-logo-text {
  font-family: var(--zvh5-font-heading);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--zvh5-accent);
  line-height: 1.1;
  text-transform: uppercase;
}

.zvh5-rail-logo-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--zvh5-ink-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zvh5-rail-nav {
  padding: 1rem 0;
  flex: 1;
  overflow-y: auto;
}

.zvh5-rail-section-title {
  padding: 0.75rem 1.5rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--zvh5-ink-light);
}

.zvh5-rail-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1.5rem;
  color: var(--zvh5-ink-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.zvh5-rail-link:hover, .zvh5-rail-link.active {
  background-color: var(--zvh5-accent-tint);
  color: var(--zvh5-accent);
  border-left-color: var(--zvh5-accent);
}

.zvh5-rail-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.zvh5-rail-cta-box {
  padding: 1.25rem;
  background: var(--zvh5-surface-subtle);
  border-top: 1px solid var(--zvh5-border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* --------------------------------------------------------------------------
   Mobile Top Header & Drawer Toggle
   -------------------------------------------------------------------------- */
.zvh5-mobile-topbar {
  display: none;
  background: var(--zvh5-surface);
  border-bottom: 1px solid var(--zvh5-border);
  padding: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1001;
}

.zvh5-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--zvh5-ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.zvh5-menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   Main Content Area (Magazine Grid)
   -------------------------------------------------------------------------- */
.zvh5-main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.zvh5-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem;
  width: 100%;
}

/* Magazine Grid (12-column editorial structure) */
.zvh5-magazine-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.zvh5-col-12 { grid-column: span 12; }
.zvh5-col-8 { grid-column: span 8; }
.zvh5-col-7 { grid-column: span 7; }
.zvh5-col-6 { grid-column: span 6; }
.zvh5-col-5 { grid-column: span 5; }
.zvh5-col-4 { grid-column: span 4; }
.zvh5-col-3 { grid-column: span 3; }

/* --------------------------------------------------------------------------
   Hero Section: Game-Finder-Search-First
   -------------------------------------------------------------------------- */
.zvh5-hero {
  background: linear-gradient(135deg, var(--zvh5-surface) 0%, #FFF5F7 100%);
  border-radius: var(--zvh5-radius);
  border: 1px solid var(--zvh5-border);
  padding: 2.5rem 2rem;
  box-shadow: var(--zvh5-shadow-2);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.zvh5-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--zvh5-accent-tint);
  color: var(--zvh5-accent);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--zvh5-radius-pill);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.zvh5-hero-title {
  font-family: var(--zvh5-font-heading);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0.03em;
  color: var(--zvh5-ink);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.zvh5-hero-lead {
  font-size: 1.12rem;
  color: var(--zvh5-ink-muted);
  max-width: 720px;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* Game Finder Search Bar */
.zvh5-game-finder {
  background: var(--zvh5-surface);
  border: 2px solid var(--zvh5-accent);
  border-radius: var(--zvh5-radius);
  padding: 0.5rem;
  display: flex;
  gap: 0.5rem;
  max-width: 680px;
  box-shadow: var(--zvh5-shadow-1);
}

.zvh5-finder-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  font-family: var(--zvh5-font-body);
  color: var(--zvh5-ink);
  outline: none;
}

.zvh5-finder-select {
  border: 1px solid var(--zvh5-border);
  border-radius: var(--zvh5-radius-sm);
  background: var(--zvh5-surface-subtle);
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--zvh5-ink);
  outline: none;
  cursor: pointer;
}

.zvh5-finder-btn {
  background: var(--zvh5-accent);
  color: var(--zvh5-on-accent);
  border: none;
  border-radius: var(--zvh5-radius-sm);
  padding: 0.65rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.zvh5-finder-btn:hover {
  background: var(--zvh5-accent-hover);
}

/* --------------------------------------------------------------------------
   CTA Buttons & Underlined Text Link (CTA: underlined-text-link)
   -------------------------------------------------------------------------- */
.zvh5-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--zvh5-accent);
  color: var(--zvh5-on-accent);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--zvh5-radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(216, 24, 85, 0.2);
}

.zvh5-btn-primary:hover {
  background: var(--zvh5-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(216, 24, 85, 0.3);
}

.zvh5-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--zvh5-surface);
  color: var(--zvh5-ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--zvh5-radius-sm);
  text-decoration: none;
  border: 1px solid var(--zvh5-border);
  transition: all 0.2s ease;
}

.zvh5-btn-secondary:hover {
  background: var(--zvh5-surface-subtle);
  border-color: var(--zvh5-accent);
  color: var(--zvh5-accent);
}

/* Underlined Text Link (Signature DNA) */
.zvh5-text-link {
  color: var(--zvh5-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  transition: color 0.2s, text-decoration-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.zvh5-text-link:hover {
  color: var(--zvh5-accent-hover);
  text-decoration-thickness: 3px;
}

/* --------------------------------------------------------------------------
   Cards (Card: layered-elevation - 12px radius, two-layer shadow)
   -------------------------------------------------------------------------- */
.zvh5-card {
  background: var(--zvh5-surface);
  border-radius: var(--zvh5-radius);
  border: 1px solid var(--zvh5-border);
  box-shadow: var(--zvh5-shadow-1);
  padding: 1.5rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.zvh5-card:hover {
  box-shadow: var(--zvh5-shadow-2);
  transform: translateY(-2px);
  border-color: rgba(216, 24, 85, 0.25);
}

.zvh5-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.zvh5-card-title {
  font-family: var(--zvh5-font-heading);
  font-size: 1.35rem;
  color: var(--zvh5-ink);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.zvh5-card-title a {
  text-decoration: none;
  color: inherit;
}

.zvh5-card-title a:hover {
  color: var(--zvh5-accent);
}

.zvh5-card-desc {
  font-size: 0.92rem;
  color: var(--zvh5-ink-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}

.zvh5-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--zvh5-radius-sm);
  margin-bottom: 1rem;
  background: var(--zvh5-surface-subtle);
}

/* --------------------------------------------------------------------------
   Quick Answer Capsule / Definition Box (Generative AI Optimization)
   -------------------------------------------------------------------------- */
.zvh5-capsule-box {
  background: #FFF8FA;
  border-left: 4px solid var(--zvh5-accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--zvh5-radius-sm) var(--zvh5-radius-sm) 0;
  margin: 1.5rem 0;
  box-shadow: var(--zvh5-shadow-1);
}

.zvh5-capsule-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--zvh5-accent);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.zvh5-capsule-text {
  font-size: 1.02rem;
  color: var(--zvh5-ink);
  line-height: 1.5;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Comparison Tables
   -------------------------------------------------------------------------- */
.zvh5-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--zvh5-radius);
  border: 1px solid var(--zvh5-border);
  box-shadow: var(--zvh5-shadow-1);
  margin: 1.5rem 0;
  background: var(--zvh5-surface);
}

.zvh5-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.zvh5-table th {
  background: var(--zvh5-surface-subtle);
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--zvh5-ink);
  border-bottom: 2px solid var(--zvh5-border);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.zvh5-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--zvh5-border);
  color: var(--zvh5-ink-muted);
}

.zvh5-table tr:last-child td {
  border-bottom: none;
}

.zvh5-table tr:hover td {
  background-color: #FFF9FA;
}

/* --------------------------------------------------------------------------
   Step-by-Step Walkthrough Guide
   -------------------------------------------------------------------------- */
.zvh5-step-list {
  list-style: none;
  counter-reset: zvh5-counter;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.zvh5-step-item {
  counter-increment: zvh5-counter;
  display: flex;
  gap: 1.25rem;
  background: var(--zvh5-surface);
  padding: 1.25rem 1.5rem;
  border-radius: var(--zvh5-radius);
  border: 1px solid var(--zvh5-border);
  box-shadow: var(--zvh5-shadow-1);
}

.zvh5-step-num {
  width: 38px;
  height: 38px;
  border-radius: var(--zvh5-radius-pill);
  background: var(--zvh5-accent);
  color: var(--zvh5-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--zvh5-font-heading);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.zvh5-step-content h3 {
  font-family: var(--zvh5-font-heading);
  font-size: 1.25rem;
  color: var(--zvh5-ink);
  margin-bottom: 0.35rem;
}

.zvh5-step-content p {
  font-size: 0.95rem;
  color: var(--zvh5-ink-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Breadcrumb Bar
   -------------------------------------------------------------------------- */
.zvh5-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.75rem 0;
  font-size: 0.84rem;
  color: var(--zvh5-ink-light);
  margin-bottom: 1.5rem;
}

.zvh5-breadcrumbs a {
  color: var(--zvh5-ink-muted);
  text-decoration: none;
  font-weight: 500;
}

.zvh5-breadcrumbs a:hover {
  color: var(--zvh5-accent);
  text-decoration: underline;
}

.zvh5-breadcrumbs span {
  color: var(--zvh5-ink-light);
}

/* --------------------------------------------------------------------------
   E-E-A-T Author Box
   -------------------------------------------------------------------------- */
.zvh5-author-box {
  background: var(--zvh5-surface);
  border: 1px solid var(--zvh5-border);
  border-radius: var(--zvh5-radius);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin: 2rem 0;
  box-shadow: var(--zvh5-shadow-1);
}

.zvh5-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--zvh5-radius-pill);
  object-fit: cover;
  border: 2px solid var(--zvh5-accent);
  flex-shrink: 0;
}

.zvh5-author-meta h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--zvh5-ink);
}

.zvh5-author-meta p {
  font-size: 0.85rem;
  color: var(--zvh5-ink-muted);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Accordion Footer (Footer: accordion-footer)
   -------------------------------------------------------------------------- */
.zvh5-footer {
  background: #1C0A10;
  color: #D3C2C7;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: auto;
  border-top: 4px solid var(--zvh5-accent);
}

.zvh5-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

.zvh5-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.zvh5-footer-brand h3 {
  font-family: var(--zvh5-font-heading);
  font-size: 1.8rem;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.zvh5-footer-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #9C858C;
  margin-bottom: 1.25rem;
}

.zvh5-footer-col h4 {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.zvh5-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.zvh5-footer-links a {
  color: #B5A0A7;
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.2s;
}

.zvh5-footer-links a:hover {
  color: #FF5A8D;
  text-decoration: underline;
}

.zvh5-responsible-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #9C858C;
}

.zvh5-trust-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.zvh5-trust-badges img {
  height: 36px;
  width: auto;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .zvh5-left-rail {
    position: fixed;
    left: -100%;
    transition: left 0.3s ease;
  }
  
  .zvh5-left-rail.open {
    left: 0;
  }
  
  .zvh5-mobile-topbar {
    display: flex;
  }
  
  .zvh5-col-8, .zvh5-col-7, .zvh5-col-6, .zvh5-col-5, .zvh5-col-4, .zvh5-col-3 {
    grid-column: span 12;
  }
  
  .zvh5-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .zvh5-footer-grid {
    grid-template-columns: 1fr;
  }
  
  .zvh5-game-finder {
    flex-direction: column;
  }
  
  .zvh5-hero {
    padding: 1.5rem 1rem;
  }
  
  .zvh5-container {
    padding: 1rem;
  }
}
