/* 대표기도 리모컨(prayer-remote.html) — 폰 한 손 조작용. 박스 없이 여백·구분선, 조작 단추만 테두리 */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: #f7f8fb; color: #101828; font-family: "Noto Sans KR", system-ui, "Malgun Gothic", sans-serif; }
.gate { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 24px; }
.gate-t { font-size: 20px; margin: 0; }
.gate-in { width: 200px; font-size: 24px; text-align: center; padding: 12px; border: 1px solid #cfd6e2; border-radius: 10px; }
.err { color: #b42318; margin: 0; }
.btn { font: inherit; font-size: 18px; min-height: 64px; padding: 10px 14px; border: 1px solid #98a2b3; border-radius: 14px; background: transparent; color: #101828; cursor: pointer; }
.btn.primary { background: #0b2347; border-color: #0b2347; color: #fff; font-weight: 800; }
.btn:disabled { opacity: .4; }
main { max-width: 640px; margin: 0 auto; padding: 14px 18px 160px; }
/* 맨 위 작은 앞 화면 — 화면 자체라 테두리·그림자 없이, 폰을 눕혀도 단추가 가려지지 않게 높이 기준으로 폭 제한 */
.mini-wrap { position: sticky; top: 0; z-index: 5; background: #f7f8fb; margin: -14px -18px 8px; padding: 0 18px 6px; border-bottom: 1px solid #d0d5dd; }
.mini { position: relative; width: min(100%, calc(32vh * 16 / 9)); aspect-ratio: 16 / 9; margin: 0 auto; background: #000; overflow: hidden; }
.mini iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; border: 0; transform-origin: 0 0; pointer-events: none; background: #000; }
.ack { margin: 6px 0 0; font-size: 14px; color: #667085; text-align: center; min-height: 1.4em; }
.ack.ok { color: #067647; font-weight: 700; }
.ack.bad { color: #b42318; font-weight: 700; }
.top { display: flex; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid #d0d5dd; }
.top strong { font-size: 18px; flex: 1; }
.pos { font-size: 22px; font-weight: 800; color: #0b2347; }
.conn { font-size: 13px; color: #667085; }
.conn.ok { color: #067647; }
.conn.bad { color: #b42318; font-weight: 700; }
.lbl { margin: 18px 0 4px; font-size: 14px; color: #667085; }
.now-t { margin: 0; font-size: 28px; line-height: 1.55; font-weight: 700; min-height: 3.2em; word-break: keep-all; }
.next { border-top: 1px solid #d0d5dd; margin-top: 18px; }
.next-t { margin: 0; font-size: 19px; line-height: 1.55; color: #667085; word-break: keep-all; }
.msg { margin: 16px 0 0; color: #b42318; font-size: 15px; min-height: 1.4em; }
.all { margin-top: 24px; border-top: 1px solid #d0d5dd; padding-top: 12px; }
.all summary { cursor: pointer; font-weight: 700; color: #344054; }
#list { margin: 10px 0 0; padding: 0 0 0 1.6em; }
#list li { padding: 10px 0; border-bottom: 1px solid #e4e7ec; line-height: 1.5; cursor: pointer; }
#list li.cur { font-weight: 800; color: #0b2347; border-left: 4px solid #0b2347; padding-left: 8px; margin-left: -12px; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: #f7f8fb; border-top: 1px solid #d0d5dd; }
.dock .btn { min-height: 76px; font-size: 22px; }
/* 폰을 눕힌(높이가 낮은) 화면 — 아래 단추 줄이 화면을 덜 차지하게 하고, 작은 앞 화면은 높이 기준으로 더 작게 */
@media (max-height: 500px) {
  .dock { padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .dock .btn { min-height: 56px; font-size: 20px; }
  .mini { width: min(100%, calc(30vh * 16 / 9)); }
  .now-t { font-size: 22px; min-height: 2.4em; }
  main { padding-bottom: 100px; }
}
