/* Game Page Styles */
.back-btn {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.game-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 50px 20px;
    position: relative;
    z-index: 10;
}

.game-container {
    max-width: 800px;
    width: 100%;
}

.game-header {
    text-align: center;
    margin-bottom: 2rem;
}

.game-title {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
    animation: glow 2s ease-in-out infinite alternate;
}

.game-subtitle {
    font-size: 1.1rem;
    color: #f0f8ff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.info-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    width: 160px;
    height: 160px;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.info-icon {
    font-size: 2.5rem;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.info-text {
    flex: 1;
}

.info-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.3rem;
}

.info-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.game-status {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
}

.status-message {
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .game-title {
        font-size: 2.5rem;
    }
    
    .game-subtitle {
        font-size: 1.1rem;
    }
    
    .game-info {
        grid-template-columns: 1fr;
    }
    
    .game-section {
        padding: 100px 20px 50px 20px;
    }
    
    .quests-panel {
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
    }
}

@keyframes collectPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.5); }
}

@keyframes fadeOut {
    to { opacity: 0; transform: scale(0.5); }
}

.combo-display {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    padding: 30px 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.5);
    z-index: 10000;
    animation: comboBounce 0.5s ease;
    pointer-events: none;
}

.combo-text {
    font-size: 36px;
    font-weight: 900;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.combo-points {
    font-size: 28px;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

@keyframes comboBounce {
    0% { transform: translate(-50%, -50%) scale(0); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.particle {
    position: fixed;
    font-size: 24px;
    pointer-events: none;
    z-index: 9999;
    animation: particleExplode 1s ease-out forwards;
}

@keyframes particleExplode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}
.quests-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    z-index: 1001;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column-reverse;
    perspective: 1000px;
}

.quests-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    order: 2;
}

.quests-header h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.toggle-quests {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-quests:hover {
    background: rgba(255, 255, 255, 0.2);
}

.quests-content {
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column-reverse;
    transform-origin: bottom;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.quest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quest-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-5px);
}

.quest-item.completed {
    background: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.5);
}

.quest-item.claimed {
    opacity: 0.5;
    cursor: default;
}

.quest-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.quest-emoji {
    font-size: 1.5rem;
}

.quest-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.quest-reward {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1e3c72;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 0.85rem;
}

.quest-progress-mini {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 50px;
    text-align: right;
}

.quests-content.collapsed {
    max-height: 0;
    padding: 0;
    opacity: 0;
    transform: scaleY(0) rotateX(90deg);
}
