:root {
  --bg: #f6f8f4;
  --surface: #ffffff;
  --surface-alt: #eef3ea;
  --ink: #16261c;
  --muted: #465a4d;
  --border: #d2ded5;
  --primary: #1b6b43;
  --primary-hover: #134e31;
  --accent: #b85d19;
  --gold: #8a6200;
  --danger: #a62626;
  --radius: 14px;
  --radius-sm: 9px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.68;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

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

/* Header & Navigation */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--primary);
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-list a:hover {
  background: var(--surface-alt);
  color: var(--primary);
}

.nav-list a.nav-cta {
  background: var(--primary);
  color: var(--surface);
}

.nav-list a.nav-cta:hover {
  background: var(--primary-hover);
  color: var(--surface);
}

/* Reserved Native Ad Slots (Hidden when empty) */
.gfs-ad-slot {
  max-width: 1080px;
  margin: 12px auto;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.gfs-ad-slot:empty {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Hero & Game Stage */
.hero-head {
  padding: 22px 0 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 10px;
}

h1 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  line-height: 1.2;
  color: var(--ink);
}

.hero-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 78ch;
}

.player-shell {
  margin: 16px 0 22px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.player-viewport {
  position: relative;
  width: 100%;
  min-height: 540px;
  background: var(--ink);
}

.player-viewport iframe {
  width: 100%;
  height: 560px;
  border: 0;
  display: block;
  background: var(--bg);
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: var(--ink);
  color: var(--surface);
  z-index: 4;
}

.player-cover[hidden] {
  display: none;
}

.player-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  border-radius: 0;
  pointer-events: none;
}

.player-cover-card {
  position: relative;
  z-index: 2;
  max-width: 520px;
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.player-cover-title {
  font-family: Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--surface);
}

.player-cover-desc {
  margin: 0 0 18px;
  color: var(--surface-alt);
  font-size: 0.95rem;
}

.btn-play-main {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--surface);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 13px 30px;
  cursor: pointer;
}

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

.player-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--surface);
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 3;
}

.player-loading[hidden] {
  display: none;
}

.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
}

.player-meta {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.player-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.action-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.action-btn[aria-pressed="true"],
.action-btn[data-gf-liked] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--surface);
}

.share-note {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
}

/* Route Quick Cards */
.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.route-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
}

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

.route-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.route-card h3,
.route-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.route-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Interactive Widgets on Guide Pages */
.tool-stage {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 18px 0 24px;
}

.tool-stage h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.filter-input,
.filter-select {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.92rem;
  min-width: 180px;
  flex: 1;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.calc-gate {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.calc-gate label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.calc-gate select {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
}

.calc-summary {
  background: var(--surface-alt);
  border-left: 4px solid var(--primary);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

/* Editorial Prose & Tables */
.prose-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  margin: 20px 0;
}

.prose-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.48rem;
  line-height: 1.3;
  margin: 2rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--surface-alt);
  color: var(--ink);
}

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

.prose-card h3 {
  font-size: 1.15rem;
  margin: 1.4rem 0 0.5rem;
  color: var(--ink);
}

.prose-card p,
.prose-card ul,
.prose-card ol {
  margin: 0 0 1.05rem;
  color: var(--ink);
}

.prose-card li {
  margin-bottom: 0.4rem;
}

.prose-figure {
  margin: 20px 0;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
}

.prose-figure figcaption {
  padding: 8px 6px 2px;
  font-size: 0.84rem;
  color: var(--muted);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--surface);
}

th, td {
  text-align: left;
  padding: 10px 13px;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface-alt);
  color: var(--ink);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.tier-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--surface-alt);
  color: var(--primary);
  border: 1px solid var(--border);
}

.tier-gold {
  color: var(--gold);
}

/* FAQ Section */
.faq-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin: 22px 0;
}

.faq-section h2 {
  margin: 0 0 16px;
  font-family: Georgia, serif;
  font-size: 1.4rem;
}

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

.faq-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.faq-q {
  margin: 0 0 6px;
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--ink);
}

.faq-a {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Comments Section */
.comments-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 22px 0 32px;
}

.comments-box h2 {
  margin: 0 0 12px;
  font-family: Georgia, serif;
  font-size: 1.3rem;
}

.comment-form {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.92rem;
}

.comment-item {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.comment-author {
  font-weight: 700;
  color: var(--ink);
}

[data-gf-comments][data-gf-empty]::before {
  content: "Share today's total km or your rarest 100km Golden Eagle answer below.";
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 8px 0;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 30px 0 36px;
  margin-top: 36px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
  margin-bottom: 20px;
}

.footer-col h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--ink);
}

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

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }
  .prose-card,
  .faq-section,
  .comments-box,
  .tool-stage {
    padding: 18px 15px;
  }
  .player-viewport {
    min-height: 560px;
  }
  .player-viewport iframe {
    height: 580px;
  }
}
