* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    overflow: hidden;
    background: black;
    color: white;
    height: 100vh;
    width: 100vw;
}

body::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url("alta.png") center/cover no-repeat;
    z-index: -2;
}

.hero {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.9)),
        url("bgs.png") center/cover no-repeat;
    z-index: -1;
    transition: opacity 2.5s ease-in-out;
    pointer-events: none;
}

.server-info {
    position: absolute;
    top: 30px;
    left: 40px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-left: 3px solid #00f7ff;
    z-index: 5;
    transition: opacity 1s ease;
}

.divider { margin: 0 10px; color: #7b0000; }

.center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    text-align: center;
    width: 90%;
    z-index: 5;
    transition: all 1s ease;
}

.subtitle {
    opacity: .85;
    margin-bottom: 10px;
    color: rgb(63, 191, 255);
}

.title {
    font-size: 90px;
    letter-spacing: 6px;
    font-weight: 900;
    color: #7b0000;
    text-shadow:
        0 0 10px #ff0000,
        0 0 25px #f12c2c,
        0 0 60px #f51313;
    animation: 
        titlePop 0.8s cubic-bezier(0.17, 0.67, 0.83, 0.67) forwards,
        titleFloat 7s ease-in-out infinite 0.8s; 
    display: inline-block;
    transform-origin: center;
}

@keyframes titlePop {
    0% { transform: scale(0.5); opacity: 0; filter: blur(10px); }
    70% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; filter: blur(0); }
}

@keyframes titleFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(4px, -8px) rotate(0.5deg); }
    66% { transform: translate(-4px, -4px) rotate(-0.5deg); }
}

.rules {
    margin-top: 15px;
    font-size: 14px;
    opacity: .7;
    color: rgb(255, 255, 255);
}

.credits {
    position: absolute;
    top: 30px;
    right: 40px;
    text-align: right;
    border-right: 3px solid #7b0000;
    padding-right: 15px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    font-family: 'Courier New', Courier, monospace;
    z-index: 5;
    transition: opacity 1s ease;
}

.credit-label {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
}

.credit-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: rgb(108, 39, 177);
    text-transform: uppercase;
}

.loading-wrapper {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    z-index: 10;
    transition: opacity 1s ease;
    z-index: 999;
}

.loading-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
    margin-bottom: 5px;
    height: 50px;
}

.music-info, .status, .logo-box { flex: 1; }

.status {
    text-align: center;
    font-size: 14px;
    color: #e7e700;
    opacity: 0.9;
    padding-bottom: 5px;
}

.song-details {
    font-size: 0.9rem;
    color: #15ff00;
    text-shadow: 0 0 5px rgba(227, 255, 48, 0.5);
}

.logo-box { text-align: right; }

.mini-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 5px #ff0000);
    animation: forceFloat 5s ease-in-out infinite;
    display: block;
    margin-left: auto;
}

@keyframes forceFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-3px, 4px); }
    50% { transform: translate(2px, -5px); }
    75% { transform: translate(-1px, 2px); }
}

.bar {
    height: 12px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00f7ff, #ff3333);
    transition: width 1s ease;
}

.finished .hero {
    opacity: 0;
}

.finished .center {
    opacity: 0;
    transform: translate(-50%, -60%);
    pointer-events: none;
}

.finished .center,
.finished .loading-wrapper,
.finished .server-info,
.finished .credits {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.5s ease, transform 1.5s ease;
    pointer-events: none;
}