/* ============================================================
   오늘의 운세 모드 (앰버/골드 톤, 흔들→쾅 키프레임은 compat.css 재사용)
   ============================================================ */

/* 모드 네비: 오늘 운세(활성, 골드 톤) */
.mode-nav .mode-btn4 {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #fff3da;
  padding: 12px 6px; border-radius: 40px; cursor: pointer; white-space: nowrap;
  background: linear-gradient(135deg, rgba(245,196,81,.24), rgba(200,120,40,.2));
  border: 1.5px solid rgba(245,196,81,.55);
  box-shadow: 0 0 14px rgba(245,196,81,.2), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .12s, box-shadow .18s, border-color .18s, background .18s;
}
.mode-nav .mode-btn4:hover {
  transform: scale(1.04); border-color: rgba(245,196,81,.85);
  background: linear-gradient(135deg, rgba(245,196,81,.4), rgba(200,120,40,.3));
  box-shadow: 0 0 24px rgba(245,196,81,.42), inset 0 1px 0 rgba(255,255,255,.12);
}
.mode-nav .mode-btn4:active { transform: scale(.97); }

/* ── 모달 ── */
.fortune-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;
}
.fortune-modal.open { opacity: 1; pointer-events: auto; }
.fortune-sheet {
  width: 100%; max-width: 420px; margin: auto;
  background: radial-gradient(120% 90% at 50% 0%, #3a2f1c 0%, #211a12 58%, #16110c 100%);
  border: 1px solid #5c4a2a; border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,.6); padding: 16px 16px 26px; text-align: center;
  transform: translateY(16px); transition: transform .3s;
}
.fortune-modal.open .fortune-sheet { transform: translateY(0); }
.fortune-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 17px; font-weight: 800; color: #fff3da; letter-spacing: .5px; margin-bottom: 4px;
}
.fortune-head span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.fortune-head svg { width: 18px; height: 18px; flex-shrink: 0; }
.fortune-close { background: none; border: none; color: #d6b87f; font-size: 20px; cursor: pointer; padding: 4px 6px; }
.fo-guide { font-size: 13.5px; color: #e6cfa0; font-weight: 600; min-height: 18px; margin: 10px 0 8px; }

/* 카드 */
.fo-slotwrap { width: 150px; aspect-ratio: 2/3; margin: 6px auto 2px; perspective: 850px; position: relative; }
.fo-card { width: 100%; height: 100%; position: relative; transition: transform .55s cubic-bezier(.2,.8,.2,1.25); transform-style: preserve-3d; }
.fo-card.flipped { transform: rotateY(180deg); }
.fo-card.empty { opacity: .85; }
.fo-card.empty .fo-back { animation: foFloat 2.4s ease-in-out infinite; }
@keyframes foFloat { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-5px);} }
.fo-face { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; backface-visibility: hidden; border: 1px solid #6a5430; box-shadow: 0 6px 16px rgba(0,0,0,.45); }
.fo-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fo-front { transform: rotateY(180deg); }
.fo-slotwrap.charging { animation: csShake .56s ease-in-out; }
.fo-slotwrap.slam { animation: csSlam .43s cubic-bezier(.2,.85,.25,1); }
.fo-slotwrap.slam::after {
  content: ''; position: absolute; inset: -6px; border-radius: 16px; pointer-events: none;
  border: 2px solid rgba(255,210,120,.85); box-shadow: 0 0 20px rgba(255,200,90,.55);
  animation: csShock .5s ease-out forwards;
}

/* 입력 */
.fo-inputs { margin-top: 14px; display: flex; gap: 8px; }
.fo-inputs input {
  font-family: inherit; font-size: 14px; color: #fff3da; background: rgba(255,255,255,.05);
  border: 1px solid #5c4a2a; border-radius: 9px; padding: 10px 11px; min-width: 0;
}
.fo-in-name { flex: 1; }
.fo-in-birth { flex: 1.3; color-scheme: dark; }
.fo-inputs input:focus { outline: none; border-color: rgba(245,196,81,.8); background: rgba(255,255,255,.08); }

.fo-controls { margin-top: 14px; }
.fo-action {
  font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; color: #2a1c06;
  border: none; border-radius: 24px; padding: 12px 30px;
  background: linear-gradient(135deg, #ffd96a, #f0a83c); box-shadow: 0 6px 18px rgba(240,168,60,.4);
}
.fo-action:active { transform: scale(.96); }

/* 결과 */
.fo-result { display: none; margin-top: 16px; }
.fo-result.show { display: block; animation: foIn .4s ease; }
@keyframes foIn { from{opacity:0;transform:translateY(8px);} to{opacity:1;transform:none;} }
.fo-who { font-size: 13px; color: #e6cfa0; letter-spacing: .04em; }
.fo-score { display: flex; align-items: baseline; justify-content: center; gap: 3px; margin-top: 2px; }
.fo-num { font-size: 56px; font-weight: 800; line-height: 1; }
.fo-pt { font-size: 18px; color: #e6cfa0; font-weight: 700; }
.fo-cap { font-size: 14px; color: #ffe6a8; font-weight: 700; margin-top: 4px; }
.fo-bar { height: 8px; border-radius: 6px; background: #322a1c; overflow: hidden; margin: 12px auto 0; max-width: 260px; }
.fo-bar > i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg,#f0a83c,#ffd96a); transition: width 1s ease; }
.fo-cardname { font-size: 14px; font-weight: 700; margin-top: 16px; }
.fo-cardname em { font-style: normal; font-size: 11px; color: #c8b083; letter-spacing: .5px; }
.fo-rare { color: #ffd56b; }
.fo-fortune {
  font-size: 13px; line-height: 1.6; color: #e3d4b6; margin: 8px auto 0; max-width: 340px;
  background: rgba(255,255,255,.04); border: 1px solid #4a3c22; border-radius: 12px; padding: 12px 14px;
}
.fo-closetxt { font-size: 13.5px; color: #ffe6a8; font-weight: 700; line-height: 1.5; margin-top: 12px; }
.fo-again { margin-top: 16px; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  background: rgba(255,255,255,.06); color: #e3d4b6; border: 1px solid #5c4a2a; border-radius: 24px; padding: 11px 24px; }
.fo-again:active { transform: scale(.96); }
