/* Oli renderer — shared by output, stage, monitor and same-screen presenting */
.oli-root { position: relative; overflow: hidden; background: #000; container-type: size; }
.oli-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; color: var(--fg, #fff);
  --fta: 'Catamaran', sans-serif; --fen: 'Poppins', sans-serif; --fw: 700; --acc: #90DA9E; --shadow: 0 4px 24px rgba(0,0,0,.6); }
.oli-bg, .oli-bgimg, .oli-dim, .oli-black, .oli-layers, .oli-layer, .oli-logo, .oli-countdown { position: absolute; inset: 0; }
.oli-bg { background: #0b1414; }
.oli-bgimg { background-size: cover; background-position: center; }
.oli-dim { background: #000; opacity: 0; transition: opacity .4s; }
.oli-bg.anim-aurora { background-size: 400% 400% !important; animation: oliAurora 28s ease-in-out infinite; }
@keyframes oliAurora { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.oli-bg.anim-embers::before, .oli-bg.anim-embers::after { content: ''; position: absolute; inset: -20%;
  background:
    radial-gradient(4px 4px at 10% 80%, rgba(255,170,80,.9), transparent 60%),
    radial-gradient(3px 3px at 30% 60%, rgba(255,120,60,.8), transparent 60%),
    radial-gradient(5px 5px at 55% 90%, rgba(255,200,120,.7), transparent 60%),
    radial-gradient(3px 3px at 75% 70%, rgba(255,140,70,.8), transparent 60%),
    radial-gradient(4px 4px at 90% 85%, rgba(255,180,90,.7), transparent 60%),
    radial-gradient(70% 50% at 50% 120%, rgba(210,60,30,.45), transparent 70%);
  animation: oliEmbers 14s linear infinite; }
.oli-bg.anim-embers::after { animation-duration: 22s; animation-delay: -7s; opacity: .7; transform: scale(1.3); }
@keyframes oliEmbers { from { transform: translateY(10%); } to { transform: translateY(-25%); } }

.oli-layer { display: flex; transition: opacity .42s ease, transform .42s ease; }
.oli-layer.enter { opacity: 0; transform: translateY(14px); }
.oli-layer.leave { opacity: 0; }
.oli-text { position: absolute; inset: 0; display: flex; flex-direction: column; }
.oli-box { position: absolute; left: 6%; right: 6%; top: 8%; bottom: 13%; display: flex; flex-direction: column; justify-content: center; }
.oli-stage[data-pos="top"] .oli-box { justify-content: flex-start; }
.oli-stage[data-pos="bottom"] .oli-box { justify-content: flex-end; }
.oli-stage[data-pos="lower"] .oli-box { top: 62%; bottom: 7%; left: 4%; right: 4%; }
.oli-stage[data-pos="lower"] .oli-layer::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(transparent, rgba(0,0,0,.78) 35%); }
.oli-stage[data-pos="lower"] .oli-foot { bottom: 1.2%; }
.oli-stage[data-pos="lower"] .oli-foot .ft { display: none; }
.oli-stage[data-pos="lower"] .oli-foot .fc { -webkit-line-clamp: 1; font-size: 22px; }
.oli-lines { font-family: var(--fta); font-weight: var(--fw); line-height: 1.22; text-shadow: var(--shadow); text-align: center; overflow-wrap: anywhere; }
.oli-stage[data-align="left"] .oli-lines { text-align: left; }
.oli-stage[data-align="right"] .oli-lines { text-align: right; }
.oli-stage.upper .l-en, .oli-stage.upper .l-tl { text-transform: uppercase; }
.oli-lines .l { margin: 0 0 .32em; }
.oli-lines .l:last-child { margin-bottom: 0; }
.l-ta { font-family: var(--fta); }
.l-tl { font-family: var(--fen); font-weight: 500; font-size: .56em; opacity: .82; line-height: 1.25; margin-top: .05em; letter-spacing: .01em; color: var(--acc); }
.l-tl.solo { font-weight: var(--fw); font-size: .82em; opacity: 1; color: var(--fg); margin-top: 0; }
.l-en { font-family: var(--fen); font-weight: 600; }
.l-en.sub { font-size: .7em; font-weight: 500; opacity: .9; margin-top: .12em; }
.kind-bible .oli-lines { line-height: 1.32; }
.kind-bible .l-ta { font-weight: calc(var(--fw) - 100); }
.kind-bible .l { margin-bottom: .45em; }
.vn { font-family: var(--fen); font-size: .5em; color: var(--acc); margin-right: .25em; vertical-align: .55em; }
.oli-foot { position: absolute; left: 6%; right: 6%; bottom: 3.6%; text-align: center; color: var(--fg); text-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 6px; }
.oli-foot .ft { font-family: var(--fta); font-weight: 600; font-size: 34px; letter-spacing: .02em; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.oli-foot .fc { font-family: var(--fta), var(--fen); font-weight: 500; font-size: 25px; line-height: 1.3; opacity: .74; max-width: 100%;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.has-credit .oli-box { bottom: 16%; }
.kind-bible .oli-foot .ft { font-size: 46px; opacity: .95; color: var(--acc); }
.oli-foot .ver { font-family: var(--fen); font-size: .7em; opacity: .7; margin-left: .6em; letter-spacing: .08em; }
.no-footer .kind-song .ft, .no-footer .kind-text .ft { display: none; }

.oli-stage.is-clear .oli-layers { opacity: 0; }
.oli-layers { transition: opacity .35s; }
.oli-black { background: #000; opacity: 0; pointer-events: none; transition: opacity .45s; z-index: 9; }
.oli-stage.is-black .oli-black { opacity: 1; }
.oli-logo { display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .5s; z-index: 5;
  background: radial-gradient(90% 90% at 50% 40%, rgba(135,26,187,.5), rgba(5,9,9,.96) 70%); }
.oli-stage.is-logo .oli-logo { opacity: 1; }
.oli-stage.is-logo .oli-layers { opacity: 0; }
.oli-logo-inner { text-align: center; color: #fff; }
.oli-logo-inner img { max-width: 60%; max-height: 60%; object-fit: contain; }
.lg-mark { display: block; width: 210px; height: auto; margin: 0 auto 56px; }
.lg-en { font-family: 'Syne', var(--fen); font-weight: 800; font-size: 120px; line-height: .95; text-transform: uppercase; letter-spacing: -.01em; max-width: 80%; margin: 0 auto; }
.lg-ta { font-family: 'Catamaran', var(--fta); font-weight: 800; font-size: 64px; margin-top: 28px; color: transparent; -webkit-text-stroke: 2px #90DA9E; }

.oli-countdown { display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity .4s; z-index: 4; }
.oli-countdown.on { opacity: 1; }
.oli-stage.is-countdown .oli-layers { opacity: 0; }
.oli-cd-label { font-family: 'Catamaran', 'Syne', sans-serif; font-weight: 800; font-size: 64px; text-transform: uppercase; letter-spacing: .04em; color: var(--acc); text-shadow: var(--shadow); }
.oli-cd-time { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 300px; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: var(--shadow); }

.oli-msg { position: absolute; left: 0; right: 0; bottom: 0; height: 92px; background: #90DA9E; color: #0d1717; overflow: hidden; z-index: 6;
  transform: translateY(100%); transition: transform .45s cubic-bezier(.2,.8,.2,1); display: flex; align-items: center; }
.oli-msg.on { transform: none; }
.oli-msg-track { display: inline-flex; white-space: nowrap; animation: oliTicker 30s linear infinite; font-family: 'Catamaran', 'Syne', sans-serif; font-weight: 800; font-size: 48px; }
.oli-msg-track span { padding: 0 40px; }
.oli-msg-track i { font-style: normal; opacity: .6; }
@keyframes oliTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.oli-bg.anim-drift { background-size: 150% 150% !important; animation: oliDrift 45s ease-in-out infinite alternate; }
@keyframes oliDrift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.oli-bg.anim-rays::before { content: ''; position: absolute; left: -50%; right: -50%; top: -120%; bottom: -20%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,214,140,.16) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(closest-side, #000, transparent); mask: radial-gradient(closest-side, #000, transparent); animation: oliSpin 160s linear infinite; }
@keyframes oliSpin { to { transform: rotate(360deg); } }
.oli-bg.anim-stars::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(1.4px 1.4px at 18% 40%, #fff, transparent), radial-gradient(1.8px 1.8px at 36% 12%, #fff, transparent), radial-gradient(1.2px 1.2px at 58% 28%, #fff, transparent), radial-gradient(1.6px 1.6px at 82% 70%, #fff, transparent), radial-gradient(1.2px 1.2px at 70% 8%, #fff, transparent), radial-gradient(1.4px 1.4px at 4% 52%, #fff, transparent);
  animation: oliTwinkle 5s ease-in-out infinite alternate; }
@keyframes oliTwinkle { from { opacity: .2; } to { opacity: 1; } }
.oli-bg.anim-pulse { animation: oliPulse 6s ease-in-out infinite alternate; }
@keyframes oliPulse { from { filter: brightness(.82); } to { filter: brightness(1.18); } }
@media (prefers-reduced-motion: reduce) { .oli-bg.anim-aurora, .oli-bg.anim-embers::before, .oli-bg.anim-embers::after, .oli-bg.anim-drift, .oli-bg.anim-rays::before, .oli-bg.anim-stars::after, .oli-bg.anim-pulse { animation: none; } }

/* QR screen: people scan to follow the lyrics on their phone */
.oli-qr { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 90px; padding: 0 120px; opacity: 0; transition: opacity .5s; z-index: 6; pointer-events: none;
  background: radial-gradient(90% 90% at 30% 40%, rgba(135,26,187,.55), rgba(5,9,9,.97) 70%); }
.oli-stage.is-qr .oli-qr { opacity: 1; }
.oli-stage.is-qr .oli-layers, .oli-stage.is-qr .oli-logo { opacity: 0; }
.oli-qr-card { flex: 0 0 auto; width: 640px; height: 640px; background: #fff; padding: 22px; border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.oli-qr-card svg { width: 100%; height: 100%; display: block; }
.oli-qr-text { flex: 1 1 auto; max-width: 860px; color: #fff; text-align: left; }
.oli-qr-text .q-ta { font-family: var(--fta); font-weight: 800; font-size: 72px; line-height: 1.25; }
.oli-qr-text .q-en { font-family: var(--fen); font-weight: 600; font-size: 50px; line-height: 1.2; margin-top: 28px; color: #90DA9E; }
.oli-qr-text .q-url { font-family: var(--fen); font-weight: 500; font-size: 36px; margin-top: 40px; opacity: .8; overflow-wrap: anywhere; }
