/* Sunday Prep: the pre-service screen. Designed for a TV or projector (16:9), readable from the back row. */
:root { --accent: #0f8f8a; --primary: #0f8f8a; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #05080f; overflow: hidden; }
body { font-family: "Outfit", system-ui, sans-serif; color: #fff; -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
.pp { position: fixed; inset: 0; overflow: hidden; cursor: default; }
.pp.idle { cursor: none; }

/* background: their photos, slowly moving, crossfading */
.pp__bg i { position: absolute; inset: -4%; background: center / cover no-repeat; opacity: 0; transition: opacity 2.4s ease; }
.pp__bg i.on { opacity: 1; animation: drift 18s ease-in-out both; }
@keyframes drift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.pp__shade { position: absolute; inset: 0;
  background: radial-gradient(80% 70% at 50% 55%, rgba(4,30,29,.32), rgba(4,30,29,.78)), linear-gradient(180deg, rgba(4,30,29,.55), rgba(4,30,29,.2) 30%, rgba(4,30,29,.7)); }

.pp__top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 3.2vh 4vw; z-index: 3; }
.pp__church { display: flex; align-items: center; gap: 1.1vw; font-weight: 700; font-size: clamp(16px, 1.8vw, 34px); letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.pp__church img { height: clamp(34px, 4.6vh, 70px); width: auto; max-width: 16vw; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.pp__count { display: flex; align-items: baseline; gap: .7vw; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  padding: 1vh 1.6vw; backdrop-filter: blur(6px); font-size: clamp(13px, 1.25vw, 24px); }
.pp__count span { opacity: .8; } .pp__count b { font-size: 1.45em; font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* the slide */
.pp__stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 14vh 9vw 13vh; z-index: 2; transition: opacity 1.2s ease; }
.pp__dots { transition: opacity 1.2s ease; }
.ps { max-width: 1500px; width: 100%; text-align: center; animation: slideIn 1.4s cubic-bezier(.2,.8,.2,1) both; }
.ps.out { animation: slideOut .9s ease both; }
@keyframes slideIn { from { opacity: 0; transform: translateY(3vh); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes slideOut { to { opacity: 0; transform: translateY(-2vh); filter: blur(4px); } }
.ps__eyebrow { display: inline-block; background: var(--accent); color: #fff; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  font-size: clamp(12px, 1.2vw, 22px); padding: .55em 1.2em; border-radius: 999px; margin-bottom: 3.4vh; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.ps__h { margin: 0; font-weight: 800; letter-spacing: -.025em; line-height: 1.08; font-size: clamp(30px, 5.4vw, 108px); text-shadow: 0 4px 30px rgba(0,0,0,.45); text-wrap: balance; }
.ps--long .ps__h { font-size: clamp(24px, 3.5vw, 70px); line-height: 1.2; }
.ps--xlong .ps__h { font-size: clamp(20px, 2.7vw, 54px); line-height: 1.3; }
.ps--scripture .ps__h, .ps--prayer .ps__h, .ps--still .ps__h { font-family: "Fraunces", Georgia, serif; font-weight: 500; letter-spacing: -.01em; }
.ps--scripture .ps__h::before { content: "\201C"; } .ps--scripture .ps__h::after { content: "\201D"; }
.ps--still .ps__h { font-style: italic; }
.ps__t { margin: 3vh 0 0; font-size: clamp(16px, 1.9vw, 38px); opacity: .92; font-weight: 600; text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.ps--scripture .ps__t, .ps--still .ps__t { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: clamp(14px, 1.4vw, 28px); color: #ffe7a6; }
.ps__note { margin: 1vh 0 0; font-size: clamp(11px, .9vw, 16px); opacity: .6; }
.ps--message .ps__h { font-size: clamp(36px, 6.6vw, 132px); }
.ps--question .ps__h { font-size: clamp(28px, 4.6vw, 92px); }
.ps__line { width: 7vw; height: 4px; border-radius: 4px; background: var(--accent); margin: 3.6vh auto 0; opacity: .9; }

.pp__dots { position: absolute; left: 0; right: 0; bottom: 4vh; display: flex; justify-content: center; gap: .6vw; z-index: 3; }
.pp__dots i { width: .7vw; height: .7vw; min-width: 7px; min-height: 7px; border-radius: 50%; background: rgba(255,255,255,.28); transition: background .4s, transform .4s; }
.pp__dots i.on { background: #fff; transform: scale(1.35); }

/* the last minute: a big, calm countdown */
.pp__final { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; text-align: center; background: rgba(4,30,29,.5); animation: slideIn 1s both; }
.pp__final span { font-size: clamp(18px, 2.2vw, 44px); opacity: .85; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.pp__final b { font-size: clamp(90px, 16vw, 320px); line-height: 1; font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -.02em; }
.pp__final.done b { font-size: clamp(46px, 7vw, 140px); }

/* controls (appear when the mouse moves) */
.pp__bar { position: absolute; left: 50%; bottom: 3vh; transform: translateX(-50%); z-index: 6; display: flex; gap: 8px; background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.15); border-radius: 999px; padding: 8px; transition: opacity .4s; backdrop-filter: blur(8px); }
.pp.idle .pp__bar, .pp.embed .pp__bar { opacity: 0; pointer-events: none; }
.pp__bar button { background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 999px; padding: 9px 14px; font: 600 14px Outfit, sans-serif; cursor: pointer; white-space: nowrap; }
.pp__bar button:hover { background: rgba(255,255,255,.24); }

.pp__start { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; background: rgba(4,30,29,.72); backdrop-filter: blur(4px); padding: 20px; }
.pp__card { max-width: 640px; text-align: center; background: rgba(6,43,42,.86); border: 1px solid rgba(255,255,255,.14); border-radius: 26px; padding: 36px 34px; box-shadow: 0 40px 90px rgba(0,0,0,.5); }
.pp__k { margin: 0 0 6px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; font-size: 13px; color: #8fe3dd; }
.pp__card h1 { margin: 0 0 12px; font-size: 34px; letter-spacing: -.02em; }
.pp__card p { color: #c8cfdd; font-size: 17px; line-height: 1.55; margin: 0 0 18px; }
.pp__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 6px 0 14px; }
.pp__go { border: 0; border-radius: 999px; padding: 14px 22px; font: 700 17px Outfit, sans-serif; cursor: pointer; background: #0f8f8a; color: #fff; box-shadow: 0 12px 30px rgba(15,143,138,.45); }
.pp__go--ghost { background: rgba(255,255,255,.12); box-shadow: none; }
.pp__tip { font-size: 14px !important; color: #8f98ab !important; margin: 0 !important; }
.pp__err { position: absolute; inset: 0; z-index: 9; display: grid; place-content: center; text-align: center; font-size: 22px; padding: 30px; background: #0d1424; }
@media (prefers-reduced-motion: reduce) { .pp__bg i.on { animation: none; } .ps, .ps.out { animation-duration: .01s; } }
