/* 游戏星球页面 */
.planet-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
}

.planet-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-planet {
    display: flex;
    justify-content: center;
}

.planet-visual {
    position: relative;
    width: 280px;
    height: 280px;
}

.game-core {
    background: radial-gradient(circle at 35% 35%, #FF69B4, #9D4EDD) !important;
    filter: drop-shadow(0 0 60px #FF69B4) drop-shadow(0 0 30px #9D4EDD) !important;
}

.planet-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(75deg);
    width: 260px;
    height: 70px;
    border: 3px solid var(--pink);
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 30px var(--pink);
}

.planet-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 330px;
    height: 330px;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.2), transparent 70%);
    border-radius: 50%;
    animation: pulse-large 3s ease-in-out infinite;
}

@keyframes pulse-large {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.15); }
}

.hero-text {
    padding: 2rem;
}

.planet-title {
    font-size: 3.5rem;
    color: var(--pink);
    margin-bottom: 1.5rem;
}

.planet-desc {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.planet-stats {
    display: flex;
    gap: 2rem;
}

.planet-stats span {
    font-size: 1.1rem;
    color: var(--cosmic-teal);
    background: rgba(46, 196, 182, 0.15);
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(46, 196, 182, 0.3);
}

/* 游戏网格 */
.games-section {
    padding: 4rem 2rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 6rem;
}

.game-card {
    background: rgba(30, 27, 60, 0.7);
    border: 2px solid rgba(123, 104, 238, 0.3);
    border-radius: 25px;
    padding: 2rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(123, 104, 238, 0.2), transparent);
    transition: left 0.5s;
}

.game-card:hover::before {
    left: 100%;
}

.game-card:hover {
    transform: translateY(-15px);
    border-color: var(--cosmic-purple);
    box-shadow: 0 20px 60px rgba(123, 104, 238, 0.4);
}

.game-card.featured {
    grid-column: span 1;
    border: 2px solid var(--pink);
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(157, 78, 221, 0.1));
}

.game-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.game-icon {
    font-size: 2.5rem;
}

.game-name {
    font-size: 1.4rem;
    color: var(--cyan);
}

.game-card.featured .game-name {
    color: var(--pink);
}

.featured-badge {
    font-size: 0.8rem;
    background: linear-gradient(135deg, var(--pink), var(--cosmic-purple));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    margin-left: auto;
}

.game-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.game-preview {
    height: 150px;
    background: rgba(10, 17, 40, 0.6);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 40px);
    gap: 0.5rem;
}

.card-item {
    width: 40px;
    height: 40px;
    background: rgba(123, 104, 238, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    animation: flip 0.6s ease-in-out infinite;
}

@keyframes flip {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(90deg); }
}

.number-display {
    font-size: 3rem;
    font-weight: bold;
    color: var(--cyan);
}

.reaction-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-circle {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--cosmic-purple), transparent);
    border-radius: 50%;
    animation: pulse-reaction 2s ease-in-out infinite;
}

@keyframes pulse-reaction {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.question-preview {
    font-size: 1.3rem;
    color: var(--pink);
    text-align: center;
}

.wheel-preview {
    width: 100px;
    height: 100px;
    margin: 0 auto;
}

.wheel-inner {
    width: 100%;
    height: 100%;
    background: conic-gradient(
        from 0deg,
        #FF69B4 0deg 60deg,
        #7B68EE 60deg 120deg,
        #00F5FF 120deg 180deg,
        #FFD700 180deg 240deg,
        #FF6B6B 240deg 300deg,
        #2EC4B6 300deg 360deg
    );
    border-radius: 50%;
    animation: rotate-wheel 3s linear infinite;
}

@keyframes rotate-wheel {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.battle-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.vs-text {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--cosmic-purple), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 按钮 */
.play-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--cosmic-purple), var(--cyan));
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
    overflow: hidden;
}

.play-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.play-btn:hover::after {
    width: 300px;
    height: 300px;
}

.play-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(123, 104, 238, 0.5);
}

.featured-btn {
    background: linear-gradient(135deg, var(--pink), var(--cosmic-purple));
}

/* 排行榜 */
.leaderboard {
    background: rgba(30, 27, 60, 0.6);
    border: 2px solid rgba(123, 104, 238, 0.3);
    border-radius: 30px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.leaderboard-title {
    font-size: 2rem;
    color: var(--cyan);
    margin-bottom: 2rem;
    text-align: center;
}

.leaderboard-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rank-item {
    display: grid;
    grid-template-columns: 40px 1fr 80px 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem;
    background: rgba(10, 17, 40, 0.6);
    border-radius: 15px;
    animation: slideIn 0.6s ease forwards;
    opacity: 0;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.rank-item:nth-child(1) { animation-delay: 0.1s; }
.rank-item:nth-child(2) { animation-delay: 0.2s; }
.rank-item:nth-child(3) { animation-delay: 0.3s; }
.rank-item:nth-child(4) { animation-delay: 0.4s; }
.rank-item:nth-child(5) { animation-delay: 0.5s; }

.rank-num {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--pink);
}

.rank-game {
    font-size: 1rem;
    color: var(--text-light);
}

.rank-plays {
    font-size: 0.95rem;
    color: var(--cosmic-teal);
}

.rank-bar {
    height: 6px;
    background: linear-gradient(90deg, var(--cosmic-purple), var(--cyan));
    border-radius: 3px;
    animation: fillBar 0.8s ease forwards;
    opacity: 0;
}

@keyframes fillBar {
    from { opacity: 0; width: 0 !important; }
    to { opacity: 1; }
}

.rank-item:nth-child(1) .rank-bar { animation-delay: 0.1s; }
.rank-item:nth-child(2) .rank-bar { animation-delay: 0.2s; }
.rank-item:nth-child(3) .rank-bar { animation-delay: 0.3s; }
.rank-item:nth-child(4) .rank-bar { animation-delay: 0.4s; }
.rank-item:nth-child(5) .rank-bar { animation-delay: 0.5s; }

/* 响应式 */
@media (max-width: 1024px) {
    .planet-hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .planet-hero {
        padding: 3rem 1.5rem;
    }

    .planet-title {
        font-size: 2.5rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .leaderboard {
        padding: 2rem 1.5rem;
    }

    .rank-item {
        grid-template-columns: 30px 1fr 60px;
        gap: 1rem;
    }

    .rank-bar {
        grid-column: 2 / -1;
    }
}
