/* 카드 폭·색·모서리는 기존 규칙을 쓰고 그림만 독립 영역에 둔다. */
.why-grid { grid-auto-rows: minmax(250px, auto); }
.why-card[data-why-motion] { min-width: 0; }
.wm-text { flex: 0 0 auto; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.why-vis { position: relative; width: min(170px, 100%); aspect-ratio: 170 / 92; flex: 0 0 auto; align-self: flex-end; margin-top: 14px; }
.why-vis svg { fill: #fff; display: block; width: 100%; height: 100%; overflow: hidden; }
.why-vis text { font-family: inherit; font-weight: 800; }
.why-vis text:not([font-size]) { font-size: 11px; }
.why-vis text.wm-speed { font-size: 20px; font-variant-numeric: tabular-nums; }
.why-vis [data-why-clicks] { font-size: 22px; font-variant-numeric: tabular-nums; }
.wm-wide-side { align-self: stretch; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 16px; flex-shrink: 0; max-width: 100%; }
.wm-wide-side .why-vis { margin-top: 0; }
.why-vis.wm-zero { aspect-ratio: 170 / 104; }
.wm-x { fill: none; stroke: var(--lime); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 120; stroke-dashoffset: 0; }
.wm-profit { fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 0; }
.wm-knob { transform: translateX(-114px); }
.wm-dot { fill: var(--lime); }
.wm-ring { fill: none; stroke: var(--lime); stroke-width: 5; stroke-dasharray: 138; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 144px 26px; }
.wm-link-bg { fill: var(--lime); }
.wm-link-old, .wm-typing { opacity: 0; }
.wm-link-new { opacity: 1; }
.wm-bar { fill: #55575d; }
.wm-up { fill: var(--lime); transform-box: fill-box; transform-origin: center bottom; }
.wm-donut { fill: none; stroke-width: 12; transform-origin: 128px 46px; }
.wm-d1 { stroke: var(--lime); stroke-dasharray: 80 230; transform: rotate(-90deg); }
.wm-d2 { stroke: #8f9196; stroke-dasharray: 46 230; transform: rotate(126deg); }
/* 아직 보이지 않은 그림은 마지막 장면 대신 시작 프레임으로 대기한다. */
[data-why-motion-state="waiting"] :is(.wm-credit,.wm-bubble,.wm-coin,.wm-question,.wm-typing,.wm-answer,.wm-hot,.wm-link-new) { opacity: 0; }
[data-why-motion-state="waiting"] .wm-x { stroke-dashoffset: 120; }
[data-why-motion-state="waiting"] .wm-knob { transform: none; }
[data-why-motion-state="waiting"] .wm-dot { fill: #55575d; }
[data-why-motion-state="waiting"] .wm-profit { stroke-dashoffset: 260; }
[data-why-motion-state="waiting"] .wm-ring { stroke-dashoffset: 138; }
[data-why-motion-state="waiting"] .wm-link-old { opacity: 1; }
[data-why-motion-state="waiting"] .wm-link-bg { fill: #45474c; }
[data-why-motion-state="waiting"] .wm-up { transform: scaleY(.22); }
[data-why-motion-state="waiting"] .wm-donut { stroke-dasharray: 0 230; }
/* 그림의 애니메이션은 카드가 보일 때만 만들어진다. 카드 자체는 기존 등장만 쓴다. */
.wm-running .wm-credit { animation: wm-credit 5s infinite; }
.wm-running .wm-x1 { animation: wm-x1 5s infinite; }
.wm-running .wm-x2 { animation: wm-x2 5s infinite; }
.wm-running .wm-bubble { animation: wm-bubble 4.8s infinite; }
.wm-running .wm-b2 { animation-delay: .7s; }
.wm-running .wm-b3 { animation-delay: 1.4s; }
.wm-running .wm-knob { animation: wm-knob 4.5s cubic-bezier(.6,0,.2,1) infinite; }
.wm-running .wm-dot { animation: wm-dot 4.5s var(--wm-delay, 0s) infinite; }
.wm-running .wm-profit { animation: wm-profit 4.2s ease-in-out infinite; }
.wm-running .wm-coin { animation: wm-coin 4.2s infinite; }
.wm-running .wm-ring { animation: wm-ring 3.6s infinite; }
.wm-running .wm-link-old { animation: wm-link-old 3.6s infinite; }
.wm-running .wm-link-new { animation: wm-link-new 3.6s infinite; }
.wm-running .wm-link-bg { animation: wm-link-bg 3.6s infinite; }
.wm-running .wm-question { animation: wm-question 4.6s infinite; }
.wm-running .wm-typing { animation: wm-typing 4.6s infinite; }
.wm-running .wm-answer { animation: wm-answer 4.6s infinite; }
.wm-running .wm-up { animation: wm-up 4s cubic-bezier(.2,.9,.3,1.2) infinite; }
.wm-running .wm-hot { animation: wm-coin 4s infinite; }
.wm-running .wm-d1 { animation: wm-d1 4.4s ease-out infinite; }
.wm-running .wm-d2 { animation: wm-d2 4.4s ease-out infinite; }
.wm-running :is(.wm-bubble,.wm-dot) { animation-fill-mode: backwards; }
@keyframes wm-credit { 0% { opacity: 0; transform: translateX(24px); } 12%,74% { opacity: 1; transform: none; } 86%,100% { opacity: 0; transform: translateY(8px) scale(.95); } }
@keyframes wm-x1 { 0%,20% { stroke-dashoffset: 120; opacity: 1; } 30%,74% { stroke-dashoffset: 0; opacity: 1; } 86%,100% { opacity: 0; } }
@keyframes wm-x2 { 0%,30% { stroke-dashoffset: 120; opacity: 1; } 40%,74% { stroke-dashoffset: 0; opacity: 1; } 86%,100% { opacity: 0; } }
@keyframes wm-bubble { 0% { opacity: 0; transform: translateY(8px); } 10%,70% { opacity: 1; transform: none; } 82%,100% { opacity: 0; } }
@keyframes wm-knob { 0%,18% { transform: none; } 45%,100% { transform: translateX(-114px); } }
@keyframes wm-dot { 0%,48% { fill: #55575d; } 56%,92% { fill: var(--lime); } 100% { fill: #55575d; } }
@keyframes wm-profit { 0% { stroke-dashoffset: 260; } 50%,85% { stroke-dashoffset: 0; opacity: 1; } 100% { opacity: 0; } }
@keyframes wm-coin { 0%,48% { opacity: 0; transform: translateY(8px); } 56%,85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes wm-ring { 0%,10% { stroke-dashoffset: 138; } 38%,80% { stroke-dashoffset: 0; opacity: 1; } 100% { opacity: 0; } }
@keyframes wm-link-old { 0%,36% { opacity: 1; } 42%,100% { opacity: 0; } }
@keyframes wm-link-new { 0%,40% { opacity: 0; } 46%,92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes wm-link-bg { 0%,36% { fill: #45474c; } 44%,100% { fill: var(--lime); } }
@keyframes wm-question { 0% { opacity: 0; transform: translateY(8px); } 10%,82% { opacity: 1; transform: none; } 92%,100% { opacity: 0; } }
@keyframes wm-typing { 0%,18% { opacity: 0; } 24%,40% { opacity: 1; } 46%,100% { opacity: 0; } }
@keyframes wm-answer { 0%,44% { opacity: 0; transform: translateY(8px); } 52%,82% { opacity: 1; transform: none; } 92%,100% { opacity: 0; } }
@keyframes wm-up { 0%,20%,100% { transform: scaleY(.22); } 45%,85% { transform: none; } }
@keyframes wm-d1 { 0%,10% { stroke-dasharray: 0 230; } 45%,88% { stroke-dasharray: 80 230; opacity: 1; } 100% { opacity: 0; } }
@keyframes wm-d2 { 0%,25% { stroke-dasharray: 0 230; } 55%,88% { stroke-dasharray: 46 230; opacity: 1; } 100% { opacity: 0; } }
/* 본문과 그림·버튼이 한 줄에 안 들어가면 다음 줄의 오른쪽에 온전히 둔다. */
@media (min-width: 761px) {
  .why-card-wide[data-why-motion] { flex-wrap: wrap; }
  .wm-wide-side { margin-left: auto; }
}
@media (max-width: 760px) {
  .why-grid { grid-auto-rows: minmax(178px, auto); }
  .why-card-wide[data-why-motion], .why-card[data-why-motion]:last-child { height: auto; }
  .wm-wide-side { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { [data-why-motion] .why-vis * { animation: none !important; transition: none !important; } }
