/* =======================================================================
   하루한장 큐티 (OneDay QT) — 20초 묵상 시네마틱 모션그래픽 & 강화 설명서 스타일
   ======================================================================= */

/* ── 20초 묵상 모션그래픽 오버레이 (사령관님 친수 특명: 화사한 웜 크림 아이보리 #FAF6EE 스킨 통일) ── */
#qt-motion-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FAF6EE !important;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Noto Sans KR", sans-serif;
  color: #1F2937 !important;
}

#qt-motion-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

#qt-motion-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.qt-motion-stage {
  position: relative;
  z-index: 10;
  width: min(92vw, 960px);
  height: min(88vh, 680px);
  background: radial-gradient(circle at center, #FFFFFF 0%, #FDFBF7 65%, #FAF3E5 100%) !important;
  border: 1.5px solid rgba(184, 134, 11, 0.45) !important;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(184, 134, 11, 0.15), 0 4px 24px rgba(0, 0, 0, 0.06) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  backdrop-filter: blur(20px);
  overflow: hidden;
}

/* 상단 탑바 (브랜드 & 홈 바로가기) */
.qt-m-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
}


.qt-m-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #B8860B !important;
}

.qt-m-brand-titles {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
}

.qt-m-brand-main {
  font-size: 14px;
  font-weight: 800;
  color: #1F2937 !important;
  white-space: nowrap;
}

.qt-m-brand-sub {
  font-size: 13px;
  font-weight: 800;
  color: #B8860B !important;
  white-space: nowrap;
}

@media (min-width: 641px) {
  .qt-m-brand-titles {
    flex-direction: row;
    gap: 6px;
    align-items: center;
  }
}
@media (max-width: 640px) {
  .qt-m-brand-titles {
    flex-direction: column;
    gap: 2px;
  }
  .qt-m-brand-main {
    font-size: 13px;
  }
  .qt-m-brand-sub {
    font-size: 12px;
  }
}


.qt-m-brand-badge {
  background: #FEF3C7 !important;
  border: 1px solid rgba(184, 134, 11, 0.45) !important;
  color: #92400E !important;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.qt-m-skip-btn {
  background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%) !important;
  border: 1px solid #8C6D23 !important;
  color: #FFFFFF !important;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  word-break: keep-all !important;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.28) !important;
}

.qt-m-skip-btn:hover {
  background: linear-gradient(135deg, #B8860B 0%, #8C6D23 100%) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(184, 134, 11, 0.4) !important;
}

/* 중앙 3D 비주얼 스테이지 */
.qt-m-center-stage {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  z-index: 15;
}

.qt-m-act-tag {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #92400E !important;
  padding: 4px 14px;
  border-radius: 20px;
  background: #FEF3C7 !important;
  border: 1px solid rgba(184, 134, 11, 0.4) !important;
  margin-bottom: 16px;
  transition: all 0.4s ease;
}

.qt-m-title {
  font-size: clamp(20px, 3.8vw, 36px);
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #1F2937 !important;
  -webkit-text-fill-color: #1F2937 !important;
  text-shadow: 0 1px 2px rgba(184, 134, 11, 0.12) !important;
  word-break: keep-all;
  overflow-wrap: break-word;
  transition: all 0.4s ease;
}

.qt-m-desc {
  font-size: clamp(13px, 2.0vw, 16.5px);
  line-height: 1.6;
  color: #4B5563 !important;
  max-width: 680px;
  margin: 0 auto 18px;
  word-break: keep-all;
  overflow-wrap: break-word;
  padding: 0 10px;
  transition: all 0.4s ease;
}



/* 하인나 3색 영성 링 (웜 크림 배경 맞춤형 캔디 파스텔 & 선명한 보색) */
.qt-m-rings {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  margin-top: 14px !important;
}

.qt-m-ring {
  width: 66px !important;
  height: 66px !important;
  border-radius: 50% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-weight: 900 !important;
  border: 2.5px solid !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  opacity: 0.9 !important;
  transform: scale(0.95);
  box-sizing: border-box !important;
}

.qt-m-ring span {
  display: block !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.qt-m-ring small {
  display: block !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  margin-top: 3px !important;
  letter-spacing: -0.3px !important;
  white-space: nowrap !important;
}

/* 1. 하(H, 하나님): 클래식 앰버 골드 */
.qt-m-ring.ha {
  color: #92400E !important;
  border-color: #D97706 !important;
  background: #FEF3C7 !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.2) !important;
}

/* 2. 인(I, 세상·나): 딥 사파이어 스카이 */
.qt-m-ring.in {
  color: #075985 !important;
  border-color: #0284C7 !important;
  background: #E0F2FE !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.2) !important;
}

/* 3. 나(N, 오늘순종): 에메랄드 세이지 그린 */
.qt-m-ring.na {
  color: #14532D !important;
  border-color: #16A34A !important;
  background: #DCFCE7 !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.2) !important;
}

.qt-m-ring.active {
  opacity: 1 !important;
  transform: scale(1.22) !important;
  box-shadow: 0 6px 24px rgba(184, 134, 11, 0.32) !important;
  border-width: 3.5px !important;
}

@media (max-width: 600px) {
  .qt-m-rings {
    gap: 16px !important;
    margin-top: 10px !important;
  }
  .qt-m-ring {
    width: 56px !important;
    height: 56px !important;
  }
  .qt-m-ring span {
    font-size: 19px !important;
  }
  .qt-m-ring small {
    font-size: 9px !important;
    margin-top: 2px !important;
  }
  .qt-m-ring.active {
    transform: scale(1.18) !important;
  }
}


/* 제목 내 하(H), 인(I), 나(N) 보색 하이라이트 뱃지 */
.act-highlight {
  font-weight: 900;
  padding: 1px 7px;
  border-radius: 6px;
  display: inline-block;
  margin-right: 4px;
}
.act-highlight.ha {
  color: #92400E !important;
  -webkit-text-fill-color: #92400E !important;
  text-shadow: none !important;
  background: #FEF3C7 !important;
  border: 1px solid #F59E0B !important;
}
.act-highlight.in {
  color: #075985 !important;
  -webkit-text-fill-color: #075985 !important;
  text-shadow: none !important;
  background: #E0F2FE !important;
  border: 1px solid #0284C7 !important;
}
.act-highlight.na {
  color: #14532D !important;
  -webkit-text-fill-color: #14532D !important;
  text-shadow: none !important;
  background: #DCFCE7 !important;
  border: 1px solid #16A34A !important;
}


/* ── ACT 5: 셀라(SELAH) 30초 마음 가다듬기 호흡 스테이지 ── */
.qt-m-selah-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  animation: fadeInSelah 0.8s ease forwards;
}

@keyframes fadeInSelah {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.qt-m-breath-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2.5px solid rgba(184, 134, 11, 0.55);
  background: radial-gradient(circle, #FFFDF7 0%, #FEF3C7 75%, #FDE68A 100%) !important;
  box-shadow: 0 8px 32px rgba(184, 134, 11, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 18px;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 1.2s ease, border-color 1.2s ease;
  position: relative;
}

/* 궤도를 따라다니는 이쁜 아이콘 (숨결을 이끄는 비둘기/별빛 트래커) */
.qt-m-orbit-tracker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  margin-top: -50%;
  margin-left: -50%;
  pointer-events: none;
  animation: orbitRotate 12s linear infinite;
  transform-origin: center center;
}

.qt-m-orbit-icon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  filter: drop-shadow(0 2px 6px rgba(184, 134, 11, 0.45));
  transition: transform 0.5s ease;
}

@keyframes orbitRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.qt-m-breath-circle::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  border: 1.5px dashed rgba(184, 134, 11, 0.45);
  animation: rotateGuide 20s linear infinite;
}

@keyframes rotateGuide {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.qt-m-breath-circle.inhale {
  transform: scale(1.35);
  box-shadow: 0 0 45px rgba(217, 119, 6, 0.35), inset 0 0 20px rgba(251, 191, 36, 0.25);
  border-color: #D97706;
}

.qt-m-breath-circle.hold {
  transform: scale(1.35);
  box-shadow: 0 0 40px rgba(2, 132, 199, 0.3), inset 0 0 20px rgba(56, 189, 248, 0.2);
  border-color: #0284C7;
}

.qt-m-breath-circle.exhale {
  transform: scale(0.92);
  box-shadow: 0 0 30px rgba(22, 163, 74, 0.28);
  border-color: #16A34A;
}

.qt-m-breath-circle.peace {
  transform: scale(1.05);
  box-shadow: 0 0 45px rgba(184, 134, 11, 0.38), inset 0 0 20px rgba(251, 191, 36, 0.25);
  border-color: #B8860B;
  animation: peacePulse 2.5s ease-in-out infinite alternate;
}

@keyframes peacePulse {
  from {
    box-shadow: 0 0 25px rgba(184, 134, 11, 0.25);
  }

  to {
    box-shadow: 0 0 50px rgba(184, 134, 11, 0.5);
  }
}

.qt-m-breath-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.qt-m-breath-phase {
  font-size: 15px;
  font-weight: 800;
  color: #92400E !important;
  letter-spacing: 0.5px;
}

.qt-m-breath-sec {
  font-size: 22px;
  font-weight: 900;
  color: #1F2937 !important;
  margin-top: 2px;
  font-family: monospace;
}

.qt-m-selah-verse {
  font-size: clamp(14px, 2.2vw, 17px);
  font-weight: 800;
  color: #8C6D23 !important;
  font-family: "Gowun Dodum", "Batang", "Noto Serif KR", serif;
  margin: 0 0 6px 0;
  text-align: center;
  text-shadow: none !important;
}

.qt-m-selah-guide {
  font-size: 13px;
  color: #4B5563 !important;
  margin: 0 0 16px 0;
  text-align: center;
}

.qt-m-selah-start-btn {
  background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid #8C6D23 !important;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.35) !important;
  transition: all 0.25s ease;
}

.qt-m-selah-start-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(184, 134, 11, 0.5) !important;
}

/* 하단 컨트롤 & 20초 프로그레스 HUD */
.qt-m-bottombar {
  width: 100%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qt-m-hud {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
}

.qt-m-progress-track {
  flex: 1;
  height: 6px;
  background: rgba(184, 134, 11, 0.18) !important;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.qt-m-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #D97706, #0284C7 60%, #16A34A 100%);
  border-radius: 10px;
  box-shadow: none;
  transition: width 0.1s linear;
}

.qt-m-timer {
  font-size: 13px;
  font-family: monospace;
  font-weight: 800;
  color: #92400E !important;
  min-width: 82px;
  text-align: right;
}

.qt-m-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  padding-top: 4px !important;
  box-sizing: border-box !important;
}

.qt-m-hide-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 11.5px !important;
  color: #4B5563 !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  user-select: none !important;
  white-space: nowrap !important;
  flex-shrink: 1 !important;
  min-width: 0 !important;
}

.qt-m-hide-label input {
  accent-color: #B8860B !important;
  width: 15px !important;
  height: 15px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.qt-m-sound-btn,
.qt-m-replay-btn {
  background: #FFFFFF !important;
  border: 1.5px solid rgba(184, 134, 11, 0.4) !important;
  color: #1F2937 !important;
  font-weight: 700 !important;
  padding: 6px 13px !important;
  border-radius: 16px !important;
  font-size: 12px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  transition: all 0.2s !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  flex-shrink: 0 !important;
  line-height: 1.2 !important;
  box-shadow: 0 2px 6px rgba(184, 134, 11, 0.08) !important;
}

.qt-m-sound-btn:hover,
.qt-m-replay-btn:hover {
  background: #FEF3C7 !important;
  border-color: #B8860B !important;
  color: #92400E !important;
}

/* ── 사용설명서 강화 스타일 ── */
.enhanced-guide {
  max-width: 680px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 10px 4px;
}

.guide-tabs {
  display: flex;
  gap: 8px;
  margin: 16px 0 20px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 8px;
}

.g-tab-btn {
  flex: 1;
  padding: 10px 14px;
  background: var(--panel2);
  color: var(--mute);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.g-tab-btn.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(226, 167, 37, 0.3);
}

.g-tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.g-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.guide-card-section {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.guide-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.guide-step-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.guide-step-item b {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

/* ── 🏛️ 글자 위에 조그맣게 따라다니는 귀여운 하·인·나 말풍선 팝업 (사령관님 친수 특명: 웜 크림 라이트 복원) ── */
.sel-pop {
  position: fixed;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 5px;
  background: #FFFFFF !important;
  border: 1.5px solid var(--gold, #d4af37) !important;
  border-radius: 999px !important;
  padding: 4px 7px !important;
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.22), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  transform: translate(-50%, -125%);
  animation: selPopBounce 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  user-select: none;
}

@keyframes selPopBounce {
  from {
    opacity: 0;
    transform: translate(-50%, -85%) scale(0.75);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -125%) scale(1);
  }
}

/* 글자 바로 위를 가리키는 귀여운 말풍선 삼각 꼬리표 */
.sel-pop::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--gold, #d4af37);
}

.sel-pop button {
  border: none;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all .15s ease;
  line-height: 1.2;
}

.sel-pop button:hover {
  transform: scale(1.12);
}

.sel-pop button:active {
  transform: scale(0.95);
}

.sel-pop .sp-ha {
  background: var(--ha, #ffde6b);
  color: #1a1406;
  box-shadow: 0 0 8px rgba(255, 222, 107, 0.45);
}

.sel-pop .sp-in {
  background: var(--in, #7dcbee);
  color: #0f1a24;
  box-shadow: 0 0 8px rgba(125, 203, 255, 0.45);
}

.sel-pop .sp-na {
  background: var(--na, #8eecaf);
  color: #0c1a12;
  box-shadow: 0 0 8px rgba(142, 236, 175, 0.45);
}

.sel-pop .sp-del {
  background: #332d24;
  color: var(--mute, #a89f91);
}

.sel-pop .sp-del:hover {
  background: #554a3a;
  color: #fff;
}

/* ── 🏛️ 불러온 구절 개별 삭제 [✕] 버튼 및 액션 그룹 (사령관님 친수 특명) ── */
.hp-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}

.hp-delete {
  flex: none;
  font-family: var(--sans, sans-serif);
  font-size: 11px;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: 6px;
  padding: 2px 7px;
  cursor: pointer;
  transition: all .18s ease;
  line-height: 1.2;
}

.hp-delete:hover {
  background: #ef4444;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* ── 📸 실사 메인 화면 캡처 가이드 & 넘버링 설명 스타일 (사령관님 친수 특명) ── */
.guide-visual-banner {
  margin: 12px 0 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
}

.guide-screen-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.guide-num-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.gn-item {
  background: var(--panel2, rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.gn-badge {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold, #d4af37);
  color: #1a1406;
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.gn-desc {
  font-size: 12.8px;
  line-height: 1.55;
  color: var(--ink, #f4ecd8);
}

.gn-desc b {
  color: var(--gold, #ffd700);
}

.guide-pause-tip {
  background: #FFFDF7;
  border: 1.5px solid var(--gold, #d4af37);
  border-radius: 12px;
  padding: 13px 15px;
  margin: 14px 0;
  box-shadow: 0 3px 12px rgba(184, 134, 11, 0.08);
}

.guide-pause-tip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 800;
  color: #92400E;
  margin-bottom: 6px;
}

/* ── 📖 성경 66권 본문 직접 선택기 & 5대 통독 플랜 모달 스타일 (사령관님 친수 특명) ── */
.bp-modal-wrap {
  width: 100%;
}

.bp-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.bp-tab-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--mute);
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}

.bp-tab-btn.active {
  background: var(--gold);
  color: #1a1406;
  border-color: var(--gold);
}

.bp-testament-seg {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.bp-testament-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--mute);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
}

.bp-testament-btn.on {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold);
  color: var(--gold);
}

.bp-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 2px 8px;
}

.bp-book-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 4px;
  font-size: 12.5px;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bp-book-chip:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
}

.bp-book-chip.selected {
  background: var(--gold);
  color: #1a1406;
  font-weight: 800;
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

.bp-chap-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.bp-chap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.bp-chap-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--gold);
}

.bp-chaps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
  padding: 2px;
}

.bp-chap-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
  transition: all .15s;
}

.bp-chap-chip:hover {
  background: var(--gold);
  color: #1a1406;
  transform: scale(1.08);
}

.bp-chap-chip.current {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.15);
}

/* 5대 통독 플랜 카드 */
/* 5대 통독 플랜 카드 (선택 모달) */
.plan-card-item {
  background: #FFFFFF;
  border: 1.5px solid rgba(197, 160, 89, 0.35);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.05);
}

.plan-card-item:hover {
  border-color: var(--gold);
  background: #FFFDF8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.12);
}

.plan-card-item.selected {
  border-color: var(--gold);
  background: linear-gradient(145deg, #FFFDF8 0%, #FAF3E5 100%);
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.2);
}

.pci-left b {
  font-size: 14px;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

.plan-card-item.selected .pci-left b {
  color: var(--gold2);
  font-weight: 800;
}

.pci-left p {
  font-size: 12px;
  color: var(--mute);
  margin: 0;
  line-height: 1.45;
}

.pci-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--panel2);
  color: var(--mute);
  border: 1px solid var(--line);
}

.plan-card-item.selected .pci-badge {
  background: linear-gradient(135deg, var(--gold), #8C6D23);
  color: #FFFFFF;
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.3);
}

/* ── 5대 성경 통독 플랜 트랙/단락 바 (대형 럭셔리 골드 배너 - 사령관님 친수 특명) ── */
.active-plan-banner {
  margin: 4px 0 12px;
  padding: 10px 14px;
  background: linear-gradient(145deg, #FFFDF8 0%, #FAF3E5 100%);
  border: 1.5px solid rgba(184, 134, 11, 0.4);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.apb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.apb-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold2);
}

.apb-change-btn {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.apb-change-btn:hover {
  background: var(--panel2);
  border-color: var(--gold);
}

.plan-track-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}

.plan-pill {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: #FFFFFF;
  color: var(--ink);
  border: 1.5px solid rgba(197, 160, 89, 0.4);
  box-shadow: 0 2px 6px rgba(184, 134, 11, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.plan-pill:hover {
  background: #FAF5E8;
  border-color: var(--gold);
  transform: translateY(-1px);
}

.plan-pill.active {
  background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
  color: #FFFFFF;
  border-color: #8C6D23;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(184, 134, 11, 0.35);
  transform: translateY(-1px);
}

/* 🏛️ 사령관님 친수 특명: 모션그래픽 실행 시 저작권 바 100% 완전 숨김 + 모바일 뷰 네비게이션 겹침 척결 */
body.qt-motion-active #glogos-ip-badge,
.hide-for-motion,
#qt-motion-overlay.active ~ #glogos-ip-badge,
#qt-motion-overlay[style*="display: flex"] ~ #glogos-ip-badge {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#qt-motion-overlay {
  z-index: 10000000 !important;
}

@media (max-width: 819px) {
  /* 모바일(세로 화면)에서는 하단 탭 바(오늘/묵상기록/설정)를 가리지 않도록 플로팅 저작권 바 숨김 (설정 탭 내부에 정식 표기) */
  #glogos-ip-badge {
    display: none !important;
  }
}


/* ── 사령관님 친수 특명: 모바일 텍스트 100% 가독성 & 레이아웃 최적화 ── */
@media (max-width: 768px) {
  .qt-motion-stage {
    width: 95vw !important;
    height: auto !important;
    min-height: min(92vh, 640px) !important;
    max-height: 96vh !important;
    padding: 16px 12px !important;
  }
  .qt-m-center-stage {
    padding: 8px 0 !important;
    justify-content: center !important;
  }
  .qt-m-act-tag {
    font-size: 11px !important;
    padding: 3px 10px !important;
    margin-bottom: 8px !important;
    letter-spacing: 1.5px !important;
  }
  .qt-m-title {
    font-size: clamp(17px, 5.2vw, 22px) !important;
    margin-bottom: 8px !important;
    line-height: 1.35 !important;
    padding: 0 6px !important;
    color: #1F2937 !important;
    -webkit-text-fill-color: #1F2937 !important;
  }
  .qt-m-desc {
    font-size: clamp(12.5px, 3.6vw, 14.5px) !important;
    line-height: 1.55 !important;
    margin: 0 auto 12px !important;
    padding: 0 8px !important;
    opacity: 0.95 !important;
  }
  .qt-m-rings {
    gap: 15px !important;
    margin-top: 10px !important;
  }
  .qt-m-ring {
    width: 54px !important;
    height: 54px !important;
    font-size: 18px !important;
    border-width: 2.5px !important;
    opacity: 0.85 !important;
  }
  .qt-m-ring span {
    font-size: 18px !important;
  }
  .qt-m-ring small {
    font-size: 9px !important;
  }
  .qt-m-ring.active {
    transform: scale(1.2) !important;
    opacity: 1 !important;
  }
}


/* 📱 Mobile Phone Perfect Fit (Zero Line-break & Forced Light Color Scheme) */
@media (max-width: 640px) {
  .qt-m-top-bar {
    padding: 8px 10px !important;
    gap: 6px !important;
    justify-content: space-between !important;
  }
  .qt-m-brand-badge {
    padding: 3px 6px !important;
  }
  .qt-m-brand-tag {
    font-size: 9.5px !important;
    letter-spacing: 0px !important;
  }
  .qt-m-brand-title {
    font-size: 11px !important;
  }
  .qt-m-brand-sub {
    font-size: 10px !important;
  }
  .qt-m-skip-btn {
    padding: 5px 10px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    flex-shrink: 0 !important;
    gap: 3px !important;
  }
  .qt-m-skip-btn span {
    white-space: nowrap !important;
    word-break: keep-all !important;
  }
  .qt-m-skip-btn svg {
    width: 11px !important;
    height: 11px !important;
  }
}
