/* Bible or Not? daily game (home page section right after the hero). Mobile first.
   Motion is transform and opacity only, so it stays smooth on iPhone. */
.daily h2.big { margin-bottom: 10px; }
.bn-sub { text-wrap: balance; text-align: center; color: var(--muted); font-size: 1.05rem; margin-bottom: 32px; }
.bn { max-width: 520px; margin: 0 auto; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }

/* Top row: day label, 5 progress bars, count */
.bn-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.bn-day { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.bn-n { font-size: .85rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.bn-prog { display: flex; gap: 6px; }
.bn-prog i { width: 22px; height: 8px; border-radius: 4px; background: var(--line); transition: background .3s; }
.bn-prog i.now { background: var(--gold-light); animation: breathe 1.6s ease-in-out infinite; }
.bn-prog i.ok { background: var(--green); }
.bn-prog i.no { background: var(--red); }
.bn-prog i.pop { animation: bn-dot .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes bn-dot { 40% { transform: scaleY(1.9) scaleX(1.15); } }

/* The deck: the card on top, and up to two cards peeking behind it so you can see how many are left */
.bn-stack { position: relative; }
.bn-stack::before, .bn-stack::after { content: ""; position: absolute; inset: 0; background: #fff; border: 2px solid var(--line); border-radius: 22px; transition: opacity .3s, transform .3s; }
.bn-stack::before { transform: translate(10px, 12px) rotate(3deg) scale(.96); }
.bn-stack::after { transform: translate(-9px, 22px) rotate(-3deg) scale(.92); }
.bn-stack[data-left="1"]::after, .bn-stack[data-left="0"]::after { opacity: 0; transform: translate(0, 10px) scale(.9); }
.bn-stack[data-left="0"]::before { opacity: 0; transform: translate(0, 10px) scale(.9); }

/* The card: front is the saying, back is the truth. Flips in 3D. Wiggles every few seconds until answered. */
.bn-card { position: relative; z-index: 2; perspective: 1200px; touch-action: pan-y; animation: bn-wiggle 3.4s ease-in-out 1.2s infinite; transform-origin: 50% 100%; transition: transform .25s ease; }
.bn-card.flipped, .bn-card.tilting, .bn-card.dragging { animation: none; }
.bn-card.dragging { transition: none; will-change: transform; cursor: grabbing; }
.bn-card.flipped { cursor: grab; }
.bn-card.spring { transition: transform .45s cubic-bezier(.3,1.5,.5,1); }
@keyframes bn-wiggle { 0%, 72%, 100% { transform: none; } 77% { transform: rotate(-1.6deg); } 83% { transform: rotate(1.4deg); } 89% { transform: rotate(-.7deg); } 95% { transform: rotate(.3deg); } }
.bn-tilt { transition: transform .15s ease-out; }
.bn-inner { display: grid; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transition: transform .65s cubic-bezier(.3,.9,.35,1.15); }
.bn-card.flipped .bn-inner { transform: rotateY(180deg); }
/* Right answer: a little pop after the flip lands. Wrong: a shake. */
.bn-card.got .bn-tilt { animation: bn-pop .45s cubic-bezier(.3,1.6,.5,1) .45s; }
.bn-card.miss .bn-tilt { animation: shake .35s ease .5s; }
@keyframes bn-pop { 45% { transform: scale(1.045); } }
/* Throw the answered card off, and settle the next one in from the stack */
.bn-card.out { animation: bn-out .4s cubic-bezier(.5,0,.75,0) forwards; pointer-events: none; }
.bn-card.in { animation: bn-in .45s cubic-bezier(.2,.9,.3,1.1); }
/* Flung by a swipe: no slow start, it keeps the finger's speed */
.bn-card.out.flung { animation: bn-out .32s cubic-bezier(.2,.6,.4,1) forwards; }
@keyframes bn-out { to { transform: translate3d(-130%, 0, 0) rotate(-16deg); opacity: 0; } }
@keyframes bn-in { from { transform: translate(10px, 12px) rotate(3deg) scale(.96); } }

.bn-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fff; border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 22px; padding: 26px 24px; min-height: 240px; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 14px 30px rgba(20,42,70,.08); }
.bn-card:hover .bn-front { border-color: var(--line-dark); }
.bn-front { text-align: center; }
.bn-lbl { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.bn-say { font-size: clamp(1.45rem, 5.4vw, 1.85rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.bn-back { transform: rotateY(180deg); }
.bn-back.right { border-color: var(--green); background: var(--green-bg); }
.bn-back.wrong { border-color: var(--red); background: var(--red-bg); }
.bn-verdict { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.bn-badge { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1rem; flex: none; }
.bn-back.right .bn-verdict { color: var(--green-deep); }
.bn-back.wrong .bn-verdict { color: var(--red-deep); }
.bn-back.right .bn-badge { background: var(--green); }
.bn-back.wrong .bn-badge { background: var(--red); }
.flipped .bn-badge { animation: trypop .4s cubic-bezier(.3,1.6,.5,1) .45s both; }
.bn-truth { font-size: 1.02rem; line-height: 1.5; color: var(--ink); margin-bottom: 12px; }
.bn-back .verse { font-size: .98rem; line-height: 1.5; font-style: italic; border-left: 3px solid var(--gold); padding-left: 14px; color: var(--ink); }
.bn-back .verse cite { display: block; font-style: normal; font-weight: 700; font-size: .85rem; margin-top: 4px; }


/* Answer buttons: chunky tiles with the site's gold "tap me" ring */
.bn-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 26px; min-height: 64px; }
.bn-acts .btn { grid-column: 1 / -1; justify-self: center; animation: rise .35s ease, ctapulse 2.2s ease-out .6s infinite; }
.bn-acts .btn:active { animation: none; }
.bn-pick { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 64px; padding: 10px 12px; cursor: pointer; font-family: inherit; font-size: 1.02rem; font-weight: 700; line-height: 1.2; color: var(--ink); background: #fff; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 16px; transition: border-color .12s, transform .06s, opacity .2s; animation: dtpulse 2s ease-out 1s infinite; -webkit-tap-highlight-color: transparent; }
.bn-pick:nth-child(2) { animation-delay: 2s; }
.bn-pick:hover { border-color: var(--line-dark); }
.bn-pick:active { transform: translateY(2px); border-bottom-width: 2px; margin-bottom: 2px; }
.bn-pick .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: .95rem; background: var(--mist); }
.bn-pick:disabled { cursor: default; animation: none; }
.bn-pick.right { border-color: var(--green); background: var(--green-bg); color: var(--green-deep); }
.bn-pick.wrong { border-color: var(--red); background: var(--red-bg); color: var(--red-deep); animation: shake .3s ease; }
.bn-pick.dim { opacity: .4; }
.bn-hint { text-align: center; margin-top: 12px; font-size: .85rem; font-weight: 600; color: var(--muted); }

/* Results */
.bn-done { text-align: center; }
.bn-done.fresh { animation: rise .5s ease; }
.bn-score { position: relative; margin: 8px 0 14px; }
.bn-score b { display: block; font-size: clamp(3.4rem, 15vw, 4.6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.bn-msg { font-size: 1.15rem; font-weight: 700; color: var(--gold); }
.bn-done.fresh .bn-msg { display: inline-block; animation: trypop .45s cubic-bezier(.3,1.6,.5,1) .85s both; }
.bn-grid { display: flex; justify-content: center; gap: 8px; }
/* Result squares are buttons: tap one to see that saying again */
.bn-grid button { width: 40px; height: 40px; border: 0; border-radius: 11px; cursor: pointer; box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); transition: transform .12s ease; -webkit-tap-highlight-color: transparent; }
.bn-grid button.ok { background: var(--green); }
.bn-grid button.no { background: var(--red); }
.bn-grid button:hover { transform: translateY(-2px); }
.bn-grid button:active { transform: translateY(1px); }
.bn-grid button.sel { transform: translateY(-4px); box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 0 0 3px var(--paper), 0 0 0 5px var(--ink); }
.bn-done.fresh .bn-grid button { animation: trypop .35s cubic-bezier(.3,1.5,.5,1) both; }
.bn-done.fresh .bn-grid button:nth-child(1) { animation-delay: .1s; }
.bn-done.fresh .bn-grid button:nth-child(2) { animation-delay: .24s; }
.bn-done.fresh .bn-grid button:nth-child(3) { animation-delay: .38s; }
.bn-done.fresh .bn-grid button:nth-child(4) { animation-delay: .52s; }
.bn-done.fresh .bn-grid button:nth-child(5) { animation-delay: .66s; }
.bn-tap { margin: 10px 0 18px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.bn-review:empty { display: none; }
.bn-review { margin: -4px 0 20px; text-align: left; }
.bn-review .bn-face { min-height: 0; transform: none; animation: rise .3s ease; } /* not flipped, so no rotate */
.bn-review .bn-lbl { margin-bottom: 8px; }
.bn-rsay { font-size: 1.2rem; font-weight: 700; line-height: 1.3; color: var(--ink); margin-bottom: 12px; }
.bn-review .bn-verdict { font-size: 1.1rem; }
.bn-review .bn-badge { width: 26px; height: 26px; font-size: .85rem; }

.bn-stats { background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 18px; margin: 22px 0 18px; text-align: left; }
.bn-cal-h { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 10px; }
.bn-cal-h span:last-child { color: var(--muted); font-size: .9rem; }
.bn-cal-w, .bn-cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.bn-cal-w i { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--muted); padding-bottom: 4px; }
.bn-cal-g i { font-style: normal; font-size: .8rem; font-weight: 600; color: var(--ink); width: 32px; height: 32px; justify-self: center; display: grid; place-items: center; border-radius: 50%; }
.bn-cal-g i.later { color: #B9C1CC; }
.bn-cal-g i.on { background: var(--green); color: #fff; } /* green means done */
.bn-cal-g i.today { box-shadow: inset 0 0 0 2px var(--blue); }
.bn-done.fresh .bn-cal-g i.today.on { animation: trypop .45s cubic-bezier(.3,1.6,.5,1) 1s both; }
.bn-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--line); text-align: center; }
.bn-nums b { display: block; font-size: 1.5rem; line-height: 1.1; color: var(--ink); }
.bn-nums span { font-size: .75rem; font-weight: 600; color: var(--muted); }
.bn-nums span { display: block; line-height: 1.25; }
.bn-streak { margin-top: 12px; text-align: center; font-size: .85rem; font-weight: 600; color: var(--muted); }
.bn-streak b { color: var(--ink); }
/* Score bars */
.bn-dist { margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--line); }
.bn-dist-h { font-weight: 700; margin-bottom: 8px; }
.bn-bar { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.bn-bar span { width: 30px; flex: none; font-size: .85rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.bn-bar .trk { flex: 1; }
.bn-bar i { display: block; width: var(--w); height: 20px; border-radius: 6px; background: #CFD6DF; }
.bn-bar em { width: 52px; flex: none; font-style: normal; font-size: .82rem; font-weight: 700; color: var(--muted); text-align: right; }
.bn-bar.now i { background: var(--green); }
.bn-bar.now em { color: var(--green-deep); }
.bn-done.fresh .bn-bar i { transform-origin: left; animation: bn-grow .6s cubic-bezier(.2,.9,.3,1) 1s both; }
@keyframes bn-grow { from { transform: scaleX(0); } }
/* Countdown and tomorrow's teaser */
.bn-next-up { margin-bottom: 22px; }
.bn-next-up .bn-tmrw { margin-bottom: 10px; }
.bn-tease { background: #fff; border: 2px dashed var(--gold); border-radius: 16px; padding: 14px 16px; }
.bn-tease .bn-lbl { display: block; margin-bottom: 4px; color: var(--gold); }
.bn-tease p { font-size: 1.08rem; font-weight: 700; color: var(--ink); line-height: 1.35; }

.bn-tmrw { color: var(--muted); font-weight: 600; margin-bottom: 22px; }
.bn-tmrw b { color: var(--ink); font-variant-numeric: tabular-nums; }
.bn-gospel { background: var(--blue); color: var(--paper); border-radius: 20px; padding: 22px 20px; }
.bn-gospel p { font-size: 1.05rem; line-height: 1.5; margin-bottom: 16px; }
.bn-gospel .btn { background: var(--gold); color: var(--blue-deep); box-shadow: 0 4px 0 #A8853F; }
.bn-gospel .btn:hover { background: var(--gold-light); }
.bn-gospel .btn:active { box-shadow: 0 0 0 #A8853F; }
.bn-reset { margin-top: 16px; background: none; border: 1px dashed var(--line-dark); border-radius: 10px; padding: 8px 14px; font-family: inherit; font-size: .85rem; font-weight: 600; color: var(--muted); cursor: pointer; }

@media (min-width: 760px) {
  .bn-face { padding: 34px 36px; min-height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .bn *, .bn-card { animation: none !important; }
  .bn-inner, .bn-tilt, .bn-card { transition: none !important; }
}
