/* ============================================================
   한달 운세 모드 스타일
   (흔들→쾅 키프레임 csShake/csSlam/csShock 은 compat.css 정의를 재사용)
   ============================================================ */

/* 모드 네비: 한달 운세(활성, 달빛 블루 톤) */
.mode-nav .mode-btn2 {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: #e7eeff;
  padding: 12px 10px; border-radius: 40px; cursor: pointer;
  background: linear-gradient(135deg, rgba(96,165,250,.22), rgba(120,80,200,.2));
  border: 1.5px solid rgba(96,165,250,.5);
  box-shadow: 0 0 14px rgba(96,165,250,.18), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .12s, box-shadow .18s, border-color .18s, background .18s;
}
.mode-nav .mode-btn2:hover {
  transform: scale(1.04); border-color: rgba(96,165,250,.85);
  background: linear-gradient(135deg, rgba(96,165,250,.36), rgba(120,80,200,.3));
  box-shadow: 0 0 24px rgba(96,165,250,.4), inset 0 1px 0 rgba(255,255,255,.12);
}
.mode-nav .mode-btn2:active { transform: scale(.97); }

/* ── 모달 ── */
.monthly-modal {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(8,8,16,.72); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
  overflow-y: auto; padding: 24px 14px 50px;
}
.monthly-modal.open { opacity: 1; pointer-events: auto; }
.monthly-sheet {
  width: 100%; max-width: 440px; margin: auto;
  background: radial-gradient(120% 90% at 50% 0%, #1e2546 0%, #141728 60%, #0e0f1d 100%);
  border: 1px solid #36406a; border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,.6); padding: 16px 16px 26px;
  transform: translateY(16px); transition: transform .3s;
}
.monthly-modal.open .monthly-sheet { transform: translateY(0); }
.monthly-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 17px; font-weight: 800; color: #eaf0ff; letter-spacing: .5px; margin-bottom: 4px;
}
.monthly-close { background: none; border: none; color: #a5b0d6; font-size: 20px; cursor: pointer; padding: 4px 6px; }
.mo-guide { text-align: center; font-size: 13.5px; color: #bcc8f0; font-weight: 600; min-height: 18px; margin: 10px 0 6px; }

/* 4주 카드 */
.mo-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 4px; }
.mo-slot { text-align: center; }
.mo-wrap { width: 100%; aspect-ratio: 2/3; perspective: 700px; position: relative; }
.mo-card {
  width: 100%; height: 100%; position: relative;
  transition: transform .55s cubic-bezier(.2,.8,.2,1.25); transform-style: preserve-3d;
}
.mo-card.flipped { transform: rotateY(180deg); }
.mo-card.empty { opacity: .85; }
.mo-face {
  position: absolute; inset: 0; border-radius: 9px; overflow: hidden;
  backface-visibility: hidden; border: 1px solid #46508a; box-shadow: 0 5px 14px rgba(0,0,0,.4);
}
.mo-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mo-front { transform: rotateY(180deg); }
.mo-wk { font-size: 11px; color: #9fb0e0; margin-top: 6px; font-weight: 700; }
.mo-wrap.charging { animation: csShake .56s ease-in-out; }
.mo-wrap.slam { animation: csSlam .43s cubic-bezier(.2,.85,.25,1); }
.mo-wrap.slam::after {
  content: ''; position: absolute; inset: -5px; border-radius: 12px; pointer-events: none;
  border: 2px solid rgba(150,190,255,.85); box-shadow: 0 0 18px rgba(120,170,255,.5);
  animation: csShock .5s ease-out forwards;
}

.mo-controls { text-align: center; margin-top: 16px; }
.mo-action {
  font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; color: #fff;
  border: none; border-radius: 24px; padding: 12px 30px;
  background: linear-gradient(135deg, #5b7be6, #7b5be6);
  box-shadow: 0 6px 18px rgba(91,123,230,.4);
}
.mo-action:active { transform: scale(.96); }

/* 결과: 주차별 리딩 */
.mo-result { display: none; margin-top: 18px; }
.mo-result.show { display: block; animation: moIn .4s ease; }
@keyframes moIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mo-read {
  display: flex; gap: 11px; align-items: flex-start;
  background: rgba(255,255,255,.04); border: 1px solid #2f3760;
  border-left: 3px solid #2f3760; border-radius: 13px;
  padding: 12px; margin-bottom: 9px; text-align: left;
}
.mo-badge {
  flex-shrink: 0; font-size: 11px; font-weight: 800; color: #cdd8ff;
  background: rgba(120,150,255,.18); border: 1px solid rgba(120,150,255,.35);
  border-radius: 8px; padding: 4px 8px; margin-top: 2px;
}
.mo-read-body { flex: 1; min-width: 0; }
.mo-read-name { font-size: 13.5px; font-weight: 700; color: #f0f3ff; }
.mo-read-name em { font-style: normal; color: #aeb9e6; font-size: 11px; letter-spacing: .5px; }
.mo-rare { color: #ffd56b; }
.mo-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 7px; }
.mo-chip {
  font-size: 10.5px; color: #c3cef2; background: rgba(255,255,255,.05);
  border: 1px solid #3a4270; border-radius: 20px; padding: 2px 8px;
}
.mo-read-fortune { font-size: 12px; line-height: 1.55; color: #c2cbed; margin: 0; }

.mo-summary {
  margin-top: 14px; padding: 14px; border-radius: 13px; text-align: left;
  font-size: 13px; line-height: 1.6; color: #e7ecff;
  background: linear-gradient(135deg, rgba(120,150,255,.12), rgba(150,110,230,.1));
  border: 1px solid rgba(120,150,255,.3);
}
.mo-sum-t { font-size: 12px; font-weight: 800; color: #cdd8ff; letter-spacing: .06em; margin-bottom: 6px; }
.mo-note { text-align: center; font-size: 12px; color: #9aa6d6; margin-top: 14px; line-height: 1.5; }
