       * { margin: 0; padding: 0; box-sizing: border-box; }
        :root {
            --card-bg: rgba(22, 27, 34, 0.7);
            --primary-pink: #db2777;
            --text-main: #ffffff;
            --text-dim: #94a3b8;
            --border-color: rgba(30, 41, 59, 0.5);
        }
        body {
            color: var(--text-main);
            font-family: 'Inter', sans-serif;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            overflow: hidden;
            background-color: black;
        }

  
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.social-icon {
    position: relative; 
    width: 32px;
    height: 32px;
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon:hover {
    opacity: 1;
    transform: translateY(-3px);
    filter: drop-shadow(0 0 8px var(--primary-pink));
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.social-icon::after {
    content: attr(data-tooltip); 
    position: absolute;
    bottom: -130%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    z-index: 100;
}


.social-icon::before {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}


.social-icon:hover::after, 
.social-icon:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
        #bg-video {
            position: fixed; right: 0; bottom: 0;
            min-width: 100%; min-height: 100%;
            z-index: -2; object-fit: cover;
        }
        .overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
            z-index: -1;
        }
        header { position: absolute; top: 0; width: 100%; padding: 40px; display: flex; justify-content: space-between; max-width: 1200px; z-index: 10; }
        .logo { font-size: 1.5rem; font-weight: 800; }
        .logo span { color: var(--primary-pink); text-decoration: underline; }
        main { text-align: center; max-width: 800px; z-index: 10; }
        .subtitle { color: var(--primary-pink); font-size: 0.7rem; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 10px; display: block; }
        h1 { font-size: 4rem; line-height: 0.9; font-weight: 900; margin-bottom: 30px; }
        h1 span { color: var(--primary-pink); }

        #timer-display {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-pink);
    text-shadow: 0 0 10px rgba(219, 39, 119, 0.5);
    margin: 10px 0;
}

        .preview-flex { 
            display: grid; 
            grid-template-columns: repeat(3, 1fr); 
            gap: 20px; 
            justify-items: center; 
            margin-bottom: 40px; 
            max-height: 70vh; 
            overflow-y: auto;
            padding: 10px;
        }

        @media (max-width: 600px) { .preview-flex { grid-template-columns: 1fr; } }

        .char-card { background: var(--card-bg); backdrop-filter: blur(10px); border: 1px solid var(--border-color); padding: 12px; border-radius: 12px; display: flex; align-items: center; gap: 12px; width: 240px; text-align: left; cursor: pointer; transition: 0.3s; }
        .char-card:hover { transform: translateY(-5px); border-color: var(--primary-pink); }
        .char-img { width: 48px; height: 48px; background: #334155; border-radius: 8px; overflow: hidden; border: 1px solid rgba(219, 39, 119, 0.4); }
        .char-img img { width: 100%; height: 100%; object-fit: cover; }
        .btn-primary { background: var(--primary-pink); color: white; border: none; padding: 18px 45px; border-radius: 50px; font-weight: 700; cursor: pointer; }
        .hidden { display: none !important; }
        .arena-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 50px; width: 100%; }
        .hp-bar { width: 100%; height: 15px; background: #1e293b; border-radius: 10px; overflow: hidden; margin-top: 10px; }
        .hp-fill { height: 100%; background: #10b981; transition: width 0.5s ease; width: 100%; }
        
        /* SKILL BUTTONS & ULT */
        .skill-btn { background: rgba(255,255,255,0.1); border: 1px solid var(--primary-pink); color: white; padding: 10px 20px; cursor: pointer; border-radius: 8px; margin: 5px; transition: 0.2s; font-weight: bold; }
        .skill-btn:disabled { opacity: 0.3; cursor: not-allowed; border-color: gray; }
        
        .ult-btn {
            background: linear-gradient(45deg, #7000ff, #db2777) !important;
            border: 2px solid #fff !important;
            box-shadow: 0 0 15px rgba(219, 39, 119, 0.6);
        }
        .ult-ready { animation: pulse 1s infinite; }
        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); box-shadow: 0 0 25px #db2777; }
            100% { transform: scale(1); }
        }

        
        @keyframes shake {
            0%, 100% { transform: translate(0,0); }
            20% { transform: translate(-5px, 0); }
            40% { transform: translate(5px, 0); }
            60% { transform: translate(-5px, 0); }
            80% { transform: translate(5px, 0); }
        }
        .shake { animation: shake 0.4s; }


.btn-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 20px;
}


.hover-gif {
    position: absolute;
    bottom: 80%; 
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 80px; 
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 15;
}


.btn-wrapper:hover .hover-gif {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}


.btn-primary {
    position: relative;
    z-index: 10;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 30px rgba(219, 39, 119, 0.2);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: var(--primary-pink);
}


.input-field {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: 0.3s;
}

.input-field:focus {
    border-color: var(--primary-pink);
    background: rgba(255, 255, 255, 0.1);
}


.user-info-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 15px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.user-avatar-mini {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--primary-pink);
    object-fit: cover;
    cursor: pointer;
}

.user-stats {
    font-size: 0.8rem;
    font-weight: 700;
}

.user-stats span {
    color: var(--primary-pink);
}


.ranking-list {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
    gap: 15px;
}

.ranking-item:last-child { border: none; }

.rank-number {
    font-weight: 900;
    color: var(--text-dim);
    width: 25px;
}

.ranking-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.ranking-name {
    flex: 1;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-pts {
    color: var(--primary-pink);
    font-weight: 800;
}


.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid var(--primary-pink);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: var(--primary-pink);
}


.btn-ranking-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-pink);
    border: none;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-ranking-toggle img {
    width: 30px;
    filter: brightness(0) invert(1);
}


.player-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.p-avatar-frame {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-pink);
    overflow: hidden;
}

.p-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-info-text {
    text-align: left;
}

.p-info-text .role {
    font-size: 0.65rem;
    color: var(--primary-pink);
    font-weight: 900;
    text-transform: uppercase;
}

.p-info-text .user-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
}


.result-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(15px);
    background: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.5s ease;
}

.result-card {
    background: var(--card-bg);
    border: 2px solid var(--primary-pink);
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 0 50px rgba(219, 39, 119, 0.4);
    max-width: 400px;
    width: 90%;
}

.result-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.win-text { color: #10b981; text-shadow: 0 0 20px rgba(16, 185, 129, 0.5); }
.lose-text { color: #ef4444; text-shadow: 0 0 20px rgba(239, 68, 68, 0.5); }

.result-points {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.result-points span {
    font-size: 2rem;
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}


#bg-video {
    transition: opacity 1s ease-in-out;
}


.arena-grid {
    max-width: 1000px;
    margin: 0 auto;
}


.ranking-list::-webkit-scrollbar { width: 5px; }
.ranking-list::-webkit-scrollbar-track { background: transparent; }
.ranking-list::-webkit-scrollbar-thumb { background: var(--primary-pink); border-radius: 10px; }

        .damage-flash { filter: brightness(2) contrast(2); transition: 0.2s; }
        .floating-damage { position: absolute; top: 20%; left: 50%; color: #ff4d4d; font-size: 3rem; font-weight: 900; text-shadow: 2px 2px 0px #000; animation: floatUp 0.8s forwards; z-index: 100; }
        @keyframes floatUp { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-50px); } }