/* ==============================
   Magical Effects
   Lucky Crumble Down
============================== */


/* Smooth scrolling */

html {
    scroll-behavior: smooth;
}



/* Fade in sections */

section {
    animation: fadeIn 1.2s ease;
}



@keyframes fadeIn {


    from {
        opacity: 0;
        transform: translateY(30px);
    }


    to {
        opacity: 1;
        transform: translateY(0);
    }
}





/* Hero magic glow */


.hero h1 {
    animation: titleGlow 3s infinite alternate;
}



@keyframes titleGlow {


    from {
        text-shadow: 0 0 10px #f4d47c, 0 0 20px #c69c4a;
    }


    to {
        text-shadow: 0 0 30px #ffe8a0, 0 0 60px #c69c4a;
    }
}




/* Archive cards */


.wiki-card {
    position: relative;
    overflow: hidden;
    transition: transform .5s ease, box-shadow .5s ease;
}



    .wiki-card:hover {
        transform: translateY(-12px) scale(1.03);
        box-shadow: 0 20px 50px rgba(0,0,0,.35);
    }





/* Character cards */


.character-card {
    position: relative;
}



    .character-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( 120deg, transparent, rgba(244,212,124,.35), transparent );
        transform: translateX(-100%);
        transition: .8s;
    }



    .character-card:hover::before {
        transform: translateX(100%);
    }





/* Button magic */


.button,
.small-button {
    position: relative;
    overflow: hidden;
}



    .button::after,
    .small-button::after {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(255,255,255,.3);
        transition: .5s;
    }



    .button:hover::after,
    .small-button:hover::after {
        left: 100%;
    }


.particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: #f4d47c;
    opacity: .35;
    animation: floatUp linear infinite;
}

@keyframes floatUp {

    from {
        transform: translateY(100vh);
        opacity: 0;
    }

    20% {
        opacity: .5;
    }

    80% {
        opacity: .5;
    }

    to {
        transform: translateY(-150px);
        opacity: 0;
    }
}





@keyframes float {


    from {
        transform: translateY(100vh);
    }


    to {
        transform: translateY(-20vh);
    }
}

/*.hero {
    position: relative;
    overflow: hidden;
}


    .hero h1,
    .hero p,
    .hero .button {
        position: relative;
        z-index: 2;
    }*/

/* =================================
   NAVBAR MAGIC PARTICLES
================================= */




.particles2 {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}



    .particles2 span {
        position: absolute;
        bottom: -20px;
        width: 6px;
        height: 6px;
        background: #f4d47c;
        border-radius: 50%;
        opacity: .5;
        box-shadow: 0 0 10px #f4d47c, 0 0 20px #f4d47c;
        animation: navFloat 3s ease-out infinite;
    }


        /* individual particles */

        .particles2 span:nth-child(1) {
            left: 10%;
            animation-delay: 0s;
            width: 4px;
            height: 4px;
        }


        .particles2 span:nth-child(2) {
            left: 35%;
            animation-delay: 2s;
            width: 7px;
            height: 7px;
        }



        .particles2 span:nth-child(3) {
            left: 55%;
            animation-delay: 4s;
            width: 5px;
            height: 5px;
        }



        .particles2 span:nth-child(4) {
            left: 75%;
            animation-delay: 1s;
            width: 8px;
            height: 8px;
        }



        .particles2 span:nth-child(5) {
            left: 90%;
            animation-delay: 3s;
            width: 4px;
            height: 4px;
        }


        .particles2 span:nth-child(6) {
            left: 90%;
            animation-delay: 3s;
            width: 4px;
            height: 1.1px;
        }

        .particles2 span:nth-child(7) {
            left: 90%;
            animation-delay: 2s;
            width: 4px;
            height: 4px;
        }

@keyframes navFloat {


    0% {
        transform: translateY(20px) scale(.5);
        opacity: 0;
    }


    20% {
        opacity: .8;
    }


    70% {
        opacity: .6;
    }


    100% {
        transform: translateY(-90px) scale(1.2);
        opacity: 0;
    }
}


/*Mucis Player*/

.music-note {
    font-size: 15px;
    background: #fff8dc;
    border: 3px solid #c69c4a;
    padding: 7px 7px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    cursor: pointer;
    margin-left: 25px;
    display: block;
    opacity: 1;
    transition: transform .3s ease, box-shadow .3s ease;
    z-index: 9999;
    appearance: none;
    font-family: inherit;
    line-height: 1;
    color: inherit;
}

    .music-note:hover {
        transform: scale(1.15);
        box-shadow: 0 12px 30px rgba(0,0,0,.35);
    }


/* Keep logo + icon aligned */
.nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}








/* =========================================
   FULL PAGE PARTICLES
========================================= */

.page-particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}


.navbar {
    z-index: 1000;
}

/* =====================================
   UNDER CONSTRUCTION LABEL
===================================== */

.construction-label {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 340px;
    padding: 13px 18px;
    background: linear-gradient( 135deg, rgba(59,38,24,.96), rgba(107,71,37,.96) );
    border: 2px solid var(--gold);
    border-radius: 14px;
    color: #f8e9b0;
    box-shadow: 0 10px 30px rgba(0,0,0,.32);
    pointer-events: none;
    animation: construction-arrive .6s ease both;
}


.construction-icon {
    flex-shrink: 0;
    font-size: 30px;
}


.construction-label strong {
    display: block;
    margin-bottom: 2px;
    font-family: var(--title-font);
    font-size: 18px;
    letter-spacing: .5px;
    color: var(--gold);
}


.construction-label small {
    display: block;
    font-size: 15px;
    line-height: 1.4;
    color: #fff4d0;
}

#site-construction-label {
    position: fixed !important;
    right: 22px;
    bottom: 22px;
    left: auto;
    top: auto;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 340px;
    padding: 13px 18px;
    background: linear-gradient( 135deg, rgba(59,38,24,.98), rgba(107,71,37,.98) );
    border: 2px solid var(--gold);
    border-radius: 14px;
    color: #f8e9b0;
    box-shadow: 0 10px 30px rgba(0,0,0,.45);
    pointer-events: none;
}

@media(max-width: 600px) {

    #site-construction-label {
        right: 10px;
        bottom: 10px;
        left: 10px;
        max-width: none;
    }
}


@keyframes construction-arrive {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =====================================
   CONSTRUCTION TABLET
===================================== */

@media(max-width: 900px) {

    .construction-label {
        right: 16px;
        bottom: 16px;
        max-width: 300px;
    }
}


/* =====================================
   CONSTRUCTION PHONE
===================================== */

@media(max-width: 600px) {

    .construction-label {
        right: 10px;
        bottom: 10px;
        left: 10px;
        max-width: none;
        padding: 11px 14px;
    }


    .construction-icon {
        font-size: 22px;
    }


    .construction-label strong {
        font-size: 13px;
    }


    .construction-label small {
        font-size: 11px;
    }
}


/* =====================================
   REDUCED MOTION
===================================== */

@media(prefers-reduced-motion: reduce) {

    .construction-label {
        animation: none;
    }


    .hero-content {
        opacity: 1;
        animation: none;
    }


    .hero-video {
        animation: none;
    }
}

/* =========================================
   SECTION PARTICLES
========================================= */

.archive-section,
.featured-section,
.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.section-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

    .section-particles ~ * {
        position: relative;
        z-index: 1;
    }

    .section-particles span {
        position: absolute;
        bottom: -20px;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #f4d47c;
        opacity: .6;
        box-shadow: 0 0 10px #f4d47c, 0 0 22px rgba(244,212,124,.8);
        animation: sectionParticleFloat 10s linear infinite;
    }

        .section-particles span:nth-child(1) {
            left: 5%;
            width: 5px;
            height: 5px;
            animation-delay: 0s;
            animation-duration: 10s;
        }

        .section-particles span:nth-child(2) {
            left: 15%;
            width: 8px;
            height: 8px;
            animation-delay: 3s;
            animation-duration: 12s;
        }

        .section-particles span:nth-child(3) {
            left: 25%;
            width: 6px;
            height: 6px;
            animation-delay: 6s;
            animation-duration: 9s;
        }

        .section-particles span:nth-child(4) {
            left: 35%;
            width: 10px;
            height: 10px;
            animation-delay: 1s;
            animation-duration: 13s;
        }

        .section-particles span:nth-child(5) {
            left: 45%;
            width: 5px;
            height: 5px;
            animation-delay: 5s;
            animation-duration: 11s;
        }

        .section-particles span:nth-child(6) {
            left: 55%;
            width: 8px;
            height: 8px;
            animation-delay: 2s;
            animation-duration: 14s;
        }

        .section-particles span:nth-child(7) {
            left: 65%;
            width: 6px;
            height: 6px;
            animation-delay: 7s;
            animation-duration: 10s;
        }

        .section-particles span:nth-child(8) {
            left: 75%;
            width: 9px;
            height: 9px;
            animation-delay: 4s;
            animation-duration: 12s;
        }

        .section-particles span:nth-child(9) {
            left: 85%;
            width: 5px;
            height: 5px;
            animation-delay: 8s;
            animation-duration: 9s;
        }

        .section-particles span:nth-child(10) {
            left: 95%;
            width: 8px;
            height: 8px;
            animation-delay: 2s;
            animation-duration: 13s;
        }

@keyframes sectionParticleFloat {

    0% {
        transform: translateY(30px) scale(.5);
        opacity: 0;
    }

    15% {
        opacity: .55;
    }

    80% {
        opacity: .4;
    }

    100% {
        transform: translateY(-110vh) scale(1.2);
        opacity: 0;
    }
}