body {
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: url('/img/ui/mainmenu_background.webp') no-repeat center center fixed;
    background-size: cover;
}

.landing-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: calc(100vh - 80px);
    width: 100vw;
    position: relative;
    padding-left: 10%;
    box-sizing: border-box;
    perspective: 1200px;
}

/* --- LOGO E BOTÕES  --- */
.logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    animation: zoomInLogo 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.landing-logo {
    width: 500px;
    max-width: 90vw;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
    margin-bottom: 50px;
}

.landing-buttons {
    display: flex;
    gap: 30px;
    opacity: 0;
    animation: buttonFade 1s ease 1s forwards;
}

.btn-hk {
    padding: 15px 50px;
    font-size: 24px;
    font-family: 'Cinzel', serif;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    text-shadow: 0 0 5px white;
    animation: buttonFade 1s ease 1s forwards, btnPulse 2s infinite alternate 2s;
}
.btn-hk:hover {
    background: white;
    color: black;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

@keyframes btnPulse {
    from { box-shadow: 0 0 10px rgba(255,255,255,0.2); }
    to { box-shadow: 0 0 30px rgba(255,255,255,0.7); }
}

/* --- O UNIVERSO DE CARTAS FLUTUANTES (FUNDO) --- */
.cards-universe {
    position: absolute;
    top: 50%;
    right: 25%; 
    
    transform: translateY(-50%) rotateZ(-24deg) rotateX(-5deg);
    
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
    pointer-events: none; 
    z-index: 1; 
}


.carousel-spinner {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
}

/* A CARTA E AS DUAS FACES */
.floating-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 200px;
    margin-left: -75px; 
    margin-top: -100px; 
    transform-style: preserve-3d;
}

.card-3d-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.card-front {
    transform: rotateY(0deg);
}

.card-back {
    transform: rotateY(180deg);
    background-color: #050505;
    border: 3px solid #7f8c8d;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.card-back .back-symbol {
    width: 70%;
    filter: brightness(0.7);
}

/* CORES E BRILHOS NAS COSTAS DA CARTA BASEADOS NA RARIDADE */
.card-3d-wrapper[data-rarity="C"] .card-back { border-color: #a0a0a0; box-shadow: inset 0 0 15px rgba(189,195,199,0.5); }
.card-3d-wrapper[data-rarity="C"] .back-symbol { filter: drop-shadow(0 0 5px #a0a0a0); }

.card-3d-wrapper[data-rarity="R"] .card-back { border-color: #0ce53f; box-shadow: inset 0 0 15px rgba(52,152,219,0.5); }
.card-3d-wrapper[data-rarity="R"] .back-symbol { filter: drop-shadow(0 0 5px #0ce53f); }

.card-3d-wrapper[data-rarity="E"] .card-back { border-color: #8600cc; box-shadow: inset 0 0 15px rgba(155,89,182,0.5); }
.card-3d-wrapper[data-rarity="E"] .back-symbol { filter: drop-shadow(0 0 5px #8600cc); }

.card-3d-wrapper[data-rarity="L"] .card-back { border-color: #efe418; box-shadow: inset 0 0 15px rgba(241,196,15,0.5); }
.card-3d-wrapper[data-rarity="L"] .back-symbol { filter: drop-shadow(0 0 5px #efe418); }

.card-3d-wrapper[data-rarity="P"] .card-back { border-color: #ffffff; box-shadow: inset 0 0 15px rgba(255,255,255,0.8); }
.card-3d-wrapper[data-rarity="P"] .back-symbol { filter: drop-shadow(0 0 5px #ffffff); }

@keyframes zoomInLogo {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes buttonFade {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}


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


.logo-section {
    animation: zoomInLogo 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, floatLogo 4s ease-in-out 1.5s infinite;
}

.landing-buttons {
    animation: buttonFade 1s ease 1s forwards; 
}

/* =========================================
   CRYSTAL HEART
   ========================================= */

.crystal-heart {
    position: absolute;
    left: 50%;
    top: -500px; 

    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border-radius: 50%;
    background: #ffffff;
    
    z-index: 0; 
    opacity: 0;
}


.crystal-heart-active {
    animation: 
        heartDrop 5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, 
        heartPulse 1.2s infinite 2s,
        heartWobble 5s ease-in-out infinite 2s
}

@keyframes heartDrop {
    0% { top: -500px; opacity: 0; transform: scale(0.5); }
    30% { opacity: 1; }
    100% { top: 50%; opacity: 1; transform: scale(1); }
}

@keyframes heartPulse {
    0% { 
        transform: scale(1); 
        box-shadow: 0 0 20px 10px #ffffff, 0 0 50px 25px #ff9ff3, 0 0 100px 50px #ff479c;
    }
    15% { 
        transform: scale(1.25); 
        box-shadow: 0 0 25px 12px #ffffff, 0 0 70px 35px #ff9ff3, 0 0 140px 70px #ff479c;
    }
    30% { 
        transform: scale(1); 
        box-shadow: 0 0 20px 10px #ffffff, 0 0 50px 25px #ff9ff3, 0 0 100px 50px #ff479c;
    }
    45% { 
        transform: scale(1.1); 
        box-shadow: 0 0 22px 11px #ffffff, 0 0 60px 30px #ff9ff3, 0 0 120px 60px #ff479c;
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0 0 20px 10px #ffffff, 0 0 50px 25px #ff9ff3, 0 0 100px 50px #ff479c;
    }
}

@keyframes heartWobble {
    0% { margin-top: -10px; }
    50% { margin-top: -25px; }
    100% { margin-top: -10px; }
}

/* SECÇÃO DO SCROLL */
.live-matches-landing {
    padding: 20px 10% 120px;
    
    background: transparent; 
    
    display: flex;
    justify-content: center;
    align-items: flex-start;
    
    position: relative;
    z-index: 10;
}

.live-matches-box {
    width: 100%;
    max-width: 900px;
    background: rgba(15, 15, 20, 0.85); 
    border: 2px solid #34495e;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 0 40px rgba(0,0,0,0.9);
    backdrop-filter: blur(5px); 
}

.matches-title {
    font-family: 'Cinzel', serif; 
    color: white; 
    text-align: center; 
    margin-top: 0;
    margin-bottom: 30px; 
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
    font-size: 32px;
}

.match-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #455a64;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.spectate-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #3498db;
    color: #3498db;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.2s;
}
.spectate-btn:hover {
    background: #3498db;
    color: black;
    box-shadow: 0 0 15px #3498db;
}