/**
 * 娱乐模式（fortune-teller）— 标题下方入口
 */

#xiyongCard.nav-card.expanded .fortune-teller-card-entry {
    display: none !important;
}

.fortune-teller-card-entry {
    position: relative;
    z-index: 20;
    box-sizing: border-box;
    width: clamp(170px, 32vw, 280px);
    height: auto;
    margin: 12px auto 0;
    padding: 0;
    border: none;
    cursor: pointer;
    font: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    background: transparent;
    overflow: visible;
    isolation: auto;
    transition: transform 0.18s ease;
    line-height: 0;
}

.fortune-teller-card-entry::before {
    content: none;
}

.fortune-teller-card-entry:hover {
    transform: translateY(-1px);
}

.fortune-teller-card-entry:active {
    transform: scale(0.97);
}

.fortune-teller-card-entry:focus {
    outline: none;
}

.fortune-teller-card-entry:focus-visible {
    outline: 2px solid rgba(255, 168, 58, 0.8);
    outline-offset: 3px;
    border-radius: 8px;
}

.fortune-teller-card-entry__inner {
    position: static;
    z-index: 1;
    pointer-events: none;
}

/* 方框内裁剪层 */
.fortune-teller-card-entry__clip {
    position: static;
    border-radius: 0;
    overflow: visible;
    display: block;
}

.fortune-teller-card-entry__badge {
    position: static;
    right: auto;
    bottom: auto;
    left: auto;
    top: auto;
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
}

@media (max-width: 768px) {
    .fortune-teller-card-entry {
        width: clamp(160px, 56vw, 250px);
        margin-top: 10px;
    }
}

@media (min-width: 769px) {
    .fortune-teller-card-entry {
        width: clamp(200px, 24vw, 280px);
        margin-top: 12px;
    }
}

/* ========== 娱乐推运：太极过场（克隆首页阴阳按钮 + 遮罩，配合 body 反色） ========== */
.fan-ft-taiji-stage {
    position: fixed;
    inset: 0;
    z-index: 99998;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.fan-ft-taiji-stage--active {
    opacity: 1;
}

.fan-ft-taiji-stage--out {
    opacity: 0;
    transition: opacity 0.16s ease;
}

.fan-ft-taiji-stage__veils {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 40%,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(0, 0, 0, 0.12) 38%,
        rgba(0, 0, 0, 0.5) 100%
    );
    animation: fan-ft-taiji-veil 1.12s ease-in-out forwards;
    pointer-events: none;
}

body.dark-theme .fan-ft-taiji-stage__veils {
    background: radial-gradient(
        circle at 50% 40%,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(0, 0, 0, 0.28) 42%,
        rgba(0, 0, 0, 0.78) 100%
    );
}

@keyframes fan-ft-taiji-veil {
    0% {
        opacity: 0.55;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.04);
    }
    100% {
        opacity: 0.92;
        transform: scale(1.1);
    }
}

.fan-ft-taiji-stage__hero {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 18px rgba(255, 150, 70, 0.38)) drop-shadow(0 12px 36px rgba(0, 0, 0, 0.25));
}

.fan-ft-taiji-stage__hero--animate {
    animation: fan-ft-taiji-hero 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fan-ft-taiji-stage .theme-toggle-btn {
    cursor: default;
}

@keyframes fan-ft-taiji-hero {
    0% {
        transform: scale(0.42) rotate(-95deg);
        opacity: 0.88;
    }
    52% {
        transform: scale(2.35) rotate(210deg);
        opacity: 1;
    }
    100% {
        transform: scale(2.65) rotate(540deg);
        opacity: 1;
    }
}
