/* Bible Map Challenge in the Hope look. Overrides the styles bible-map-game.js
   injects (#bmc-styles) under body.hope-guide. */

body.hope-guide #bmc-root { color: var(--hg-text); font-family: var(--hg-font); }
body.hope-guide .leaflet-container { font-family: var(--hg-font); }

/* Hero */
body.hope-guide .bmc-hero { padding: 8px 0 12px; }
body.hope-guide .bmc-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--hg-primary); }
body.hope-guide .bmc-title { color: var(--hg-text) !important; font-weight: 800; font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.01em; }
body.hope-guide .bmc-subtitle { font-size: 17px; line-height: 1.6; color: var(--hg-muted); }

/* Panels + mode cards */
body.hope-guide .bmc-panel { background: var(--hg-surface); border: 1px solid var(--hg-border); border-radius: var(--hg-radius); box-shadow: var(--hg-shadow); }
body.hope-guide .bmc-mode { background: var(--hg-surface); border: 1.5px solid var(--hg-border-strong); border-radius: 12px; min-height: 44px; transition: border-color .14s ease, background .14s ease; }
body.hope-guide .bmc-mode:hover { transform: none; box-shadow: none; border-color: var(--hg-primary); background: var(--hg-primary-soft); }
body.hope-guide .bmc-mode[aria-pressed='true'] { border-color: var(--hg-primary); background: var(--hg-primary-soft); box-shadow: inset 0 0 0 1px var(--hg-primary); }
body.hope-guide .bmc-mode-name { font-size: 17px; font-weight: 700; color: var(--hg-text); flex-wrap: wrap; gap: 4px 8px; }
/* Tagline on its own line rather than wrapping beside the title */
body.hope-guide .bmc-mode-tag { flex-basis: 100%; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-transform: none; color: var(--hg-primary); }
body.hope-guide .bmc-mode-desc { display: block; font-size: 15px; line-height: 1.5; color: var(--hg-muted); }
body.hope-guide .bmc-mode[aria-pressed='true'] .bmc-mode-name::after { content: "Selected"; font-size: 12px; font-weight: 700; color: #fff; background: var(--hg-primary); padding: 2px 8px; border-radius: 999px; margin-left: auto; }
body.hope-guide .bmc-mode-now { display: none; }
body.hope-guide .bmc-stats { font-size: 15px; color: var(--hg-muted); }
body.hope-guide .bmc-stats b { color: var(--hg-text); }

/* Buttons */
body.hope-guide .bmc-btn { min-height: 44px; font-size: 16px; font-weight: 700; letter-spacing: 0; border-radius: 10px; background: var(--hg-primary); color: #fff; box-shadow: none; }
body.hope-guide .bmc-btn:hover { background: var(--hg-primary-hover); transform: none; box-shadow: none; }
body.hope-guide .bmc-btn:focus-visible { transform: none; }
body.hope-guide .bmc-btn:disabled { background: var(--hg-border-strong); color: var(--hg-muted); opacity: 1; }
body.hope-guide .bmc-btn-ghost { background: var(--hg-primary-soft); color: var(--hg-primary); border: 0; }
body.hope-guide .bmc-btn-ghost:hover { background: #e0e6fc; }
body.hope-guide .bmc-btn-ghost:disabled { background: var(--hg-surface-2); color: var(--hg-muted); }
body.hope-guide .bmc-btn-sm { font-size: 15px; }

/* Play screen */
body.hope-guide .bmc-mapwrap { border: 1px solid var(--hg-border); border-radius: var(--hg-radius); box-shadow: var(--hg-shadow); }
body.hope-guide .bmc-mapwrap:focus-within { outline: 3px solid var(--hg-primary); outline-offset: 2px; }
body.hope-guide #bmc-map:focus-visible { outline: none !important; }
body.hope-guide #bmc-map .leaflet-tile-pane { filter: none; }
body.hope-guide .bmc-maphint { background: rgba(35, 45, 66, 0.9); color: #fff; font-size: 14px; }
/* Centre crosshair, shown while the map has keyboard focus (Enter drops the pin there) */
body.hope-guide .bmc-crosshair { display: none; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; z-index: 450; pointer-events: none; border: 2px solid var(--hg-primary); border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
body.hope-guide .bmc-crosshair::before, body.hope-guide .bmc-crosshair::after { content: ""; position: absolute; background: var(--hg-primary); }
body.hope-guide .bmc-crosshair::before { left: 12px; top: -8px; width: 2px; height: 40px; }
body.hope-guide .bmc-crosshair::after { top: 12px; left: -8px; height: 2px; width: 40px; }
body.hope-guide .bmc-mapwrap:has(#bmc-map:focus-visible) .bmc-crosshair { display: block; }

body.hope-guide .bmc-round { font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--hg-text); }
body.hope-guide .bmc-total { font-size: 15px; font-weight: 700; color: var(--hg-primary); background: var(--hg-primary-soft); padding: 4px 12px; border-radius: 999px; }
body.hope-guide .bmc-dot { background: var(--hg-primary-soft); }
body.hope-guide .bmc-dot.is-done { background: #9fb0f3; }
body.hope-guide .bmc-dot.is-current { background: var(--hg-primary); }
body.hope-guide .bmc-badge { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; text-transform: none; background: var(--hg-surface-2); border-color: var(--hg-border); color: var(--hg-muted); }
body.hope-guide .bmc-badge-cat { background: var(--hg-primary-soft); border-color: transparent; color: var(--hg-primary); }
body.hope-guide .bmc-badge-diff.easy { background: var(--hg-develop-bg); border-color: transparent; color: var(--hg-develop); }
body.hope-guide .bmc-badge-diff.medium { background: var(--hg-reaffirm-bg); border-color: transparent; color: var(--hg-reaffirm); }
body.hope-guide .bmc-badge-diff.hard { background: var(--hg-reverse-bg); border-color: transparent; color: var(--hg-reverse); }
body.hope-guide .bmc-clue-text { font-size: 19px; font-weight: 600; line-height: 1.5; color: var(--hg-text); }
body.hope-guide .bmc-refs { font-size: 15px; font-style: normal; color: var(--hg-muted); }
body.hope-guide .bmc-hint-box { font-size: 16px; color: var(--hg-body); background: var(--hg-reaffirm-bg); border-left-color: var(--hg-reaffirm); }

/* List fallback */
body.hope-guide .bmc-pickwrap { display: flex; flex-direction: column; gap: 6px; }
body.hope-guide .bmc-pick-label { font-size: 14px; font-weight: 700; color: var(--hg-muted); }
body.hope-guide .bmc-pick { min-height: 44px; font-size: 16px; color: var(--hg-text); background: var(--hg-surface); border: 1px solid var(--hg-border-strong); border-radius: 10px; padding: 8px 12px; width: 100%; }

/* Reveal */
body.hope-guide .bmc-result-name { font-size: 24px; font-weight: 800; color: var(--hg-text) !important; }
body.hope-guide .bmc-result-ancient { font-size: 15px; font-style: normal; font-weight: 500; color: var(--hg-muted); }
body.hope-guide .bmc-result-band { font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; border-color: transparent; }
body.hope-guide .bmc-result-band.great { color: var(--hg-develop); background: var(--hg-develop-bg); }
body.hope-guide .bmc-result-band.ok { color: var(--hg-reaffirm); background: var(--hg-reaffirm-bg); }
body.hope-guide .bmc-result-band.far { color: var(--hg-reverse); background: var(--hg-reverse-bg); }
body.hope-guide .bmc-stat-label { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: none; color: var(--hg-muted); }
body.hope-guide .bmc-stat-score { font-weight: 800; color: var(--hg-text); }
body.hope-guide .bmc-stat-dist { font-weight: 700; color: var(--hg-text); }
body.hope-guide .bmc-region { font-size: 15px; color: var(--hg-muted); }
body.hope-guide .bmc-explain { font-size: 16px; line-height: 1.6; color: var(--hg-body); }
body.hope-guide .bmc-refs-reveal { font-size: 15px; color: var(--hg-primary); }

/* Pins */
body.hope-guide .bmc-pin-guess i { background: var(--hg-text); }
body.hope-guide .bmc-pin-correct i { background: var(--hg-develop); }
body.hope-guide .bmc-pin span { font-size: 13px; font-weight: 700; background: rgba(35, 45, 66, 0.92); color: #fff; }
body.hope-guide .bmc-pin-correct span { background: var(--hg-develop); }

/* Final */
body.hope-guide .bmc-final-score { font-weight: 800; color: var(--hg-text); }
body.hope-guide .bmc-final-sub { font-size: 16px; color: var(--hg-muted); }
body.hope-guide .bmc-final-cell { background: var(--hg-surface-2); border-color: var(--hg-border); }
body.hope-guide .bmc-final-cell .k { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: none; color: var(--hg-muted); }
body.hope-guide .bmc-final-cell .v { font-size: 16px; font-weight: 700; color: var(--hg-text); }
body.hope-guide .bmc-share textarea { background: var(--hg-surface); border-color: var(--hg-border-strong); font-size: 15px; color: var(--hg-text); }
body.hope-guide .bmc-newbadge { font-size: 15px; font-weight: 700; color: var(--hg-reaffirm); }

/* Phones: modes become a compact two-column chip grid (description of the
   chosen mode shown once beneath), so Start and the map sit one short scroll
   from the top. In play the map comes straight after the clue. */
@media (max-width: 640px) {
  body.hope-guide #bmc-root { padding-top: 5.5rem; }
  body.hope-guide .bmc-subtitle { font-size: 16px; }
  body.hope-guide .bmc-modes { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
  body.hope-guide .bmc-mode { padding: 10px 12px; }
  body.hope-guide .bmc-mode-name { font-size: 15px; }
  body.hope-guide .bmc-mode-tag, body.hope-guide .bmc-mode-desc { display: none; }
  body.hope-guide .bmc-mode[aria-pressed='true'] .bmc-mode-name::after { display: none; }
  body.hope-guide .bmc-mode-now { display: block; margin: 10px auto 0; max-width: 40rem; font-size: 15px; line-height: 1.5; color: var(--hg-muted); text-align: center; }
  body.hope-guide .bmc-startbar { margin-top: 14px; flex-direction: column-reverse; gap: 10px; }
  body.hope-guide .bmc-startbar .bmc-btn { width: 100%; }
  body.hope-guide .bmc-shell { gap: 12px; }
  body.hope-guide .bmc-mapwrap { min-height: 52vh; }
  body.hope-guide .bmc-clue { padding: 14px 16px; }
  body.hope-guide .bmc-clue-text { font-size: 17px; }
}
