/* ==========================================================================
   🎨 금식수련회 기도체인 : 동화책 수채화(Watercolor Storybook) 스타일시트
   주제: 길이 없는 곳에 길을 만드시는 하나님 (NO WAY? GOD'S WAY! - 이사야 43:18-21)
   ========================================================================== */

:root {
  --wc-sky: #f4f9ec;
  --wc-meadow-light: #dff0c8;
  --wc-meadow-main: #7dc44c;
  --wc-meadow-deep: #55992b;
  --wc-paper: #fffdf8;
  --wc-paper-warm: #fcf5e3;
  --wc-ochre: #deb868;
  --wc-ochre-deep: #b58334;
  --wc-wood: #7d532d;
  --wc-wood-dark: #543418;
  --wc-coral: #f28482;
  --wc-mint: #52b788;
  --wc-gold: #f59e0b;
}

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  user-select: none;
  color: #3d2c1e;
  /* 밝고 따스한 수채화 도화지 + 연둣빛 숲속 수채화 번짐 배경 */
  background-color: #dbecc8;
  background-image:
    radial-gradient(circle at 12% 15%, rgba(255, 243, 196, 0.75) 0%, transparent 45%),
    radial-gradient(circle at 88% 20%, rgba(190, 233, 232, 0.55) 0%, transparent 42%),
    radial-gradient(circle at 50% 85%, rgba(163, 217, 119, 0.5) 0%, transparent 55%),
    linear-gradient(180deg, #eef7e3 0%, #dceec7 48%, #cde4b3 100%);
  overscroll-behavior-y: none;
}

.font-hand { font-family: 'Gaegu', cursive, sans-serif; }
.font-title { font-family: 'Jua', cursive, sans-serif; }
.font-scripture { font-family: 'Gowun Dodum', serif; }

/* iOS Safari 포커스 자동 줌 방지 (모바일 입력창 16px 보장) */
@media (max-width: 767px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* ================= 수채화 동화책 프레임 & 카드 ================= */
.watercolor-board-frame {
  background: linear-gradient(145deg, #fffdf9 0%, #f9eed2 100%);
  padding: 8px;
  border-radius: 28px;
  border: 3px solid #deb868;
  box-shadow:
    0 10px 0 #c49a45,
    0 18px 36px rgba(84, 52, 24, 0.18),
    inset 0 2px 4px #ffffff;
  position: relative;
}

@media (min-width: 768px) {
  .watercolor-board-frame {
    padding: 12px;
    border-radius: 36px;
    box-shadow:
      0 12px 0 #c49a45,
      0 24px 48px rgba(84, 52, 24, 0.2),
      inset 0 2px 4px #ffffff;
  }
}

/* 수채화 잔디밭 캔버스 질감 */
.watercolor-lawn {
  background-color: #7cc64e;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(255, 253, 230, 0.28) 0%, transparent 50%),
    radial-gradient(circle at 78% 70%, rgba(167, 243, 208, 0.24) 0%, transparent 48%),
    radial-gradient(#8ed262 18%, transparent 20%),
    radial-gradient(#6bb63e 18%, transparent 20%),
    linear-gradient(180deg, #86cf58 0%, #74bf46 55%, #65b038 100%);
  background-size: 100% 100%, 100% 100%, 46px 46px, 30px 30px, 100% 100%;
  background-position: 0 0, 0 0, 0 0, 15px 15px, 0 0;
  border-radius: 22px;
  border: 3px solid #fffdf7;
  box-shadow:
    inset 0 6px 20px rgba(55, 98, 24, 0.28),
    inset 0 -6px 16px rgba(255, 255, 240, 0.25);
  position: relative;
}

/* 수채화 종이 질감 패널 */
.watercolor-panel {
  background: linear-gradient(180deg, rgba(255, 254, 250, 0.97) 0%, rgba(253, 247, 231, 0.97) 100%);
  border: 2.5px solid #e2be75;
  box-shadow:
    0 5px 0 #c99e4c,
    0 12px 28px rgba(92, 61, 30, 0.14),
    inset 0 2px 0 #ffffff;
}

/* 수채화 감성 입체 버튼 */
.btn-wc-amber {
  background: linear-gradient(180deg, #fcd34d 0%, #f59e0b 100%);
  color: #451a03;
  border: 2px solid #fef3c7;
  box-shadow: 0 4px 0 #b45309, 0 6px 14px rgba(180, 83, 9, 0.22);
  transition: all 0.14s ease;
}
.btn-wc-amber:hover {
  transform: translateY(-1px);
}
.btn-wc-amber:active {
  transform: translateY(2.5px);
  box-shadow: 0 1.5px 0 #b45309;
}

.btn-wc-leaf {
  background: linear-gradient(180deg, #74c644 0%, #52a326 100%);
  color: #ffffff;
  border: 2px solid #d9f99d;
  box-shadow: 0 4px 0 #367014, 0 6px 14px rgba(54, 112, 20, 0.25);
  transition: all 0.14s ease;
}
.btn-wc-leaf:hover {
  transform: translateY(-1px);
}
.btn-wc-leaf:active {
  transform: translateY(2.5px);
  box-shadow: 0 1.5px 0 #367014;
}

/* ================= 오솔길 위 수채화 디딤돌 & 캐릭터 스탠드 ================= */
.road-step-spot {
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  touch-action: manipulation;
}
.road-step-spot:hover,
.road-step-spot:active {
  transform: translate(-50%, -55%) scale(1.13) !important;
  z-index: 45 !important;
}

.step-pedestal {
  background: linear-gradient(180deg, #ffffff 0%, #fef6e0 100%);
  border: 2px solid #dfa842;
  box-shadow:
    0 3px 0 #b88228,
    0 4px 10px rgba(84, 52, 24, 0.18);
}
.step-pedestal.pedestal-friday {
  background: linear-gradient(180deg, #fffbeb 0%, #fde68a 100%);
  border-color: #e07a24;
  box-shadow:
    0 3px 0 #b45309,
    0 0 12px rgba(245, 158, 11, 0.45);
}
.step-pedestal.pedestal-transform {
  background: linear-gradient(180deg, #ecfdf5 0%, #b7f4d8 100%);
  border-color: #10b981;
  box-shadow:
    0 3px 0 #047857,
    0 0 14px rgba(16, 185, 129, 0.5);
}
.step-pedestal.pedestal-goal {
  background: linear-gradient(180deg, #fef9c3 0%, #fde047 100%);
  border-color: #ca8a04;
  box-shadow:
    0 3px 0 #854d0e,
    0 0 18px rgba(250, 204, 21, 0.75);
}

/* 수채화 캐릭터 그림자 스탠드 */
.wc-char-stand {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 4px 5px rgba(60, 40, 15, 0.28));
}
.wc-char-stand::after {
  content: '';
  display: block;
  width: 28px;
  height: 6px;
  margin-top: -4px;
  background: radial-gradient(ellipse at center, rgba(72, 48, 20, 0.35) 0%, transparent 75%);
  border-radius: 50%;
}

/* 금요일 금식 원탭 칩 토글 */
.fasting-chip {
  transition: all 0.15s ease;
  touch-action: manipulation;
}
.fasting-chip:has(input:checked) {
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%) !important;
  color: #ffffff !important;
  border-color: #b45309 !important;
  box-shadow: 0 2px 0 #92400e;
  transform: translateY(-1px);
}

/* 검색된 지체 하이라이트 */
@keyframes road-spot-glow {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1.16);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.9), 0 0 24px #f59e0b;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.28);
    box-shadow: 0 0 0 14px rgba(245, 158, 11, 0), 0 0 38px #fbbf24;
  }
}
.spot-highlight {
  animation: road-spot-glow 1.2s infinite !important;
  z-index: 50 !important;
}

/* 캐릭터 귀여운 홉 모션 */
@keyframes hop {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.06); }
}
.anim-hop {
  animation: hop 1.5s infinite ease-in-out;
}

/* 꽃잎/반딧불이 반짝임 */
@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 0.95; transform: scale(1.25); }
}
.firefly {
  animation: twinkle 3.2s infinite ease-in-out;
}

/* 모바일 하단 안전 영역(Safe Area) 패딩 */
.safe-bottom-dock {
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
}

/* 바텀시트 슬라이드 업 애니메이션 */
@keyframes slideUpSheet {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-sheet {
  animation: slideUpSheet 0.22s ease-out;
}

.custom-scroll::-webkit-scrollbar { width: 5px; height: 5px; }
.custom-scroll::-webkit-scrollbar-thumb {
  background: #deb868;
  border-radius: 4px;
}
