:root {
  --bg: #110c14;
  --bg-dusk: #17101d;
  --surface: #1f1626;
  --text: #f6efe6;
  --muted: #b9a8bc;
  --primary: #c92457;
  --primary-hover: #a81c47;
  --accent: #ff9e44;
  --rose: #ff6b93;
  --border: rgba(246, 239, 230, 0.12);
  --border-strong: rgba(255, 158, 68, 0.34);
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --font-head: 'Barlow Condensed', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

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,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--primary);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius);
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
}

/* Signature Leonida horizon accent line */
.sunset-bar {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #5c173d 0%, #c92457 52%, #ff9e44 100%);
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--text);
}

h1 {
  font-size: 48px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 36px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 16px;
  max-width: 70ch;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(17, 12, 20, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.01em;
  text-decoration: none;
  flex-shrink: 0;
}

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

.brand-icon {
  border-radius: 6px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  text-decoration: none;
}

/* Hero Masthead */
.hero {
  padding: 48px 0 64px;
  background: radial-gradient(ellipse 75% 55% at 85% 0%, rgba(201, 36, 87, 0.16), transparent 70%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 24px;
}

/* Inline Quick-Fact Strip */
.quick-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 0 0 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.quick-cell dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.quick-cell dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

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

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

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

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

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

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

.engage-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.engage-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.engage-btn:hover {
  border-color: var(--rose);
}

.engage-btn[data-gf-liked],
.engage-btn[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}

.engage-count {
  color: var(--muted);
}

.share-msg {
  font-size: 14px;
  color: var(--accent);
}

.hero-updated {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

/* Signature Focal Point: Framed GTA Key Lento Sunset Art Panel */
.art-frame {
  margin: 0;
  background: var(--surface);
  border: 2px solid #09060b;
  outline: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.art-frame img {
  width: 100%;
  height: auto;
}

.art-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.art-place {
  font-weight: 600;
  color: var(--text);
}

.art-note {
  font-size: 12px;
  color: var(--muted);
}


/* Sections */
.section {
  padding: 64px 0;
}

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

.section-head {
  margin-bottom: 32px;
}

.section-sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 0;
}

.prose-block p:last-child {
  margin-bottom: 0;
}

/* Overview: Editorial prose + hairline dossier rail */
.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
}

.overview-main .section-sub {
  margin-bottom: 24px;
}

.dossier-rail {
  padding-left: 24px;
  border-left: 2px solid var(--primary);
}

.rail-heading {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 16px;
}

.rail-list {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.rail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.rail-row dt {
  color: var(--muted);
  flex-shrink: 0;
}

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

/* Pipework Mission Log + Editorial Media Split */
.pipework-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: start;
}

.pipework-media {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mission-log {
  list-style: none;
  margin: 0;
  padding: 0 0 0 24px;
  border-left: 2px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mission-step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.step-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
}

.step-content h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.step-content p {
  margin: 0;
  color: var(--muted);
}

.location-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.location-label {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.location-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.location-card p:last-child {
  margin: 0;
  color: var(--muted);
}

/* Romance Verdict Band */
.section-verdict {
  background: linear-gradient(180deg, rgba(201, 36, 87, 0.08) 0%, transparent 100%);
}

.verdict-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 32px;
  align-items: baseline;
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.verdict-word {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--rose);
}

.verdict-lead {
  font-size: 18px;
  color: var(--text);
  margin: 0;
}

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

.split-col h3 {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 12px;
}

.split-col p {
  margin: 0;
  color: var(--muted);
}

/* Mystery Feature Header + Evidence Panels */
.mystery-top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 32px;
}

.mystery-top .section-head {
  margin-bottom: 0;
}

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

.evidence-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.clue-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.evidence-panel h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.evidence-panel p:last-child {
  margin: 0;
  color: var(--muted);
}

/* Cast Credits Roll */
.cast-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: start;
}

.cast-copy .section-sub {
  margin-bottom: 24px;
}

.credits-roll {
  border-top: 2px solid var(--accent);
}

.credit-entry {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.credit-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--rose);
  margin-bottom: 4px;
}

.credit-entry h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.credit-entry p:last-child {
  margin: 0;
  color: var(--muted);
}

/* Hairline FAQ Accordion */
.faq-wrap {
  max-width: 840px;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq-q {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: "+";
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.faq-item[open] .faq-q::after {
  content: "-";
  color: var(--rose);
}

.faq-a {
  padding-top: 12px;
  color: var(--muted);
}

.faq-a p {
  margin: 0;
}

/* Discussion & Comments */
.discussion-wrap {
  max-width: 760px;
}

.comment-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.reply-banner {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 12px;
}

.form-row {
  margin-bottom: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.field input,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.comment-msg {
  font-size: 14px;
  color: var(--accent);
}

.comments-meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comments-list[data-gf-empty]::before {
  content: "No player notes yet. Share a detail you spotted during Pipework or around Peach Palm Drive above.";
  display: block;
  padding: 24px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
}

.comment-item,
.reply-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
}

.comment-item[data-gf-owner],
.reply-item[data-gf-owner] {
  border-color: var(--accent);
}

.comment-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

.owner-badge {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  background: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
}

.reply-to,
.comment-time {
  font-size: 12px;
  color: var(--muted);
}

.comment-text {
  margin-bottom: 8px;
  color: var(--text);
}

.reply-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  padding: 4px 0;
  cursor: pointer;
}

.comment-replies {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Legal & 404 */
.legal-wrap,
.not-found {
  max-width: 780px;
}

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

.legal-body h2 {
  margin-top: 32px;
  font-size: 28px;
}

.legal-body ul,
.legal-body ol {
  padding-left: 24px;
  margin: 0 0 16px;
  color: var(--muted);
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 22px;
  color: var(--accent);
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.legal-body th,
.legal-body td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.legal-body th {
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--text);
  background: rgba(201, 36, 87, 0.14);
}

.legal-body td {
  color: var(--muted);
}

.legal-body tr:last-child td {
  border-bottom: none;
}

.guide-updated {
  display: inline-block;
  margin-top: 8px;
  margin-bottom: 16px;
}

.guide-lead {
  font-size: 18px;
  color: var(--text);
  padding: 16px 24px;
  margin: 0 0 32px;
  background: var(--surface);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
}

.guide-faq {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.guide-faq h2 {
  margin-bottom: 16px;
}

.related-guides {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--accent);
}

.related-guides h2 {
  margin-bottom: 16px;
  font-size: 28px;
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.related-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.related-link:hover {
  border-color: var(--accent);
}

.related-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

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

.section-more {
  margin-top: 24px;
}

.section-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.section-more a:hover {
  color: var(--rose);
  border-bottom-color: var(--rose);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 480px;
}

.footer-disclaimer {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 14px;
  color: var(--muted);
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer-copy {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

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

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 28px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
    gap: 12px;
  }

  .site-nav {
    gap: 12px;
  }

  .hero {
    padding: 32px 0 48px;
  }

  .hero-grid,
  .overview-layout,
  .pipework-layout,
  .mystery-top,
  .editorial-split,
  .evidence-grid,
  .cast-layout,
  .verdict-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .quick-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .dossier-rail {
    padding-left: 0;
    padding-top: 24px;
    border-left: none;
    border-top: 2px solid var(--primary);
  }

  .mission-log {
    padding-left: 16px;
  }

  .mission-step {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0;
  }

  .hero-actions .btn,
  .form-actions .btn {
    width: 100%;
  }

  .rail-row {
    flex-direction: column;
    gap: 4px;
  }

  .rail-row dd {
    text-align: left;
  }

  .footer-meta {
    align-items: flex-start;
  }

  .related-list {
    grid-template-columns: 1fr;
  }
}


/* Adsterra Ad Slots */
.ad-band {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(17, 12, 20, 0.55);
}

.ad-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  width: 100%;
}

.ad-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.72;
}

.ad-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.ad-frame-leaderboard {
  min-height: 50px;
}

@media (min-width: 768px) {
  .ad-frame-leaderboard {
    min-height: 90px;
  }
}

.ad-frame-rect {
  min-height: 250px;
}

.ad-frame-native {
  min-height: 120px;
}

.dossier-rail .ad-rect {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.guide-ad {
  margin: 32px 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
