/* 🎴 超精美塔罗卡片系统 - 严格按照最新参考图片设计 */

/* 卡片容器 - 精确的比例和尺寸 */
.tarot-wish-card {
    width: 320px;
    height: 520px;
    position: relative;
    margin: 20px auto;
    perspective: 1200px;
    perspective-origin: 50% 50%;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4));
    border-radius: 20px;
    overflow: hidden;
    
    /* 整体发光效果 */
    box-shadow: 
        0 0 40px rgba(212, 175, 55, 0.3),
        0 15px 60px rgba(0, 0, 0, 0.2);
}

/* 翻转容器 */
.tarot-card-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease-in-out;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transform-origin: 50% 50%;
    -webkit-transform-origin: 50% 50%;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.tarot-wish-card.flipped .tarot-card-inner {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

/* 卡片正反面基础 */
.tarot-card-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transform-origin: center center;
    -webkit-transform-origin: center center;
}

.tarot-card-front {
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
    z-index: 2;
}

.tarot-card-back {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    z-index: 1;
}

/* 🎨 卡片正面设计 - 超精美木质纹理 */
.tarot-card-front {
    /* 深色木质纹理背景 */
    background: 
        linear-gradient(145deg, 
            #3d2817 0%,     /* 深棕色木质 */
            #4a2f1a 15%,    /* 中深棕色 */
            #5c3620 30%,    /* 中棕色 */
            #6b3d24 45%,    /* 浅中棕色 */
            #7a4428 60%,    /* 浅棕色 */
            #5c3620 75%,    /* 回到中棕色 */
            #3d2817 100%    /* 深棕色结尾 */
        );
    
    position: relative;
    
    /* 复杂的木纹纹理效果 */
    background-image: 
        /* 主要木纹 */
        repeating-linear-gradient(
            90deg,
            rgba(139, 69, 19, 0.15) 0px,
            rgba(139, 69, 19, 0.15) 3px,
            transparent 3px,
            transparent 8px
        ),
        /* 次要木纹 */
        repeating-linear-gradient(
            0deg,
            rgba(160, 82, 45, 0.08) 0px,
            rgba(160, 82, 45, 0.08) 2px,
            transparent 2px,
            transparent 15px
        ),
        /* 木质斑点 */
        radial-gradient(ellipse at 20% 30%, rgba(101, 67, 33, 0.3) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 70%, rgba(101, 67, 33, 0.2) 0%, transparent 35%);
}

/* 超华丽装饰边框系统 */
.ultra-ornate-border {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 6px solid #DAA520;
    border-radius: 16px;
    
    /* 复杂的多层装饰效果 */
    background: 
        /* 主装饰层 */
        linear-gradient(45deg, 
            rgba(218, 165, 32, 0.4) 0%, 
            rgba(255, 215, 0, 0.3) 25%,
            rgba(218, 165, 32, 0.4) 50%,
            rgba(255, 215, 0, 0.3) 75%,
            rgba(218, 165, 32, 0.4) 100%
        ),
        /* 装饰花纹 */
        repeating-conic-gradient(from 0deg at 50% 50%, 
            rgba(255, 215, 0, 0.2) 0deg, 
            rgba(255, 215, 0, 0.1) 45deg, 
            rgba(255, 215, 0, 0.2) 90deg
        );
    
    box-shadow: 
        /* 内部多层光泽 */
        inset 0 3px 6px rgba(255, 215, 0, 0.4),
        inset 0 -3px 6px rgba(139, 69, 19, 0.4),
        inset 0 0 30px rgba(255, 215, 0, 0.2),
        /* 外部光晕 */
        0 0 30px rgba(218, 165, 32, 0.5),
        0 0 60px rgba(218, 165, 32, 0.3);
}

/* 顶部标题区域 - 左右分布 */
.card-top-labels {
    position: absolute;
    top: 15px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.card-name-label {
    background: 
        linear-gradient(135deg, 
            rgba(218, 165, 32, 0.9) 0%,
            rgba(255, 215, 0, 0.8) 50%,
            rgba(218, 165, 32, 0.9) 100%
        );
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #8B4513;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.card-name-text {
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 700;
    color: #8B4513;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.card-number-label {
    background: 
        linear-gradient(135deg, 
            rgba(218, 165, 32, 0.9) 0%,
            rgba(255, 215, 0, 0.8) 50%,
            rgba(218, 165, 32, 0.9) 100%
        );
    padding: 8px 12px;
    border-radius: 15px;
    border: 2px solid #8B4513;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.card-number-text {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 700;
    color: #8B4513;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* 中央华丽装饰框架 */
.central-ornate-frame {
    position: absolute;
    top: 60px;
    left: 25px;
    right: 25px;
    height: 320px;
    
    /* 华丽的装饰边框 */
    border: 4px solid #DAA520;
    border-radius: 20px;
    background: 
        /* 装饰渐变 */
        linear-gradient(135deg, 
            rgba(218, 165, 32, 0.3) 0%,
            rgba(255, 215, 0, 0.2) 25%,
            rgba(218, 165, 32, 0.3) 50%,
            rgba(255, 215, 0, 0.2) 75%,
            rgba(218, 165, 32, 0.3) 100%
        );
    
    box-shadow: 
        inset 0 0 20px rgba(255, 215, 0, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.3);
    
    /* 装饰花纹 */
    background-image: 
        repeating-linear-gradient(
            45deg,
            rgba(255, 215, 0, 0.1) 0px,
            rgba(255, 215, 0, 0.1) 2px,
            transparent 2px,
            transparent 12px
        );
}

/* 中央画面区域 - 深色星空 */
.central-artwork {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 16px;
    overflow: hidden;
    
    /* 深色星空背景 */
    background: 
        /* 主星空渐变 */
        radial-gradient(ellipse at center, 
            #1a1a2e 0%,
            #16213e 25%,
            #0f0f23 50%,
            #0a0a1a 75%,
            #000000 100%
        ),
        /* 星星效果 - 更多更亮的星星 */
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.9) 1px, transparent 2px),
        radial-gradient(circle at 85% 20%, rgba(255, 215, 0, 0.8) 1px, transparent 2px),
        radial-gradient(circle at 25% 80%, rgba(255, 255, 255, 0.8) 1px, transparent 2px),
        radial-gradient(circle at 75% 85%, rgba(255, 215, 0, 0.7) 1px, transparent 2px),
        radial-gradient(circle at 45% 25%, rgba(255, 255, 255, 0.6) 1px, transparent 2px),
        radial-gradient(circle at 65% 70%, rgba(255, 215, 0, 0.6) 1px, transparent 2px),
        /* 大星星 */
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.5) 20%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(255, 215, 0, 0.8) 0%, rgba(255, 215, 0, 0.4) 25%, transparent 50%);
    
    box-shadow: 
        inset 0 0 40px rgba(0, 0, 0, 0.6),
        0 4px 20px rgba(0, 0, 0, 0.4);
}

/* 角色场景容器 */
.character-scene {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    box-sizing: border-box;
}

/* 主要角色组合 - 老鼠和小仙女 */
.main-characters {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.primary-character {
    font-size: 80px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
    animation: primaryFloat 4s ease-in-out infinite;
    z-index: 3;
}

.secondary-character {
    font-size: 40px;
    position: absolute;
    left: -30px;
    top: 10px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: secondaryFloat 3s ease-in-out infinite 0.5s;
    z-index: 2;
}

@keyframes primaryFloat {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes secondaryFloat {
    0%, 100% { transform: translateY(0px) rotate(1deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

/* 超精美发光球体 */
.ultra-magical-orb {
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    
    background: 
        /* 内核 */
        radial-gradient(circle at 35% 35%, 
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 215, 0, 0.9) 20%,
            rgba(255, 165, 0, 0.8) 40%,
            rgba(255, 140, 0, 0.6) 60%,
            rgba(255, 215, 0, 0.4) 80%,
            transparent 100%
        );
    
    box-shadow: 
        /* 内部光晕 */
        inset 0 0 15px rgba(255, 255, 255, 0.8),
        /* 外部光晕 */
        0 0 30px rgba(255, 215, 0, 0.9),
        0 0 60px rgba(255, 215, 0, 0.6),
        0 0 90px rgba(255, 215, 0, 0.3);
    
    animation: ultraOrbGlow 3s ease-in-out infinite alternate;
}

@keyframes ultraOrbGlow {
    0% { 
        box-shadow: 
            inset 0 0 15px rgba(255, 255, 255, 0.8),
            0 0 30px rgba(255, 215, 0, 0.9),
            0 0 60px rgba(255, 215, 0, 0.6),
            0 0 90px rgba(255, 215, 0, 0.3);
        transform: translate(-50%, -50%) scale(1);
    }
    100% { 
        box-shadow: 
            inset 0 0 20px rgba(255, 255, 255, 1),
            0 0 40px rgba(255, 215, 0, 1),
            0 0 80px rgba(255, 215, 0, 0.8),
            0 0 120px rgba(255, 215, 0, 0.5);
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* 丰富的金币装饰 */
.ultra-floating-coins {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.ultra-coin {
    position: absolute;
    width: 20px;
    height: 20px;
    background: 
        radial-gradient(circle at 30% 30%, 
            #FFD700 0%,
            #DAA520 40%,
            #B8860B 70%,
            #8B6914 100%
        );
    border-radius: 50%;
    border: 2px solid #8B4513;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
    animation: ultraCoinFloat 5s ease-in-out infinite;
}

.ultra-coin:nth-child(1) { 
    top: 15%; left: 10%; 
    animation-delay: 0s; 
    transform: rotate(15deg);
}
.ultra-coin:nth-child(2) { 
    top: 25%; right: 15%; 
    animation-delay: 0.8s;
    transform: rotate(-20deg);
}
.ultra-coin:nth-child(3) { 
    bottom: 30%; left: 20%; 
    animation-delay: 1.6s;
    transform: rotate(25deg);
}
.ultra-coin:nth-child(4) { 
    bottom: 20%; right: 10%; 
    animation-delay: 2.4s;
    transform: rotate(-15deg);
}
.ultra-coin:nth-child(5) { 
    top: 40%; left: 5%; 
    animation-delay: 3.2s;
    transform: rotate(30deg);
}
.ultra-coin:nth-child(6) { 
    bottom: 45%; right: 25%; 
    animation-delay: 4s;
    transform: rotate(-25deg);
}

@keyframes ultraCoinFloat {
    0%, 100% { 
        transform: translateY(0px) rotateY(0deg) rotateZ(var(--rotation, 0deg));
    }
    25% { 
        transform: translateY(-15px) rotateY(90deg) rotateZ(var(--rotation, 0deg));
    }
    50% { 
        transform: translateY(-8px) rotateY(180deg) rotateZ(var(--rotation, 0deg));
    }
    75% { 
        transform: translateY(-12px) rotateY(270deg) rotateZ(var(--rotation, 0deg));
    }
}

/* 愿望文字显示 */
.ultra-wish-display {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: 
        linear-gradient(135deg, 
            rgba(0, 0, 0, 0.8) 0%,
            rgba(20, 20, 20, 0.9) 50%,
            rgba(0, 0, 0, 0.8) 100%
        );
    border: 2px solid rgba(218, 165, 32, 0.6);
    border-radius: 15px;
    padding: 8px 12px;
    text-align: center;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 215, 0, 0.3);
}

.ultra-wish-text {
    font-family: 'Noto Serif SC', serif;
    font-size: 11px;
    color: #FFD700;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

/* 底部圆形图标 */
.bottom-icon-circle {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: 
        radial-gradient(circle, 
            #FFD700 0%,
            #DAA520 60%,
            #B8860B 100%
        );
    border: 4px solid #8B4513;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.4),
        inset 0 2px 6px rgba(255, 255, 255, 0.4);
    z-index: 5;
}

.icon-symbol {
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* 底部标题区域 */
.ultra-bottom-title {
    position: absolute;
    bottom: 15px;
    left: 25px;
    right: 25px;
    height: 60px;
    background: 
        linear-gradient(180deg, 
            rgba(0, 0, 0, 0.9) 0%,
            rgba(20, 20, 20, 0.95) 30%,
            rgba(10, 10, 10, 0.98) 70%,
            rgba(0, 0, 0, 0.9) 100%
        );
    border-radius: 30px;
    border: 3px solid #DAA520;
    display: flex;
    align-items: center;
    justify-content: center;
    
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 215, 0, 0.3),
        inset 0 -2px 4px rgba(139, 69, 19, 0.3);
}

.ultra-title-text {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    font-weight: 700;
    color: #FFD700;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px rgba(255, 215, 0, 0.5);
    letter-spacing: 1.5px;
    text-align: center;
}

/* 悬浮效果增强 */
.tarot-wish-card:hover {
    transform: translateY(-8px) scale(1.03);
    filter: drop-shadow(0 35px 70px rgba(0, 0, 0, 0.5));
    box-shadow: 
        0 0 60px rgba(212, 175, 55, 0.4),
        0 20px 80px rgba(0, 0, 0, 0.3);
}

/* 卡片背面设计 */
.tarot-card-back {
    background: 
        linear-gradient(145deg, 
            #2c1810 0%,
            #3d2817 30%,
            #4a2f1a 50%,
            #3d2817 70%,
            #2c1810 100%
        );
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 25px;
    box-sizing: border-box;
}

.ultra-back-content {
    text-align: center;
    color: #FFD700;
}

.ultra-back-title {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8);
}

.ultra-back-description {
    font-family: 'Noto Serif SC', serif;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 25px;
}

/* 供奉按钮样式增强 */
.ultra-offerings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 25px 0;
}

.ultra-offering-btn {
    background: 
        linear-gradient(135deg, 
            rgba(218, 165, 32, 0.3) 0%,
            rgba(255, 215, 0, 0.2) 50%,
            rgba(218, 165, 32, 0.3) 100%
        );
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 12px;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: #FFD700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ultra-offering-btn:hover {
    background: 
        linear-gradient(135deg, 
            rgba(218, 165, 32, 0.5) 0%,
            rgba(255, 215, 0, 0.4) 50%,
            rgba(218, 165, 32, 0.5) 100%
        );
    border-color: rgba(255, 215, 0, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.ultra-offering-icon {
    font-size: 24px;
    margin-bottom: 6px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.ultra-offering-name {
    font-size: 11px;
    font-family: 'Cinzel', serif;
    font-weight: 600;
}

/* 进化按钮增强 */
.ultra-evolution-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 20px;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ultra-evolution-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.6);
    background: linear-gradient(45deg, #ff5252, #26c6da, #42a5f5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tarot-wish-card {
        width: 300px;
        height: 488px;
    }
    
    .primary-character {
        font-size: 70px;
    }
    
    .secondary-character {
        font-size: 35px;
    }
    
    .ultra-title-text {
        font-size: 14px;
    }
}
