/* Worship Studio screen (/display, TINL-1307): the slide full screen, a code form, a waiting pulse
   and a small bar that appears on mouse move. Loaded after worship.css. */

body.wp-display { overflow: hidden; background: #000; }
body.wp-display.wpd-idle { cursor: none; }

.wpd-stage { position: fixed; inset: 0; background: #000; }

.wpd-connect { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; isolation: isolate; }
.wpd-connect-bg { position: absolute; inset: 0; z-index: -1; background: url("/worship/img/hero.webp") center / cover no-repeat; filter: saturate(1.05); }
.wpd-connect-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 500px at 50% 40%, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.9)); }
.wpd-card {
  width: min(520px, 100%); display: grid; gap: 14px; justify-items: center; text-align: center; padding: 34px 28px;
  border-radius: 28px; background: rgba(20, 20, 22, 0.86); border: 1px solid var(--wp-line-2); backdrop-filter: blur(16px);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8); animation: wp-rise 600ms var(--wp-ease) both;
}
.wpd-card h1 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.wpd-card p { margin: 0; }
.wpd-mark { width: 56px; height: 56px; border-radius: 16px; }
.wpd-mark svg { width: 28px; height: 28px; }
.wpd-code-input {
  width: 100%; text-align: center; padding: 14px 10px; border-radius: 16px; border: 2px solid var(--wp-line-2); background: rgba(0, 0, 0, 0.35);
  color: #fff; font: 700 clamp(2rem, 7vw, 3rem)/1 "Space Grotesk", monospace; letter-spacing: 0.3em; text-transform: uppercase;
}
.wpd-code-input:focus { outline: none; border-color: var(--wp-accent); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2); }
.wpd-code-input::placeholder { color: rgba(255, 255, 255, 0.25); }
.wpd-error { margin: 0; color: #d9d9d9; font-weight: 600; }
.wpd-card .wp-btn-lg { width: 100%; }

.wpd-wait { position: fixed; inset: 0; z-index: 2; display: grid; place-items: center; align-content: center; gap: 22px; background: radial-gradient(700px 400px at 50% 50%, #18181a, #000); color: var(--wp-muted); font-size: 1.2rem; }
.wpd-wait p { margin: 0; }
.wpd-pulse { width: 74px; height: 74px; border-radius: 50%; background: #f3f3f3; animation: wpd-pulse 1.8s ease-in-out infinite; }
@keyframes wpd-pulse { 0%, 100% { transform: scale(0.86); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); } 50% { transform: scale(1); box-shadow: 0 0 0 26px rgba(255, 255, 255, 0); } }

.wpd-bar {
  position: fixed; left: 50%; bottom: 18px; z-index: 5; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px;
  border-radius: 999px; background: rgba(20, 20, 22, 0.9); border: 1px solid var(--wp-line-2); backdrop-filter: blur(10px); animation: wp-rise 220ms var(--wp-ease) both;
  max-width: calc(100vw - 24px); flex-wrap: wrap; justify-content: center;
}
.wpd-status { padding: 0 8px; color: var(--wp-muted); font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) { .wpd-pulse, .wpd-card, .wpd-bar { animation: none; } }

/* TINL-1435: the room's alert line, the stage display and the livestream output */
.wpd-alert { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; padding: 14px 4vw; background: rgba(0, 0, 0, 0.82); color: #fff; font: 600 clamp(18px, 2.4vw, 40px)/1.25 Inter, sans-serif; text-align: center; animation: wp-rise 300ms var(--wp-ease) both; }
body.wpd-stage { background: #000; color: #fff; }
.wpd-stagebox { position: fixed; inset: 0; display: grid; grid-template-rows: auto auto 1fr; gap: 1.2vh; padding: 2vh 2.4vw; font-family: Inter, system-ui, sans-serif; }
.wpd-stagebox header { display: flex; align-items: center; gap: 2vw; font-size: clamp(16px, 2.2vw, 34px); color: #cfd3dc; }
.wpd-stagebox header time { font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.wpd-stagebox header b { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpd-stagebox [data-s="chip"]:not(:empty) { padding: 0.15em 0.7em; border-radius: 99px; background: #7f1d1d; color: #fff; font-weight: 700; font-size: 0.8em; }
.wpd-timer { margin-left: auto; padding: 0.2em 0.7em; border-radius: 14px; background: #1f2937; color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.3em; }
.wpd-timer.warn { background: #a16207; }
.wpd-timer.over { background: #b91c1c; }
.wpd-msg { padding: 1.2vh 2vw; border-radius: 14px; background: #facc15; color: #111; font: 800 clamp(20px, 3.4vw, 54px)/1.15 Inter, sans-serif; text-align: center; }
.wpd-stagebox main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.4vw; min-height: 0; }
.wpd-stagebox section { min-height: 0; overflow: hidden; }
.wpd-stagebox .lab { display: block; margin-bottom: 0.6vh; color: #9ca3af; font: 700 clamp(12px, 1.2vw, 18px) Inter, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
.wpd-stagebox .now [data-s="now"] { white-space: pre-line; font: 700 clamp(26px, 4.6vw, 86px)/1.2 Inter, sans-serif; }
.wpd-stagebox .now .tr { white-space: pre-line; margin-top: 1vh; color: #cbd5e1; font: italic 500 clamp(18px, 2.6vw, 46px)/1.2 Inter, sans-serif; }
.wpd-stagebox aside { display: grid; grid-template-rows: auto 1fr; gap: 2vh; min-height: 0; }
.wpd-stagebox .next [data-s="next"] { white-space: pre-line; color: #e5e7eb; font: 600 clamp(18px, 2.4vw, 42px)/1.25 Inter, sans-serif; }
.wpd-stagebox .notes { padding: 1.4vh 1.2vw; border-radius: 14px; background: #111827; }
.wpd-stagebox .notes [data-s="notes"] { white-space: pre-line; color: #fde68a; font: 600 clamp(16px, 2vw, 34px)/1.3 Inter, sans-serif; }
@media (orientation: portrait) { .wpd-stagebox main { grid-template-columns: 1fr; grid-template-rows: auto 1fr; } }
/* the livestream: see-through (a Browser source composites it over the camera) */
html:has(body.wpd-stream), body.wpd-stream, body.wpd-stream .wpd-stage, body.wpd-stream .wpr-box, body.wpd-stream .wpr-frame { background: transparent !important; }
body.wpd-stream.wpd-green, html:has(body.wpd-green) { background: #00b140 !important; }
body.wpd-stream .wpd-wait, body.wpd-stage .wpd-wait { background: transparent; }
/* the song credit moves above the alert line while one is shown */
body.wp-display:has(.wpd-alert:not([hidden])) .wpr-credit { bottom: 13%; }

/* TINL-1435: the phone remote (/display?code=…&mode=remote, wp-remote.js) — dark like the other screens, big buttons */
body.wpd-remote { background: #05070f; color: #f3f4f6; overflow: auto; }
.wpr-remote { display: flex; flex-direction: column; gap: 14px; min-height: 100dvh; max-width: 560px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); box-sizing: border-box; font-family: Inter, system-ui, sans-serif; }
.wpr-remote-top { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.wpr-remote-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpr-remote-top span:last-child { color: rgba(243, 244, 246, 0.7); font-variant-numeric: tabular-nums; }
.wpr-remote-dot { width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; flex: none; }
.wpr-remote-dot.on { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); }
.wpr-remote-now { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); touch-action: pan-y; }
.wpr-remote-next { margin: 0; color: rgba(243, 244, 246, 0.75); font-size: 15px; line-height: 1.4; }
.wpr-remote-next b { color: #f3f4f6; font-weight: 600; }
.wpr-remote-go { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; margin-top: auto; }
.wpr-remote-go .wp-btn { min-height: 96px; font-size: 22px; font-weight: 700; border-radius: 18px; justify-content: center; }
.wpr-remote-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wpr-remote-modes .wp-btn { min-height: 56px; font-size: 16px; justify-content: center; border-radius: 14px; }
.wpr-remote-modes .wp-btn[aria-pressed="true"] { background: #f3f4f6; color: #05070f; }
.wpr-remote-code { margin: 0; text-align: center; color: rgba(243, 244, 246, 0.6); font-size: 13px; }
.wpr-remote-code b { letter-spacing: 0.12em; color: #f3f4f6; }
.wpr-remote-note { margin: auto 0; text-align: center; display: grid; gap: 14px; justify-items: center; }
.wpr-remote-note h1 { margin: 0; font-size: 24px; }
.wpr-remote-note p { margin: 0; color: rgba(243, 244, 246, 0.78); line-height: 1.5; }
