/* Prayer room (same look as the mobile app). Always a dark, quiet screen. */
body.gpr-lock { overflow: hidden; }
.gpr { position: fixed; inset: 0; z-index: 100000; display: none; justify-content: center; color: #fff; background: radial-gradient(120% 80% at 50% 38%, #5a3279 0%, #2c1c4a 45%, #0b0a18 100%); }
.gpr.is-open { display: flex; }
.gpr *, .gpr *::before, .gpr *::after { box-sizing: border-box; }
.gpr button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; margin: 0; }
.gpr button:disabled { opacity: .35; cursor: default; }
.gpr button:focus-visible, .gpr input:focus-visible, .gpr textarea:focus-visible { outline: 2px solid #ffd27a; outline-offset: 2px; }
.gpr svg { width: 1em; height: 1em; display: block; }
.gpr-col { width: 100%; max-width: 640px; height: 100%; height: 100dvh; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.gpr-top { display: flex; align-items: center; gap: 8px; padding: 10px 10px 2px; }
.gpr .gpr-back { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 30px; flex: none; }
.gpr-title { flex: 1; text-align: center; font-weight: 800; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpr-presence { display: flex; align-items: center; gap: 10px; padding: 8px 18px 4px; min-height: 40px; }
.gpr-badge { background: rgba(255,255,255,.14); border-radius: 999px; padding: 5px 11px; font-size: 11px; font-weight: 800; letter-spacing: .6px; white-space: nowrap; }
.gpr-badge.is-live { background: #ff3b30; }
.gpr-badge.is-live::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: 6px; animation: gpr-pulse 1.6s infinite; }
.gpr-today { font-size: 13px; font-weight: 700; opacity: .92; }
.gpr-progress { display: flex; gap: 4px; padding: 4px 18px; }
.gpr .gpr-progress button { flex: 1; height: 14px; position: relative; min-width: 0; }
.gpr-progress button::after { content: ''; position: absolute; left: 0; right: 0; top: 5px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.22); }
.gpr-progress button.is-done::after { background: #fff; }
.gpr-stage { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 18px 20px; overscroll-behavior: contain; }
.gpr-step { font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; opacity: .6; }
.gpr .gpr-stage h2 { color: #fff; font-size: 26px; line-height: 1.2; margin: 6px 0 0; font-weight: 800; }
.gpr-note { font-style: italic; opacity: .75; margin: 6px 0 0; }
.gpr-card { margin-top: 16px; padding: 16px; border-radius: 22px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 19px; line-height: 1.65; }
.gpr-text, .gpr-text * { color: #fff !important; background: transparent !important; }
.gpr-text p:first-child { margin-top: 0; }
.gpr-text p:last-child { margin-bottom: 0; }
.gpr .gpr-line { margin: 0; padding: 7px 10px; border-radius: 12px; color: rgba(255,255,255,.58); cursor: pointer; transition: background .25s, color .25s; }
.gpr .gpr-line.is-now { background: rgba(255,255,255,.16); color: #fff; }
.gpr .gpr-counter { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 150px; height: 150px; margin: 22px auto 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); background: rgba(255,255,255,.1); }
.gpr-counter strong { font-size: 34px; }
.gpr-counter small { opacity: .7; font-size: 11px; }
.gpr-finish { text-align: center; padding-top: 12vh; }
.gpr-finish-icon { font-size: 56px; }
.gpr-finish p { opacity: .82; }
.gpr-dock { padding: 8px 14px 14px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.gpr-player { border-radius: 26px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.12); padding: 8px 14px 12px; margin-bottom: 10px; }
.gpr-player.no-audio { background: none; border: 0; padding-bottom: 0; }
.gpr-player.no-audio .gpr-seekrow, .gpr-player.no-audio .gpr-play, .gpr-player.no-audio .gpr-error { display: none; }
.gpr-player.no-audio .gpr-controls { justify-content: space-between; }
.gpr-seekrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.7); }
.gpr input.gpr-seek { flex: 1; -webkit-appearance: none; appearance: none; height: 28px; background: transparent; margin: 0; padding: 0; border: 0; box-shadow: none; }
.gpr-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 3px; background: linear-gradient(90deg, #fff var(--p,0%), rgba(255,255,255,.25) var(--p,0%)); }
.gpr-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #fff; margin-top: -5.5px; }
.gpr-seek::-moz-range-track { height: 4px; background: rgba(255,255,255,.25); }
.gpr-seek::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: #fff; }
.gpr-controls { display: flex; justify-content: center; align-items: center; gap: 28px; }
.gpr .gpr-round { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.gpr .gpr-play { width: 62px; height: 62px; border-radius: 50%; background: #fff; color: #1b1830; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.gpr-error { color: #ffb4a9; font-size: 13px; text-align: center; font-weight: 600; margin: 0; }
.gpr-tiles { display: flex; gap: 10px; }
.gpr .gpr-tile { flex: 1; min-width: 0; height: 68px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 22px; text-align: left; background: linear-gradient(135deg, rgba(255,255,255,.15), rgba(255,255,255,.07)); border: 1px solid rgba(255,255,255,.16); transition: background .6s, border-color .6s; }
.gpr .gpr-candle.is-lit { background: linear-gradient(135deg, rgba(255,179,71,.35), rgba(255,179,71,.12)); border-color: rgba(255,210,122,.6); }
.gpr-tiletext { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.gpr-tiletext strong { font-size: 14.5px; white-space: nowrap; }
.gpr-tiletext small { font-size: 11.5px; opacity: .65; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gpr-wax { width: 30px; height: 52px; position: relative; flex: none; }
.gpr-stick { position: absolute; left: 9px; bottom: 5px; width: 12px; height: 22px; border-radius: 3px 3px 1px 1px; background: linear-gradient(90deg, #b9b2a6, #e6e0d4, #9e978b); }
.gpr-stick::after { content: ''; position: absolute; left: -4px; right: -4px; bottom: -4px; height: 4px; border-radius: 2px; background: #c9a35b; }
.gpr-stick::before { content: ''; position: absolute; left: 5px; top: -4px; width: 2px; height: 4px; background: #3a2e22; }
.is-lit .gpr-stick { background: linear-gradient(90deg, #ffe9c2, #fff8e8, #e9c88f); }
.gpr-flame { position: absolute; left: 9px; bottom: 30px; width: 12px; height: 19px; border-radius: 50% 50% 50% 50% / 68% 68% 32% 32%; background: radial-gradient(ellipse at 50% 78%, #fffbea 0 22%, #ffd34d 45%, #ff7a1a 90%); box-shadow: 0 0 18px 8px rgba(255,179,71,.45); transform-origin: 50% 100%; transform: scale(0); opacity: 0; transition: transform .9s, opacity .9s; }
.is-lit .gpr-flame { transform: scale(1); opacity: 1; animation: gpr-flicker 1.9s ease-in-out infinite; }
.gpr-pen { width: 40px; height: 40px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; background: linear-gradient(135deg, #a394ff, #6d5be0); }
.gpr-sheet-wrap { position: absolute; inset: 0; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; }
.gpr-sheet { width: 100%; max-width: 640px; max-height: 85%; height: 600px; display: flex; flex-direction: column; background: #17142b; border-radius: 28px 28px 0 0; padding-bottom: env(safe-area-inset-bottom); }
.gpr-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 8px; }
.gpr .gpr-sheet-head h3 { margin: 0; color: #fff; font-size: 20px; font-weight: 800; }
.gpr .gpr-sheet-head button { width: 36px; height: 36px; opacity: .7; }
.gpr-sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 16px 12px; }
.gpr-sheet-foot { display: flex; gap: 10px; padding: 8px 16px 14px; }
.gpr .gpr-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 999px; background: rgba(255,255,255,.12); font-weight: 700; white-space: nowrap; }
.gpr .gpr-sheet-body .gpr-pill { min-height: 40px; margin: 8px 0 12px; }
.gpr .gpr-primary { flex: 1; min-height: 50px; border-radius: 999px; background: #8b7cf6; font-weight: 800; }
.gpr .gpr-sheet input, .gpr .gpr-sheet textarea { width: 100%; display: block; font: inherit; font-size: 16px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid transparent; border-radius: 16px; padding: 14px; box-shadow: none; }
.gpr .gpr-sheet ::placeholder { color: rgba(255,255,255,.5); }
.gpr-wish { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 14px; margin-bottom: 10px; border-radius: 16px; background: rgba(255,255,255,.07); }
.gpr-wish p { margin: 4px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
.gpr .gpr-pray { padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.12); white-space: nowrap; font-weight: 700; }
.gpr .gpr-template { display: block; width: 100%; text-align: left; padding: 14px; margin-bottom: 10px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); line-height: 1.5; }
.gpr-done { padding: 14px; margin-bottom: 12px; border-radius: 16px; background: rgba(255,210,122,.22); }
.gpr-empty { text-align: center; opacity: .6; padding: 24px 0; }
@keyframes gpr-flicker { 0%,100% { transform: scale(1) rotate(-1.5deg); } 35% { transform: scale(.94,1.07) rotate(2deg); } 70% { transform: scale(1.04,.95) rotate(-1deg); } }
@keyframes gpr-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .gpr-flame, .gpr-badge::before { animation: none !important; } }
/* thin scrollbars that belong to the dark screen */
.gpr-stage, .gpr-sheet-body { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.gpr-stage::-webkit-scrollbar, .gpr-sheet-body::-webkit-scrollbar { width: 6px; background: transparent; }
.gpr-stage::-webkit-scrollbar-track, .gpr-sheet-body::-webkit-scrollbar-track { background: transparent; }
.gpr-stage::-webkit-scrollbar-thumb, .gpr-sheet-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,.25); border-radius: 3px; }
