/* ════════════════════════════════════════════════════════════
   FLOG Games — shared stylesheet for the game-rules pages.
   Design system lifted from landing/index.html (dark navy + gold).
   Linked by the hub (games/index.html) and every game page.
   ════════════════════════════════════════════════════════════ */

:root {
  --black: #0A1520;
  --black-2: #0F1E2D;
  --navy: #0D2B45;
  --card-bg: #0F1E2D;
  --card-bg2: #162336;
  --gold: #C9A84C;
  --gold-light: #E8D48B;
  --gold-dark: #a08830;
  --gold-pale: #2A2200;
  --green: #66BB6A;
  --green-dark: #2E7D32;
  --lime: #4CAF50;
  --white: #E8ECF0;
  --gray-200: #1E3048;
  --gray-400: #8A9BB0;
  --gray-700: #6B7D8F;
  --red: #CC3300;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: rgba(10, 21, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-size: 22px; font-weight: 800; letter-spacing: 4px; color: var(--white); }
.nav-logo .accent { color: var(--gold); }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--gray-400); transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  padding: 10px 18px;
  background: var(--gold); color: var(--navy);
  border-radius: 8px; font-weight: 700;
  font-size: 13px; letter-spacing: 0.5px;
}
.nav-cta:hover { background: var(--gold-light); }
@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ── LAYOUT ── */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 24px; max-width: 1080px; margin: 0 auto; }
.section-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.section-title {
  font-size: 32px; font-weight: 800;
  line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.5px;
}
.section-sub { font-size: 17px; color: var(--gray-400); max-width: 680px; line-height: 1.55; }
@media (max-width: 720px) {
  section { padding: 56px 20px; }
  .section-title { font-size: 25px; }
  .section-sub { font-size: 15px; }
}

/* ── BREADCRUMB ── */
.breadcrumb {
  max-width: 1080px; margin: 0 auto;
  padding: 100px 24px 0;
  font-size: 13px; color: var(--gray-400);
}
.breadcrumb a { color: var(--gray-400); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 8px; color: var(--gray-700); }
.breadcrumb .current { color: var(--gold-light); }

/* ── GAME HERO ── */
.game-hero { max-width: 1080px; margin: 0 auto; padding: 28px 24px 8px; }
.game-hero .hero-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
  padding: 6px 14px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 100px; margin-bottom: 20px;
}
.game-hero h1 {
  font-size: 44px; font-weight: 800;
  line-height: 1.08; letter-spacing: -1px; margin-bottom: 18px;
}
.game-hero h1 .gold-text { color: var(--gold); }
.game-hero .lede { font-size: 19px; color: var(--gray-400); line-height: 1.55; max-width: 720px; }
@media (max-width: 720px) {
  .game-hero h1 { font-size: 31px; }
  .game-hero .lede { font-size: 16px; }
}

/* quick-facts strip under the hero */
.facts {
  display: flex; flex-wrap: wrap; gap: 10px;
  max-width: 1080px; margin: 24px auto 0; padding: 0 24px;
}
.fact {
  background: var(--card-bg); border: 1px solid var(--gray-200);
  border-radius: 10px; padding: 10px 16px;
}
.fact-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gray-400);
}
.fact-value { font-size: 15px; font-weight: 700; color: var(--gold-light); margin-top: 2px; }

/* ── PROSE ── */
.prose p { font-size: 16px; color: var(--gray-400); line-height: 1.65; margin-bottom: 14px; }
.prose p strong, .prose strong { color: var(--white); font-weight: 700; }
.prose .accent { color: var(--gold-light); font-weight: 600; }

/* ── HOW IT WORKS — numbered steps ── */
.steps { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.step {
  display: grid; grid-template-columns: 48px 1fr; gap: 18px;
  align-items: start;
  background: var(--card-bg); border: 1px solid var(--gray-200);
  border-radius: 14px; padding: 20px 22px;
}
.step-num {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--gray-400); line-height: 1.6; }

/* ── OPTION CARDS — variations grid ── */
.opt-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 32px;
}
.opt-card {
  background: var(--card-bg); border: 1px solid var(--gray-200);
  border-radius: 14px; padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.opt-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.opt-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold); background: var(--gold-pale);
  padding: 4px 9px; border-radius: 6px; margin-bottom: 12px;
}
.opt-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 7px; }
.opt-card p { font-size: 13.5px; color: var(--gray-400); line-height: 1.55; }
@media (max-width: 800px) { .opt-grid { grid-template-columns: 1fr; gap: 14px; } }

/* ── VISUAL MOCKUP PRIMITIVES ── */
.gm-visual { display: flex; justify-content: center; margin-top: 32px; }
.gm-card {
  background: var(--card-bg); border: 1px solid var(--gray-200);
  border-radius: 16px; padding: 18px;
  width: 100%; max-width: 460px;
}
.gm-card-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
}
.gm-card-title { font-size: 15px; font-weight: 800; color: var(--gold); }
.gm-live {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--green); font-weight: 700;
}
.gm-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); animation: gm-pulse 1.6s infinite;
}
@keyframes gm-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.gm-row {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 10px; align-items: center;
  padding: 9px 0; font-size: 13.5px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.gm-row:last-child { border-bottom: none; }
.gm-row .gm-name { color: var(--gold-light); font-weight: 700; }
.gm-row .gm-detail { font-size: 12px; color: var(--gray-400); }
.gm-money { font-weight: 800; }
.gm-money.pos { color: var(--green); }
.gm-money.neg { color: var(--red); }
.gm-caption { font-size: 12px; color: var(--gray-400); text-align: center; margin-top: 12px; font-style: italic; }
/* hole-by-hole chips */
.gm-holes { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 2px; }
.gm-hole {
  width: 26px; height: 26px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  background: var(--card-bg2); color: var(--gray-400);
  border: 1px solid var(--gray-200);
}
.gm-hole.win { background: rgba(102,187,106,0.18); color: var(--green); border-color: var(--green-dark); }
.gm-hole.loss { background: rgba(204,51,0,0.16); color: #ff7a52; border-color: var(--red); }
.gm-hole.push { background: var(--gold-pale); color: var(--gold); border-color: var(--gold-dark); }

/* ── STRATEGY CALLOUT ── */
.callout {
  background: linear-gradient(135deg, var(--gold-pale), rgba(15,30,45,0.6));
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 16px; padding: 26px 28px; margin-top: 8px;
}
.callout h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--gold-light); }
.callout p { font-size: 14.5px; color: var(--gray-400); line-height: 1.6; }
.tip-list { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.tip-list li { font-size: 14.5px; color: var(--gray-400); padding-left: 26px; position: relative; line-height: 1.55; }
.tip-list li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--gold); font-weight: 800;
}
.tip-list li strong { color: var(--white); }

/* ── FAQ (native details/summary, no JS) ── */
.faq { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--card-bg); border: 1px solid var(--gray-200);
  border-radius: 12px; overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer;
  padding: 16px 20px;
  font-size: 15.5px; font-weight: 700; color: var(--white);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; color: var(--gold);
  font-size: 22px; font-weight: 400; line-height: 1;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--gray-200); }
.faq .faq-body { padding: 14px 20px 18px; font-size: 14.5px; color: var(--gray-400); line-height: 1.65; }

/* ── CROSS-LINK GRID (other games) ── */
.xlink-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: 28px;
}
.xlink {
  background: var(--card-bg); border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 18px 16px;
  transition: border-color 0.2s, transform 0.2s;
}
.xlink:hover { border-color: var(--gold); transform: translateY(-3px); }
.xlink h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.xlink p { font-size: 12.5px; color: var(--gray-400); line-height: 1.5; }
.xlink .xlink-go { font-size: 12px; color: var(--gold); font-weight: 700; margin-top: 10px; display: inline-block; }
.xlink.soon { opacity: 0.55; }
.xlink.soon .xlink-go { color: var(--gray-400); }
@media (max-width: 900px) { .xlink-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── HUB: game directory grid ── */
.hub-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px; margin-top: 40px;
}
.hub-card {
  background: var(--card-bg); border: 1px solid var(--gray-200);
  border-radius: 16px; padding: 26px;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.hub-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.hub-card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.hub-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; flex-shrink: 0;
}
.hub-card h3 { font-size: 21px; font-weight: 800; }
.hub-card .hub-type { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: 0.5px; }
.hub-card p { font-size: 14px; color: var(--gray-400); line-height: 1.6; flex: 1; }
.hub-go {
  margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--gold);
  display: inline-flex; align-items: center; gap: 6px;
}
.hub-card.soon { opacity: 0.6; }
.hub-card.soon .hub-go { color: var(--gray-400); }
@media (max-width: 760px) { .hub-grid { grid-template-columns: 1fr; gap: 14px; } }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  background: var(--gold); color: var(--navy);
  border-radius: 10px; font-weight: 800; font-size: 15px;
  letter-spacing: 0.3px; border: none; cursor: pointer;
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(201,168,76,0.25); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  background: transparent; color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px; font-weight: 700; font-size: 15px;
  cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--gold); }

/* ── CTA RIBBON ── */
.cta {
  text-align: center;
  background: radial-gradient(circle at 50% 50%, rgba(201,168,76,0.07), transparent 70%);
  padding: 80px 24px;
}
.cta h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.7px; margin-bottom: 14px; }
.cta h2 .gold-text { color: var(--gold); }
.cta p { font-size: 17px; color: var(--gray-400); margin-bottom: 28px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 720px) { .cta h2 { font-size: 26px; } }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--gray-200);
  padding: 40px 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--gray-400);
  max-width: 1080px; margin: 0 auto;
}
.footer-logo { font-weight: 800; letter-spacing: 3px; color: var(--white); }
.footer-logo .accent { color: var(--gold); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--white); }
