/* ═══════ 罗盘动画样式 ═══════ */

.luopan-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.92);
    opacity: 0;
    pointer-events: none;
}
.luopan-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.luopan-container {
    position: relative;
    width: min(90vw, 500px);
    height: min(90vw, 500px);
}

.luopan-svg {
    width: 100%;
    height: 100%;
    will-change: transform;
}
.luopan-svg text {
    font-family: 'Noto Serif SC', serif;
    user-select: none;
}

/* 四柱卡片 */
.pillar-cards {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: center;
}
.pillar-card {
    background: rgba(20,16,40,0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
    /* Initial hidden state for GSAP animation — GSAP .to() animates to visible */
    opacity: 0;
    transform: translateY(20px);
    min-width: 70px;
}
/* Fallback: if JS fails, show cards after 5s via CSS animation */
@keyframes pillarFallbackShow {
    to { opacity: 1; transform: translateY(0); }
}
.pillar-card {
    animation: pillarFallbackShow 0.3s ease-out 6s forwards;
}
.pillar-card.day-master {
    border-color: var(--gold);
    box-shadow: 0 0 16px rgba(212,175,55,0.25);
}
.pillar-card-label {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}
.pillar-card-gz {
    font-size: 22px;
    font-family: 'Noto Serif SC', serif;
    color: var(--gold);
    line-height: 1.2;
}
.pillar-card-gz .branch {
    color: var(--gold-light);
}
.pillar-card-ss {
    font-size: 9px;
    color: var(--cyan);
    margin-top: 3px;
}

/* 加载文案 */
.luopan-status {
    margin-top: 20px;
    font-size: 13px;
    color: var(--gold-light);
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 2px;
    text-align: center;
}

/* 移动端 */
@media (max-width: 640px) {
    .luopan-container {
        width: min(92vw, 380px);
        height: min(92vw, 380px);
    }
    .pillar-card { padding: 8px 12px; min-width: 60px; }
    .pillar-card-gz { font-size: 18px; }
    .pillar-cards { gap: 8px; }
}
