* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    overflow: hidden;
    background: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    height: 100vh;
    width: 100vw;
}

.bg-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background: url(/images/duel.png);
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    clip-path: inset(0 0 0 0);
    z-index: 1;
}

.bg-layer.active {
    z-index: 2;
    animation: wipeIn 1.5s ease-in-out forwards;
}

.bg-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8));
    z-index: 0;
}

.bg-layer.previous {
    clip-path: inset(0 0 0 0%);
    z-index: 1;
}

.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 rgb(0, 247, 255);
    z-index: 5;
    transition: opacity 1s ease;
}

.divider { margin: 0 10px; 
    color: rgb(123, 0, 0); 
}

.center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    text-align: center;
    width: 90%;
    z-index: 5;
    transition: all 1s ease;
}

.subtitle {
    margin-bottom: 10px;
    color: rgba(63, 191, 255, 0.758);
}

.title {
    font-size: 90px;
    letter-spacing: 6px;
    font-weight: 900;
    color: rgb(123, 0, 0);
    text-shadow: 0 0 10px rgb(255, 0, 0), 0 0 25px rgb(241, 44, 44), 0 0 60px rgb(245, 19, 19);
    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;
}

.rules {
    margin-top: 15px;
    font-size: 14px;
    color: rgb(255, 255, 255);
}

.tips-container {
    position: absolute;
    bottom: 300px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 25px;
    background: rgba(0, 247, 255, 0.05);
    border-top: 1px solid rgba(0, 247, 255, 0.2);
    border-bottom: 1px solid rgba(0, 247, 255, 0.2);
    width: auto;
    min-width: 500px;
    text-align: center;
    z-index: 5;
    transition: opacity 1s ease;
}

.tip-label {
    color: rgb(0, 247, 255);
    font-weight: bold;
    margin-right: 10px;
    text-shadow: 0 0 8px rgba(0, 247, 255, 0.6);
}

#random-tip {
    font-size: 15px;
    color: rgb(224, 224, 224);
    font-style: italic;
    letter-spacing: 0.5px;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

.credits {
    position: absolute;
    top: 30px;
    right: 40px;
    text-align: right;
    border-right: 3px solid rgb(123, 0, 0);
    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-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.founders-row, .dev-row {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.flag {
    width: 30px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
    margin: 0 auto;
}

.credit-label-f, .credit-label-d {
    margin: 0;
    font-size: 11px;
    letter-spacing: 2px;
    color: rgb(255, 255, 255);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 10px;
    margin-bottom: 15px;
}

.credit-label-f {
  text-align: left;
}

.credit-group {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 10px;
}

span {
    padding: 5px 10px;
}

.vertical-divider {
    width: 3px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 15px;
    align-self: center;
    display: inline-block;
}

#lsdev1 {
    color: rgb(0, 0, 0);
    background: linear-gradient(360deg,rgba(31, 31, 31, 1) 0%, rgba(207, 181, 59, 1) 50%, rgba(31, 31, 31, 1) 100%);
    border: 1px solid rgb(255, 255, 255);
    border-radius: 5px;
}

#lsdev2 {
    color: rgb(187, 0, 0);
    background: linear-gradient(0deg, rgba(100, 0, 122, 1) 1%, rgba(0, 0, 0, 1) 100%);
    border: 1px solid rgb(0, 0, 0);
    border-radius: 5px;
}

#lsdev3 {
    color: rgb(216, 183, 64);
    background: radial-gradient(circle, rgba(54, 76, 186, 1) 0%, rgba(252, 70, 107, 1) 100%);
    border: 1px solid rgb(216, 183, 64);
    border-radius: 5px;
}

#lsdev4 {
    color: rgb(0, 128, 255);
    background: linear-gradient(241deg,rgba(199, 199, 199, 1) 0%, rgba(207, 181, 59, 1) 50%, rgba(199, 199, 199, 1) 100%);
    border: 1px solid rgb(0, 128, 255);
    border-radius: 5px;
}

#founder1 {
    color: rgb(0, 0, 0);
    background: linear-gradient(90deg,rgba(255, 0, 0, 1) 0%, rgba(255, 255, 255, 1) 50%, rgba(0, 0, 255, 1) 100%);
    border: 1px solid rgb(0, 0, 0);
    border-radius: 5px;
}

#founder2 {
    color: rgb(255, 255, 255);
    background: radial-gradient(circle, rgba(83, 0, 138, 1) 0%, rgba(42, 0, 77, 1) 100%);
    border: 1px solid rgb(0, 0, 0);
    border-radius: 5px;
}

#founder3 {
    color: rgb(0, 213, 255);
    background: linear-gradient(187deg, rgba(0, 81, 255, 1) 0%, rgba(0, 0, 0, 1) 50%, rgba(0, 59, 222, 1) 100%);
    border: 1px solid rgb(255, 255, 255);
    border-radius: 5px;
}

.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;
}

.logo-box { 
    flex: 0 0 30%;
    text-align: right;
}

.status {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: rgba(231, 231, 0, 0.904);
    padding-bottom: 5px;
}

.song-details {
    font-size: 14px;
    color: rgb(21, 255, 0);
    text-shadow: 0 0 5px rgba(227, 255, 48, 0.5);
}

.music-container {
    flex: 0 0 30%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    margin-bottom: 50px;
}

.music-info {
    display: inline-block;
    width: auto; 
    min-width: 200px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-left: 3px solid rgb(0, 247, 255);
    font-family: 'Courier New', Courier, monospace;
    transition: opacity 1s ease;
}

.mini-logo {
    height: 70px;
    width: auto;
    animation: forceFloat 5s ease-in-out infinite;
    display: block;
    margin-left: auto;
    margin-right: -5px;
    margin-bottom: 50px;
    filter: drop-shadow(-10px 0 10px rgb(0, 0, 255)) drop-shadow(10px 0 10px rgb(255, 0, 0));
    animation: holo-flicker 10s linear infinite, forceFloat 5s ease-in-out infinite;
}

.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, rgb(0, 247, 255), rgb(255, 51, 51));
    transition: width 1s ease;
}

@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); }
}

@keyframes holo-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { 
        opacity: 1; 
        filter: drop-shadow(-10px 0 10px rgb(0, 0, 255)) drop-shadow(10px 0 10px rgb(255, 0, 0)) brightness(1);
    }
    20%, 24%, 55% { 
        opacity: 0.3; 
        filter: drop-shadow(-2px 0 2px rgb(0, 0, 255)) brightness(0.5);
    }
    22% { 
        opacity: 1; 
        filter: drop-shadow(-15px 0 20px rgb(0, 209, 255)) brightness(2);
    }
}

@keyframes forceFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-3px, 4px); }
    50% { transform: translate(2px, -5px); }
    75% { transform: translate(-1px, 2px); }
}

@keyframes wipeIn {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0% 0 0); }
}