/* 3D 스테이지와 그 위 오버레이 (원본 명세 2-3 + 배포판 delta 2-2·2-3) */
.stage { position: relative; flex: 1 1 auto; min-height: 0; border-radius: 22px; border: 3px solid #fff; background: var(--stage-bg); overflow: hidden; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }

.views { position: absolute; top: 8px; left: 8px; right: 10px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; z-index: 5; }
.views::-webkit-scrollbar { display: none; }
.views button { flex: 0 0 auto; background: var(--panel); border: 2px solid var(--line); border-radius: 999px; padding: 4px 11px; font-size: 13px; white-space: nowrap; box-shadow: var(--shadow); }
.views button.vprayer { background: #fff1c6; border-color: var(--sun-d); }
.views button[aria-pressed="true"] { background: var(--acc); border-color: var(--acc-d); color: var(--acc-ink); }
.views .sep { flex: 0 0 2px; background: var(--line); margin: 4px 2px; border-radius: 2px; }

#live { position: absolute; top: 50px; left: 8px; right: 52px; display: flex; gap: 6px; align-items: center; z-index: 5; overflow: hidden; }
.lv-b { flex: 0 0 auto; background: #fff1c6; border: 2px solid var(--sun-d); border-radius: 999px; padding: 3px 10px; font-size: 13px; white-space: nowrap; }
.lv-b.on { background: var(--acc); border-color: var(--acc-d); color: var(--acc-ink); }
#lvl { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
#lvl::-webkit-scrollbar { display: none; }
.lv-c { flex: 0 0 auto; display: inline-flex; align-items: center; background: #e4f8e6; border: 2px solid var(--acc-d); border-radius: 999px; overflow: hidden; font-size: 13px; }
.lv-c button { background: none; border: 0; padding: 3px 7px; white-space: nowrap; }
.lv-c button + button { border-left: 1px solid rgba(63, 138, 75, .3); }

.zoom { position: absolute; top: 50px; right: 8px; display: flex; flex-direction: column; gap: 6px; z-index: 5; }
.zoom button { width: 36px; height: 36px; border-radius: 50%; background: var(--panel); border: 2px solid var(--line); box-shadow: var(--shadow); font-size: 16px; padding: 0; }
@media (max-width: 760px) { .zoom .zb { display: none; } }

#note { position: absolute; top: 100px; left: 10px; right: 60px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); font-size: 13px; z-index: 4; }
#morenote { position: absolute; top: 100px; right: 52px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); font-size: 12px; z-index: 4; }
#bnr, #ucard { position: absolute; top: 52px; left: 50%; transform: translateX(-50%); z-index: 20; background: var(--panel); border: 3px solid var(--sun-d); border-radius: 16px; padding: 8px 14px; font-size: 14px; max-width: 88%; text-align: center; box-shadow: 0 4px 14px rgba(91, 70, 50, .2); }
#ucard { border-color: var(--acc-d); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
#ucard button { background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 13px; }
#upd { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 30; background: var(--sun); border: 2px solid var(--sun-d); border-radius: 999px; padding: 5px 14px; font-size: 13px; }
#sndbtn { position: absolute; top: 124px; left: 50%; transform: translateX(-50%); z-index: 20; background: var(--panel); border: 2px solid var(--acc-d); border-radius: 999px; padding: 6px 16px; }

.feed { position: absolute; z-index: 6; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
#talkfeed { top: 94px; left: 10px; right: 60px; }
#prayfeed { left: 10px; bottom: 170px; max-width: 70%; pointer-events: auto; }
#myfeed { left: 10px; bottom: 58px; }
.fd { align-self: flex-start; background: rgba(255, 255, 255, .92); border-radius: 12px; padding: 4px 10px; font-size: 12px; max-width: 100%; transition: opacity .6s; }
.fd.me { align-self: flex-end; background: #fff1c6; }
.fd.pray { background: #efe4ff; border: 2px solid #b59cff; cursor: pointer; }
.fd.out { opacity: 0; }

#lyric { position: absolute; left: 50%; bottom: 66px; transform: translateX(-50%); width: min(92%, 640px); text-align: center; z-index: 4; pointer-events: none; }
#lyric small { display: block; font-size: 13px; color: var(--sun); text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
#lyric b { display: block; font: 400 clamp(20px, 3.8vw, 30px) var(--font-display); color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .7); }
#lyric em { display: block; font: normal 14px var(--font-body); color: #fff; opacity: .92; text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }

.bottomrow { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: flex-end; z-index: 6; pointer-events: none; }
.bottomrow > * { pointer-events: auto; }
.cta { min-width: 128px; background: var(--sun); border: 2px solid var(--sun-d); color: var(--sun-ink); border-radius: 999px; padding: 8px 16px; font: 400 16px var(--font-display); box-shadow: var(--shadow); }
.sitfix { background: #fff; border: 2px solid var(--sun-d); border-radius: 999px; padding: 6px 14px; font-size: 14px; margin-bottom: 2px; }
.sitbtn { position: absolute; left: 50%; bottom: 62px; transform: translateX(-50%); z-index: 6; max-width: 70%; background: var(--acc); border: 2px solid var(--acc-d); color: var(--acc-ink); border-radius: 999px; padding: 7px 16px; font: 400 15px var(--font-display); box-shadow: var(--shadow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fireon .sitbtn { bottom: 108px; }

#cry { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%) scale(.6); font: 400 72px var(--font-display); color: #fff; text-shadow: 0 4px 16px rgba(200, 60, 20, .8); opacity: 0; pointer-events: none; z-index: 25; }
#cry.on { animation: cry 1.7s ease-out; }
@keyframes cry { 10% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.4); } }
#say { position: absolute; top: 96px; left: 50%; transform: translateX(-50%); z-index: 22; background: #fff; border: 4px solid var(--acc); border-radius: 18px; padding: 8px 18px; font: 400 22px var(--font-display); }
#gain { position: absolute; top: 40%; left: 50%; transform: translateX(-50%); z-index: 24; font: 400 26px var(--font-display); color: var(--acc-d); text-shadow: 0 2px 0 #fff; pointer-events: none; opacity: 0; }
#gain.on { animation: gain 1.6s ease-out; }
@keyframes gain { 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60px); } }

#dlg { position: absolute; top: 84px; left: 12px; right: 72px; z-index: 30; background: rgba(247, 244, 235, .96); border: 3px solid #b9ae92; border-radius: 18px; padding: 18px 14px 8px; box-shadow: 0 6px 18px rgba(60, 40, 20, .25); cursor: pointer; touch-action: none; }
#dlg .who { position: absolute; top: -14px; left: 14px; background: var(--acc); color: var(--acc-ink); border: 2px solid var(--acc-d); border-radius: 999px; padding: 2px 12px; font: 400 14px var(--font-display); }
#dlg p { margin: 0; font-size: 16px; line-height: 1.6; min-height: 2.4em; white-space: pre-wrap; }
#dlg .x { position: absolute; top: 8px; right: 10px; background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
#dlg small { display: block; text-align: right; color: var(--muted); font-size: 11px; margin-top: 4px; }
@media (max-width: 760px) { #dlg { top: 30%; left: 12px !important; right: 12px !important; } }

#coach { position: absolute; left: 12px; right: 12px; bottom: 64px; z-index: 26; background: var(--panel); border: 3px solid var(--sun-d); border-radius: 16px; padding: 10px 12px; display: flex; gap: 8px; align-items: center; font-size: 14px; }
#coach b { background: var(--sun); border-radius: 999px; padding: 1px 8px; font: 400 13px var(--font-display); }
#coach span { flex: 1; }
#coach button { background: none; border: 0; color: var(--muted); font-size: 12px; }

#fireglow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 110%, rgba(255, 120, 30, .55), transparent 60%); opacity: 0; transition: opacity .4s; z-index: 3; }
#fireui { position: absolute; bottom: 64px; left: 0; right: 0; display: flex; justify-content: center; gap: 22px; z-index: 7; }
#fireui button { width: 84px; height: 84px; border-radius: 50%; border: 3px solid #fff; font-size: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
#fireui button span { font-size: 11px; }
#clapbtn { background: linear-gradient(#ffe27a, #ff9a3a); }
#holdbtn { background: linear-gradient(#ff7a5a, #d6233a); color: #fff; }
#holdbtn.on { transform: scale(1.12); box-shadow: 0 0 24px #ff6a2a; }
#combo { position: absolute; top: -26px; font: 400 18px var(--font-display); color: #fff; text-shadow: 0 2px 4px #000; }

#dstick { position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; background: rgba(255, 255, 255, .35); border: 2px solid rgba(255, 255, 255, .8); z-index: 8; pointer-events: none; }
#dstick i { position: absolute; left: 27px; top: 27px; width: 42px; height: 42px; border-radius: 50%; background: var(--acc); border: 2px solid #fff; }
#fade { position: absolute; inset: 0; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .45s; z-index: 40; }
#fade.on { opacity: 1; }
.sitfix { white-space: nowrap; }
@media (max-width: 420px) {
  .cta { min-width: 0; padding: 7px 12px; font-size: 15px; }
  .sitfix { padding: 5px 10px; font-size: 13px; }
}
