/* ── 단계 선택 카드 ── */
.stage-select-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 8px;
}

.stage-select-card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(215,228,255,0.9);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(99,120,220,0.07);
    text-decoration: none;
    color: inherit;
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
    position: relative;
}

.stage-select-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 240ms ease;
}

.stage-select-ready::before {
    background: linear-gradient(135deg, rgba(37,99,235,0.6), rgba(124,58,237,0.5));
}

.stage-select-ready:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 16px 48px rgba(99,120,220,0.18);
}

.stage-select-ready:hover::before { opacity: 0.55; }

.stage-select-disabled {
    opacity: 0.58;
    cursor: default;
}

.stage-select-visual {
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 8px;
}

.stage-select-visual img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transition: transform 400ms ease;
}

.stage-select-ready:hover .stage-select-visual img { transform: scale(1.03); }

.stage-select-visual-1 { background: linear-gradient(135deg, #f0f4ff, #e8f5e9); }
.stage-select-visual-2 { background: linear-gradient(135deg, #f0f4ff, #e8f5e9); }

.stage-select-placeholder {
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    width: 100%;
    height: 100%;
}

.stage-select-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }

.stage-select-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 11px;
    width: fit-content;
}

.badge-ready {
    background: rgba(16,185,129,0.09);
    color: #047857;
    border: 1px solid rgba(16,185,129,0.2);
}

.badge-preparing {
    background: rgba(100,116,139,0.08);
    color: #64748b;
    border: 1px solid rgba(100,116,139,0.15);
}

.stage-select-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 8px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.stage-select-desc {
    font-size: 0.83rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 16px;
    flex: 1;
}

.stage-select-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.stage-select-tags li {
    font-size: 0.7rem;
    font-weight: 600;
    color: #059669;
    background: rgba(16,185,129,0.07);
    border: 1px solid rgba(16,185,129,0.18);
    border-radius: 999px;
    padding: 3px 9px;
}

.stage-select-tags li.muted {
    color: #94a3b8;
    background: rgba(148,163,184,0.07);
    border-color: rgba(148,163,184,0.15);
}

.stage-select-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(215,228,255,0.7);
}

.stage-select-meta { font-size: 0.75rem; color: #94a3b8; font-weight: 600; }

.stage-select-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.btn-active {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    box-shadow: 0 3px 14px rgba(37,99,235,0.28);
}

.btn-inactive {
    background: #f1f5f9;
    color: #94a3b8;
    border: 1px solid #e2e8f0;
}

@media (max-width: 640px) {
    .stage-select-grid { grid-template-columns: 1fr; }
}
