:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #4b5563;
  --header-bg: #111318;
  --subnav-bg: #1b1f29;
  --primary: #c83e37;
  --primary-hover: #a9322c;
  --primary-soft: #fef2f2;
  --accent: #c83e37;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

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

a:hover {
  text-decoration: underline;
}

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* GTABase-inspired Dual Dark Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: var(--shadow-sm);
}

.header-top {
  background: var(--header-bg);
  border-bottom: 1px solid var(--subnav-bg);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
}

.brand:hover {
  text-decoration: none;
}

.brand-emblem {
  flex-shrink: 0;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--surface);
}

.brand-accent {
  color: var(--primary);
}

.brand-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--border);
  letter-spacing: 0.1em;
}

.header-badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--subnav-bg);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.subnav {
  background: var(--subnav-bg);
  border-bottom: 3px solid var(--primary);
}

.subnav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  min-height: 44px;
}

.subnav-link {
  padding: 10px 14px;
  color: var(--border);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.subnav-link:hover {
  background: var(--header-bg);
  color: var(--surface);
  text-decoration: none;
}

/* Main Wiki Two-Column Shell */
.site-main {
  padding: 32px 0 64px;
}

.wiki-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}

.wiki-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

/* Typography & Article Header */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 14px;
}

h1 { font-size: 38px; letter-spacing: -0.02em; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }

.article-head {
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--muted);
}

.kicker-pill {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 12px;
  border-radius: 6px;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.article-lead {
  margin: 0;
  font-size: 17px;
  color: var(--muted);
  max-width: 66ch;
}

/* Hero In-Game Screenshot */
.hero-media {
  margin: 0 0 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #111318;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 12px 16px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}



/* Hub 2x2 Real Screenshot Gallery */
.hub-gallery {
  margin-bottom: 36px;
}

.block-head {
  margin-bottom: 16px;
}

.block-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.media-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.media-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}

.media-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111318;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.media-card:hover .media-thumb img {
  transform: scale(1.03);
}

.media-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.media-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.media-body h3 {
  margin: 0;
  font-size: 18px;
}

.media-body p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Verdict Box */
.verdict-box {
  margin: 0 0 28px;
  padding: 18px 20px;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
}

.verdict-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.verdict-box p {
  margin: 0;
  color: var(--text);
}

/* Interactive Widgets (Clean Light Wiki Style) */
.widget-shell {
  margin: 0 0 36px;
  padding: 24px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
}

.widget-head {
  margin-bottom: 20px;
}

.widget-sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.choice-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.choice-card:hover {
  border-color: var(--primary);
}

.choice-card.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.choice-step {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.choice-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.choice-output {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
}

.choice-out-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.choice-out-head h3 {
  margin: 0;
  font-size: 17px;
}

.outcome-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.outcome-neutral {
  background: var(--bg);
  color: var(--muted);
}

.outcome-lore {
  background: var(--primary-soft);
  color: var(--primary);
}

.choice-output p {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--muted);
}

.choice-output p:last-child {
  margin-bottom: 0;
}

.choice-output strong {
  color: var(--text);
}

.widget-footer-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

.widget-footer-note strong {
  color: var(--text);
}

/* Evidence Board */
.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.clue-list {
  display: grid;
  gap: 10px;
}

.clue-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.clue-card:hover {
  border-color: var(--primary);
}

.clue-card input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.clue-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.clue-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.clue-desc {
  font-size: 13px;
  color: var(--muted);
}

.meter-panel {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.meter-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.meter-score {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin: 8px 0 12px;
}

.meter-bar-track {
  width: 100%;
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.meter-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.meter-verdict {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
}

.meter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Timeline */
.timeline-block {
  margin: 0 0 36px;
}

.timeline-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--border);
  display: grid;
  gap: 16px;
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -31px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--primary);
  border: 2px solid var(--surface);
}

.timeline-card {
  padding: 16px 20px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.timeline-date {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.timeline-card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.timeline-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Prose */
.prose {
  max-width: 70ch;
}

.prose h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin: 0 0 16px;
  color: var(--text);
}

.prose ul, .prose ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.prose th, .prose td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

.prose th {
  background: var(--surface-alt);
  color: var(--text);
  font-weight: 600;
}

/* FAQ & Next */
.faq-block, .next-block {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
}

.faq-item summary {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
}

.faq-item p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.next-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.next-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}

.next-card:hover {
  border-color: var(--primary);
  text-decoration: none;
}

.next-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
}

.next-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}

.next-desc {
  font-size: 14px;
  color: var(--muted);
}

/* Right Sticky GTABase-Style Sidebar */
.wiki-sidebar {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 124px;
}

.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.side-header {
  padding: 12px 16px;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.infobox-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.info-table {
  margin: 0;
  padding: 12px 16px;
  display: grid;
  gap: 10px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.info-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.info-row dt {
  color: var(--muted);
}

.info-row dd {
  margin: 0;
  font-weight: 600;
  color: var(--text);
  text-align: right;
}

.side-guide-list {
  list-style: none;
  margin: 0;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.side-guide-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
  color: var(--text);
}

.side-guide-item:hover {
  background: var(--surface-alt);
  text-decoration: none;
}

.side-thumb {
  width: 92px;
  height: 54px;
  border-radius: 6px;
  object-fit: cover;
}

.side-guide-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-guide-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.side-guide-sub {
  font-size: 12px;
  color: var(--muted);
}

.side-simple-list {
  list-style: none;
  margin: 0;
  padding: 12px 16px;
  display: grid;
  gap: 10px;
}

.side-simple-list a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.side-simple-list a:hover {
  color: var(--primary);
}

/* Footer */
.site-footer {
  background: var(--header-bg);
  color: var(--border);
  padding: 48px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--subnav-bg);
}

.footer-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--border);
  max-width: 56ch;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.footer-heading {
  font-size: 14px;
  color: var(--surface);
  margin: 0 0 12px;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-list a {
  font-size: 14px;
  color: var(--border);
}

.footer-list a:hover {
  color: var(--surface);
}

.footer-bottom {
  padding-top: 20px;
  font-size: 12px;
  color: var(--border);
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 900px) {
  .wiki-shell {
    grid-template-columns: 1fr;
  }

  .wiki-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .wiki-card {
    padding: 20px 16px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .header-badge {
    display: none;
  }

  .media-grid,
  .choice-grid,
  .board-layout,
  .next-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }
}