/* ═══════════════════════════════════════════════════════════
   FUN BIBLE ONLINE — style.css — Complete Visual Overhaul
   ═══════════════════════════════════════════════════════════ */

/* ── CSS VARIABLES ──────────────────────────────────────────── */
:root {
  --gold:         #f59e0b;
  --gold-light:   #fbbf24;
  --gold-dark:    #d97706;
  --gold-pale:    #fef3c7;
  --purple:       #a855f7;
  --teal:         #14b8a6;
  --green:        #16a34a;
  --red:          #dc2626;
  --blue:         #3b82f6;

  --dark-bg:      #050a14;
  --dark-surface: #0a1524;
  --dark-card:    #0d1e35;
  --dark-border:  #1a2e4a;
  --dark-border2: #243d5e;
  --dark-text:    #f0e8d0;
  --dark-muted:   #8fa3b8;
  --dark-dimmed:  #ddd0b8;

  --light-bg:     #fdf8ef;
  --light-surface:#fffbf0;
  --light-card:   #fff8e6;
  --light-border: #e8d5a0;
  --light-border2:#d4b870;
  --light-text:   #1a1200;
  --light-muted:  #7a5c20;
  --light-dimmed: #2d1f00;

  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    18px;
  --radius-xl:    24px;
  --radius-full:  9999px;

  --shadow-sm:    0 2px 8px rgba(0,0,0,.25);
  --shadow-md:    0 4px 20px rgba(0,0,0,.35);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.45);
  --shadow-gold:  0 0 24px rgba(245,158,11,.3);
  --shadow-glow:  0 0 40px rgba(245,158,11,.2);

  --font-display: 'Cinzel Decorative', serif;
  --font-title:   'Cinzel', serif;
  --font-body:    'Crimson Pro', serif;
  --font-ui:      'Space Grotesk', sans-serif;

  --hdr-h:        62px;
  --transition:   0.22s ease;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font-ui);
}
button { cursor: pointer; font-family: var(--font-ui); }
a { text-decoration: none; }
input, textarea, select { font-family: var(--font-ui); }

/* ── SCROLLBAR ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(245,158,11,.3); border-radius: 2px; }

/* ── STARFIELD CANVAS ────────────────────────────────────────── */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── APP BACKGROUND ──────────────────────────────────────────── */
.app-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transition: opacity 1.2s ease;
}
.app-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* ── FLOATING PARTICLES ──────────────────────────────────────── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  font-size: 1.1rem;
  opacity: 0;
  animation: particleFloat linear infinite;
  pointer-events: none;
}
@keyframes particleFloat {
  0%   { transform: translateY(100vh) rotate(0deg) scale(0.6); opacity: 0; }
  10%  { opacity: 0.3; }
  90%  { opacity: 0.15; }
  100% { transform: translateY(-10vh) rotate(360deg) scale(1.1); opacity: 0; }
}

/* ── DARK THEME ──────────────────────────────────────────────── */
body.dark {
  color: var(--dark-text);
  background: var(--dark-bg);
}
body.dark .app-overlay {
  background: linear-gradient(180deg,
    rgba(5,10,20,.75) 0%,
    rgba(5,10,20,.55) 40%,
    rgba(5,10,20,.8) 100%
  );
}

/* ── LIGHT THEME ─────────────────────────────────────────────── */
body.light {
  color: var(--light-text);
  background: var(--light-bg);
}
body.light .app-overlay {
  background: linear-gradient(180deg,
    rgba(253,248,239,.82) 0%,
    rgba(253,248,239,.65) 40%,
    rgba(253,248,239,.85) 100%
  );
}
body.light #starfield { opacity: 0.15; }

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .55; }
}
@keyframes glow {
  0%, 100% { box-shadow: var(--shadow-gold); }
  50%       { box-shadow: var(--shadow-glow); }
}
@keyframes crossGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(245,158,11,.5)); }
  50%       { filter: drop-shadow(0 0 18px rgba(245,158,11,.9)); }
}
@keyframes rayExpand {
  0%   { opacity: .4; transform: scaleX(.3); }
  100% { opacity: 0;  transform: scaleX(1.6); }
}
@keyframes heroTextSlide {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: .7; }
  50%       { transform: translateY(6px); opacity: .3; }
}
@keyframes bubbleUp {
  0%   { transform: translateY(0) scale(1); opacity: .9; }
  100% { transform: translateY(-110vh) scale(.7); opacity: 0; }
}
@keyframes bpop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.8); opacity: .8; }
  100% { transform: scale(0); opacity: 0; }
}
@keyframes bgRise {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-105vh); }
}
@keyframes missFlash {
  0%, 100% { opacity: 0; }
  40%       { opacity: 1; }
}
@keyframes scoreFloat {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-60px); opacity: 0; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cardSwipeOut {
  to { transform: translateX(120%) rotate(20deg); opacity: 0; }
}
@keyframes streakPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.12); }
}

/* ── PAGE LAYOUT ─────────────────────────────────────────────── */
.pg {
  position: relative;
  z-index: 4;
  min-height: calc(100vh - var(--hdr-h));
  padding: 0 0 80px;
  max-width: 680px;
  margin: 0 auto;
  padding-top: calc(var(--hdr-h) + 0px);
}
.pg.active { animation: fadeIn .3s ease; }

/* ── HEADER ──────────────────────────────────────────────────── */
.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--hdr-h);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid;
}
body.dark  .hdr { background: rgba(5,10,20,.92); border-color: var(--dark-border); }
body.light .hdr { background: rgba(255,251,240,.92); border-color: var(--light-border); }

.hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 14px;
  max-width: 680px;
  margin: 0 auto;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.logo-cross {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.cross-v {
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 5px; height: 100%;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
}
.cross-h {
  position: absolute;
  top: 32%; left: 0;
  width: 100%; height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
}
.cross-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.25) 0%, transparent 70%);
  animation: pulse 2.5s ease-in-out infinite;
}
.logo-text {
  display: flex;
  gap: 4px;
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1;
}
.logo-fun  { font-size: .85rem; color: var(--gold-light); }
.logo-bible{ font-size: .85rem; color: var(--gold); }
.logo-time { font-size: .85rem; color: var(--gold-dark); }
body.light .logo-fun  { color: #b45309; }
body.light .logo-bible{ color: #92400e; }
body.light .logo-time { color: #78350f; }

/* HEADER CONTROLS */
.hdr-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* SCORE PILL */
.score-pill {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid;
}
body.dark  .score-pill { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.25); }
body.light .score-pill { background: rgba(180,83,9,.07);   border-color: rgba(180,83,9,.25);  }

.score-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  font-size: .73rem;
  font-weight: 600;
  color: var(--gold);
}
body.light .score-item { color: #b45309; }
.score-divider { width: 1px; height: 16px; background: rgba(245,158,11,.3); }
.score-hs { color: var(--gold-light); }
body.light .score-hs { color: #92400e; }

/* HEADER BUTTONS */
.hdr-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
body.dark  .hdr-btn { background: rgba(245,158,11,.09); border-color: rgba(245,158,11,.25); color: var(--gold); }
body.light .hdr-btn { background: rgba(180,83,9,.07);   border-color: rgba(180,83,9,.25);  color: #b45309;    }
.hdr-btn:hover { transform: scale(1.08); }
body.dark  .hdr-btn:hover { background: rgba(245,158,11,.18); }
body.light .hdr-btn:hover { background: rgba(180,83,9,.15); }

/* HAMBURGER */
.hamburger { display: flex; flex-direction: column; gap: 4px; width: 16px; }
.hamburger span { display: block; height: 2px; border-radius: 1px; transition: all var(--transition); }
body.dark  .hamburger span { background: var(--gold); }
body.light .hamburger span { background: #b45309; }
.menu-btn.open .hamburger span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.menu-btn.open .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn.open .hamburger span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* AGE SELECTOR */
.age-selector { position: relative; }
.age-btn {
  display: flex; align-items: center; gap: 5px;
  height: 36px; padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  font-size: .78rem; font-weight: 600;
  transition: all var(--transition);
}
body.dark  .age-btn { background: rgba(245,158,11,.09); border-color: rgba(245,158,11,.25); color: var(--gold); }
body.light .age-btn { background: rgba(180,83,9,.07);   border-color: rgba(180,83,9,.25);  color: #b45309; }
.age-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  border-radius: var(--radius-md);
  border: 1px solid;
  overflow: hidden;
  display: none;
  z-index: 200;
  animation: slideDown .18s ease;
  box-shadow: var(--shadow-md);
}
.age-dropdown.open { display: block; }
body.dark  .age-dropdown { background: var(--dark-card);   border-color: var(--dark-border); }
body.light .age-dropdown { background: var(--light-card);  border-color: var(--light-border); }
.age-dropdown button {
  display: block; width: 100%;
  padding: 10px 14px;
  text-align: left;
  background: none; border: none;
  font-size: .82rem; font-weight: 500;
  transition: background var(--transition);
}
body.dark  .age-dropdown button { color: var(--dark-text); }
body.light .age-dropdown button { color: var(--light-text); }
body.dark  .age-dropdown button:hover { background: rgba(245,158,11,.1); }
body.light .age-dropdown button:hover { background: rgba(180,83,9,.08); }

/* ── SIDE NAV ────────────────────────────────────────────────── */
#nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  transition: opacity .25s;
}
#nav-overlay.active {
  display: block;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}
#sidenav {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(300px, 85vw);
  z-index: 160;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.25,.46,.45,.94);
  border-right: 1px solid;
  overflow: hidden;
}
body.dark  #sidenav { background: #040810; border-color: var(--dark-border); }
body.light #sidenav { background: var(--light-surface); border-color: var(--light-border); }
#sidenav.open { transform: translateX(0); }

.snhdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 14px;
  border-bottom: 1px solid;
  flex-shrink: 0;
}
body.dark  .snhdr { border-color: var(--dark-border); }
body.light .snhdr { border-color: var(--light-border); }

.sn-logo { display: flex; align-items: center; gap: 8px; }
.sn-cross {
  font-size: 1.2rem;
  color: var(--gold);
  animation: crossGlow 3s ease-in-out infinite;
}
.sn-title {
  font-family: var(--font-title);
  font-size: .95rem;
  font-weight: 700;
  color: var(--gold);
}
body.light .sn-title { color: #b45309; }

.sncls {
  background: none; border: none;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  transition: background var(--transition);
}
body.dark  .sncls { color: var(--dark-muted); }
body.light .sncls { color: var(--light-muted); }
body.dark  .sncls:hover { background: var(--dark-border); }
body.light .sncls:hover { background: var(--light-border); }

.sn-verse {
  font-family: var(--font-body);
  font-style: italic;
  font-size: .82rem;
  line-height: 1.5;
  padding: 12px 16px;
  border-bottom: 1px solid;
}
body.dark  .sn-verse { color: var(--dark-muted); border-color: var(--dark-border); }
body.light .sn-verse { color: var(--light-muted); border-color: var(--light-border); }

.snitems {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.sni {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 18px;
  background: none; border: none;
  border-left: 3px solid transparent;
  font-size: .88rem;
  font-weight: 500;
  gap: 12px;
  text-align: left;
  transition: all var(--transition);
  position: relative;
}
body.dark  .sni { color: var(--dark-muted); }
body.light .sni { color: var(--light-muted); }
body.dark  .sni:hover { background: rgba(245,158,11,.07); color: var(--dark-text); }
body.light .sni:hover { background: rgba(180,83,9,.06); color: var(--light-text); }
body.dark  .sni.active { color: var(--gold); background: rgba(245,158,11,.1); border-left-color: var(--gold); }
body.light .sni.active { color: #b45309; background: rgba(180,83,9,.08); border-left-color: #b45309; }
.sni-icon { font-size: 1rem; flex-shrink: 0; }
.sni span:nth-child(2) { flex: 1; }
.sni-arrow { font-size: .8rem; opacity: .4; margin-left: auto; }
.sni-new {
  font-size: .6rem; font-weight: 700;
  padding: 2px 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  color: #1a0a00;
  letter-spacing: .04em;
  margin-left: auto;
}

.sn-footer {
  padding: 14px 16px;
  border-top: 1px solid;
  font-size: .74rem;
  text-align: center;
}
body.dark  .sn-footer { border-color: var(--dark-border); color: var(--dark-muted); }
body.light .sn-footer { border-color: var(--light-border); color: var(--light-muted); }

/* ── PAGE HEADER ─────────────────────────────────────────────── */
.pg-hdr {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px 10px;
}
.pg-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--gold);
}
body.light .pg-title { color: #b45309; }

.back-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  border: 1px solid;
  font-size: .78rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: all var(--transition);
}
body.dark  .back-btn { color: var(--gold); border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.07); }
body.light .back-btn { color: #b45309;    border-color: rgba(180,83,9,.3);   background: rgba(180,83,9,.06);  }
.back-btn:hover { transform: translateX(-2px); }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 54vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 16px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 2;
  text-align: center;
}

/* 3D HERO CROSS */
.hero-cross-wrap { position: relative; width: 80px; height: 80px; }
.hero-cross-3d {
  position: relative;
  width: 80px; height: 80px;
  animation: crossGlow 3.5s ease-in-out infinite;
}
.hc-v {
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 14px; height: 100%;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(255,223,100,.95) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  box-shadow: 0 0 20px rgba(245,158,11,.6), 2px 2px 6px rgba(0,0,0,.4);
}
.hc-h {
  position: absolute;
  top: 28%; left: 0;
  width: 100%; height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,223,100,.95) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  box-shadow: 0 0 20px rgba(245,158,11,.6), 2px 2px 6px rgba(0,0,0,.4);
}
.hc-rays {
  position: absolute;
  inset: -20px;
  pointer-events: none;
}
.ray {
  position: absolute;
  top: 50%; left: 50%;
  width: 70px; height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(245,158,11,.5), transparent);
  border-radius: 1px;
  animation: rayExpand 2.5s ease-out infinite;
}
.ray:nth-child(1) { transform: rotate(0deg);   animation-delay: 0s; }
.ray:nth-child(2) { transform: rotate(60deg);  animation-delay: .4s; }
.ray:nth-child(3) { transform: rotate(120deg); animation-delay: .8s; }
.ray:nth-child(4) { transform: rotate(180deg); animation-delay: 1.2s; }
.ray:nth-child(5) { transform: rotate(240deg); animation-delay: 1.6s; }
.ray:nth-child(6) { transform: rotate(300deg); animation-delay: 2s; }

/* HERO TEXT */
.hero-text { animation: heroTextSlide .8s ease; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: .02em;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.ht-fun  { color: var(--gold-light);    text-shadow: 0 0 30px rgba(251,191,36,.4); }
.ht-bible{ color: var(--gold);          text-shadow: 0 0 30px rgba(245,158,11,.5); }
.ht-time { color: var(--gold-dark);     text-shadow: 0 0 30px rgba(217,119,6,.4); }
body.light .ht-fun  { color: #b45309; }
body.light .ht-bible{ color: #92400e; }
body.light .ht-time { color: #78350f; }

.hero-tagline {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: .015em;
  opacity: .85;
}
body.dark  .hero-tagline { color: var(--dark-dimmed); }
body.light .hero-tagline { color: var(--light-dimmed); }

.hero-scroll {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
}
.scroll-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: scrollBounce 2s ease-in-out infinite;
  opacity: .6;
}

/* ── AGE BANNER ──────────────────────────────────────────────── */
.age-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 16px 16px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid;
  animation: fadeUp .35s ease;
}
body.dark  .age-banner { background: rgba(245,158,11,.06); border-color: rgba(245,158,11,.2); }
body.light .age-banner { background: rgba(180,83,9,.05);   border-color: rgba(180,83,9,.2);   }
.age-ban-icon { font-size: 1.5rem; flex-shrink: 0; }
.age-ban-title {
  font-family: var(--font-title);
  font-size: .88rem;
  font-weight: 700;
  color: var(--gold);
}
body.light .age-ban-title { color: #b45309; }
.age-ban-sub {
  font-size: .74rem;
  margin-top: 2px;
}
body.dark  .age-ban-sub { color: var(--dark-muted); }
body.light .age-ban-sub { color: var(--light-muted); }

/* ── DAILY VERSE ──────────────────────────────────────────────── */
.daily-section { padding: 0 16px; margin-bottom: 24px; }
.daily-card {
  position: relative;
  padding: 24px 22px 20px;
  border-radius: var(--radius-xl);
  border: 1px solid;
  overflow: hidden;
  animation: glow 4s ease-in-out infinite;
}
body.dark  .daily-card {
  background: linear-gradient(135deg, rgba(13,30,53,.98) 0%, rgba(8,16,32,.98) 100%);
  border-color: rgba(245,158,11,.35);
}
body.light .daily-card {
  background: linear-gradient(135deg, var(--light-surface) 0%, var(--light-card) 100%);
  border-color: rgba(180,83,9,.35);
}
.daily-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,158,11,.08) 0%, transparent 70%);
  pointer-events: none;
}
.daily-ornament {
  font-family: var(--font-title);
  font-size: .7rem;
  letter-spacing: .15em;
  text-align: center;
  margin-bottom: 14px;
  color: var(--gold);
  opacity: .7;
}
body.light .daily-ornament { color: #b45309; }
.daily-text {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 12px;
  font-weight: 300;
}
body.dark  .daily-text { color: var(--dark-dimmed); }
body.light .daily-text { color: var(--light-dimmed); }
.daily-ref {
  text-align: center;
  font-family: var(--font-title);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
body.light .daily-ref { color: #b45309; }
.daily-share-btn {
  display: flex; align-items: center; gap: 6px;
  margin: 0 auto;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid;
  font-size: .73rem; font-weight: 600;
  transition: all var(--transition);
  background: none;
}
body.dark  .daily-share-btn { color: var(--gold); border-color: rgba(245,158,11,.35); }
body.light .daily-share-btn { color: #b45309;    border-color: rgba(180,83,9,.35);   }
.daily-share-btn:hover { transform: scale(1.05); }
body.dark  .daily-share-btn:hover { background: rgba(245,158,11,.1); }
body.light .daily-share-btn:hover { background: rgba(180,83,9,.08); }

/* ── NAVIGATION GRID ─────────────────────────────────────────── */
.nav-section { padding: 0 16px; margin-bottom: 24px; }
.section-heading {
  font-family: var(--font-title);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--gold);
  opacity: .7;
}
body.light .section-heading { color: #b45309; }

.nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.nav-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid;
  cursor: pointer;
  background: none;
  padding: 0;
  text-align: left;
  min-height: 130px;
  transition: transform var(--transition), box-shadow var(--transition);
}
body.dark  .nav-card { border-color: var(--dark-border); }
body.light .nav-card { border-color: var(--light-border); }
.nav-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.nav-card:active { transform: scale(.97); }
.nav-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}
.nav-card:hover .nav-card-img { transform: scale(1.06); }
.nav-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.7) 100%);
  transition: opacity var(--transition);
}
.nav-card:hover::after { opacity: .75; }
.nav-card-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 100%, rgba(245,158,11,.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}
.nav-card:hover .nav-card-glow { opacity: 1; }
.nav-card-body {
  position: relative;
  z-index: 2;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}
.nav-card-icon { font-size: 1.5rem; margin-bottom: 6px; display: block; }
.nav-card-title {
  font-family: var(--font-title);
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.nav-card-sub {
  font-size: .68rem;
  color: rgba(255,255,255,.75);
  margin-top: 3px;
  line-height: 1.3;
}
.nav-card--wide { grid-column: 1 / -1; min-height: 100px; }
.nav-card--wide .nav-card-body { flex-direction: row; align-items: center; gap: 12px; }
.nav-card--wide .nav-card-icon { font-size: 2rem; margin-bottom: 0; }
.nav-card-badge {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 3;
  font-size: .58rem; font-weight: 700;
  padding: 3px 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  color: #1a0a00;
  letter-spacing: .06em;
}

/* ── STREAK SECTION ──────────────────────────────────────────── */
.streak-section { padding: 0 16px; margin-bottom: 24px; }
.streak-card {
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid;
}
body.dark  .streak-card { background: var(--dark-card); border-color: var(--dark-border); }
body.light .streak-card { background: var(--light-card); border-color: var(--light-border); }
.streak-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.streak-fire {
  font-size: 1.8rem;
  animation: streakPulse 2s ease-in-out infinite;
}
.streak-title {
  font-family: var(--font-title);
  font-size: .92rem;
  font-weight: 700;
  color: var(--gold);
}
body.light .streak-title { color: #b45309; }
.streak-sub {
  font-size: .72rem;
  margin-top: 2px;
}
body.dark  .streak-sub { color: var(--dark-muted); }
body.light .streak-sub { color: var(--light-muted); }
.streak-count {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
}
body.light .streak-count { color: #b45309; }
.streak-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.streak-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.streak-day-label {
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .05em;
  opacity: .5;
}
.streak-day-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem;
  transition: all var(--transition);
}
body.dark  .streak-day-dot { border-color: var(--dark-border2); color: var(--dark-muted); }
body.light .streak-day-dot { border-color: var(--light-border2); color: var(--light-muted); }
.streak-day-dot.done {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: var(--gold);
  color: #1a0a00;
}
.streak-day-dot.today {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 10px rgba(245,158,11,.4);
}

/* ── SECTION DIVIDER ─────────────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  font-family: var(--font-title);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gold);
  opacity: .8;
}
body.light .section-divider { color: #b45309; }
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
}
body.dark  .section-divider::before,
body.dark  .section-divider::after  { background: var(--dark-border); }
body.light .section-divider::before,
body.light .section-divider::after  { background: var(--light-border); }

/* ── STORY GRID ──────────────────────────────────────────────── */
.stories-search-wrap {
  position: relative;
  padding: 0 16px 12px;
}
.stories-search-icon {
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-60%);
  font-size: .9rem;
  pointer-events: none;
}
.stories-search {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: var(--radius-full);
  border: 1px solid;
  font-size: .85rem;
  background: none;
  outline: none;
  transition: border-color var(--transition);
}
body.dark  .stories-search { background: var(--dark-card); border-color: var(--dark-border); color: var(--dark-text); }
body.light .stories-search { background: var(--light-card); border-color: var(--light-border); color: var(--light-text); }
body.dark  .stories-search:focus { border-color: rgba(245,158,11,.5); }
body.light .stories-search:focus { border-color: rgba(180,83,9,.5); }

.sg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
}

.sc {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.sc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.sc:active { transform: scale(.97); }
.sc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.75) 100%);
  transition: opacity var(--transition);
}
.sc:hover .sc-overlay { opacity: .8; }
.sc-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px;
  z-index: 2;
}
.se { font-size: 1.3rem; margin-bottom: 4px; display: block; }
.stt {
  font-family: var(--font-title);
  font-size: .82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}
.srf { font-size: .65rem; color: rgba(255,255,255,.7); margin-top: 2px; }
.stag {
  display: inline-block;
  margin-top: 5px;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  text-transform: uppercase;
}

/* ── BIBLE BITES ─────────────────────────────────────────────── */
.bite-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 6px;
}
.bite-count {
  font-size: .78rem;
  font-weight: 600;
}
body.dark  .bite-count { color: var(--dark-muted); }
body.light .bite-count { color: var(--light-muted); }
.bite-swipe-hint {
  font-size: .68rem;
  opacity: .45;
}

.bite-prog {
  height: 3px;
  margin: 0 16px 16px;
  border-radius: 2px;
  overflow: hidden;
}
body.dark  .bite-prog { background: var(--dark-border); }
body.light .bite-prog { background: var(--light-border); }
.bite-prog-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 2px;
  transition: width .4s ease;
}

.bite-arena {
  position: relative;
  height: 280px;
  margin: 0 16px;
  overflow: hidden;
}

.bite-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 24px 20px 20px;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .3s cubic-bezier(.25,.46,.45,.94);
  overflow: hidden;
}
body.dark  .bite-card {
  background: linear-gradient(145deg, var(--dark-card), var(--dark-surface));
  border-color: var(--dark-border);
}
body.light .bite-card {
  background: linear-gradient(145deg, var(--light-card), var(--light-surface));
  border-color: var(--light-border);
}
.bite-card::before {
  content: '';
  position: absolute;
  top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,.06) 0%, transparent 70%);
  pointer-events: none;
}
.bite-theme {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid;
  background: linear-gradient(90deg, rgba(245,158,11,.12), rgba(245,158,11,.06));
}
body.dark  .bite-theme { color: var(--gold); border-color: rgba(245,158,11,.3); }
body.light .bite-theme { color: #b45309;    border-color: rgba(180,83,9,.3);   }
.bite-icon { font-size: 2.4rem; margin-bottom: 10px; }
.bite-fact {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 8px;
  flex: 1;
}
body.dark  .bite-fact { color: var(--dark-text); }
body.light .bite-fact { color: var(--light-text); }
.bite-detail {
  font-family: var(--font-body);
  font-size: .8rem;
  line-height: 1.5;
  margin-bottom: 8px;
  opacity: .75;
}
body.dark  .bite-detail { color: var(--dark-dimmed); }
body.light .bite-detail { color: var(--light-dimmed); }
.bite-ref {
  font-family: var(--font-title);
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold);
}
body.light .bite-ref { color: #b45309; }

.bite-nav-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 0;
}
.bite-nav-btn {
  display: flex; align-items: center; gap: 6px;
  flex: 1;
  padding: 11px 14px;
  border-radius: var(--radius-full);
  border: 1px solid;
  font-size: .82rem; font-weight: 600;
  transition: all var(--transition);
  justify-content: center;
}
body.dark  .bite-nav-btn { color: var(--gold); border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.07); }
body.light .bite-nav-btn { color: #b45309;    border-color: rgba(180,83,9,.3);   background: rgba(180,83,9,.06);  }
.bite-nav-btn:hover { transform: scale(1.03); }
body.dark  .bite-nav-btn:hover { background: rgba(245,158,11,.14); }
body.light .bite-nav-btn:hover { background: rgba(180,83,9,.12);  }

.bite-shuffle-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
body.dark  .bite-shuffle-btn { color: var(--dark-muted); border-color: var(--dark-border); background: none; }
body.light .bite-shuffle-btn { color: var(--light-muted); border-color: var(--light-border); background: none; }
.bite-shuffle-btn:hover { transform: rotate(180deg); }
body.dark  .bite-shuffle-btn:hover { color: var(--gold); border-color: rgba(245,158,11,.3); }
body.light .bite-shuffle-btn:hover { color: #b45309; }

/* ── COMFORT ─────────────────────────────────────────────────── */
.comfort-intro {
  padding: 4px 16px 16px;
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1.65;
}
body.dark  .comfort-intro { color: var(--dark-dimmed); }
body.light .comfort-intro { color: var(--light-dimmed); }

#comfort-list { padding: 0 16px; }

.comfort-topic { margin-bottom: 10px; border-radius: var(--radius-md); overflow: hidden; }
.comfort-topic-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: var(--radius-md);
  font-size: .9rem; font-weight: 600;
  text-align: left;
  transition: all var(--transition);
  border-left-width: 4px !important;
}
body.dark  .comfort-topic-btn { background: var(--dark-card); border-color: var(--dark-border); color: var(--dark-text); }
body.light .comfort-topic-btn { background: var(--light-card); border-color: var(--light-border); color: var(--light-text); }
.comfort-topic-btn:hover { transform: translateX(3px); }
body.dark  .comfort-topic-btn:hover { background: rgba(245,158,11,.06); }
body.light .comfort-topic-btn:hover { background: rgba(180,83,9,.05); }
.comfort-topic-btn.open .ti-chevron { transform: rotate(180deg); }
.ti-chevron { transition: transform .25s ease; font-size: .75rem; opacity: .5; }

.comfort-verses { padding: 0 0 8px; }
.verse-item {
  padding: 14px 16px;
  border-bottom: 1px solid;
}
body.dark  .verse-item { border-color: var(--dark-border); }
body.light .verse-item { border-color: var(--light-border); }
.verse-text {
  font-family: var(--font-body);
  font-size: .92rem;
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 6px;
}
body.dark  .verse-text { color: var(--dark-dimmed); }
body.light .verse-text { color: var(--light-dimmed); }
.vref {
  font-family: var(--font-title);
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .04em;
}
body.light .vref { color: #b45309; }

/* ── PRAYER WALL ─────────────────────────────────────────────── */
.prayer-hero-card {
  margin: 0 16px 18px;
  padding: 20px;
  border-radius: var(--radius-xl);
  border: 1px solid;
  text-align: center;
  position: relative;
  overflow: hidden;
}
body.dark  .prayer-hero-card {
  background: linear-gradient(135deg, rgba(168,85,247,.1), rgba(245,158,11,.08));
  border-color: rgba(168,85,247,.3);
}
body.light .prayer-hero-card {
  background: linear-gradient(135deg, rgba(168,85,247,.07), rgba(180,83,9,.05));
  border-color: rgba(168,85,247,.25);
}
.prayer-hero-verse {
  font-family: var(--font-body);
  font-style: italic;
  font-size: .95rem;
  line-height: 1.65;
  margin-bottom: 8px;
}
body.dark  .prayer-hero-verse { color: var(--dark-dimmed); }
body.light .prayer-hero-verse { color: var(--light-dimmed); }
.prayer-hero-ref {
  font-family: var(--font-title);
  font-size: .78rem;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: .04em;
}

.prayer-compose-card {
  margin: 0 16px 18px;
  padding: 20px;
  border-radius: var(--radius-xl);
  border: 1px solid;
}
body.dark  .prayer-compose-card { background: var(--dark-card); border-color: var(--dark-border); }
body.light .prayer-compose-card { background: var(--light-card); border-color: var(--light-border); }
.prayer-compose-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}
body.light .prayer-compose-title { color: #b45309; }
.prayer-compose-sub {
  font-size: .8rem;
  margin-bottom: 14px;
  line-height: 1.5;
}
body.dark  .prayer-compose-sub { color: var(--dark-muted); }
body.light .prayer-compose-sub { color: var(--light-muted); }
.prayer-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: .85rem;
  background: none;
  outline: none;
  margin-bottom: 10px;
  transition: border-color var(--transition);
}
body.dark  .prayer-input { background: var(--dark-surface); border-color: var(--dark-border2); color: var(--dark-text); }
body.light .prayer-input { background: var(--light-surface); border-color: var(--light-border2); color: var(--light-text); }
body.dark  .prayer-input:focus { border-color: rgba(245,158,11,.5); }
body.light .prayer-input:focus { border-color: rgba(180,83,9,.5); }
.prayer-textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: .88rem;
  line-height: 1.6;
  resize: none;
  background: none;
  outline: none;
  transition: border-color var(--transition);
}
body.dark  .prayer-textarea { background: var(--dark-surface); border-color: var(--dark-border2); color: var(--dark-text); }
body.light .prayer-textarea { background: var(--light-surface); border-color: var(--light-border2); color: var(--light-text); }
body.dark  .prayer-textarea:focus { border-color: rgba(245,158,11,.5); }
body.light .prayer-textarea:focus { border-color: rgba(180,83,9,.5); }
.prayer-char-count {
  font-size: .7rem;
  text-align: right;
  margin: 4px 0 10px;
  opacity: .45;
}
.prayer-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 14px;
}
.prayer-cat-label {
  font-size: .72rem;
  font-weight: 600;
  opacity: .6;
}
.prayer-cat {
  padding: 5px 11px;
  border-radius: 99px;
  border: 1px solid;
  font-size: .72rem;
  font-weight: 600;
  transition: all var(--transition);
  background: none;
}
body.dark  .prayer-cat { color: var(--dark-muted); border-color: var(--dark-border); }
body.light .prayer-cat { color: var(--light-muted); border-color: var(--light-border); }
.prayer-cat.active {
  background: linear-gradient(90deg, rgba(245,158,11,.2), rgba(245,158,11,.1));
  border-color: rgba(245,158,11,.5);
  color: var(--gold);
}
body.light .prayer-cat.active { color: #b45309; background: rgba(180,83,9,.1); border-color: rgba(180,83,9,.5); }

.prayer-send-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-full);
  border: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #1a0a00;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .02em;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(245,158,11,.3);
}
.prayer-send-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245,158,11,.45); }
.prayer-send-btn:active { transform: scale(.97); }

.prayer-wall-section { padding: 0 16px; }
.prayer-wall-title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}
body.light .prayer-wall-title { color: #b45309; }
.prayer-wall-sub {
  font-size: .76rem;
  margin-bottom: 14px;
  opacity: .55;
}
.prayer-wall-item {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid;
  margin-bottom: 10px;
  transition: transform var(--transition);
  position: relative;
  overflow: hidden;
}
body.dark  .prayer-wall-item { background: var(--dark-card); border-color: var(--dark-border); }
body.light .prayer-wall-item { background: var(--light-card); border-color: var(--light-border); }
.prayer-wall-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--purple));
}
.pwi-cat {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: 6px;
  opacity: .6;
  padding-left: 10px;
}
.pwi-text {
  font-family: var(--font-body);
  font-size: .9rem;
  line-height: 1.6;
  padding-left: 10px;
}
body.dark  .pwi-text { color: var(--dark-dimmed); }
body.light .pwi-text { color: var(--light-dimmed); }
.pwi-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 10px;
  margin-top: 8px;
}
.pwi-name {
  font-size: .7rem;
  font-weight: 600;
  color: var(--gold);
  opacity: .8;
}
body.light .pwi-name { color: #b45309; }
.pwi-pray-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid;
  font-size: .68rem;
  font-weight: 600;
  background: none;
  transition: all var(--transition);
}
body.dark  .pwi-pray-btn { color: var(--purple); border-color: rgba(168,85,247,.35); }
body.light .pwi-pray-btn { color: var(--purple); border-color: rgba(168,85,247,.35); }
.pwi-pray-btn:hover { background: rgba(168,85,247,.1); }

/* ── BIBLE ───────────────────────────────────────────────────── */
.btabs {
  display: flex;
  gap: 6px;
  padding: 0 16px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.btabs::-webkit-scrollbar { display: none; }
.btab {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  border: 1px solid;
  font-size: .78rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
body.dark  .btab { color: var(--dark-muted); background: var(--dark-card); border-color: var(--dark-border); }
body.light .btab { color: var(--light-muted); background: var(--light-card); border-color: var(--light-border); }
.btab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1a0a00;
  border-color: transparent;
}
.btab:not(.active):hover { border-color: rgba(245,158,11,.4); }
body.light .btab:not(.active):hover { border-color: rgba(180,83,9,.4); }

.bible-search-wrap {
  position: relative;
  padding: 0 16px 12px;
}
.bible-search-icon {
  position: absolute;
  left: 28px; top: 50%;
  transform: translateY(-55%);
  opacity: .4;
}
.bible-search {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border-radius: var(--radius-full);
  border: 1px solid;
  font-size: .85rem;
  background: none;
  outline: none;
  transition: border-color var(--transition);
}
body.dark  .bible-search { background: var(--dark-card); border-color: var(--dark-border); color: var(--dark-text); }
body.light .bible-search { background: var(--light-card); border-color: var(--light-border); color: var(--light-text); }
body.dark  .bible-search:focus { border-color: rgba(245,158,11,.5); }
body.light .bible-search:focus { border-color: rgba(180,83,9,.5); }

.bbnv {
  display: flex; gap: 8px;
  padding: 0 16px 14px;
}
.bbn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: .82rem; font-weight: 700;
  font-family: var(--font-title);
  transition: all var(--transition);
  letter-spacing: .02em;
}
body.dark  .bbn { color: var(--gold); border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.07); }
body.light .bbn { color: #b45309;    border-color: rgba(180,83,9,.3);   background: rgba(180,83,9,.06); }
.bbn:hover { transform: translateY(-2px); }
body.dark  .bbn:hover { background: rgba(245,158,11,.14); }
body.light .bbn:hover { background: rgba(180,83,9,.12); }

#bcnt { padding: 0 16px; }

.bbc {
  display: flex; align-items: center;
  gap: 6px;
  padding: 6px 16px 12px;
  font-size: .78rem; font-weight: 600;
  flex-wrap: wrap;
}
.bbc-btn {
  background: none; border: none;
  color: var(--gold); cursor: pointer;
  font-size: .78rem; font-weight: 600;
  padding: 0;
  font-family: var(--font-ui);
}
body.light .bbc-btn { color: #b45309; }
.bbc strong { opacity: .7; }

.bgrd, .cgrd {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 7px;
  margin-bottom: 12px;
}
.bkb, .chb {
  padding: 9px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  font-size: .76rem;
  font-weight: 600;
  transition: all var(--transition);
  text-align: center;
}
body.dark  .bkb { background: var(--dark-card); border-color: var(--dark-border); color: var(--dark-text); }
body.light .bkb { background: var(--light-card); border-color: var(--light-border); color: var(--light-text); }
body.dark  .bkb:hover, body.dark  .chb:hover {
  background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.4); color: var(--gold);
  transform: scale(1.04);
}
body.light .bkb:hover, body.light .chb:hover {
  background: rgba(180,83,9,.1); border-color: rgba(180,83,9,.4); color: #b45309;
  transform: scale(1.04);
}
body.dark  .chb { background: var(--dark-surface); border-color: var(--dark-border2); color: var(--dark-dimmed); }
body.light .chb { background: var(--light-surface); border-color: var(--light-border2); color: var(--light-dimmed); }

.v-row {
  padding: 10px 4px;
  border-bottom: 1px solid;
  font-family: var(--font-body);
  font-size: .92rem;
  line-height: 1.65;
  cursor: pointer;
  transition: background var(--transition);
  border-radius: 4px;
}
body.dark  .v-row { border-color: var(--dark-border); color: var(--dark-text); }
body.light .v-row { border-color: var(--light-border); color: var(--light-text); }
.v-row:hover { padding-left: 8px; }
body.dark  .v-row:hover { background: rgba(245,158,11,.05); }
body.light .v-row:hover { background: rgba(180,83,9,.04); }
.v-row.bookmarked { border-left: 3px solid var(--gold); padding-left: 8px; }
.v-row.highlighted {
  background: rgba(245,158,11,.12) !important;
  border-left: 3px solid var(--gold);
  padding-left: 8px;
}
.vn {
  font-family: var(--font-title);
  font-size: .7rem;
  font-weight: 700;
  color: var(--gold);
  margin-right: 6px;
  opacity: .8;
}
body.light .vn { color: #b45309; }
.bld {
  padding: 20px 0;
  text-align: center;
  font-size: .85rem;
  opacity: .5;
}

/* BOOKMARK LIST */
.bookmark-list, .highlight-list { padding: 16px; }
.bookmark-item {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all var(--transition);
  border-left: 3px solid var(--gold);
}
body.dark  .bookmark-item { background: var(--dark-card); border-color: var(--dark-border); }
body.light .bookmark-item { background: var(--light-card); border-color: var(--light-border); }
.bookmark-item:hover { transform: translateX(3px); }
.bm-ref {
  font-family: var(--font-title);
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}
body.light .bm-ref { color: #b45309; }
.bm-txt {
  font-family: var(--font-body);
  font-size: .85rem;
  line-height: 1.5;
  font-style: italic;
}
body.dark  .bm-txt { color: var(--dark-dimmed); }
body.light .bm-txt { color: var(--light-dimmed); }
.empty-msg { padding: 20px 0; text-align: center; font-size: .84rem; opacity: .5; }

/* NOTES */
.notes-header {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}
body.light .notes-header { color: #b45309; }
.notes-area {
  width: 100%;
  min-height: 260px;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid;
  font-size: .9rem;
  line-height: 1.65;
  font-family: var(--font-body);
  resize: none;
  outline: none;
  transition: border-color var(--transition);
}
body.dark  .notes-area { background: var(--dark-card); border-color: var(--dark-border); color: var(--dark-text); }
body.light .notes-area { background: var(--light-card); border-color: var(--light-border); color: var(--light-text); }
body.dark  .notes-area:focus { border-color: rgba(245,158,11,.5); }
body.light .notes-area:focus { border-color: rgba(180,83,9,.5); }
.notes-footer { font-size: .7rem; margin-top: 8px; opacity: .45; text-align: right; }

/* TIMER WIDGET */
.timer-widget {
  margin: 0 16px 16px;
  padding: 18px 20px;
  border-radius: var(--radius-xl);
  border: 1px solid;
  text-align: center;
}
body.dark  .timer-widget { background: var(--dark-card); border-color: var(--dark-border); }
body.light .timer-widget { background: var(--light-card); border-color: var(--light-border); }
.timer-title {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-title);
  font-size: .85rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}
body.light .timer-title { color: #b45309; }
.timer-display {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: .08em;
  color: var(--gold);
  margin-bottom: 14px;
  text-shadow: 0 0 20px rgba(245,158,11,.3);
}
body.light .timer-display { color: #b45309; }
.timer-controls { display: flex; gap: 8px; justify-content: center; }
.timer-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid;
  font-size: .78rem; font-weight: 600;
  transition: all var(--transition);
}
.timer-start { background: rgba(22,163,74,.18); border-color: rgba(22,163,74,.4); color: #4ade80; }
.timer-stop  { background: rgba(220,38,38,.14); border-color: rgba(220,38,38,.35); color: #f87171; }
.timer-reset { border-color: transparent; }
body.dark  .timer-reset { background: rgba(255,255,255,.06); color: var(--dark-muted); }
body.light .timer-reset { background: rgba(0,0,0,.06); color: var(--light-muted); }
.timer-btn:hover { transform: scale(1.05); }

/* STUDY PLANS */
.study-plans-title {
  padding: 0 16px 12px;
  font-family: var(--font-title);
  font-size: .9rem;
  font-weight: 700;
  color: var(--gold);
}
body.light .study-plans-title { color: #b45309; }
.study-plans-grid { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; }
.study-plan-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: none;
  padding: 0;
  text-align: left;
  min-height: 110px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.study-plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.spc-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.5);
}
.spc-body {
  position: relative;
  z-index: 2;
  padding: 18px 20px;
}
.spc-badge {
  display: inline-block;
  font-size: .65rem; font-weight: 700;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 99px;
  color: #fff;
  margin-bottom: 8px;
}
.spc-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,.5);
  margin-bottom: 4px;
}
.spc-sub {
  font-size: .78rem;
  color: rgba(255,255,255,.8);
}

/* STUDY PLAN ITEM */
.plnw-wrap {
  border-radius: var(--radius-md);
  border: 1px solid;
  margin-bottom: 8px;
  overflow: hidden;
  transition: all var(--transition);
}
body.dark  .plnw-wrap { border-color: var(--dark-border); }
body.light .plnw-wrap { border-color: var(--light-border); }
.plnw-wrap.done { opacity: .65; }
.plnw {
  display: flex; align-items: center;
  width: 100%;
  padding: 12px 14px;
  font-size: .84rem; font-weight: 600;
  text-align: left;
  cursor: pointer;
  background: none; border: none;
  transition: background var(--transition);
  gap: 10px;
}
body.dark  .plnw { color: var(--dark-dimmed); }
body.light .plnw { color: var(--light-dimmed); }
body.dark  .plnw:hover { background: rgba(245,158,11,.06); }
body.light .plnw:hover { background: rgba(180,83,9,.04); }
.plnw-check {
  font-size: .85rem;
  flex-shrink: 0;
  cursor: pointer;
}
.plnw-content {
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: .85rem;
  line-height: 1.65;
  border-top: 1px solid;
}
body.dark  .plnw-content { color: var(--dark-dimmed); border-color: var(--dark-border); }
body.light .plnw-content { color: var(--light-dimmed); border-color: var(--light-border); }

/* ── GAMES ───────────────────────────────────────────────────── */
.games-intro {
  padding: 4px 16px 8px;
}
.games-intro-text {
  font-size: .78rem;
  text-align: center;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  font-style: italic;
  font-family: var(--font-body);
}
body.dark  .games-intro-text { background: rgba(245,158,11,.07); color: var(--dark-dimmed); border: 1px solid rgba(245,158,11,.15); }
body.light .games-intro-text { background: rgba(180,83,9,.05);   color: var(--light-dimmed); border: 1px solid rgba(180,83,9,.12); }

.games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 8px 16px 24px;
}
.game-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  min-height: 150px;
  background-image: var(--gc-img);
  background-size: cover;
  background-position: center;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.game-card--hero {
  grid-column: span 1;
  min-height: 200px;
}
@media (min-width: 480px) {
  .game-card--hero {
    grid-column: span 2;
    min-height: 220px;
  }
  .games-grid { grid-template-columns: 1fr 1fr 1fr; }
  .game-card--hero { grid-column: span 1; min-height: 200px; }
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg), 0 0 24px rgba(245,158,11,.2); }
.game-card:active { transform: scale(.97); }
.gc-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  font-size: .6rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.gc-badge--new    { background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; box-shadow: 0 2px 8px rgba(168,85,247,.5); }
.gc-badge--rainbow{ background: linear-gradient(135deg, #f59e0b, #ec4899); color: #fff; box-shadow: 0 2px 8px rgba(245,158,11,.5); }
.gc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.78) 100%);
  transition: opacity var(--transition);
}
.game-card:hover .gc-overlay { opacity: .7; }
.gc-inner {
  position: relative; z-index: 2;
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
}
.gc-icon { font-size: 2rem; margin-bottom: 6px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.game-card--hero .gc-icon { font-size: 2.4rem; }
.gc-title {
  font-family: var(--font-title);
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0,0,0,.7);
  margin-bottom: 4px;
}
.game-card--hero .gc-title { font-size: 1rem; }
.gc-sub {
  font-size: .66rem;
  color: rgba(255,255,255,.8);
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.game-card--hero .gc-sub { font-size: .72rem; }
.gc-play {
  margin-top: 10px;
  font-size: .72rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: .05em;
  opacity: 0;
  transform: translateY(5px);
  transition: all var(--transition);
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.game-card:hover .gc-play { opacity: 1; transform: translateY(0); }

/* ── WATCH ───────────────────────────────────────────────────── */
.watch-sub {
  padding: 4px 16px 12px;
  font-size: .8rem;
  opacity: .6;
}
#watch-grid { padding: 0 16px; }
.watch-label {
  font-family: var(--font-title);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 16px 0 10px;
  color: var(--gold);
  opacity: .7;
}
body.light .watch-label { color: #b45309; }
.watch-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-lg);
  border: 1px solid;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all var(--transition);
  background: none;
  text-align: left;
  width: 100%;
}
body.dark  .watch-card { background: var(--dark-card); border-color: var(--dark-border); }
body.light .watch-card { background: var(--light-card); border-color: var(--light-border); }
.watch-card:hover { transform: translateX(4px); }
body.dark  .watch-card:hover { background: rgba(245,158,11,.06); border-color: rgba(245,158,11,.3); }
body.light .watch-card:hover { background: rgba(180,83,9,.05); border-color: rgba(180,83,9,.3); }
.watch-thumb-wrap {
  position: relative;
  width: 80px;
  height: 54px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.watch-thumb { width: 100%; height: 100%; object-fit: cover; }
.watch-play-btn {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: .8rem;
  transition: background var(--transition);
}
.watch-card:hover .watch-play-btn { background: rgba(245,158,11,.5); }
.watch-info { flex: 1; min-width: 0; }
.watch-name {
  font-family: var(--font-title);
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.dark  .watch-name { color: var(--dark-text); }
body.light .watch-name { color: var(--light-text); }
.watch-desc { font-size: .72rem; line-height: 1.4; }
body.dark  .watch-desc { color: var(--dark-muted); }
body.light .watch-desc { color: var(--light-muted); }

/* ── ABOUT PAGE ──────────────────────────────────────────────── */
.about-hero {
  text-align: center;
  padding: 24px 20px 20px;
  margin: 0 16px 20px;
  border-radius: var(--radius-xl);
  border: 1px solid;
}
body.dark  .about-hero { background: var(--dark-card); border-color: var(--dark-border); }
body.light .about-hero { background: var(--light-card); border-color: var(--light-border); }
.about-cross {
  font-size: 2.5rem;
  color: var(--gold);
  animation: crossGlow 4s ease-in-out infinite;
  display: block;
  margin-bottom: 10px;
}
.about-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 10px;
}
body.light .about-title { color: #b45309; }
.about-desc {
  font-family: var(--font-body);
  font-size: .92rem;
  line-height: 1.65;
  margin-bottom: 18px;
}
body.dark  .about-desc { color: var(--dark-dimmed); }
body.light .about-desc { color: var(--light-dimmed); }
.coffee-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #1a0a00;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 10px;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(245,158,11,.3);
}
.coffee-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245,158,11,.45); }
.about-note { font-size: .72rem; opacity: .5; }
.about-cards {
  display: grid;
  gap: 10px;
  padding: 0 16px;
}
.about-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid;
}
body.dark  .about-card { background: var(--dark-card); border-color: var(--dark-border); }
body.light .about-card { background: var(--light-card); border-color: var(--light-border); }
.about-card-icon { font-size: 1.4rem; margin-bottom: 8px; }
.about-card-title {
  font-family: var(--font-title);
  font-size: .88rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}
body.light .about-card-title { color: #b45309; }
.about-card-text {
  font-family: var(--font-body);
  font-size: .85rem;
  line-height: 1.55;
}
body.dark  .about-card-text { color: var(--dark-muted); }
body.light .about-card-text { color: var(--light-muted); }
.about-card-text a { color: var(--gold); }
body.light .about-card-text a { color: #b45309; }

/* ── OVERLAYS ────────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.overlay.active {
  display: flex;
  animation: fadeIn .2s ease;
}
body.dark  .overlay { background: rgba(0,0,0,.6); }
body.light .overlay { background: rgba(0,0,0,.4); }

.overlay-box {
  width: 100%;
  max-width: 680px;
  max-height: 92vh;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleIn .22s cubic-bezier(.34,1.56,.64,1);
}
body.dark  .overlay-box { background: var(--dark-surface); border: 1px solid var(--dark-border2); border-bottom: none; }
body.light .overlay-box { background: var(--light-surface); border: 1px solid var(--light-border2); border-bottom: none; }

.overlay-hdr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid;
  flex-shrink: 0;
}
body.dark  .overlay-hdr { background: rgba(4,8,16,.8); border-color: var(--dark-border); }
body.light .overlay-hdr { background: rgba(255,251,240,.9); border-color: var(--light-border); }
.ov-icon { font-size: 1.6rem; flex-shrink: 0; }
.ov-hdr-text { flex: 1; min-width: 0; }
.ov-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.light .ov-title { color: #b45309; }
.ov-sub {
  font-size: .72rem;
  margin-top: 2px;
  opacity: .6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ov-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid;
  display: flex; align-items: center; justify-content: center;
  background: none;
  flex-shrink: 0;
  transition: all var(--transition);
}
body.dark  .ov-close { color: var(--dark-muted); border-color: var(--dark-border); }
body.light .ov-close { color: var(--light-muted); border-color: var(--light-border); }
.ov-close:hover { transform: scale(1.1) rotate(90deg); }
body.dark  .ov-close:hover { background: var(--dark-border); }
body.light .ov-close:hover { background: var(--light-border); }

.overlay-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  -webkit-overflow-scrolling: touch;
}

/* STORY OVERLAY BODY ITEMS */
.sl {
  font-family: var(--font-title);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.gld { color: var(--gold); }
body.light .gld { color: #b45309; }
.st {
  font-family: var(--font-body);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: 8px;
}
body.dark  .st { color: var(--dark-dimmed); }
body.light .st { color: var(--light-dimmed); }

.dw { margin: 14px 0; }
.dq-s {
  font-family: var(--font-body);
  font-size: .95rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 10px;
}
body.dark  .dq-s { color: var(--dark-dimmed); }
body.light .dq-s { color: var(--light-dimmed); }
.dbtn {
  display: block;
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 7px;
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: .84rem;
  font-weight: 600;
  text-align: left;
  transition: all var(--transition);
}
body.dark  .dbtn { background: var(--dark-card); border-color: var(--dark-border); color: var(--dark-text); }
body.light .dbtn { background: var(--light-card); border-color: var(--light-border); color: var(--light-text); }
.dbtn:hover { transform: translateX(3px); }
body.dark  .dbtn:hover { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); }
body.light .dbtn:hover { background: rgba(180,83,9,.08); border-color: rgba(180,83,9,.3); }
.drs {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid;
  font-family: var(--font-body);
  font-size: .88rem;
  line-height: 1.6;
  margin-top: 8px;
  font-style: italic;
}
body.dark  .drs { background: rgba(245,158,11,.06); border-color: rgba(245,158,11,.2); color: var(--dark-dimmed); }
body.light .drs { background: rgba(180,83,9,.05);   border-color: rgba(180,83,9,.2);   color: var(--light-dimmed); }

.les {
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid;
  margin-top: 14px;
}
body.dark  .les { background: rgba(245,158,11,.06); border-color: rgba(245,158,11,.2); }
body.light .les { background: rgba(180,83,9,.05);   border-color: rgba(180,83,9,.2);   }
.lt {
  font-family: var(--font-title);
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}
body.light .lt { color: #b45309; }
.ll {
  font-family: var(--font-body);
  font-size: .9rem;
  line-height: 1.65;
  font-style: italic;
}
body.dark  .ll { color: var(--dark-dimmed); }
body.light .ll { color: var(--light-dimmed); }

/* GAME OVERLAY — full screen */
.overlay--game {
  align-items: stretch;
  justify-content: stretch;
  z-index: 300 !important;
}
.overlay--game .overlay-box {
  max-height: 100vh;
  height: 100dvh;
  height: 100vh;
  border-radius: 0;
  max-width: 100%;
  border: none !important;
}
.g-bd-wrap { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }

/* QUIZ BOXES */
.qbox { margin-bottom: 10px; }
.qpg {
  font-size: .72rem;
  text-align: center;
  margin-bottom: 10px;
  opacity: .55;
}
.qq {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 14px;
}
body.dark  .qq { color: var(--dark-text); }
body.light .qq { color: var(--light-text); }
.qopt {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: .83rem;
  font-weight: 600;
  text-align: left;
  margin-bottom: 7px;
  transition: all var(--transition);
  cursor: pointer;
}
body.dark  .qopt { background: var(--dark-card); border-color: var(--dark-border); color: var(--dark-text); }
body.light .qopt { background: var(--light-card); border-color: var(--light-border); color: var(--light-text); }
.qopt:hover:not(:disabled) { transform: translateX(3px); }
body.dark  .qopt:hover:not(:disabled) { background: rgba(245,158,11,.08); }
body.light .qopt:hover:not(:disabled) { background: rgba(180,83,9,.06); }
.qopt.ok { background: rgba(22,163,74,.2) !important; border-color: var(--green) !important; color: #4ade80 !important; }
.qopt.no { background: rgba(220,38,38,.15) !important; border-color: var(--red) !important; color: #f87171 !important; }

/* HANGMAN */
.hgbx { padding: 16px; border-radius: var(--radius-lg); margin: 12px; }
body.dark  .hgbx { background: var(--dark-card); border: 1px solid var(--dark-border); }
body.light .hgbx { background: var(--light-card); border: 1px solid var(--light-border); }
.rrow { display: flex; gap: 5px; justify-content: center; margin-bottom: 18px; }
.rarc {
  flex: 1;
  height: 10px;
  border-radius: 5px;
  max-width: 36px;
  transition: opacity .3s;
}
.wd {
  display: flex; gap: 6px; justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.ls {
  width: 28px; height: 36px;
  border-radius: 4px;
  border-bottom: 3px solid var(--gold);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 3px;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
}
body.light .ls { color: #b45309; border-color: #b45309; }
.hint-txt {
  text-align: center;
  font-size: .78rem;
  font-style: italic;
  margin-bottom: 14px;
  opacity: .6;
}
.lgrd {
  display: flex; flex-wrap: wrap; gap: 5px; justify-content: center;
}
.lbtn {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  font-size: .78rem; font-weight: 700;
  transition: all var(--transition);
  font-family: var(--font-ui);
}
body.dark  .lbtn { background: var(--dark-card); border-color: var(--dark-border); color: var(--dark-text); }
body.light .lbtn { background: var(--light-card); border-color: var(--light-border); color: var(--light-text); }
.lbtn:hover:not(:disabled) { transform: scale(1.1); }
body.dark  .lbtn:hover:not(:disabled) { background: rgba(245,158,11,.15); border-color: var(--gold); color: var(--gold); }
body.light .lbtn:hover:not(:disabled) { background: rgba(180,83,9,.12); border-color: #b45309; color: #b45309; }
.lbtn.ok { background: rgba(22,163,74,.2) !important; border-color: var(--green) !important; color: #4ade80 !important; }
.lbtn.no { background: rgba(220,38,38,.15) !important; border-color: var(--red) !important; color: #f87171 !important; }
.lbtn:disabled { opacity: .5; cursor: not-allowed; }

/* COLORING */
.atls {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  flex-wrap: wrap;
  border-bottom: 1px solid;
}
body.dark  .atls { border-color: var(--dark-border); }
body.light .atls { border-color: var(--light-border); }
.acol {
  width: 26px; height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s;
  flex-shrink: 0;
}
.acol:hover { transform: scale(1.18); }
.acol.sel { border-color: #fff; transform: scale(1.18); box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.asiz {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  font-size: .72rem; font-weight: 600;
  margin-left: auto;
  background: none;
  transition: all var(--transition);
}
body.dark  .asiz { color: var(--dark-muted); border-color: var(--dark-border); }
body.light .asiz { color: var(--light-muted); border-color: var(--light-border); }
.asiz:hover { transform: scale(1.04); }
.tpls {
  display: flex; gap: 6px; padding: 10px 14px;
  flex-wrap: wrap;
  border-bottom: 1px solid;
}
body.dark  .tpls { border-color: var(--dark-border); }
body.light .tpls { border-color: var(--light-border); }
.tp {
  flex: 1;
  min-width: 0;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid;
  font-size: .72rem; font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
body.dark  .tp { background: var(--dark-card); border-color: var(--dark-border); color: var(--dark-dimmed); }
body.light .tp { background: var(--light-card); border-color: var(--light-border); color: var(--light-dimmed); }
.tp:hover { transform: scale(1.03); }
body.dark  .tp:hover { background: rgba(245,158,11,.12); border-color: var(--gold); color: var(--gold); }
body.light .tp:hover { background: rgba(180,83,9,.1); border-color: #b45309; color: #b45309; }
#coloring-book-frame { padding: 12px; display: flex; justify-content: center; }

/* BUBBLE GAME */
.bg-arena {
  position: relative;
  width: 100%;
  min-height: 320px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, rgba(168,85,247,.12) 0%, rgba(5,10,20,.95) 100%);
}
.bg-hud {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex; align-items: center;
  padding: 10px 14px;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
  justify-content: space-between;
}
.bg-hud-title {
  font-family: var(--font-title);
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
}
.bg-hud-right { display: flex; align-items: center; gap: 10px; }
.bg-score { font-family: var(--font-display); font-size: 1.2rem; color: var(--gold); }
.bg-level { font-size: .72rem; font-weight: 700; color: var(--purple); }
.bg-lives { font-size: .9rem; letter-spacing: 2px; }
.bg-diff {
  border-radius: var(--radius-sm);
  padding: 7px;
  font-size: .74rem; font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-ui);
}
.gold-btn {
  display: block;
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-full);
  border: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #1a0a00;
  font-size: .9rem; font-weight: 700;
  letter-spacing: .02em;
  transition: all var(--transition);
  font-family: var(--font-ui);
  box-shadow: 0 4px 16px rgba(245,158,11,.3);
}
.gold-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245,158,11,.45); }
.gold-btn:active { transform: scale(.97); }

/* ── SHARE OVERLAY ────────────────────────────────────────────── */
.share-overlay { align-items: center !important; padding: 0 16px; }
.share-box { max-height: 70vh !important; border-radius: var(--radius-xl) !important; }
.share-body { text-align: center; }
.share-verse-preview {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-style: italic;
  font-size: .95rem;
  line-height: 1.7;
}
body.dark  .share-verse-preview { background: var(--dark-card); border-color: var(--dark-border); color: var(--dark-dimmed); }
body.light .share-verse-preview { background: var(--light-card); border-color: var(--light-border); color: var(--light-dimmed); }
.share-btns { display: flex; gap: 10px; justify-content: center; }
.share-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 24px;
  border-radius: var(--radius-full);
  border: 1px solid;
  font-size: .85rem; font-weight: 700;
  transition: all var(--transition);
}
.share-copy {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  border-color: transparent;
  color: #1a0a00;
}
.share-native {
  background: none;
  color: var(--gold);
  border-color: rgba(245,158,11,.4);
}
body.light .share-native { color: #b45309; border-color: rgba(180,83,9,.4); }
.share-btn:hover { transform: scale(1.04); }

/* ── SCORE FLOAT ─────────────────────────────────────────────── */
#score-layer { position: fixed; inset: 0; z-index: 500; pointer-events: none; }
.score-float {
  position: absolute;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 700;
  pointer-events: none;
  animation: scoreFloat .9s ease-out forwards;
  text-shadow: 0 0 12px rgba(245,158,11,.6);
}

/* MISS FLASH */
#miss-flash {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  background: rgba(220,38,38,.3);
  opacity: 0;
}
#miss-flash.active { animation: missFlash .5s ease-out; }

/* SIDEBAR BUBBLES */
#bsb {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 50px;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}
#bsb.hide { display: none; }
.bbl {
  position: absolute;
  bottom: -50px;
  left: 5px;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  cursor: pointer;
  pointer-events: auto;
  border: 2px solid rgba(255,255,255,.4);
  box-shadow: 0 0 10px rgba(255,255,255,.2);
  animation: bubbleUp linear;
}
.bbl:hover { transform: scale(1.2); }

/* ── MISC UTILITY ────────────────────────────────────────────── */
.fade-in { animation: fadeUp .35s ease-out; }
.card {
  border-radius: var(--radius-lg);
  border: 1px solid;
}
body.dark  .card { background: var(--dark-card); border-color: var(--dark-border); }
body.light .card { background: var(--light-card); border-color: var(--light-border); }

.pta {
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: .88rem;
  line-height: 1.6;
  resize: none;
  outline: none;
  font-family: var(--font-ui);
}
body.dark  .pta { background: var(--dark-surface); border-color: var(--dark-border2); color: var(--dark-text); }
body.light .pta { background: var(--light-surface); border-color: var(--light-border2); color: var(--light-text); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 380px) {
  .nav-grid { grid-template-columns: 1fr 1fr; }
  .score-pill { display: none; }
  .games-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 1.6rem; }
}
@media (min-width: 500px) {
  .nav-grid { grid-template-columns: 1fr 1fr 1fr; }
  .nav-card--wide { grid-column: auto; }
  .sg { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ══════════════════════════════════════════════════════════
   CROSSWORD GAME STYLES
══════════════════════════════════════════════════════════ */
.cw-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}
.cw-grid-section {
  display: flex;
  justify-content: center;
  padding: 12px 12px 8px;
  overflow-x: auto;
}
.cw-grid {
  display: inline-grid;
  gap: 2px;
  border-radius: 8px;
  overflow: hidden;
}
.cw-cell {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 3px;
  transition: background var(--transition);
}
.cw-cell--black {
  background: #111 !important;
}
body.light .cw-cell--black { background: #222 !important; }
.cw-cell--white {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
}
body.light .cw-cell--white {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.15);
}
.cw-cell--active {
  background: rgba(245,158,11,.25) !important;
  border-color: rgba(245,158,11,.5) !important;
}
.cw-cell--word {
  background: rgba(168,85,247,.18) !important;
  border-color: rgba(168,85,247,.3) !important;
}
.cw-cell--correct {
  background: rgba(22,163,74,.2) !important;
  border-color: rgba(22,163,74,.4) !important;
}
.cw-cell--wrong {
  background: rgba(220,38,38,.2) !important;
  border-color: rgba(220,38,38,.4) !important;
}
.cw-cell-num {
  position: absolute;
  top: 2px;
  left: 2px;
  font-size: 7px;
  line-height: 1;
  font-weight: 700;
  color: var(--gold);
  pointer-events: none;
}
.cw-cell-letter {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-title);
  pointer-events: none;
}
body.dark  .cw-cell-letter { color: #fff; }
body.light .cw-cell-letter { color: #1a1a1a; }
.cw-clues {
  flex: 1;
  overflow-y: auto;
  padding: 0 14px 16px;
}
.cw-clue-section {
  margin-bottom: 14px;
}
.cw-clue-heading {
  font-family: var(--font-title);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--gold);
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(245,158,11,.2);
}
.cw-clue-item {
  display: flex;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 2px;
  transition: background var(--transition);
}
.cw-clue-item:hover, .cw-clue-item.active {
  background: rgba(245,158,11,.1);
}
.cw-clue-num {
  font-weight: 700;
  font-size: .75rem;
  color: var(--gold);
  flex-shrink: 0;
  min-width: 22px;
}
.cw-clue-text {
  font-size: .75rem;
  line-height: 1.4;
}
body.dark  .cw-clue-text { color: var(--dark-dimmed); }
body.light .cw-clue-text { color: var(--light-dimmed); }
.cw-clue-item.solved .cw-clue-text {
  text-decoration: line-through;
  opacity: .4;
}
.cw-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  font-size: .74rem;
  border-bottom: 1px solid;
  flex-shrink: 0;
}
body.dark  .cw-hud { border-color: var(--dark-border); }
body.light .cw-hud { border-color: var(--light-border); }
.cw-progress {
  color: var(--gold);
  font-weight: 700;
  font-family: var(--font-title);
}
.cw-reveal-btn {
  font-size: .68rem;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(245,158,11,.3);
  background: rgba(245,158,11,.08);
  color: var(--gold);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition);
}
.cw-reveal-btn:hover { background: rgba(245,158,11,.18); }
.cw-keyboard {
  padding: 6px 8px 10px;
  border-top: 1px solid;
  flex-shrink: 0;
}
body.dark  .cw-keyboard { border-color: var(--dark-border); }
body.light .cw-keyboard { border-color: var(--light-border); }
.cw-kb-row {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 4px;
}
.cw-key {
  min-width: 28px;
  height: 34px;
  border-radius: 5px;
  border: 1px solid;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-title);
  display: flex;
  align-items: center;
  justify-content: center;
}
body.dark  .cw-key { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #fff; }
body.light .cw-key { background: rgba(0,0,0,.06); border-color: rgba(0,0,0,.12); color: #222; }
.cw-key:hover { transform: translateY(-1px); }
body.dark  .cw-key:hover { background: rgba(245,158,11,.2); border-color: rgba(245,158,11,.4); }
body.light .cw-key:hover { background: rgba(180,83,9,.1); border-color: rgba(180,83,9,.3); }
.cw-key--del { min-width: 42px; font-size: .65rem; }
.cw-key--used { opacity: .3; }

/* ══════════════════════════════════════════════════════════
   WORD SEARCH GAME STYLES
══════════════════════════════════════════════════════════ */
.ws-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ws-grid-section {
  display: flex;
  justify-content: center;
  padding: 10px 10px 6px;
}
.ws-grid {
  display: inline-grid;
  gap: 2px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.ws-cell {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  font-family: var(--font-title);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.08s, color 0.08s;
  border: 1px solid transparent;
}
body.dark  .ws-cell { color: rgba(255,255,255,.85); background: rgba(255,255,255,.06); }
body.light .ws-cell { color: rgba(0,0,0,.8);        background: rgba(0,0,0,.04); }
.ws-cell--selected {
  background: rgba(245,158,11,.35) !important;
  border-color: rgba(245,158,11,.5) !important;
  color: #fff !important;
}
.ws-cell--found {
  background: rgba(22,163,74,.25) !important;
  border-color: rgba(22,163,74,.4) !important;
}
body.dark  .ws-cell--found { color: #a7f3d0; }
body.light .ws-cell--found { color: #065f46; }
.ws-words {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 14px 16px;
  overflow-y: auto;
}
.ws-word {
  padding: 4px 12px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  font-family: var(--font-title);
  border: 1px solid;
  transition: all var(--transition);
  letter-spacing: .04em;
}
body.dark  .ws-word { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: var(--dark-text); }
body.light .ws-word { background: rgba(0,0,0,.04);       border-color: rgba(0,0,0,.12);        color: var(--light-text); }
.ws-word--found {
  background: rgba(22,163,74,.2) !important;
  border-color: rgba(22,163,74,.5) !important;
  text-decoration: line-through;
  opacity: .6;
}
.ws-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  font-size: .74rem;
  border-bottom: 1px solid;
  flex-shrink: 0;
}
body.dark  .ws-hud { border-color: var(--dark-border); }
body.light .ws-hud { border-color: var(--light-border); }
.ws-found-count { color: var(--gold); font-weight: 700; font-family: var(--font-title); }

/* Bubble Popper — full arena */
.bg-arena {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 80%, #0a1628 0%, #040810 100%);
  min-height: 300px;
}
.bg-hud {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.bg-hud-title {
  font-family: var(--font-title);
  font-size: .82rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .04em;
}
.bg-hud-right { display: flex; align-items: center; gap: 10px; }
.bg-lives { font-size: .9rem; }
.bg-level {
  font-family: var(--font-title);
  font-size: .75rem;
  font-weight: 700;
  color: #a855f7;
  background: rgba(168,85,247,.15);
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid rgba(168,85,247,.3);
}
.bg-score {
  font-family: var(--font-title);
  font-size: .9rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 28px;
  text-align: right;
}

  to   { transform: translateY(-120vh); }
}

  50%  { transform: scale(1.6); opacity: .6; }
  100% { transform: scale(0); opacity: 0; }
}

/* ══════════════════════════════════════════════════════════
   QUOTES PAGE
══════════════════════════════════════════════════════════ */
.quotes-intro {
  padding: 4px 16px 2px;
  font-size: .8rem;
  opacity: .65;
  font-style: italic;
  font-family: var(--font-body);
}
.quotes-controls {
  padding: 8px 16px 4px;
  display: flex;
  gap: 8px;
}
.quote-shuffle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 99px;
  border: 1px solid rgba(245,158,11,.3);
  background: rgba(245,158,11,.08);
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-ui);
}
.quote-shuffle-btn:hover { background: rgba(245,158,11,.18); }
.quotes-list {
  padding: 8px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quote-card {
  border-radius: var(--radius-lg);
  border: 1px solid;
  padding: 18px 16px 14px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
body.dark  .quote-card { background: var(--dark-card); border-color: var(--dark-border2); }
body.light .quote-card { background: var(--light-card); border-color: var(--light-border2); }
.quote-card:active { transform: scale(.99); }
.quote-mark {
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--gold);
  opacity: .25;
  position: absolute;
  top: 6px;
  left: 12px;
}
.quote-text {
  font-family: var(--font-body);
  font-size: .92rem;
  line-height: 1.7;
  font-style: italic;
  padding-left: 8px;
  margin-bottom: 12px;
}
body.dark  .quote-text { color: var(--dark-dimmed); }
body.light .quote-text { color: var(--light-dimmed); }
.quote-author {
  font-family: var(--font-title);
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .04em;
  padding-left: 8px;
}
body.light .quote-author { color: #b45309; }
.quote-share {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  opacity: .4;
  transition: opacity var(--transition);
  padding: 4px;
}
.quote-share:hover { opacity: .9; }

/* ══════════════════════════════════════════════════════
   FAMOUS CHRISTIANS PAGE
══════════════════════════════════════════════════════ */
.famous-intro { text-align:center; padding:12px 20px 4px; opacity:.75; font-size:.88rem; }

.famous-filter-row {
  display:flex; gap:6px; padding:10px 14px;
  overflow-x:auto; flex-shrink:0;
  scrollbar-width:none;
}
.famous-filter-row::-webkit-scrollbar { display:none; }

.fcat-btn {
  padding:6px 14px; border-radius:20px; font-size:.72rem; font-weight:700;
  border:1.5px solid rgba(255,255,255,.18); background:rgba(255,255,255,.06);
  color:var(--text-muted); cursor:pointer; white-space:nowrap; flex-shrink:0;
  transition:all .2s; font-family:var(--font-ui);
}
.fcat-btn.active, .fcat-btn:hover {
  background:rgba(245,158,11,.18); border-color:#f59e0b; color:#f59e0b;
}

.famous-shuffle-row {
  display:flex; justify-content:flex-end; padding:4px 14px 8px;
}

.famous-list {
  display:flex; flex-direction:column; gap:14px;
  padding:0 14px 24px;
}

.famous-card {
  position:relative; overflow:hidden;
  background:var(--card-bg); border:1px solid var(--card-border);
  border-radius:16px; padding:20px 18px 16px;
  box-shadow:0 4px 20px rgba(0,0,0,.25);
  transition:transform .2s, box-shadow .2s;
}
.famous-card:hover { transform:translateY(-2px); box-shadow:0 8px 32px rgba(0,0,0,.35); }

.famous-card-accent {
  position:absolute; left:0; top:0; bottom:0; width:4px;
  background:var(--fc-col, #f59e0b); border-radius:16px 0 0 16px;
}

.famous-quote-mark {
  font-size:3rem; line-height:1; color:var(--fc-col, #f59e0b);
  opacity:.25; font-family:Georgia,serif; margin-bottom:-12px; margin-top:-8px;
}

.famous-text {
  font-size:.92rem; line-height:1.7; color:var(--text);
  font-style:italic; margin-bottom:14px; padding-left:4px;
}

.famous-footer {
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
}

.famous-author-wrap { flex:1; min-width:0; }

.famous-author {
  font-size:.82rem; font-weight:700; color:var(--fc-col, #f59e0b);
  font-family:var(--font-title);
}

.famous-year {
  font-size:.68rem; color:var(--text-muted); margin-top:1px;
}

.famous-cat-pill {
  padding:3px 10px; border-radius:12px; font-size:.65rem; font-weight:700;
  text-transform:capitalize; letter-spacing:.03em; flex-shrink:0;
}

.famous-share-btn {
  background:none; border:1px solid rgba(255,255,255,.15);
  color:var(--text-muted); border-radius:8px; padding:6px 8px;
  cursor:pointer; transition:all .2s; flex-shrink:0;
}
.famous-share-btn:hover { border-color:var(--fc-col,#f59e0b); color:var(--fc-col,#f59e0b); }

/* ══════════════════════════════════════════════════════
   KIDS MODE — Colourful, Playful Override
══════════════════════════════════════════════════════ */
body.kids-mode {
  --accent: #f97316;
}

body.kids-mode .hero { 
  background: linear-gradient(135deg,#7c3aed 0%,#ec4899 40%,#f97316 80%,#eab308 100%) !important;
}

body.kids-mode .hero-title .ht-fun  { color:#fff; text-shadow:0 0 20px rgba(255,255,255,.6); }
body.kids-mode .hero-title .ht-bible{ color:#fef08a; text-shadow:0 0 20px rgba(254,240,138,.6); }
body.kids-mode .hero-title .ht-time { color:#bbf7d0; text-shadow:0 0 20px rgba(187,247,208,.6); }

body.kids-mode .nav-card { border:2px solid transparent; border-radius:20px; }
body.kids-mode .nav-card:nth-child(1) { border-color:#3b82f6; box-shadow:0 0 16px #3b82f630; }
body.kids-mode .nav-card:nth-child(2) { border-color:#f59e0b; box-shadow:0 0 16px #f59e0b30; }
body.kids-mode .nav-card:nth-child(3) { border-color:#10b981; box-shadow:0 0 16px #10b98130; }
body.kids-mode .nav-card:nth-child(4) { border-color:#8b5cf6; box-shadow:0 0 16px #8b5cf630; }
body.kids-mode .nav-card:nth-child(5) { border-color:#ec4899; box-shadow:0 0 16px #ec489930; }
body.kids-mode .nav-card:nth-child(6) { border-color:#f97316; box-shadow:0 0 16px #f9731630; }
body.kids-mode .nav-card:nth-child(7) { border-color:#06b6d4; box-shadow:0 0 16px #06b6d430; }
body.kids-mode .nav-card:nth-child(8) { border-color:#84cc16; box-shadow:0 0 16px #84cc1630; }

body.kids-mode .nav-card-title {
  font-size:1.1rem; font-weight:900;
  background:linear-gradient(135deg,#f59e0b,#ec4899);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
}
body.kids-mode .nav-card-icon { font-size:2.2rem; filter:drop-shadow(0 0 8px rgba(255,200,50,.5)); }

body.kids-mode .daily-card {
  border:3px solid #f59e0b;
  background:linear-gradient(135deg,rgba(245,158,11,.12),rgba(236,72,153,.12));
  box-shadow:0 0 24px rgba(245,158,11,.2), inset 0 0 24px rgba(236,72,153,.05);
}

body.kids-mode .daily-ornament { font-size:1rem; letter-spacing:.1em; }
body.kids-mode .daily-text { font-size:1.1rem !important; line-height:1.8; }

body.kids-mode .hdr { 
  background:linear-gradient(90deg,#7c3aed,#ec4899,#f97316) !important;
  border-bottom-color:rgba(255,255,255,.2);
}
body.kids-mode .logo-fun   { color:#fef08a !important; }
body.kids-mode .logo-bible { color:#bbf7d0 !important; }
body.kids-mode .logo-time  { color:#fbcfe8 !important; }

body.kids-mode .score-pill {
  background:linear-gradient(90deg,rgba(245,158,11,.25),rgba(236,72,153,.25));
  border-color:rgba(245,158,11,.4);
}

body.kids-mode .section-heading {
  background:linear-gradient(90deg,#f59e0b,#ec4899,#3b82f6);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
  font-size:1.6rem; letter-spacing:.05em;
}

body.kids-mode .age-banner {
  background:linear-gradient(135deg,rgba(139,92,246,.25),rgba(236,72,153,.25));
  border-color:rgba(139,92,246,.4);
  border:2px solid;
  animation:kids-pulse 2s ease-in-out infinite;
}

body.kids-mode .streak-card {
  background:linear-gradient(135deg,rgba(245,158,11,.15),rgba(249,115,22,.15));
  border:2px solid rgba(245,158,11,.4);
}

@keyframes kids-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(139,92,246,.3); }
  50%      { box-shadow: 0 0 0 8px rgba(139,92,246,.0); }
}

body.kids-mode #particles .particle { font-size:1.2rem !important; }

/* Kids mode story cards - bigger, more colourful */
body.kids-mode .sc {
  border:2px solid; border-radius:20px;
  background:linear-gradient(135deg,var(--card-bg) 80%,rgba(245,158,11,.08));
}
body.kids-mode .sc:nth-child(3n+1) { border-color:#3b82f6; }
body.kids-mode .sc:nth-child(3n+2) { border-color:#ec4899; }
body.kids-mode .sc:nth-child(3n+3) { border-color:#10b981; }

body.kids-mode .sc-icon { font-size:2.5rem; filter:drop-shadow(0 0 10px rgba(255,200,100,.5)); }

/* Kids game cards - bigger, more fun */
body.kids-mode .game-card { border-radius:20px; border:3px solid transparent; }
body.kids-mode .game-card:nth-child(1) { border-color:#f59e0b; }
body.kids-mode .game-card:nth-child(2) { border-color:#3b82f6; }
body.kids-mode .game-card:nth-child(3) { border-color:#10b981; }
body.kids-mode .game-card:nth-child(4) { border-color:#8b5cf6; }
body.kids-mode .game-card:nth-child(5) { border-color:#ec4899; }
body.kids-mode .game-card:nth-child(6) { border-color:#f97316; }
body.kids-mode .game-card:nth-child(7) { border-color:#06b6d4; }

body.kids-mode .gc-icon { font-size:3rem !important; filter:drop-shadow(0 0 12px rgba(255,220,80,.5)); }
body.kids-mode .gc-title { font-size:1.2rem !important; font-weight:900; }

/* Floating rainbow sparkles in kids mode */
body.kids-mode .pg-title {
  background:linear-gradient(90deg,#f59e0b,#ec4899,#3b82f6,#10b981);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}

/* ══════════════════════════════════════════════════════
   HOME PAGE — Slim Hero
══════════════════════════════════════════════════════ */
.hero--slim { min-height:200px !important; padding:20px 0 !important; }
.hero--slim .hero-content { gap:16px; }
.hero--slim .hero-cross-wrap { width:60px; height:60px; }
.hero--slim .hero-cross-3d { width:60px; height:60px; }
.hero--slim .hc-v { width:16px; height:60px; }
.hero--slim .hc-h { width:60px; height:16px; }
.hero--slim .hero-title { font-size:clamp(2rem,8vw,3.5rem); }
.hero--slim .hero-tagline { font-size:.9rem; }

/* ══════════════════════════════════════════════════════
   NAV GRID — 2 columns always, no scroll jitter  
══════════════════════════════════════════════════════ */
.nav-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px !important;
  padding: 0 14px 24px !important;
}
.nav-card--wide { grid-column: span 2; }

.nav-card { border-radius:18px; overflow:hidden; }
.nav-card-icon { font-size:1.8rem; filter:drop-shadow(0 0 8px rgba(245,158,11,.3)); }
.nav-card-title { font-size:.92rem; font-weight:800; }
.nav-card-sub { font-size:.68rem; }

/* ══════════════════════════════════════════════════════
   UNIVERSAL SAVE BUTTON
══════════════════════════════════════════════════════ */
.save-btn {
  background: none;
  border: 1px solid rgba(255,255,255,.18);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 5px 7px;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
  line-height: 0;
}
.save-btn:hover,
.save-btn[aria-pressed="true"] {
  border-color: #f59e0b;
  background: rgba(245,158,11,.12);
}
.save-btn[aria-pressed="true"] svg { fill: #f59e0b; stroke: #f59e0b; }

/* Save button inside quote cards */
.quote-card .save-btn { margin-left: 4px; }

/* Save button inside daily card */
.daily-save-btn {
  margin-left: 6px;
  padding: 6px 8px;
}

/* Save button inside famous cards */
.famous-save-btn { padding: 5px 7px; }

/* Save button inside comfort verse items */
.verse-item .save-btn {
  margin-top: 6px;
  display: block;
  width: fit-content;
}

/* ══════════════════════════════════════════════════════
   SAVED / BOOKMARKS PANEL
══════════════════════════════════════════════════════ */
.saved-panel { padding: 14px; }

.saved-add-box {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
}
.saved-add-title {
  font-size: .82rem; font-weight: 700; color: var(--gold);
  margin-bottom: 10px;
}
.saved-custom-textarea {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 10px; color: var(--text);
  font-size: .85rem; padding: 10px 12px;
  resize: none; min-height: 80px;
  font-family: var(--font-body);
  line-height: 1.6; margin-bottom: 8px;
}
.saved-custom-textarea:focus { outline: none; border-color: var(--gold); }

.saved-custom-ref {
  width: 100%; box-sizing: border-box;
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 10px; color: var(--text);
  font-size: .8rem; padding: 8px 12px;
  font-family: var(--font-ui); margin-bottom: 10px;
}
.saved-custom-ref:focus { outline: none; border-color: var(--gold); }

.saved-custom-btn {
  display: block; width: 100%;
  padding: 10px;
  border-radius: 10px; border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #000; font-size: .85rem; font-weight: 900;
  cursor: pointer; font-family: var(--font-title);
  letter-spacing: .04em;
}

.saved-filter-row {
  display: flex; gap: 6px;
  overflow-x: auto; padding-bottom: 12px;
  scrollbar-width: none;
}
.saved-filter-row::-webkit-scrollbar { display: none; }

.saved-filter-btn {
  padding: 5px 12px; border-radius: 16px;
  font-size: .7rem; font-weight: 700;
  border: 1.5px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  color: var(--text-muted); cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
  transition: all .2s; font-family: var(--font-ui);
}
.saved-filter-btn.active,
.saved-filter-btn:hover {
  background: rgba(245,158,11,.18);
  border-color: #f59e0b; color: #f59e0b;
}

.saved-empty {
  text-align: center; padding: 48px 20px;
  color: var(--text-muted);
}
.saved-empty-filter {
  text-align: center; padding: 24px;
  color: var(--text-muted); font-size: .85rem; opacity: .6;
}

/* ── Saved Cards ── */
.saved-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px; padding: 14px 16px;
  margin-bottom: 10px;
  border-left: 4px solid var(--gold);
  position: relative;
}
.saved-card--verse   { border-left-color: #3b82f6; }
.saved-card--quote   { border-left-color: #f59e0b; }
.saved-card--famous  { border-left-color: #8b5cf6; }
.saved-card--daily   { border-left-color: #f97316; }
.saved-card--comfort { border-left-color: #10b981; }
.saved-card--custom  { border-left-color: #ec4899; }

.saved-card-type {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); margin-bottom: 8px;
  display: flex; justify-content: space-between;
}
.saved-card-date { font-weight: 400; opacity: .6; }

.saved-card-text {
  font-size: .9rem; line-height: 1.65;
  color: var(--text); margin-bottom: 6px;
  font-style: italic;
}
.saved-card-ref, .saved-card-author {
  font-size: .78rem; font-weight: 700;
  color: var(--gold); margin-bottom: 10px;
}

.saved-card-actions {
  display: flex; gap: 8px; margin-top: 8px;
}
.saved-action-btn {
  padding: 5px 12px; border-radius: 8px;
  font-size: .72rem; font-weight: 700;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: var(--text-muted); cursor: pointer;
  font-family: var(--font-ui); transition: all .2s;
}
.saved-action-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.saved-action-remove {
  border-color: rgba(239,68,68,.3);
  color: #f87171;
}
.saved-action-remove:hover { background: rgba(239,68,68,.15); color: #ef4444; }

/* ══════════════════════════════════════════════════════
   BIBLE STUDY OVERHAUL CSS
══════════════════════════════════════════════════════ */
.study-hero {
  background: linear-gradient(135deg,rgba(245,158,11,.12),rgba(168,85,247,.08));
  border-bottom: 1px solid rgba(245,158,11,.15);
  padding: 16px 16px 14px; text-align: center;
}
.study-hero-title {
  font-family: var(--font-title); font-size: 1.1rem;
  font-weight: 700; color: var(--gold); margin-bottom: 4px;
}
.study-hero-sub { font-size: .78rem; color: var(--text-muted); }

.study-timer-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: rgba(0,0,0,.2);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.study-timer-label { font-size: .75rem; color: var(--text-muted); }
.study-timer-display {
  font-size: .95rem; font-weight: 900; font-variant-numeric: tabular-nums;
  color: var(--gold); font-family: var(--font-title); flex: 1;
}
.study-timer-btns { display: flex; gap: 6px; }
.stb {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.07); color: #fff;
  font-size: .85rem; cursor: pointer; transition: all .2s;
}
.stb:hover { background: rgba(255,255,255,.15); }
.stb-start { color: #10b981; border-color: rgba(16,185,129,.3); }
.stb-pause { color: #f59e0b; border-color: rgba(245,158,11,.3); }
.stb-reset { color: #f87171; border-color: rgba(239,68,68,.3); }

/* Plan cards v2 */
.study-plans-v2 { padding: 14px; display: flex; flex-direction: column; gap: 14px; }

.spc2 {
  display: flex; width: 100%; text-align: left;
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.spc2:hover, .spc2:active { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.35); }

.spc2-img {
  width: 90px; flex-shrink: 0;
  background-size: cover; background-position: center;
  min-height: 130px;
}
.spc2-body { padding: 14px; flex: 1; min-width: 0; }
.spc2-badge {
  display: inline-block; padding: 3px 9px;
  border-radius: 10px; font-size: .65rem; font-weight: 800;
  color: #fff; margin-bottom: 7px; letter-spacing: .04em;
}
.spc2-title { font-size: .95rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.spc2-desc { font-size: .75rem; color: var(--text-muted); line-height: 1.4; margin-bottom: 10px; }
.spc2-progress-wrap { margin-bottom: 8px; }
.spc2-progress-bar {
  height: 5px; background: rgba(255,255,255,.1);
  border-radius: 3px; overflow: hidden; margin-bottom: 3px;
}
.spc2-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  border-radius: 3px; transition: width .5s ease;
}
.spc2-progress-label { font-size: .68rem; color: var(--text-muted); }
.spc2-cta { font-size: .75rem; font-weight: 700; color: var(--gold); }

/* Inline viewer */
.siv-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; background: rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky; top: 0; z-index: 5;
}
.siv-back-btn {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px; color: var(--text-muted); font-size: .75rem;
  font-weight: 700; padding: 7px 10px; cursor: pointer; flex-shrink: 0;
  font-family: var(--font-ui);
}
.siv-title-wrap { flex: 1; min-width: 0; overflow: hidden; }
.siv-icon { font-size: 1.2rem; }
.siv-title { font-size: .85rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.siv-progress-strip {
  padding: 8px 14px;
  background: rgba(0,0,0,.15);
  border-bottom: 1px solid rgba(255,255,255,.05);
  display: flex; align-items: center; gap: 10px;
}
.siv-prog-bar {
  flex: 1; height: 6px; background: rgba(255,255,255,.1);
  border-radius: 3px; overflow: hidden;
}
.siv-prog-fill {
  height: 100%; background: linear-gradient(90deg,#f59e0b,#10b981);
  border-radius: 3px; transition: width .4s ease;
}
.siv-prog-label { font-size: .7rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }

.siv-list { padding: 10px 14px 30px; }

.siv-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 13px; margin-bottom: 8px;
  overflow: hidden; transition: border-color .2s;
}
.siv-item--done { opacity: .6; }
.siv-item--done .siv-item-day { text-decoration: line-through; }

.siv-item-top {
  display: flex; align-items: flex-start;
  gap: 10px; padding: 12px 12px 10px;
}
.siv-check {
  width: 28px; height: 28px; border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; color: var(--text-muted);
}
.siv-check:hover { border-color: #16a34a; background: rgba(22,163,74,.1); }

.siv-item-text { flex: 1; min-width: 0; }
.siv-item-day { font-size: .72rem; font-weight: 700; color: var(--gold); margin-bottom: 2px; }
.siv-item-ref { font-size: .82rem; color: var(--text); line-height: 1.4; }

.siv-read-btn {
  display: flex; align-items: center; gap: 3px;
  padding: 6px 10px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: var(--text-muted); font-size: .7rem; font-weight: 700;
  cursor: pointer; flex-shrink: 0; transition: all .2s;
  font-family: var(--font-ui); white-space: nowrap;
}
.siv-read-btn:hover, .siv-read-btn.open {
  border-color: #3b82f6; color: #93c5fd;
  background: rgba(59,130,246,.1);
}

/* Scripture inline view */
.siv-scripture {
  padding: 0 12px 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.15);
}
.siv-loading {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 0; font-size: .78rem; color: var(--text-muted);
}
.siv-spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.siv-verses { padding-top: 10px; }
.siv-verse {
  font-size: .83rem; line-height: 1.65;
  color: var(--text); margin-bottom: 8px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.siv-vnum {
  font-weight: 800; color: var(--gold);
  font-size: .72rem; margin-right: 4px;
}
.siv-verse-more { font-size: .72rem; color: var(--text-muted); padding: 4px 0 8px; }
.siv-ref-line {
  font-size: .72rem; font-weight: 700; color: var(--gold);
  padding-top: 4px; opacity: .7;
}
.siv-extra-refs {
  font-size: .72rem; color: var(--text-muted);
  padding-top: 6px;
}
.siv-xref {
  color: #60a5fa; text-decoration: underline; cursor: pointer;
}
.siv-no-preview {
  padding: 12px 0; font-size: .8rem; color: var(--text-muted);
  line-height: 1.6;
}
.siv-goto-btn {
  display: inline-block; margin-top: 6px;
  padding: 7px 14px; border-radius: 8px;
  border: 1px solid rgba(245,158,11,.3);
  background: rgba(245,158,11,.1); color: var(--gold);
  font-size: .75rem; font-weight: 700; cursor: pointer;
  font-family: var(--font-ui);
}

/* ══════════════════════════════════════════════════════
   QUOTES SORT BAR
══════════════════════════════════════════════════════ */
.quotes-sort-bar {
  display: flex; gap: 6px;
  padding: 10px 14px 6px;
  overflow-x: auto; scrollbar-width: none;
}
.quotes-sort-bar::-webkit-scrollbar { display: none; }

.qsort-btn {
  padding: 6px 13px; border-radius: 16px;
  font-size: .72rem; font-weight: 700;
  border: 1.5px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: var(--text-muted); cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
  transition: all .2s; font-family: var(--font-ui);
}
.qsort-btn.active, .qsort-btn:hover {
  background: rgba(245,158,11,.18);
  border-color: #f59e0b; color: #f59e0b;
}

/* Bubble popper tap-to-start screen */
#bg-start-screen button:active {
  transform: scale(0.96);
  box-shadow: 0 0 15px rgba(245,158,11,.4) !important;
}

/* Story card save button */
.sc { position: relative; }
.sc .save-btn {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 10;
  background: rgba(0,0,0,.55) !important;
  border-color: rgba(255,255,255,.3) !important;
}

/* Bite card save button */
.bite-card { position: relative; }
.bite-card .save-btn {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0,0,0,.35) !important;
  border-color: rgba(255,255,255,.25) !important;
}

/* Saved card colours for new types */
.saved-card--story { border-left-color: #06b6d4; }
.saved-card--bite  { border-left-color: #a855f7; }

/* ══════════════════════════════════════════════════════
   NEW HOME PAGE
══════════════════════════════════════════════════════ */

/* Hero */
.home-hero {
  position: relative;
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #0c1a35 0%, #1a0a2e 50%, #0d1f12 100%);
  border-bottom: 1px solid rgba(245,158,11,.2);
}
.home-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,158,11,.18) 0%, transparent 70%);
  pointer-events: none;
}
.home-hero-inner {
  text-align: center; padding: 40px 24px 36px;
  position: relative; z-index: 1;
}
.home-hero-dove {
  font-size: 2.8rem;
  filter: drop-shadow(0 0 20px rgba(255,255,255,.4));
  margin-bottom: 10px;
  animation: dove-float 4s ease-in-out infinite;
}
@keyframes dove-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.home-hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 8vw, 3.5rem);
  font-weight: 900; letter-spacing: .06em;
  background: linear-gradient(135deg, #f59e0b 0%, #fde68a 50%, #f97316 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px; line-height: 1.1;
}
.home-hero-verse {
  font-family: var(--font-body); font-style: italic;
  font-size: clamp(.9rem, 3.5vw, 1.1rem);
  color: rgba(255,255,255,.9); line-height: 1.6;
  max-width: 380px; margin: 0 auto 6px;
}
.home-hero-ref {
  font-size: .78rem; font-weight: 700;
  color: #f59e0b; margin-bottom: 16px;
}
.home-hero-tagline {
  font-size: .82rem; color: rgba(255,255,255,.5);
  max-width: 300px; margin: 0 auto;
}

/* About strip */
.home-about-strip {
  padding: 24px 16px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.home-about-inner { max-width: 600px; margin: 0 auto; }
.home-about-title {
  font-family: var(--font-title); font-size: 1.1rem;
  color: var(--gold); font-weight: 700; margin-bottom: 10px;
  text-align: center;
}
.home-about-text {
  font-size: .88rem; line-height: 1.7;
  color: var(--text-muted); text-align: center; margin-bottom: 18px;
}
.home-about-text strong { color: var(--text); }

.home-stats-row {
  display: flex; justify-content: center; gap: 6px; flex-wrap: wrap;
}
.home-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.2);
  min-width: 64px;
}
.home-stat-num {
  font-family: var(--font-title); font-size: 1.4rem;
  font-weight: 900; color: var(--gold); line-height: 1;
}
.home-stat-label {
  font-size: .62rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em;
  margin-top: 3px; text-align: center;
}

/* Scripture row */
.home-scripture-row {
  display: flex; gap: 10px;
  padding: 16px;
  overflow-x: auto; scrollbar-width: none;
}
.home-scripture-row::-webkit-scrollbar { display: none; }

.home-scripture-card {
  flex-shrink: 0; width: 220px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--sc-color, #f59e0b);
  border-radius: 14px; padding: 14px;
}
.home-scripture-icon { font-size: 1.5rem; margin-bottom: 8px; }
.home-scripture-text {
  font-size: .82rem; font-style: italic; line-height: 1.6;
  color: var(--text); margin-bottom: 6px;
}
.home-scripture-ref {
  font-size: .72rem; font-weight: 700;
  color: var(--sc-color, #f59e0b);
}

/* Explore section */
.home-explore { padding: 24px 16px 12px; }
.home-explore-title {
  font-family: var(--font-title); font-size: 1.1rem;
  color: var(--gold); text-align: center; margin-bottom: 6px;
}
.home-explore-sub {
  font-size: .8rem; color: var(--text-muted);
  text-align: center; margin-bottom: 18px; line-height: 1.5;
}

.home-section-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.home-section-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px; padding: 14px 12px;
  cursor: pointer; text-align: left;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.home-section-card:hover, .home-section-card:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
  border-color: rgba(245,158,11,.4);
}
.hsc-icon { font-size: 1.8rem; margin-bottom: 6px; }
.hsc-name {
  font-size: .85rem; font-weight: 800;
  color: var(--text); margin-bottom: 4px;
  font-family: var(--font-title);
}
.hsc-desc {
  font-size: .72rem; line-height: 1.5;
  color: var(--text-muted);
}

/* Daily actions row */
.daily-actions {
  display: flex; gap: 8px; align-items: center;
  margin-top: 10px;
}

/* Footer note */
.home-footer-note {
  text-align: center; padding: 20px 16px 32px;
  font-size: .75rem; color: var(--text-muted);
}
.home-footer-note a { color: var(--gold); text-decoration: none; }

/* Kids mode home overrides */
body.kids-mode .home-hero {
  background: linear-gradient(160deg, #4c1d95, #831843, #1e3a5f) !important;
}
body.kids-mode .home-section-card:nth-child(1) { border-top: 3px solid #3b82f6; }
body.kids-mode .home-section-card:nth-child(2) { border-top: 3px solid #ec4899; }
body.kids-mode .home-section-card:nth-child(3) { border-top: 3px solid #f59e0b; }
body.kids-mode .home-section-card:nth-child(4) { border-top: 3px solid #10b981; }
body.kids-mode .home-section-card:nth-child(5) { border-top: 3px solid #8b5cf6; }
body.kids-mode .home-section-card:nth-child(6) { border-top: 3px solid #f97316; }
body.kids-mode .home-section-card:nth-child(7) { border-top: 3px solid #06b6d4; }
body.kids-mode .home-section-card:nth-child(8) { border-top: 3px solid #a855f7; }
body.kids-mode .home-section-card:nth-child(9) { border-top: 3px solid #84cc16; }
body.kids-mode .hsc-icon { font-size: 2.2rem; }
body.kids-mode .hsc-name { font-size: .95rem; }

/* ═══════════════════════════════════════════════════════════
   THE JOURNEY — Styles
   ═══════════════════════════════════════════════════════════ */

/* ── JOURNEY HERO ──────────────────────────────────────────── */
.journey-hero {
  position: relative;
  margin: 0 16px 24px;
  padding: 32px 24px 28px;
  border-radius: var(--radius-xl);
  border: 1px solid;
  overflow: hidden;
  text-align: center;
  animation: glow 4s ease-in-out infinite;
}
body.dark  .journey-hero {
  background: linear-gradient(135deg, rgba(13,30,53,.98) 0%, rgba(8,16,32,.98) 100%);
  border-color: rgba(245,158,11,.35);
}
body.light .journey-hero {
  background: linear-gradient(135deg, var(--light-surface) 0%, var(--light-card) 100%);
  border-color: rgba(180,83,9,.35);
}
.journey-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,158,11,.08) 0%, transparent 70%);
  pointer-events: none;
}
.journey-hero-cross {
  font-size: 2.2rem;
  color: var(--gold);
  opacity: .6;
  display: block;
  margin-bottom: 10px;
  animation: crossGlow 3s ease-in-out infinite;
}
.journey-hero-title {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
body.dark  .journey-hero-title { color: var(--gold); }
body.light .journey-hero-title { color: #b45309; }
.journey-hero-sub {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: .55;
}
.journey-hero-desc {
  font-family: var(--font-body);
  font-size: .92rem;
  line-height: 1.65;
  margin-bottom: 16px;
  font-style: italic;
}
body.dark  .journey-hero-desc { color: var(--dark-dimmed); }
body.light .journey-hero-desc { color: var(--light-dimmed); }
.journey-hero-verse {
  font-family: var(--font-title);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--gold);
  opacity: .75;
}
body.light .journey-hero-verse { color: #b45309; }

/* ── JOURNEY GRID ──────────────────────────────────────────── */
.journey-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 16px;
}

/* ── JOURNEY CARD ──────────────────────────────────────────── */
.journey-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid;
  padding: 18px 18px 16px;
  cursor: pointer;
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
body.dark  .journey-card {
  background: linear-gradient(135deg, rgba(13,30,53,.9) 0%, rgba(8,16,32,.9) 100%);
  border-color: var(--dark-border2);
}
body.light .journey-card {
  background: linear-gradient(135deg, var(--light-surface) 0%, var(--light-card) 100%);
  border-color: var(--light-border);
}
.journey-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245,158,11,.4);
}
body.light .journey-card:hover { border-color: rgba(180,83,9,.35); }
.journey-card:active { transform: scale(.98); }

.journey-card--done {
  border-color: rgba(245,158,11,.45) !important;
}
body.dark  .journey-card--done { background: linear-gradient(135deg, rgba(26,46,20,.9) 0%, rgba(8,16,32,.9) 100%) !important; }
body.light .journey-card--done { background: linear-gradient(135deg, rgba(240,253,240,.95) 0%, var(--light-card) 100%) !important; }

.journey-card-num {
  font-family: var(--font-ui);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .5;
  margin-bottom: 8px;
}
.journey-card-tick {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1a0a00;
  font-size: .75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(245,158,11,.4);
}
.journey-card-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(245,158,11,.3));
}
.journey-card-title {
  font-family: var(--font-title);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 3px;
}
body.dark  .journey-card-title { color: var(--dark-text); }
body.light .journey-card-title { color: var(--light-text); }
.journey-card-theme {
  font-family: var(--font-ui);
  font-size: .68rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: .04em;
}
body.light .journey-card-theme { color: #b45309; }
.journey-card-intro {
  font-family: var(--font-body);
  font-size: .82rem;
  line-height: 1.55;
  margin-bottom: 12px;
}
body.dark  .journey-card-intro { color: var(--dark-muted); }
body.light .journey-card-intro { color: var(--light-muted); }
.journey-card-cta {
  font-family: var(--font-title);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gold);
}
body.light .journey-card-cta { color: #b45309; }

/* ── JOURNEY MODAL ─────────────────────────────────────────── */
.journey-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: stretch;
  justify-content: stretch;
}
.journey-modal.active { display: flex; }
body.dark  .journey-modal { background: rgba(0,0,0,0); }
body.light .journey-modal { background: rgba(0,0,0,0); }

.journey-modal-box {
  width: 100%;
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn .2s ease;
}
body.dark  .journey-modal-box {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border2);
  border-bottom: none;
}
body.light .journey-modal-box {
  background: var(--light-surface);
  border: 1px solid var(--light-border2);
  border-bottom: none;
}

.journey-modal-hdr {
  flex-shrink: 0;
  padding: 14px 16px 12px;
  border-bottom: 1px solid;
  display: flex;
  align-items: center;
  gap: 12px;
}
body.dark  .journey-modal-hdr { background: rgba(4,8,16,.8); border-color: var(--dark-border); }
body.light .journey-modal-hdr { background: rgba(255,251,240,.9); border-color: var(--light-border); }

.journey-modal-close {
  background: none;
  border: 1px solid;
  border-radius: 8px;
  padding: 6px 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
body.dark  .journey-modal-close { color: var(--dark-muted); border-color: var(--dark-border2); }
body.light .journey-modal-close { color: var(--light-muted); border-color: var(--light-border2); }
.journey-modal-close:hover { border-color: var(--gold); color: var(--gold); }

.journey-modal-session-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.journey-modal-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.journey-modal-title {
  font-family: var(--font-title);
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.2;
}
body.dark  .journey-modal-title { color: var(--dark-text); }
body.light .journey-modal-title { color: var(--light-text); }
.journey-modal-theme {
  font-size: .65rem;
  font-weight: 600;
  opacity: .65;
  color: var(--gold);
  margin-top: 1px;
}
body.light .journey-modal-theme { color: #b45309; }

/* ── JOURNEY PROGRESS BAR ──────────────────────────────────── */
.journey-prog-bar-wrap {
  flex-shrink: 0;
  padding: 8px 16px 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid;
}
body.dark  .journey-prog-bar-wrap { border-color: var(--dark-border); }
body.light .journey-prog-bar-wrap { border-color: var(--light-border); }
.journey-prog-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(245,158,11,.15);
}
body.light .journey-prog-bar { background: rgba(180,83,9,.12); }
.journey-prog-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transition: width .4s ease;
}
.journey-prog-label {
  font-family: var(--font-ui);
  font-size: .65rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: .55;
}

/* ── JOURNEY MODAL BODY ────────────────────────────────────── */
.journey-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}
.journey-step {
  padding: 22px 18px 20px;
}

/* ── STEP: INTRO ───────────────────────────────────────────── */
.journey-step-icon {
  display: block;
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px rgba(245,158,11,.35));
}
.journey-step-title {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}
body.dark  .journey-step-title { color: var(--gold); }
body.light .journey-step-title { color: #b45309; }
.journey-theme-pill {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 auto 16px;
  display: block;
  text-align: center;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.3);
  color: var(--gold);
}
body.light .journey-theme-pill { color: #b45309; background: rgba(180,83,9,.08); border-color: rgba(180,83,9,.25); }

.journey-step-text {
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1.75;
}
body.dark  .journey-step-text { color: var(--dark-dimmed); }
body.light .journey-step-text { color: var(--light-dimmed); }

/* ── STEP: SCRIPTURE ───────────────────────────────────────── */
.journey-step-label {
  font-family: var(--font-title);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--gold);
  opacity: .75;
}
body.light .journey-step-label { color: #b45309; }
.journey-verse-block {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: normal;
}
body.dark  .journey-verse-block { background: rgba(245,158,11,.07); }
body.light .journey-verse-block { background: rgba(180,83,9,.06); border-left-color: #b45309; }
.journey-verse-text {
  font-family: var(--font-body);
  font-size: .98rem;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 8px;
}
body.dark  .journey-verse-text { color: var(--dark-dimmed); }
body.light .journey-verse-text { color: var(--light-dimmed); }
.journey-verse-ref {
  font-family: var(--font-title);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--gold);
  font-style: normal;
}
body.light .journey-verse-ref { color: #b45309; }
.journey-step-note {
  font-family: var(--font-body);
  font-size: .88rem;
  line-height: 1.65;
  margin-bottom: 16px;
}
body.dark  .journey-step-note { color: var(--dark-muted); }
body.light .journey-step-note { color: var(--light-muted); }
.journey-verse-notes-wrap {
  margin-top: 12px;
}
.journey-notes-label {
  display: block;
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 600;
  margin-bottom: 6px;
  opacity: .65;
}

/* ── STEP: TEACHING ────────────────────────────────────────── */
.journey-teaching-heading {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
body.dark  .journey-teaching-heading { color: var(--dark-text); }
body.light .journey-teaching-heading { color: var(--light-text); }

/* ── STEP: MORAL ───────────────────────────────────────────── */
.journey-moral-block {
  padding: 16px 18px;
  border-left: 4px solid var(--purple);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1.75;
}
body.dark  .journey-moral-block { background: rgba(168,85,247,.08); color: var(--dark-dimmed); }
body.light .journey-moral-block { background: rgba(168,85,247,.06); color: var(--light-dimmed); }

/* ── STEP: DISCUSSION ──────────────────────────────────────── */
.journey-discussion-block {
  padding: 16px 18px;
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1.75;
}
body.dark  .journey-discussion-block { background: rgba(22,163,74,.08); color: var(--dark-dimmed); }
body.light .journey-discussion-block { background: rgba(22,163,74,.06); color: var(--light-dimmed); }

/* ── STEP: NOTES TEXTAREA ──────────────────────────────────── */
.journey-notes-area {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid;
  font-family: var(--font-body);
  font-size: .9rem;
  line-height: 1.6;
  resize: vertical;
  transition: border-color var(--transition);
  display: block;
}
body.dark  .journey-notes-area {
  background: rgba(13,30,53,.7);
  border-color: var(--dark-border2);
  color: var(--dark-text);
}
body.light .journey-notes-area {
  background: var(--light-card);
  border-color: var(--light-border);
  color: var(--light-text);
}
.journey-notes-area:focus {
  outline: none;
  border-color: rgba(245,158,11,.5);
  box-shadow: 0 0 0 3px rgba(245,158,11,.1);
}
.journey-notes-area--large { min-height: 160px; }
.journey-notes-hint {
  font-size: .65rem;
  opacity: .45;
  text-align: right;
  margin-top: 5px;
  font-family: var(--font-ui);
}

/* ── JOURNEY NAV BUTTONS ───────────────────────────────────── */
.journey-modal-nav {
  flex-shrink: 0;
  padding: 12px 16px 16px;
  display: flex;
  gap: 10px;
  border-top: 1px solid;
  align-items: center;
}
body.dark  .journey-modal-nav { border-color: var(--dark-border); background: rgba(4,8,16,.6); }
body.light .journey-modal-nav { border-color: var(--light-border); background: rgba(255,251,240,.8); }
.journey-modal-nav > :first-child { margin-right: auto; }
.journey-nav-btn {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 700;
  transition: all var(--transition);
  border: 2px solid;
  cursor: pointer;
}
.journey-nav-btn--back {
  background: none;
}
body.dark  .journey-nav-btn--back { color: var(--dark-muted); border-color: var(--dark-border2); }
body.light .journey-nav-btn--back { color: var(--light-muted); border-color: var(--light-border); }
.journey-nav-btn--back:hover { border-color: var(--gold); color: var(--gold); }
body.light .journey-nav-btn--back:hover { border-color: #b45309; color: #b45309; }

.journey-nav-btn--next {
  background: rgba(245,158,11,.12);
  border-color: rgba(245,158,11,.4);
  color: var(--gold);
}
body.light .journey-nav-btn--next { color: #b45309; border-color: rgba(180,83,9,.35); background: rgba(180,83,9,.07); }
.journey-nav-btn--next:hover {
  background: rgba(245,158,11,.22);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.journey-nav-btn--complete {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: transparent;
  color: #1a0a00;
  box-shadow: 0 2px 12px rgba(245,158,11,.35);
}
.journey-nav-btn--complete:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245,158,11,.45);
}
.journey-nav-btn--complete:active { transform: scale(.97); }

/* ── JOURNEY COMPLETE SCREEN ───────────────────────────────── */
.journey-complete-screen {
  padding: 32px 24px;
  text-align: center;
}
.journey-complete-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}
.journey-complete-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}
body.light .journey-complete-title { color: #b45309; }
.journey-complete-session {
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 16px;
  opacity: .7;
}
.journey-complete-msg {
  font-family: var(--font-body);
  font-size: .92rem;
  line-height: 1.7;
  margin-bottom: 18px;
}
body.dark  .journey-complete-msg { color: var(--dark-dimmed); }
body.light .journey-complete-msg { color: var(--light-dimmed); }
.journey-complete-verse {
  font-family: var(--font-title);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--gold);
  opacity: .7;
}
body.light .journey-complete-verse { color: #b45309; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE POLISH — Mobile / Tablet / Desktop
   Uses both data-device attribute (JS detection) and
   CSS media queries as reliable fallback
══════════════════════════════════════════════════════════════ */

/* ── SHARED HELPERS ──────────────────────────────────────────── */
:root {
  --device-padding: 16px;
  --card-radius: 16px;
  --header-height: 56px;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE  (phones ≤ 767px  OR  data-device="mobile")
══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  :root { --device-padding: 12px; --header-height: 52px; }
}

html[data-device="mobile"] body,
@media (max-width: 767px) {
  /* Touch-friendly tap targets */
  button, .sni, .hdr-btn, .nav-card, .game-card, .sc {
    min-height: 44px;
  }
}

/* Stack header score pills on very small screens */
@media (max-width: 767px) {
  .score-pill { font-size: .72rem; padding: 3px 8px; gap: 3px; }
  .score-divider { display: none; }

  /* Hero section — tighter */
  .home-hero { padding: 28px var(--device-padding) 24px; }
  .home-hero-title { font-size: 1.8rem; }
  .home-hero-verse { font-size: .85rem; }
  .home-hero-tagline { font-size: .8rem; }

  /* Nav grid — 2 columns on phone */
  .nav-grid { grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
  .nav-card { padding: 14px 10px; border-radius: 14px; }
  .nav-card .nc-icon { font-size: 1.6rem; }
  .nav-card .nc-label { font-size: .72rem; }

  /* Side nav — full width on mobile */
  #sidenav { width: 100% !important; max-width: 320px; }

  /* Story/Bible cards — single column */
  .sc { min-height: 140px; }

  /* Games grid — 2 columns */
  .games-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .game-card { min-height: 120px; font-size: .8rem; }
  .game-card--hero { grid-column: span 2; min-height: 150px; }

  /* Reading plans — stack vertically */
  .spc2-grid { grid-template-columns: 1fr !important; }

  /* About section */
  .about-cards { grid-template-columns: 1fr; gap: 10px; }

  /* Stripe/support button */
  .coffee-btn { font-size: .82rem; padding: 11px 18px; width: 100%; justify-content: center; }

  /* Faith feed */
  .feed-post { padding: 14px; }

  /* Journey sessions */
  .journey-sessions { grid-template-columns: 1fr 1fr; }

  /* Leaderboard */
  .lb-row { font-size: .82rem; gap: 8px; }

  /* Modal full-screen on mobile */
  .modal-inner, .auth-modal-inner { 
    width: 100% !important; 
    max-width: 100% !important; 
    margin: 0 !important;
    border-radius: 20px 20px 0 0 !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
  }

  /* Disable heavy animations on mobile for performance */
  .particle { display: none; }

  /* Background image: cover but position top for portraits */
  #appBg { background-position: center top !important; }

  /* Bible reader */
  .ov-wrap { padding: 0 var(--device-padding); }
  .v-row { font-size: .88rem; line-height: 1.65; }

  /* Comfort cards */
  .comfort-grid { grid-template-columns: 1fr; }

  /* Prayer wall */
  .pw-grid { grid-template-columns: 1fr; }

  /* Quotes grid */
  .quotes-grid { grid-template-columns: 1fr; }

  /* Famous Christians */
  .famous-grid { grid-template-columns: 1fr 1fr; }

  /* Watch page */
  .watch-list { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   TABLET  (768px – 1199px  OR  data-device="tablet")
══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1199px) {
  :root { --device-padding: 20px; --header-height: 58px; }

  /* Nav grid — 3 columns */
  .nav-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 14px; }
  .nav-card { padding: 18px 14px; }

  /* Side nav — narrower */
  #sidenav { width: 300px !important; }

  /* Hero — medium sizing */
  .home-hero { padding: 40px var(--device-padding) 32px; }
  .home-hero-title { font-size: 2.4rem; }

  /* Games — 3 columns */
  .games-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .game-card--hero { grid-column: span 2; }

  /* Reading plans — 2 columns */
  .spc2-grid { grid-template-columns: 1fr 1fr !important; }

  /* Stories — 2 columns */
  .sc-grid { grid-template-columns: 1fr 1fr; }

  /* About cards — 2 columns */
  .about-cards { grid-template-columns: 1fr 1fr; }

  /* Journey sessions — 3 columns */
  .journey-sessions { grid-template-columns: repeat(3, 1fr); }

  /* Famous Christians — 3 columns */
  .famous-grid { grid-template-columns: repeat(3, 1fr); }

  /* Prayer & quotes — 2 columns */
  .pw-grid { grid-template-columns: 1fr 1fr; }
  .quotes-grid { grid-template-columns: 1fr 1fr; }

  /* Watch — 2 columns */
  .watch-list { grid-template-columns: 1fr 1fr; }

  /* Comfort — 2 columns */
  .comfort-grid { grid-template-columns: 1fr 1fr; }

  /* Modal — constrained width */
  .modal-inner, .auth-modal-inner {
    width: 90% !important;
    max-width: 560px !important;
  }

  /* iPad: slightly larger touch targets */
  button, .sni, .hdr-btn { min-height: 44px; }

  /* Background — centered */
  #appBg { background-position: center center !important; }
}

/* ══════════════════════════════════════════════════════════════
   DESKTOP  (≥ 1200px  OR  data-device="desktop")
══════════════════════════════════════════════════════════════ */
@media (min-width: 1200px) {
  :root { --device-padding: 32px; --header-height: 60px; }

  /* Wider content areas */
  .pg { max-width: 1200px; margin: 0 auto; }
  .home-hero { padding: 60px var(--device-padding) 48px; }
  .home-hero-title { font-size: 3rem; }
  .home-hero-verse { font-size: 1.05rem; }

  /* Nav grid — 4 columns */
  .nav-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 20px; }

  /* Side nav — standard width */
  #sidenav { width: 280px !important; }

  /* Games — 4 columns */
  .games-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .game-card--hero { min-height: 220px; }

  /* Reading plans — 3 columns */
  .spc2-grid { grid-template-columns: repeat(3, 1fr) !important; }

  /* Stories — 3 columns */
  .sc-grid { grid-template-columns: repeat(3, 1fr); }

  /* About cards — 3 columns */
  .about-cards { grid-template-columns: repeat(3, 1fr); }

  /* Journey sessions — 4 columns */
  .journey-sessions { grid-template-columns: repeat(4, 1fr); }

  /* Famous Christians — 4 columns */
  .famous-grid { grid-template-columns: repeat(4, 1fr); }

  /* Prayer & quotes — 3 columns */
  .pw-grid { grid-template-columns: repeat(3, 1fr); }
  .quotes-grid { grid-template-columns: repeat(3, 1fr); }

  /* Watch — 3 columns */
  .watch-list { grid-template-columns: repeat(3, 1fr); }

  /* Comfort — 3 columns */
  .comfort-grid { grid-template-columns: repeat(3, 1fr); }

  /* Hover effects only on desktop (no hover on touch) */
  .nav-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.2); }
  .game-card:hover { transform: translateY(-4px) scale(1.01); }
  .sc:hover { transform: translateY(-3px); }
  .sni:hover { padding-left: 20px; }
  .coffee-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,.25); }

  /* Modal — comfortable centered */
  .modal-inner, .auth-modal-inner {
    width: 480px !important;
    max-width: 96vw !important;
  }

  /* Cursor pointer on interactive elements */
  button, .sc, .nav-card, .game-card, .sni { cursor: pointer; }

  /* Slightly more generous line-height for reading on large screens */
  .v-row { font-size: .95rem; line-height: 1.75; }

  /* Background — parallax-style centering */
  #appBg { background-position: center center !important; background-attachment: scroll !important; }
}

/* ── iOS SPECIFIC ─────────────────────────────────────────────── */
html[data-os="ios"] {
  /* Fix iOS momentum scrolling */
  -webkit-overflow-scrolling: touch;
}
html[data-os="ios"] .modal-wrap {
  /* Prevent iOS bounce behind modal */
  overscroll-behavior: contain;
}
/* iOS safe area (notch/home bar) */
html[data-os="ios"] header {
  padding-top: env(safe-area-inset-top, 0px);
}
html[data-os="ios"] .pg {
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* ── ANDROID SPECIFIC ─────────────────────────────────────────── */
html[data-os="android"] button {
  /* Android needs explicit active state since :hover doesn't fire */
  -webkit-tap-highlight-color: rgba(212,175,55,0.2);
}

/* ── NO TOUCH (desktop mouse) ────────────────────────────────── */
html[data-touch="false"] * {
  /* Enable hover transitions only when no touch */
  transition-property: transform, box-shadow, background-color, opacity;
  transition-duration: 0.18s;
  transition-timing-function: ease;
}

/* ── LIGHT MODE BACKGROUND OVERLAY (reduces brightness) ── */
#appBg {
  position: fixed;
  inset: 0;
  z-index: 0;
}
body.light #appBg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* ── PHOTO GALLERY ─────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 12px 20px;
}
@media (min-width: 768px)  { .gallery-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1200px) { .gallery-grid { grid-template-columns: repeat(4,1fr); } }
.gallery-card { border-radius: 14px; overflow: hidden; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.2); transition: transform .2s, box-shadow .2s; }
.gallery-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.3); }
.gallery-card img { width:100%; aspect-ratio:16/9; object-fit:cover; display:block; }
.gallery-card-info { padding: 10px 12px; }
body.dark  .gallery-card-info { background: var(--dark-surface); }
body.light .gallery-card-info { background: var(--light-surface); }
.gallery-card-title { font-family:var(--font-title); font-size:.85rem; font-weight:700; color:var(--gold); margin-bottom:3px; }
.gallery-card-desc  { font-size:.72rem; opacity:.65; line-height:1.4; }

/* ── BROWSER COMPATIBILITY FIXES ────────────────────────────── */
/* iOS Safari vh fix */
[data-ios-fix="true"] .overlay--game .overlay-box {
  height: calc(var(--vh, 1vh) * 100);
}
[data-ios-fix="true"] #pg-games .game-card {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
/* Samsung browser canvas fix */
[data-samsung="true"] canvas {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
/* Firefox font smoothing */
[data-firefox="true"] {
  -moz-osx-font-smoothing: grayscale;
}
/* Touch device adjustments */
[data-touch="true"] .game-card {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* Ensure game overlay fills screen on all browsers */
.overlay--game {
  height: 100%;
  height: 100dvh;
  max-height: 100vh;
}


/* ── NEW FEATURES (v2) ───────────────────────────────── */
.quick-nav-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 0 0 20px;
}
.qnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px 6px 10px;
  border-radius: 14px;
  border: 1.5px solid;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  font-family: var(--font-ui);
}
.qnav-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.qnav-label {
  font-size: .62rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: .01em;
  white-space: nowrap;
}
.tip-card {
  margin: 18px 0 6px;
  border-radius: 18px;
  padding: 20px 18px 16px;
  border: 2px solid #635bff;
  background: linear-gradient(135deg, rgba(99,91,255,.12), rgba(99,91,255,.04));
  text-align: center;
}
.tip-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #635bff, #4f46e5);
  color: #ffffff;
  font-size: .95rem;
  font-weight: 800;
  font-family: var(--font-title);
  margin-bottom: 10px;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(99,91,255,.45);
  text-decoration: none;
  letter-spacing: .02em;
}
.tip-btn-arrow {
  font-size: 1.1rem;
  transition: transform .15s;
}
.tip-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}
.home-all-sections-title {
  font-family: var(--font-title);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: .5;
}
.story-card {
  background-color: #0d1e35 !important;
}
.tip-stripe-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(99,91,255,.12);
  border: 1px solid rgba(99,91,255,.3);
}
.tip-stripe-label {
  font-size: .75rem;
  color: #a5b4fc;
  font-weight: 600;
}
.tip-card-icon {
  font-size: 2.2rem;
  line-height: 1;
}
.tip-card-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
  text-align: left;
}
.tip-card-sub {
  font-size: .75rem;
  opacity: .65;
  text-align: left;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════
   AGGRESSIVE MOBILE OPTIMISATION — all devices
   ═══════════════════════════════════════════════════════════ */

/* Fix header overflow on small screens */
.site-header {
  padding: 0 8px !important;
  gap: 4px !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}

/* Logo smaller on mobile */
@media (max-width: 480px) {
  .logo { gap: 6px !important; }
  .logo-cross { width: 28px !important; height: 28px !important; }
  .logo-text { font-size: .78rem !important; }
  .logo-fun, .logo-bible, .logo-online { font-size: .78rem !important; }
}

/* Header right buttons - shrink and wrap */
.hdr-right {
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}

/* Score/trophy pills smaller */
@media (max-width: 480px) {
  .hdr-score-pill, .hdr-trophy-pill {
    padding: 3px 6px !important;
    font-size: .65rem !important;
    gap: 2px !important;
  }
  .hdr-streak-pill {
    padding: 3px 6px !important;
    font-size: .65rem !important;
    max-width: 70px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  /* Hide username on very small screens */
  .hdr-username {
    display: none !important;
  }
  /* Smaller icon buttons */
  .hdr-icon-btn, .hdr-menu-btn, .hdr-theme-btn, .hdr-avatar-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
  }
}

/* Hide emoji icon on streaks on tiny screens */
@media (max-width: 380px) {
  .hdr-score-pill, .hdr-trophy-pill {
    display: none !important;
  }
}

/* Quick nav strip - horizontal scroll, no wrap */
.quick-nav-strip {
  display: flex !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  flex-wrap: nowrap !important;
}
.quick-nav-strip::-webkit-scrollbar { display: none !important; }
.qnav-btn {
  flex-shrink: 0 !important;
  min-width: 56px !important;
  padding: 6px 8px !important;
}

/* Pages fill full height properly */
.page {
  min-height: calc(var(--vh, 1vh) * 100 - 56px) !important;
  height: auto !important;
}

/* Game overlay fills screen properly on all devices */
.overlay--game {
  z-index: 300 !important;
}
.overlay--game .overlay-box {
  height: 100vh !important;
  height: calc(var(--vh, 1vh) * 100) !important;
  height: 100dvh !important;
  max-height: none !important;
  border-radius: 0 !important;
}

/* Cards full width on mobile */
@media (max-width: 600px) {
  .game-card {
    min-height: 130px !important;
  }
  .games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 10px !important;
  }
  .game-card--hero {
    grid-column: span 2 !important;
  }
}

/* Bible reader readable on mobile */
@media (max-width: 480px) {
  .bible-verse { font-size: .88rem !important; line-height: 1.7 !important; }
  .bible-chapter-title { font-size: 1rem !important; }
}

/* Journey course full width */
@media (max-width: 600px) {
  .journey-card, .session-card {
    margin: 8px !important;
    padding: 16px !important;
  }
}

/* Feed composer full width */
@media (max-width: 480px) {
  .feed-composer { margin: 8px !important; }
  .feed-post-card { margin: 8px 8px 0 !important; }
}

/* Prevent horizontal scroll on all pages */
body, .page, main {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* Touch targets minimum 44px */
button, a, [onclick] {
  min-height: 36px !important;
}

/* Smooth scrolling everywhere */
* {
  -webkit-overflow-scrolling: touch;
}

/* Fix safe area on iPhone X+ */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .site-header {
    padding-top: max(8px, env(safe-area-inset-top)) !important;
  }
  body {
    padding-bottom: env(safe-area-inset-bottom) !important;
  }
}

/* Landscape mode fixes */
@media (max-height: 500px) and (orientation: landscape) {
  .overlay--game .overlay-box {
    height: 100vh !important;
  }
  .site-header {
    padding: 4px 8px !important;
  }
}

/* Samsung/Android specific */
[data-browser="samsung"] canvas {
  image-rendering: optimizeSpeed !important;
}

/* Tablet - 2 column layouts */
@media (min-width: 600px) and (max-width: 900px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* TV/Desktop - wider layout */
@media (min-width: 1200px) {
  .page > * {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}



/* ── HEADER MOBILE FIX — PIXEL PRECISE ─────────────────────── */
/* Total budget at 390px: logo(130) + controls(220) + padding(16) + gaps(24) = 390 */

.hdr { width:100% !important; box-sizing:border-box !important; overflow:hidden !important; }
.hdr-inner {
  display:flex !important; align-items:center !important;
  width:100% !important; box-sizing:border-box !important;
  padding:0 8px !important; gap:4px !important; overflow:hidden !important;
}
.hdr-controls {
  display:flex !important; align-items:center !important;
  gap:4px !important; flex-shrink:0 !important; min-width:0 !important;
}
.logo { flex-shrink:0 !important; max-width:140px !important; }

/* Hide score pill below 480px — saves 80px */
@media (max-width:480px) {
  .score-pill { display:none !important; }
}

/* Hide XP badge below 480px — saves 55px */
@media (max-width:480px) {
  #xp-badge { display:none !important; }
}

/* Hide bubble btn below 480px — saves 36px */
@media (max-width:480px) {
  #bbtn { display:none !important; }
}

/* Auth button: icon only below 480px — saves ~45px */
@media (max-width:480px) {
  #auth-btn {
    width:32px !important; height:32px !important; min-width:32px !important;
    padding:0 !important; font-size:0 !important;
    display:flex !important; align-items:center !important; justify-content:center !important;
  }
  #auth-btn svg { display:block !important; flex-shrink:0 !important; }
}

/* All hdr-btn to 32px on mobile */
@media (max-width:480px) {
  .hdr-btn {
    width:32px !important; height:32px !important;
    min-width:32px !important; padding:0 !important;
    display:flex !important; align-items:center !important; justify-content:center !important;
  }
  .age-btn {
    width:32px !important; height:32px !important;
    padding:0 2px !important; font-size:.85rem !important;
    display:flex !important; align-items:center !important; justify-content:center !important;
  }
  .age-btn svg { display:none !important; }
}

/* Logo text smaller on mobile */
@media (max-width:480px) {
  .logo-cross { width:24px !important; height:24px !important; }
  .logo-fun, .logo-bible, .logo-time { font-size:.72rem !important; }
}

/* Tiny phones: hide logo words except Bible */
@media (max-width:360px) {
  .logo-fun { display:none !important; }
  .logo-time { display:none !important; }
}

/* ── PERFORMANCE OPTIMISATIONS ──────────────────────────────── */
.overlay, .overlay-box, .journey-modal, .journey-modal-box {
  will-change: transform, opacity;
  transform: translateZ(0);
}
.hdr {
  will-change: auto;
  transform: translateZ(0);
}
canvas {
  image-rendering: optimizeSpeed;
  image-rendering: -webkit-optimize-contrast;
}
/* Reduce animation on low-end devices */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
