/*
 * 생년월일 휠 피커 — Dribbble "Date of Birth Picker UI" (Bardia Adibi, https://dribbble.com/shots/25027958) 다크 버전을 따라 만든 것.
 * 넓은 화면에서는 가운데 카드, 좁은 화면(휴대폰)에서는 아래에서 올라오는 시트.
 */
.birth-trigger { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: #24262C; color: #ECEDEF; font: inherit; font-size: 16px; font-weight: 500; text-align: left; cursor: pointer; }
.birth-trigger:hover { background: #2A2D33; }
.birth-trigger:focus-visible { outline: 2px solid #7C88FF; outline-offset: 2px; }
.birth-trigger svg { flex: none; width: 16px; height: 16px; color: #9AA1AC; }

.birth-sheet { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.birth-sheet[hidden] { display: none; }
.birth-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); animation: birth-fade 0.2s ease-out both; }
.birth-card { position: relative; width: min(340px, 100%); background: #0F1012; border: 1px solid #2A2D33; border-radius: 22px; color: #ECEDEF; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); animation: birth-pop 0.24s cubic-bezier(0.2, 0.9, 0.3, 1) both; overflow: hidden; }
.birth-head { position: relative; display: flex; align-items: center; justify-content: center; height: 56px; border-bottom: 1px solid #1E2025; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.birth-close { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: #9AA1AC; cursor: pointer; }
.birth-close:hover { color: #ECEDEF; background: #1C1E23; }
.birth-close:focus-visible { outline: 2px solid #7C88FF; outline-offset: 2px; }

/* 휠: 7줄이 보이고 가운데 줄이 선택. 가운데 줄 뒤에 띠를 깔고, 위아래로 갈수록 흐리고 작아진다(스크립트). */
.birth-wheels { position: relative; display: grid; grid-template-columns: 1.15fr 1fr 0.9fr; padding: 12px 8px; }
.birth-band { position: absolute; left: 0; right: 0; top: 50%; height: var(--row, 38px); transform: translateY(-50%); background: #1A1C20; pointer-events: none; }
.birth-wheel { position: relative; height: calc(var(--row, 38px) * 7); overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y mandatory; scrollbar-width: none; outline: none; border-radius: 10px; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.birth-wheel::-webkit-scrollbar { display: none; }
.birth-wheel:focus-visible { box-shadow: inset 0 0 0 2px #7C88FF; }
.birth-wheel ul { list-style: none; margin: 0; padding: calc(var(--row, 38px) * 3) 0; }
.birth-wheel li { height: var(--row, 38px); display: flex; align-items: center; justify-content: center; scroll-snap-align: center; font-size: 19px; font-variant-numeric: tabular-nums; cursor: pointer; user-select: none; -webkit-user-select: none; transform-origin: center; will-change: transform, opacity; }

.birth-submit { display: block; width: calc(100% - 32px); margin: 8px 16px 16px; height: 48px; border: 0; border-radius: 12px; background: #F4F4F5; color: #0F1012; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.birth-submit:hover { background: #FFFFFF; }
.birth-submit:focus-visible { outline: 2px solid #7C88FF; outline-offset: 2px; }

@keyframes birth-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes birth-pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes birth-rise { from { transform: translateY(100%); } to { transform: none; } }

/* 휴대폰: 아래에서 올라오는 시트 */
@media (max-width: 560px) {
  .birth-sheet { align-items: flex-end; padding: 0; }
  .birth-card { width: 100%; border-radius: 22px 22px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); animation: birth-rise 0.28s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
}
@media (prefers-reduced-motion: reduce) {
  .birth-backdrop, .birth-card { animation: none; }
}
