:root {
  --bg: #f1faee;
  --surface: #ffffff;
  --surface-sky: #e8f5ff;
  --text: #14281d;
  --muted: #456051;
  --primary: #15803d;
  --primary-bright: #22c55e;
  --primary-dark: #166534;
  --sky: #0369a1;
  --sky-dark: #075985;
  --gold: #c2410c;
  --border: #cfe6d4;
  --radius: 14px;
  --shadow-sm: 0 2px 6px rgba(20, 40, 29, .06);
  --shadow-md: 0 10px 28px rgba(20, 40, 29, .10);
  --font-head: "Rubik", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 8px; background: var(--primary); color: #fff;
  padding: 8px 16px; border-radius: var(--radius); z-index: 999;
}
.skip-link:focus { left: 16px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface);
  border-bottom: 3px solid var(--primary-bright);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text);
  font-family: var(--font-head); font-size: 18px; font-weight: 800; line-height: 1.2;
}
.brand:hover { color: var(--primary); }
.brand-icon {
  border-radius: 8px; border: 2px solid var(--primary-bright);
  box-shadow: var(--shadow-sm); flex-shrink: 0;
}
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link {
  padding: 8px 12px; border-radius: 10px;
  text-decoration: none; color: var(--muted);
  font-size: 14px; font-weight: 700; min-height: 40px;
  display: inline-flex; align-items: center;
}
.nav-link:hover, .nav-link[aria-current="page"] {
  background: var(--surface-sky); color: var(--sky-dark);
}
.nav-toggle {
  display: none; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); display: block; }

/* Sunny Sky-to-Meadow Hero Showcase */
.hero-band {
  background: linear-gradient(180deg, var(--surface-sky) 0%, var(--bg) 100%);
  padding: 32px 0 24px 0;
  border-bottom: 1px solid var(--border);
}
.game-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.hero-id-row {
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px;
}
.hero-game-icon {
  border-radius: 14px; border: 3px solid var(--primary-bright);
  box-shadow: var(--shadow-sm); flex-shrink: 0;
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--sky); margin: 0 0 4px 0; letter-spacing: 0.04em;
}
.hero-tagline {
  font-family: var(--font-head); font-size: 22px; font-weight: 700;
  line-height: 1.2; color: var(--text); margin: 0;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; margin-bottom: 16px;
}
.stat-chip {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 12px;
}
.stat-chip span { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.stat-chip strong {
  display: block; font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--text);
}
.stat-chip-alert { background: var(--surface-sky); border-color: var(--sky); }
.stat-chip-alert strong { color: var(--gold); }

.hero-place-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 24px; font-size: 14px;
}
.place-label { font-weight: 700; color: var(--muted); }
.mono-code {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  background: var(--surface-sky); color: var(--sky-dark);
  padding: 4px 8px; border-radius: 8px;
}
.copy-mini {
  background: #ffffff; border: 1px solid var(--border); border-radius: 8px;
  padding: 4px 10px; font-size: 12px; font-weight: 700; color: var(--primary); cursor: pointer;
}
.copy-mini:hover { background: var(--bg); }
.place-updated { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual {
  margin: 0; background: var(--text); border-radius: var(--radius);
  overflow: hidden; border: 2px solid var(--primary-bright); box-shadow: var(--shadow-sm);
}
.hero-visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-visual figcaption {
  padding: 8px 12px; font-size: 12px; color: var(--surface);
  background: var(--text); font-weight: 600;
}

/* Buttons */
.btn-primary, .btn-sky, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 18px; border-radius: 10px;
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--primary); color: var(--surface); border: 1px solid var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--surface); }
.btn-sky { background: var(--sky); color: var(--surface); border: 1px solid var(--sky); }
.btn-sky:hover { background: var(--sky-dark); border-color: var(--sky-dark); color: var(--surface); }
.btn-outline { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--surface-sky); border-color: var(--sky); color: var(--sky-dark); }

/* Containers */
.home-wrap { padding-top: 32px; padding-bottom: 64px; }
.page-wrap { padding-top: 24px; padding-bottom: 64px; }
.home-guides-top { margin-top: 0; }
.section-tag {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--primary); letter-spacing: 0.05em;
}
.section-head { margin-bottom: 16px; }
.section-head h2 {
  font-family: var(--font-head); font-size: 28px; font-weight: 700;
  line-height: 1.2; margin: 8px 0 0 0; color: var(--text);
}



/* Wiki Card & Prose */
.wiki-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-sm);
}
.prose h1, .prose h2, .prose h3 {
  font-family: var(--font-head); color: var(--text); line-height: 1.2;
}
.prose h1 { font-size: 36px; font-weight: 800; margin: 0 0 16px 0; letter-spacing: -0.02em; }
.prose h2 {
  font-size: 28px; font-weight: 700; margin: 48px 0 16px 0;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.prose h3 { font-size: 22px; font-weight: 700; margin: 32px 0 12px 0; }
.prose p, .prose ul, .prose ol { max-width: 70ch; margin: 0 0 16px 0; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  max-width: 70ch; margin: 24px 0; padding: 16px 24px;
  background: var(--surface-sky); border-left: 4px solid var(--sky);
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--text);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code {
  font-family: var(--font-mono); font-size: 14px;
  background: var(--surface-sky); color: var(--sky-dark);
  padding: 2px 6px; border-radius: 6px;
}
.prose img {
  margin: 24px 0; border-radius: var(--radius);
  border: 2px solid var(--border); box-shadow: var(--shadow-sm);
}
.table-wrap {
  overflow-x: auto; margin: 24px 0; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
}
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.prose th, .prose td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.prose th { background: var(--surface-sky); font-weight: 700; color: var(--text); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }

/* Official Screenshots Gallery */
.gallery-section, .guides-section, .related-section, .faq-section, .engage-section { margin-top: 48px; }
.home-guides-top { margin-top: 0; }
.shot-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.shot-card {
  margin: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.shot-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot-card figcaption {
  padding: 10px 12px; font-size: 13px; font-weight: 700; color: var(--text);
}

/* Guide Matrix & Related */
.guide-matrix {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.guide-card {
  display: flex; flex-direction: column; gap: 8px; padding: 24px;
  background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--primary-bright);
  border-radius: var(--radius); text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.guide-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--sky); color: var(--text);
}
.guide-kicker { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--sky); }
.guide-card h3 { font-family: var(--font-head); font-size: 22px; font-weight: 700; line-height: 1.2; margin: 0; }
.guide-card p { font-size: 14px; color: var(--muted); margin: 0; flex: 1; }
.guide-cta { font-size: 14px; font-weight: 700; color: var(--primary); margin-top: 8px; }

.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-card {
  display: flex; flex-direction: column; gap: 6px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm);
}
.related-card:hover { border-color: var(--sky); }
.related-card strong { font-family: var(--font-head); font-size: 18px; color: var(--primary); line-height: 1.2; }
.related-card span { font-size: 14px; color: var(--muted); }

/* Inner Page Elements */
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 14px; color: var(--muted); margin-bottom: 16px;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); text-decoration: underline; }
.page-meta-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.meta-date, .meta-id { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.page-hero-shot {
  margin: 0 0 24px 0; background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  max-width: 780px;
}
.page-hero-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.page-hero-shot figcaption {
  padding: 10px 16px; font-size: 13px; font-weight: 700; color: var(--muted);
  background: var(--surface-sky);
}
.tldr-box {
  background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--primary);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px; box-shadow: var(--shadow-sm);
}
.tldr-label { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--primary); margin: 0 0 6px 0; }
.tldr-text { margin: 0; max-width: 70ch; font-size: 16px; }
.tool-wrap { margin-bottom: 24px; }
.legal-prose {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm);
}

/* FAQ Accordion */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0 24px; box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-family: var(--font-head); font-size: 18px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 22px; color: var(--primary); }
.faq-item[open] summary::after { content: "−"; color: var(--gold); }
.faq-a { padding: 0 0 16px 0; color: var(--muted); border-top: 1px dashed var(--border); }
.faq-a p { margin: 12px 0 0 0; max-width: 70ch; }

/* Engage / Comments */
.engage-section {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.engage-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px;
  margin-bottom: 16px;
}
.engage-bar h2 { font-family: var(--font-head); font-size: 28px; margin: 8px 0 0 0; line-height: 1.2; }
.engage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.engage-like[data-gf-liked] { background: var(--primary); color: #ffffff; border-color: var(--primary); }
.mono-pill { font-family: var(--font-mono); font-size: 12px; background: var(--surface-sky); color: var(--text); padding: 2px 8px; border-radius: 99px; }
.engage-like[data-gf-liked] .mono-pill { background: rgba(255,255,255,.22); color: #ffffff; }
.share-msg, .comment-msg { font-size: 14px; color: var(--primary); font-weight: 700; }
.engage-intro { color: var(--muted); max-width: 70ch; margin: 0 0 24px 0; }
.comment-form { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 32px; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px;
  font-family: var(--font-body); font-size: 16px; color: var(--text); background: var(--bg);
}
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.comment-count-wrap { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.reply-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 12px; background: var(--surface-sky); border-radius: 8px; font-size: 14px;
}
.link-btn {
  background: none; border: 0; padding: 4px 8px; color: var(--sky);
  font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: underline;
}
.comments-list { display: flex; flex-direction: column; gap: 16px; }
.comments-list[data-gf-empty]::after {
  content: "No player field notes yet. Be the first to post a verified gun price, area threshold, or newly released code.";
  display: block; padding: 16px; background: var(--bg); border-radius: 10px;
  color: var(--muted); font-size: 14px;
}
.comment-card {
  padding: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
}
.comment-card[data-gf-owner] { border-left: 4px solid var(--primary); background: var(--surface-sky); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.owner-badge {
  font-family: var(--font-mono); font-size: 12px; background: var(--primary); color: var(--surface);
  padding: 2px 8px; border-radius: 6px;
}
.comment-time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.comment-to { font-size: 12px; color: var(--sky); font-weight: 700; margin: 0 0 4px 0; }
.comment-body { margin: 0 0 8px 0; max-width: 70ch; }
.comment-replies { margin-top: 12px; padding-left: 16px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 12px; }

/* 404 */
.not-found {
  max-width: 640px; margin: 48px auto; padding: 32px;
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.not-found h1 { font-family: var(--font-head); font-size: 36px; margin: 12px 0 16px 0; line-height: 1.2; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Footer */
.site-footer {
  background: var(--text); color: var(--bg); padding: 48px 0;
  border-top: 4px solid var(--primary-bright);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-icon { border-radius: 10px; border: 2px solid var(--primary-bright); }
.footer-title { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--surface); margin: 0; }
.footer-note { font-size: 14px; margin: 0 0 12px 0; max-width: 48ch; color: var(--bg); }
.footer-copy { font-family: var(--font-mono); font-size: 12px; color: var(--border); margin: 0; }
.footer-heading { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--border); margin: 0 0 12px 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--surface); text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--surface-sky); text-decoration: underline; }

/* Responsive */
@media (max-width: 960px) {
  .game-hero { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-matrix, .related-grid, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--surface); border-bottom: 2px solid var(--primary-bright);
    flex-direction: column; align-items: stretch; padding: 12px 16px; gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { display: flex; }
  .nav-link { padding: 12px; }
  .hero-band { padding: 16px 0; }
  .game-hero { padding: 16px; gap: 16px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions a { width: 100%; }
  .prose h1, .not-found h1 { font-size: 28px; }
  .prose h2, .section-head h2, .engage-bar h2 { font-size: 22px; }
  .shot-grid, .guide-matrix, .related-grid, .footer-grid { grid-template-columns: 1fr; }
  .nf-actions a, .comment-form .btn-primary { width: 100%; }
  .wiki-card, .engage-section, .legal-prose { padding: 24px 16px; }
}