/* style.css */
/* Version: v004 */
/* VerseGuessr — calm, reverent, mobile-first. Three spines (book, chapter, verse). */
/* Gold = your guess, teal = the true position. */

:root {
  --vg-bg: #f6f1e7;
  --vg-surface: #fffdf8;
  --vg-surface-2: #efe8d8;
  --vg-ink: #2b2722;
  --vg-muted: #6f685c;
  --vg-faint: #a59c8b;
  --vg-line: #e2d9c6;
  --vg-gold: #ba7517;
  --vg-gold-soft: #faeeda;
  --vg-gold-ink: #633806;
  --vg-teal: #0f6e56;
  --vg-teal-soft: #e1f5ee;
  --vg-teal-ink: #085041;
  --vg-radius: 14px;
  --vg-radius-sm: 9px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--vg-bg);
  color: var(--vg-ink);
  font-family: 'Poppins', -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#vg-app { max-width: 460px; margin: 0 auto; padding: 22px 18px 40px; }

.vg-screen { animation: vg-fade 0.25s ease; }
@keyframes vg-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.vg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.vg-mark { font-family: 'Crimson Pro', Georgia, serif; font-size: 22px; font-weight: 600; letter-spacing: 0.2px; }
.vg-round { font-size: 13px; color: var(--vg-muted); }

.vg-versecard { background: var(--vg-surface); border: 1px solid var(--vg-line); border-radius: var(--vg-radius); padding: 24px 18px; text-align: center; margin-bottom: 22px; }
.vg-verse { font-family: 'Crimson Pro', Georgia, serif; font-size: 21px; line-height: 1.5; color: var(--vg-ink); }
.vg-verse-sm { font-size: 18px; }

.vg-step { font-size: 12px; color: var(--vg-muted); margin: 0 0 10px; display: flex; align-items: center; gap: 7px; }
.vg-stepn { width: 18px; height: 18px; border-radius: 50%; background: var(--vg-gold-soft); color: var(--vg-gold-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }

/* ---- spine ---- */
.vg-spine { position: relative; padding-top: 24px; }
.vg-strip { position: relative; height: 28px; border-radius: 8px; background: var(--vg-surface-2); border: 1px solid var(--vg-line); overflow: hidden; cursor: ew-resize; touch-action: none; }
.vg-strip-reveal { cursor: default; }
.vg-band { position: absolute; top: 0; bottom: 0; background: #efe8d8; border-right: 1px solid rgba(0,0,0,0.05); }
.vg-band-nt { background: #e8e7d3; }
.vg-band-sel { background: var(--vg-gold); border-right-color: var(--vg-gold); }

.vg-pin { position: absolute; top: 0; bottom: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; line-height: 1; pointer-events: none; }
.vg-pin-line { top: 24px; }
.vg-pill { font-size: 11px; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.vg-pill-guess { background: var(--vg-gold-soft); color: var(--vg-gold-ink); }
.vg-pill-actual { background: var(--vg-teal-soft); color: var(--vg-teal-ink); }
.vg-stem { width: 2px; flex: 1; margin-top: 2px; background: var(--vg-gold); }
.vg-stem-guess { background: var(--vg-gold); }
.vg-stem-actual { background: var(--vg-teal); }

.vg-ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--vg-faint); }

.vg-bookrow { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; }
.vg-chev { width: 32px; height: 32px; border: 1px solid var(--vg-line); background: var(--vg-surface); border-radius: var(--vg-radius-sm); font-size: 17px; color: var(--vg-ink); cursor: pointer; line-height: 1; }
.vg-chev:active { transform: scale(0.96); }
.vg-booklbl { font-size: 14px; color: var(--vg-muted); min-width: 150px; text-align: center; }
.vg-booklbl strong { color: var(--vg-gold-ink); font-weight: 600; }

/* ---- chapter / verse spines ---- */
.vg-dialcard { background: var(--vg-surface); border: 1px solid var(--vg-line); border-radius: var(--vg-radius); padding: 16px; margin-bottom: 4px; }
.vg-dialbook { text-align: center; font-family: 'Crimson Pro', Georgia, serif; font-size: 18px; font-weight: 600; margin-bottom: 16px; }

.vg-level { margin-bottom: 16px; }
.vg-level:last-child { margin-bottom: 0; }
.vg-level-dis { opacity: 0.5; }
.vg-levelhead { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.vg-levellbl { font-size: 11px; color: var(--vg-faint); }
.vg-levelval strong { font-family: 'Crimson Pro', Georgia, serif; font-size: 22px; font-weight: 600; color: var(--vg-gold-ink); }
.vg-levelmax { font-size: 12px; color: var(--vg-faint); }

.vg-linerow { display: flex; align-items: center; gap: 10px; }
.vg-nudge { width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid var(--vg-line); background: var(--vg-surface); border-radius: var(--vg-radius-sm); font-size: 18px; color: var(--vg-ink); cursor: pointer; line-height: 1; }
.vg-nudge:active { transform: scale(0.95); background: var(--vg-surface-2); }
.vg-linetrack { position: relative; flex: 1; height: 28px; border-radius: 8px; background: var(--vg-surface-2); border: 1px solid var(--vg-line); overflow: hidden; cursor: ew-resize; touch-action: none; }
.vg-linefill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--vg-gold-soft); }
.vg-linepin { position: absolute; top: -1px; bottom: -1px; width: 3px; border-radius: 2px; background: var(--vg-gold); transform: translateX(-50%); pointer-events: none; }
.vg-level-dis .vg-linetrack { cursor: default; }
.vg-level-dis .vg-nudge { cursor: default; }

.vg-readout { text-align: center; font-size: 14px; color: var(--vg-muted); margin: 18px 0 14px; }
.vg-readout strong { color: var(--vg-gold-ink); font-weight: 600; }

/* ---- buttons ---- */
.vg-btn { display: block; width: 100%; text-align: center; border: 1px solid var(--vg-line); background: var(--vg-surface); color: var(--vg-ink); border-radius: var(--vg-radius-sm); padding: 13px 0; font-size: 15px; font-family: inherit; cursor: pointer; }
.vg-btn:active { transform: scale(0.99); }
.vg-btn-primary { background: var(--vg-gold-soft); border-color: #efd9b3; color: var(--vg-gold-ink); font-weight: 600; }
.vg-btn-next { margin-top: 18px; }

/* ---- reveal ---- */
.vg-score { text-align: center; margin: 6px 0 20px; }
.vg-scorenum { font-family: 'Crimson Pro', Georgia, serif; font-size: 46px; font-weight: 600; color: var(--vg-gold); line-height: 1; }
.vg-scoreof { font-size: 12px; color: var(--vg-faint); margin-top: 4px; }
.vg-scoremsg { font-size: 14px; color: var(--vg-muted); margin-top: 10px; }
.vg-reveal { background: var(--vg-surface); border: 1px solid var(--vg-line); border-radius: var(--vg-radius); padding: 20px; text-align: center; margin-top: 16px; }
.vg-ref { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.vg-cred { font-size: 11px; color: var(--vg-faint); margin-top: 12px; }

/* ---- misc ---- */
.vg-card { background: var(--vg-surface); border: 1px solid var(--vg-line); border-radius: var(--vg-radius); padding: 28px 20px; }
.vg-center { text-align: center; }
.vg-muted { color: var(--vg-muted); }
.vg-err { color: #a32d2d; }

/* ---- running total, end screen, bonus round (v004) ---- */
.vg-runningtotal { font-size: 12px; color: var(--vg-faint); margin-top: 10px; }

.vg-endcard { background: var(--vg-surface); border: 1px solid var(--vg-line); border-radius: var(--vg-radius); padding: 26px 20px; margin: 8px 0 20px; }
.vg-endlabel { font-size: 12px; color: var(--vg-faint); letter-spacing: 0.5px; }
.vg-endnum { font-family: 'Crimson Pro', Georgia, serif; font-size: 52px; font-weight: 600; color: var(--vg-gold); line-height: 1.05; margin: 4px 0; }

.vg-bonusintro { font-size: 14px; color: var(--vg-muted); margin: 0 0 16px; }
.vg-btn-plain { background: transparent; border-color: transparent; color: var(--vg-muted); margin-top: 8px; }

/* bonus source buttons */
.vg-srcrow { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.vg-srcbtn { display: block; width: 100%; text-align: center; border: 1px solid var(--vg-line); background: var(--vg-surface); color: var(--vg-ink); border-radius: var(--vg-radius-sm); padding: 15px 0; font-size: 16px; font-family: inherit; cursor: pointer; }
.vg-srcbtn:active { transform: scale(0.99); background: var(--vg-surface-2); }

.vg-verdict { margin-bottom: 8px; font-size: 15px; }
.vg-ok { color: var(--vg-teal); font-weight: 600; }
.vg-no { color: #a32d2d; font-weight: 600; }
