/* ---- 하늘길 레테·에우노에 카드(#dlg-haneul-cards, js/haneul-cards.js) ----
   식물·소원봉 카드와 같은 떠 있는 유리 카드(.float-card). 카드 위로 두 시냇물(왼쪽 은빛 레테, 오른쪽 금빛 에우노에)이 살짝 올라 있고,
   고르는 단계(data-step="lethe" | "eunoe")의 시냇물과 빛 조각이 밝아집니다. 유리 색은 data-sky(day · dusk · night)를 따릅니다.
   고를 것은 두 줄 격자의 알약(라디오)이고, 좁은 화면(바텀시트)에서도 가로로 넘치지 않게 글자가 줄바꿈됩니다. */
#dlg-haneul-cards { --hero-h: 116px; --hero-out: 70px; --card-glow: 255, 232, 180; width: min(440px, calc(100% - var(--gutter-l) - var(--gutter-r))); }
#dlg-haneul-cards[data-step="lethe"] { --card-glow: 214, 226, 248; --hc-ink: #dfe8f4; --hc-pick: 190, 208, 236; }
#dlg-haneul-cards[data-step="eunoe"] { --card-glow: 255, 226, 160; --hc-ink: #f6e2a8; --hc-pick: 240, 206, 128; }
#dlg-haneul-cards[data-sky="night"][data-step="lethe"] { --card-glow: 176, 196, 240; }
.hcard-hero { pointer-events: none; }
.hcard-hero .card-glow { width: 220px; height: 220px; margin-left: -110px; bottom: -40px; }
.hcard-hero svg { position: absolute; left: 50%; bottom: -2px; width: 220px; height: 121px; margin-left: -110px; overflow: visible; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.3)); }
.hcard-brook { fill: none; stroke-width: 7; stroke-linecap: round; opacity: 0.5; transition: opacity 0.6s; }
.hcard-mote { opacity: 0; transition: opacity 0.6s; }
#dlg-haneul-cards[data-step="lethe"] .hcard-brook-lethe,
#dlg-haneul-cards[data-step="eunoe"] .hcard-brook-eunoe { opacity: 1; }
#dlg-haneul-cards[data-step="lethe"] .hcard-mote-lethe { opacity: 1; animation: hcard-drift 4s ease-in-out infinite; }
#dlg-haneul-cards[data-step="eunoe"] .hcard-mote-eunoe { opacity: 1; animation: hcard-rise 4s ease-in-out infinite; }
@keyframes hcard-drift { 0% { transform: translate(0, 0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(-30px, 20px); opacity: 0; } }
@keyframes hcard-rise { 0% { transform: translate(0, 6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(0, -24px); opacity: 0.2; } }
.hcard-body { padding-top: 6px; }
.hcard-kicker { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 34px 4px 0; font-size: 13px; letter-spacing: 0.06em; color: var(--hc-ink, var(--ink-dim)); }
.hcard-step { color: var(--ink-dim); letter-spacing: 0.02em; }
.hcard-title { margin: 0; }
.hcard-text { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-dim); word-break: keep-all; overflow-wrap: anywhere; }
.hcard-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.hcard-option {
  min-height: 44px; padding: 8px 12px; border: 1px solid var(--card-line); border-radius: 16px;
  background: var(--card-chip); color: var(--ink); font: inherit; font-size: 14px; line-height: 1.35; text-align: left;
  word-break: keep-all; overflow-wrap: anywhere; cursor: pointer; transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.hcard-option:hover { background: rgba(255, 255, 255, 0.14); }
.hcard-option:focus-visible { outline: 2px solid rgba(var(--hc-pick, 255, 255, 255), 0.9); outline-offset: 2px; }
.hcard-option[aria-checked="true"] {
  border-color: rgba(var(--hc-pick, 255, 255, 255), 0.85);
  background: rgba(var(--hc-pick, 255, 255, 255), 0.2);
  box-shadow: 0 0 18px -4px rgba(var(--hc-pick, 255, 255, 255), 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.hcard-actions { justify-content: flex-end; }
.hcard-actions .pill-action { flex: 1 1 0; }
#dlg-haneul-cards .pill-action.hcard-go { border-color: rgba(var(--hc-pick, 143, 208, 240), 0.6); background: linear-gradient(180deg, rgba(var(--hc-pick, 120, 190, 230), 0.42), rgba(var(--hc-pick, 80, 150, 200), 0.22)); }
#dlg-haneul-cards .pill-action.hcard-go:hover:not(:disabled) { background: linear-gradient(180deg, rgba(var(--hc-pick, 120, 190, 230), 0.56), rgba(var(--hc-pick, 80, 150, 200), 0.32)); }
.hcard-note { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--ink-dim); text-align: center; word-break: keep-all; }
/* 둘째 단계로 넘어갈 때 본문이 살짝 밀려 들어옵니다 */
#dlg-haneul-cards.is-turn .hcard-body { animation: hcard-turn 0.32s cubic-bezier(0.2, 0.8, 0.25, 1) both; }
@keyframes hcard-turn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  #dlg-haneul-cards { --hero-h: 104px; --hero-out: 62px; width: 100%; }
  .hcard-hero svg { width: 196px; height: 108px; margin-left: -98px; }
  .hcard-option { font-size: 13.5px; padding: 8px 10px; }
}
@media (max-width: 340px) { .hcard-options { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  #dlg-haneul-cards .hcard-mote { animation: none; }
  #dlg-haneul-cards.is-turn .hcard-body { animation: none; }
  .hcard-brook, .hcard-mote, .hcard-option { transition: none; }
}
