:root {
    --sunshine-yellow: #ffde59;
    --neon-pink: #ff66c4;
    --cyan: #5ce1e6;
    --lime-green: #c8e6c9;
    --white: #ffffff;
    --font-title: 'Ma Shan Zheng', cursive;
    --font-text: 'Zhi Mang Xing', cursive;
    --font-ui: 'Nunito', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    min-height: 100vh;
    overflow: hidden;
    background-color: var(--cyan);
    font-family: var(--font-ui);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" style="font-size: 24px"><text y="24">✨</text></svg>'), auto;
}

/* Background Sunburst */
.sunburst {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200vw;
    height: 200vw;
    background: repeating-conic-gradient(transparent 0 15deg,
            rgba(255, 222, 89, 0.4) 15deg 30deg,
            transparent 30deg 45deg,
            rgba(255, 102, 196, 0.2) 45deg 60deg);
    transform: translate(-50%, -50%);
    animation: spin-sun 60s linear infinite;
    z-index: 0;
}

@keyframes spin-sun {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Rainbow Track */
.rainbow-track {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30vh;
    background: linear-gradient(to bottom,
            transparent 0%,
            var(--neon-pink) 20%,
            var(--sunshine-yellow) 40%,
            var(--lime-green) 60%,
            var(--cyan) 80%,
            transparent 100%);
    opacity: 0.8;
    filter: blur(10px);
    animation: rainbow-flow 5s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes rainbow-flow {
    0% {
        transform: translateY(10px) scaleY(0.9);
    }

    100% {
        transform: translateY(-10px) scaleY(1.1);
    }
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 10;
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.5);
    border-radius: 40px;
    padding: 2rem 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), inset 0 0 0 5px rgba(255, 255, 255, 0.2);
    max-width: 90vw;
    animation: float-container 6s ease-in-out infinite;
}

@keyframes float-container {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Typography */
.main-title {
    font-family: var(--font-title);
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--white);
    text-shadow:
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-pink),
        4px 4px 0px rgba(255, 0, 127, 0.5);
    -webkit-text-stroke: 2px var(--neon-pink);
    letter-spacing: 5px;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.subtitle {
    font-family: var(--font-text);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--sunshine-yellow);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
    -webkit-text-stroke: 1px #ff8c00;
    margin: 1.5rem 0;
}

/* Pony */
.pony-stage {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
}

.pony {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 10px rgba(0, 0, 0, 0.2));
    animation: gallop-pony 0.6s cubic-bezier(0.4, 0.0, 0.2, 1) infinite alternate;
}

@keyframes gallop-pony {
    0% {
        transform: translateY(0px) rotate(-5deg);
    }

    100% {
        transform: translateY(-30px) rotate(5deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Magic Button */
.magic-btn {
    font-family: var(--font-ui);
    font-weight: 900;
    font-size: 1.5rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--neon-pink), var(--sunshine-yellow));
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 102, 196, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.magic-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 25px rgba(255, 102, 196, 0.6);
}

.magic-btn:active {
    transform: scale(0.95);
}

/* Floating Lyrics */
#lyrics-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
}

.floating-lyric {
    position: absolute;
    font-family: var(--font-title);
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--white);
    font-weight: bold;
    opacity: 0;
    animation: float-up-fade 2.5s forwards ease-out;
}

@keyframes float-up-fade {
    0% {
        transform: translateY(50px) scale(0.8) rotate(-10deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
        transform: translateY(0) scale(1.2) rotate(10deg);
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) scale(1) rotate(0deg);
        opacity: 0;
    }
}