/* =====================================================================
 * 생년월일 달력 (단독 버전) — 수능운세 페이지용
 * ===================================================================== */
.dp-wrap { position: relative; }
.dp-wrap .dp-display {
  width: 100%; min-height: 48px; padding: 12px 44px 12px 14px; cursor: pointer;
  font-family: 'Gowun Dodum', sans-serif; font-size: 15px; color: var(--ink);
  background: #fffefb; border: none; border-bottom: 2.5px dashed var(--gold); border-radius: 10px 10px 0 0;
  outline: none; caret-color: transparent; -webkit-tap-highlight-color: transparent;
}
.dp-wrap .dp-display::placeholder { color: var(--pencil); }
.dp-wrap .dp-display:focus, .dp-wrap .dp-display.has-value { background: var(--mint-soft); }
.dp-wrap .dp-display.has-value { font-weight: 700; }
.dp-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 19px; cursor: pointer; }

html.dp-lock, html.dp-lock body { overflow: hidden; }
.dp-sheet {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(23, 23, 31, .45); opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.dp-sheet.open { opacity: 1; pointer-events: auto; }
.dp-panel {
  width: 100%; max-width: 460px; background: var(--card, #fffdf6); color: var(--ink);
  border-radius: 24px 24px 0 0; padding: 8px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 30px rgba(0,0,0,.18); transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.9,.3,1);
  border-top: 3px dashed var(--gold);
}
.dp-sheet.open .dp-panel { transform: none; }
.dp-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--paper-line); margin: 4px auto 10px; }
.dp-title { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.dp-title b { font-family: 'Gaegu', cursive; font-size: 22px; color: var(--stamp); }
.dp-title small { font-size: 12px; color: var(--pencil); }
.dp-x { margin-left: auto; border: none; background: var(--paper); width: 32px; height: 32px; border-radius: 50%; font-size: 14px; color: var(--ink-soft); cursor: pointer; }
.dp-head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.dp-head select {
  flex: 1; min-height: 44px; padding: 8px 30px 8px 12px; border: 2px solid var(--paper-line); border-radius: 12px;
  font-family: 'Gaegu', cursive; font-size: 19px; font-weight: 700; color: var(--ink); background-color: #fff;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--stamp) 50%), linear-gradient(135deg, var(--stamp) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.dp-head select:focus { border-color: var(--stamp); outline: none; }
.dp-head .dp-year { flex: 1.4; }
.dp-nav {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; border: 2px solid var(--paper-line); background: #fff;
  font-size: 24px; line-height: 1; color: var(--stamp); cursor: pointer;
}
.dp-nav:active { transform: scale(.94); }
.dp-week, .dp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.dp-week span { font-size: 12.5px; color: var(--pencil); padding: 4px 0; }
.dp-week .w0, .dp-day.w0 { color: #d64545; }
.dp-week .w6, .dp-day.w6 { color: #3f6fc4; }
.dp-days { min-height: 252px; align-content: start; }
.dp-day {
  aspect-ratio: 1 / 1; max-height: 46px; border: none; border-radius: 50%; background: transparent; cursor: pointer;
  font-family: 'Gowun Dodum', sans-serif; font-size: 15px; color: var(--ink); -webkit-tap-highlight-color: transparent;
}
.dp-day:hover { background: var(--accent-soft, #fbe7d7); }
.dp-day.on { background: var(--stamp) !important; color: #fff !important; font-weight: 700; box-shadow: 0 3px 0 var(--stamp-dark); }
.dp-day:disabled { color: var(--paper-line) !important; cursor: default; background: none; }
.dp-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1.5px dashed var(--paper-line); }
.dp-picked { flex: 1; font-size: 14px; color: var(--ink-soft); }
.dp-ok {
  border: none; border-radius: 12px; padding: 12px 18px; font-family: 'Gaegu', cursive; font-size: 18px; font-weight: 700;
  color: #fff; background: linear-gradient(135deg, var(--stamp), var(--stamp-dark)); box-shadow: 0 4px 0 var(--stamp-dark); cursor: pointer;
}
.dp-ok:disabled { opacity: .4; box-shadow: none; cursor: default; }
@media (min-width: 600px) {
  .dp-sheet { align-items: center; }
  .dp-panel { border-radius: 24px; border: 3px dashed var(--gold); transform: translateY(20px) scale(.97); }
  .dp-grab { display: none; }
}
