html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: contain;
    background-color: #000000;
}
#mobile-joystick-zone {
    position: fixed;
    bottom: 120px;
    left: 20px;
    width: 140px;
    height: 140px;
    background: rgba(15, 23, 42, 0.4);
    border: 2px solid rgba(0, 240, 255, 0.3);
    border-radius: 50%;
    z-index: 999;
    display: none;
    touch-action: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

#mobile-joystick-knob {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(0,240,255,0.8), rgba(0,100,255,0.9));
    border-radius: 50%;
    box-shadow: 0 0 15px #00f0ff;
    pointer-events: none;
    transition: transform 0.1s;
}
canvas {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
}
body, html { margin: 0; padding: 0; overflow: hidden; background-color: #1e1e24; color: white; font-family: 'Kanit', 'Plus Jakarta Sans', sans-serif; }
canvas { display: block; }

#leaderboard { position: absolute; top: 20px; right: 20px; background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(10, 15, 30, 0.95) 100%); border: 1px solid #b48529; padding: 16px 20px; border-radius: 16px; width: 260px; pointer-events: none; box-shadow: 0 10px 40px rgba(0,0,0,0.8), inset 0 2px 10px rgba(255,215,0,0.05); backdrop-filter: blur(8px); }
#leaderboard h3 { margin: 0 0 12px 0; text-align: left; color: #FFD700; text-transform: uppercase; letter-spacing: 1px; font-size: 15px; font-weight: 900; border-bottom: 1px solid rgba(180, 133, 41, 0.3); padding-bottom: 8px; }
#leaderboard-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
#leaderboard-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: 14px; font-weight: 600; background: rgba(255,255,255,0.03); border-radius: 8px; border: 1px solid rgba(255,255,255,0.02); transition: all 0.2s; color: #cbd5e1; }
#leaderboard-list li.me { background: rgba(76, 175, 80, 0.15); border-color: rgba(76, 175, 80, 0.4); color: #4ade80; }
#leaderboard-list li:first-child { background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05)); border-color: rgba(255, 215, 0, 0.4); color: #FFD700; font-size: 15px; }
#leaderboard-list li .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
#leaderboard-list li .score { font-family: monospace; font-weight: bold; opacity: 0.9; }

#perf-monitor {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.4);
    padding: 8px 16px;
    border-radius: 12px;
    display: none;
    flex-direction: row;
    gap: 20px;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    box-sizing: border-box;
}

#perf-fps-container,
#perf-ping-container {
    display: none;
    flex-direction: column;
    align-items: center;
}

.perf-label {
    font-size: 10px;
    color: #94a3b8;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

#perf-fps {
    font-size: 16px;
    font-weight: 900;
    color: #00f0ff;
    font-family: monospace;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

#perf-separator {
    display: none;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
}

#perf-ping-val {
    font-size: 16px;
    font-weight: 900;
    color: #00f0ff;
    font-family: monospace;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.perf-unit {
    font-size: 10px;
    color: #94a3b8;
    margin-left: 2px;
    font-weight: normal;
    text-shadow: none;
}


#brand-footer:hover { color: #FFC107 !important; text-shadow: 0 0 10px rgba(255, 193, 7, 0.5); }


.mode-card { transition: 0.3s; }
.mode-card:hover { transform: translateY(-10px); }
#mode-deathmatch:hover { box-shadow: 0 15px 30px rgba(244, 67, 54, 0.6) !important; border-color: #FF5252 !important; }
#mode-deathmatch:hover h2 { color: #FF5252 !important; text-shadow: 0 0 10px rgba(255, 82, 82, 0.8); }
#mode-normal:hover { box-shadow: 0 15px 30px rgba(33, 150, 243, 0.6) !important; border-color: #64B5F6 !important; }
#mode-normal:hover h2 { color: #64B5F6 !important; text-shadow: 0 0 10px rgba(33, 150, 243, 0.8); }


#skill-bar {
    position: absolute;
    bottom: 60px; 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 50;
}
.skill-slot {
    width: 60px;
    height: 60px;
    background: rgba(20, 20, 30, 0.9);
    border: 2px solid #555;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}
.skill-slot:hover { border-color: #FFC107; transform: translateY(-5px); }
.skill-slot .key {
    position: absolute;
    top: -10px;
    left: -10px;
    background: #FFC107;
    color: #000;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 14px;
}
.skill-slot .icon { font-size: 30px; }


.cooldown-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%; 
    background: rgba(0, 0, 0, 0.75);
    border-radius: 6px;
}


.skill-slot::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #FFC107;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    width: 220px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    border: 1px solid #444;
}
.skill-slot:hover::before { opacity: 1; }


#xp-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    text-align: center;
    z-index: 50;
    display: none;
}
#xp-bar {
    width: 100%;
    height: 12px;
    background: rgba(0,0,0,0.8);
    border: 2px solid #444;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
#xp-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #FFC107, #FF9800);
    transition: width 0.3s ease-out;
}
#xp-text {
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 2px 4px #000;
    margin-top: 5px;
    letter-spacing: 1px;
}


.emote-slot {
    width: 45px; height: 45px; background: rgba(20,20,30,0.8); border: 2px solid #555;
    border-radius: 8px; position: relative; display: flex; align-items: center; justify-content: center;
    font-size: 24px; cursor: pointer; transition: 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    user-select: none;
}
.emote-slot:hover { border-color: #FFC107; transform: scale(1.1) translateX(-5px); }
.emote-slot .key {
    position: absolute; top: -6px; left: -6px; background: #FFC107; color: #000;
    font-size: 11px; font-weight: bold; padding: 2px 5px; border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}


.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); display: none; justify-content: center; align-items: center; z-index: 1000;
}
.modal-box {
    background: #161b22; border: 1px solid #30363d; border-radius: 12px; padding: 30px;
    width: 400px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); text-align: center; color: white;
}
.modal-box h2 { color: #58a6ff; margin-top: 0; margin-bottom: 20px; border-bottom: 1px solid #30363d; padding-bottom: 10px; }
.modal-input { width: 90%; padding: 12px; margin-bottom: 15px; border-radius: 8px; border: 1px solid #333; background: #0d1117; color: white; font-size: 16px; outline: none; }
.modal-input:focus { border-color: #58a6ff; }
.modal-btn { width: 95%; padding: 12px; background: #238636; color: white; font-weight: bold; font-size: 16px; border: none; border-radius: 8px; cursor: pointer; margin-bottom: 10px; transition: 0.2s; }
.modal-btn:hover { background: #2ea043; }
.modal-close { background: transparent; border: 1px solid #F44336; color: #F44336; }
.modal-close:hover { background: #F44336; color: white; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; text-align: left; }
.stat-box { background: #21262d; padding: 15px; border-radius: 8px; border: 1px solid #30363d; }
.stat-title { font-size: 12px; color: #8b949e; text-transform: uppercase; }
.stat-value { font-size: 22px; color: #FFD700; font-weight: bold; margin-top: 5px; }

@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700;1,900&family=Plus+Jakarta+Sans:wght@500;600;700;800;900&display=swap');


.evo-layout {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #050508;
    display: flex; flex-direction: row; 
    z-index: 100; font-family: 'Kanit', 'Plus Jakarta Sans', sans-serif; overflow: hidden;
    color: #d4af37;
}


.evo-bg {
    position: absolute; top:0; left:0; width:100%; height:100%; z-index: -1;
    background-color: #0b0f19;
    background-image: 
        radial-gradient(circle at center, rgba(0, 240, 255, 0.05) 0%, rgba(11, 15, 25, 1) 100%),
        linear-gradient(30deg, rgba(255,255,255,0.01) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.01) 87.5%, rgba(255,255,255,0.01)),
        linear-gradient(150deg, rgba(255,255,255,0.01) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.01) 87.5%, rgba(255,255,255,0.01)),
        linear-gradient(30deg, rgba(255,255,255,0.01) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.01) 87.5%, rgba(255,255,255,0.01)),
        linear-gradient(150deg, rgba(255,255,255,0.01) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.01) 87.5%, rgba(255,255,255,0.01)),
        linear-gradient(60deg, rgba(255,255,255,0.01) 25%, transparent 25.5%, transparent 75%, rgba(255,255,255,0.01) 75%, rgba(255,255,255,0.01)),
        linear-gradient(60deg, rgba(255,255,255,0.01) 25%, transparent 25.5%, transparent 75%, rgba(255,255,255,0.01) 75%, rgba(255,255,255,0.01));
    background-size: 100% 100%, 80px 140px, 80px 140px, 80px 140px, 80px 140px, 80px 140px, 80px 140px;
    background-position: 0 0, 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    animation: bgFloat 60s linear infinite;
}
@keyframes bgFloat {
    0% { background-position: center, 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px; }
    100% { background-position: center, 0 140px, 0 140px, 40px 210px, 40px 210px, 0 140px, 40px 210px; }
}


.evo-left-bar {
    width: 180px; 
    display: flex; flex-direction: column; justify-content: center; z-index: 2; 
    margin: 20px 0 20px 20px; height: calc(100% - 40px);
    overflow-y: auto; overflow-x: hidden; position: relative; gap: 15px;
}

.evo-tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 15px 5px; cursor: pointer; color: #8fa3c0; position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); text-decoration: none;
    background: linear-gradient(180deg, #1e293b, #0f172a);
    border-radius: 25px; border: 2px solid #334155;
    box-shadow: 0 8px 15px rgba(0,0,0,0.5), inset 0 2px 5px rgba(255,255,255,0.05);
}

.evo-tab:hover, .evo-tab.active { 
    background: linear-gradient(180deg, #0ea5e9, #0284c7);
    border-color: #38bdf8;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6), inset 0 2px 10px rgba(255,255,255,0.4);
    color: #ffffff;
}
.evo-tab .icon { 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    filter: drop-shadow(0px 3px 3px rgba(0,0,0,0.5));
}
.evo-tab:hover .icon, .evo-tab.active .icon { 
    transform: scale(1.15) translateY(-2px);
    filter: drop-shadow(0px 5px 8px rgba(0,0,0,0.6));
}
.evo-tab .text { 
    font-size: 16px; font-weight: 900; text-align: center; margin-top: 8px;
    font-family: 'Segoe UI', Tahoma, sans-serif; letter-spacing: 1px;
    text-shadow: 1px 1px 2px #000;
}
.evo-tab .sub-text { display: none; }


.evo-center { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 2; position: relative; }
.evo-panel { box-sizing: border-box; min-width: 0; min-height: 0; }
#evo-panel-guide { overflow: hidden; }
#evo-panel-guide iframe { display: block; flex: 1 1 auto; min-height: 0; height: auto !important; }
.guide-panel { overflow: hidden; }
.guide-title { color: #d4af37; text-align: center; font-family: 'Kanit', 'Plus Jakarta Sans', sans-serif; margin: 0 0 15px; letter-spacing: 2px; text-shadow: 0 2px 5px #000; flex: 0 0 auto; }
.guide-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 5px 12px 24px; color: #cbd5e1; line-height: 1.6; }
.guide-content p { margin: 0 0 18px; }
.guide-section { background: rgba(15, 23, 42, 0.7); border: 1px solid rgba(0, 240, 255, 0.15); border-radius: 12px; padding: 16px; margin: 14px 0; }
.guide-section h3 { color: #38bdf8; margin: 0 0 8px; font-size: 18px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.guide-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 125px; padding: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; text-align: center; }
.guide-card img { width: 58px; height: 58px; object-fit: contain; }
.guide-card strong { color: #f8fafc; font-size: 13px; }
.guide-card span { color: #94a3b8; font-size: 11px; }


@media (max-width: 1100px) {
    #evo-panel-profile > div:first-of-type {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 14px 18px !important;
        margin-bottom: 15px !important;
    }
    #evo-panel-profile > div:first-of-type > div:first-child {
        flex-direction: row !important;
        align-items: center !important;
        gap: 14px !important;
        width: auto !important;
    }
    #evo-panel-profile > div:first-of-type > div:first-child > div:last-child {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        width: auto !important;
    }
    #prof-username {
        font-size: 18px !important;
    }
    #prof-xp-text {
        text-align: right !important;
    }
    #do-logout-btn {
        width: auto !important;
        min-width: 100px !important;
        height: 38px !important;
        margin: 0 !important;
        padding: 0 16px !important;
        justify-content: center !important;
        align-self: center !important;
    }
    #evo-panel-profile > h3 {
        text-align: center !important;
        font-size: 16px !important;
        margin-bottom: 15px !important;
    }
    #evo-panel-profile > div:last-of-type,
    #achievements-container {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important;
        gap: 10px !important;
    }
    #evo-panel-profile > div:last-of-type > div,
    #achievements-container > div {
        padding: 10px 6px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
}
.shop-tab-content { display: block; animation: shopFade 0.25s ease-out; }
@keyframes shopFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

#evo-panel-shop.market-panel { 
    width: 92% !important; 
    max-width: 1200px !important;
    padding: 24px 28px !important; 
    background: radial-gradient(circle at 50% 0%, #151d30 0%, #080d18 100%) !important; 
    border: 2px solid rgba(255, 215, 0, 0.35) !important; 
    border-radius: 20px !important; 
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important; 
    position: relative !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.shop-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.25);
    width: 100%;
}

.shop-header-spacer {
    min-width: 110px;
}

.shop-title-group {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shop-title-group h2 {
    color: #ffffff;
    font-size: 26px;
    margin: 0;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Kanit', 'Plus Jakarta Sans', sans-serif;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4), 0 2px 4px #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#brand-footer {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    text-decoration: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-weight: bold;
    transition: 0.3s;
    letter-spacing: 0.5px;
    text-align: center;
    z-index: 250;
    pointer-events: auto;
    white-space: nowrap;
}

#brand-footer:hover {
    color: #FFC107 !important;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

#main-menu[style*="none"] ~ #brand-footer {
    display: none !important;
}

#evo-mobile-top-bar {
    display: none;
}

.shop-wallet-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #2a2010 0%, #151008 100%);
    padding: 8px 20px;
    border-radius: 30px;
    border: 2px solid #ffd700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 215, 0, 0.4);
}

.shop-wallet-badge img {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
    animation: coinPulse 2.5s infinite ease-in-out;
}
@keyframes coinPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(5deg); }
}

#shop-coin-display {
    color: #ffd700;
    font-weight: 900;
    font-size: 20px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.9);
    letter-spacing: 1px;
    font-family: monospace, 'Segoe UI', sans-serif;
}

.shop-nav-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    background: rgba(10, 15, 26, 0.7);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    scrollbar-width: none;
}
.shop-nav-tabs::-webkit-scrollbar { display: none; }

.shop-tab-btn {
    flex: 1;
    min-width: 120px;
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    font-weight: 800;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: inherit;
    white-space: nowrap;
}

.shop-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.shop-tab-btn.active {
    color: #0b0f19;
    background: linear-gradient(180deg, #ffd700 0%, #f59e0b 100%);
    border-color: #fef08a;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4), inset 0 1px 0 #fff;
    font-weight: 900;
}

.shop-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0 16px 0;
}

.shop-category-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 1.5px solid rgba(255, 215, 0, 0.4);
    color: #ffd700;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 1px 2px #000;
}

.shop-category-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.3) 0%, transparent 100%);
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
}

.shop-card {
    background: linear-gradient(180deg, rgba(24, 32, 50, 0.85) 0%, rgba(12, 17, 28, 0.95) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px 14px 14px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    transition: all 0.25s ease-out;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
    overflow: hidden;
}

.shop-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.2);
}

.shop-card-pedestal {
    width: 80px;
    height: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 6px 0 12px 0;
}

.shop-card-pedestal::after {
    content: '';
    position: absolute;
    bottom: -4px;
    width: 60px;
    height: 14px;
    background: radial-gradient(ellipse, rgba(0, 240, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.shop-card img {
    max-width: 68px;
    max-height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.6));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.shop-card:hover img {
    transform: scale(1.15) translateY(-3px);
}

.shop-card h3 {
    font-size: 13px;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px #000;
}

.shop-btn {
    width: 100%;
    padding: 9px 12px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease-out;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-sizing: border-box;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(180deg, #ffb703 0%, #fb8500 100%);
    color: #ffffff;
    border: 1.5px solid #ffd166;
    box-shadow: 0 4px 0 #b35900, 0 6px 14px rgba(251, 133, 0, 0.35);
    text-shadow: 0 1px 2px #000;
}

.shop-btn:hover {
    filter: brightness(1.1);
}

.shop-btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #b35900, 0 2px 6px rgba(251, 133, 0, 0.35);
}

.shop-btn.equipped {
    background: linear-gradient(180deg, #10b981 0%, #059669 100%) !important;
    border-color: #34d399 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 0 #064e3b, 0 0 15px rgba(16, 185, 129, 0.4) !important;
    cursor: default !important;
}

.badge-new {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
    border: 1px solid #f87171;
    color: #fff;
    padding: 2px 7px;
    font-size: 9px;
    font-weight: 900;
    border-radius: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
}

#market-toast { 
    position: fixed; left: 50%; bottom: 24px; z-index: 1000; transform: translate(-50%, 20px); 
    opacity: 0; pointer-events: none; padding: 12px 24px; 
    border: 1.5px solid #10b981; border-radius: 12px; background: rgba(6, 78, 59, 0.95); 
    color: #6ee7b7; font-weight: 800; font-size: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(8px);
    transition: opacity 0.25s, transform 0.25s; 
}
#market-toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1100px) {
    .evo-left-bar { width: 76px; gap: 8px; margin: 8px 0 8px 6px; height: calc(100% - 16px); }
    .evo-right-bar { display: none; }
    .evo-tab { padding: 7px 2px; border-radius: 14px; }
    .evo-tab .icon { width: 42px; height: 42px; }
    .evo-tab .text { font-size: 10px; letter-spacing: 0; }
    #evo-panel-shop, #evo-panel-profile, #evo-panel-guide, #evo-panel-settings { width: 96% !important; padding: 18px !important; }
    #evo-panel-guide, #evo-panel-settings { height: 92% !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch !important; }
    .evo-input { width: 75% !important; padding: 10px 15px !important; font-size: 16px !important; }
    .evo-play-btn { padding: 12px 40px !important; font-size: 24px !important; margin-bottom: 15px !important; }
    .welcome-panel { padding: 15px !important; width: 85% !important; }
    .welcome-title { font-size: 20px !important; }
    .welcome-logo { width: 110px !important; height: 110px !important; aspect-ratio: 1 / 1 !important; object-fit: cover !important; }
    .evo-logo-container img { width: 120px !important; height: 120px !important; aspect-ratio: 1 / 1 !important; object-fit: cover !important; }
    .evo-bottom-buttons { flex-direction: column; align-items: center; gap: 10px; }
    #mode-info-container { flex-direction: column !important; padding: 15px !important; width: 75% !important; gap: 10px !important; text-align: center; }
    #change-mode-btn { width: 100%; justify-content: center; font-size: 13px !important; }
    #bottom-hud { width: 85% !important; padding: 10px !important; bottom: 10px !important; }
    #xp-container { width: 85% !important; bottom: 80px !important; }
    #skill-bar { gap: 10px !important; bottom: 110px !important; }
    .skill-slot { width: 45px !important; height: 45px !important; }
    .skill-slot .icon { font-size: 24px !important; }
    #leaderboard { width: 150px !important; padding: 10px !important; right: 10px !important; top: 10px !important; }
    #leaderboard-list li { font-size: 11px !important; padding: 5px 8px !important; }
    .mode-card-item { height: 80px !important; }
    .modal-box { width: 85% !important; padding: 20px !important; }
    #auth-modal .modal-box { padding: 0 !important; width: 90% !important; }
    #evo-panel-modes { flex-direction: column !important; height: auto !important; max-height: 90vh !important; }
    #evo-panel-modes > div:first-child { width: auto !important; border-right: none !important; border-bottom: 3px solid #b48529 !important; padding: 10px !important; }
    #mode-preview-banner-bg { height: 120px !important; }
    #mode-preview-title { font-size: 22px !important; padding: 10px 20px !important; }
    #modal-play-btn { font-size: 24px !important; padding: 8px 40px !important; }
    #match-timer-ui { top: 10px !important; min-width: 120px !important; padding: 8px 20px !important; }
    #match-time-text { font-size: 20px !important; }
    #auth-nav { top: 10px !important; right: 10px !important; gap: 8px !important; flex-direction: column !important; }
    #auth-nav button { padding: 5px 10px !important; font-size: 12px !important; }

    #perf-monitor {
        position: fixed !important;
        top: 88px !important;
        left: 15px !important;
        width: 70px !important;
        bottom: auto !important;
        right: auto !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 0 !important;
        gap: 4px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        pointer-events: none !important;
        z-index: 1000 !important;
        box-sizing: border-box !important;
    }
    #perf-fps-container,
    #perf-ping-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: baseline !important;
        gap: 2px !important;
    }
    .perf-label {
        font-size: 6px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        font-weight: bold !important;
        letter-spacing: 0.5px !important;
        margin: 0 !important;
        text-shadow: 0 1px 2px #000 !important;
    }
    #perf-fps {
        font-size: 7.5px !important;
        color: #00f0ff !important;
        font-weight: 900 !important;
        font-family: monospace, sans-serif !important;
        line-height: 1 !important;
        text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 240, 255, 0.7) !important;
    }
    #perf-ping-val {
        font-size: 7.5px !important;
        color: #00f0ff !important;
        font-weight: 900 !important;
        font-family: monospace, sans-serif !important;
        line-height: 1 !important;
        text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 240, 255, 0.7) !important;
    }
    #perf-ping {
        font-size: 7.5px !important;
        color: #00f0ff !important;
        font-weight: 900 !important;
        font-family: monospace, sans-serif !important;
        line-height: 1 !important;
        text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 240, 255, 0.7) !important;
    }
    .perf-unit {
        font-size: 5.5px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        font-weight: normal !important;
        margin-left: 1px !important;
        text-shadow: 0 1px 2px #000 !important;
    }
    #perf-separator {
        display: none !important;
    }
}

.evo-logo-container { text-align: center; margin-bottom: 15px; position: relative; display: flex; justify-content: center; }
.evo-logo-container img { width: 150px; height: 150px; aspect-ratio: 1 / 1; border-radius: 30px; border: 3px solid #b48529; box-shadow: 0 15px 35px rgba(0,0,0,0.9), 0 0 25px rgba(255,215,0,0.25); object-fit: cover; }
.evo-logo-text { 
    font-size: 70px; font-weight: 900; color: #fff; 
    font-family: 'Segoe UI', Tahoma, sans-serif;
    text-shadow: 0 4px 0 #000, 0 -2px 0 #000, 2px 0 0 #000, -2px 0 0 #000, 0 10px 30px rgba(0,0,0,0.9), 0 0 20px rgba(0, 240, 255, 0.5); 
    letter-spacing: 5px; margin: 0; 
}
.evo-logo-sub { 
    background: linear-gradient(180deg, #ffb703, #fb8500); color: #000; 
    display: inline-block; padding: 5px 30px; font-weight: 900; font-size: 18px; 
    border: 2px solid #000; border-radius: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.8); 
    font-family: 'Segoe UI', Tahoma, sans-serif; letter-spacing: 2px;
    position: relative; margin-top: -10px;
}

.evo-input-container { margin-bottom: 30px; display:flex; flex-direction:column; align-items:center; }
.evo-input {
    background: rgba(15, 23, 42, 0.8); border: 2px solid #334155; border-radius: 12px;
    color: #fff; font-size: 22px; padding: 15px 30px; width: 340px; text-align: center; 
    font-weight: 700; font-family: 'Segoe UI', sans-serif; outline: none; margin-bottom: 5px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.5), inset 0 2px 10px rgba(0,0,0,0.8);
    transition: all 0.3s ease; letter-spacing: 1px;
}
.evo-input:focus { 
    border-color: #00f0ff; box-shadow: 0 0 20px rgba(0,240,255,0.3), inset 0 2px 10px rgba(0,0,0,0.8); 
    transform: translateY(-2px); 
}
.evo-input::placeholder { color: #64748b; font-weight: bold; }
.evo-player-id { color: #94a3b8; font-size: 14px; font-weight: 900; font-family: 'Segoe UI', sans-serif; letter-spacing: 2px; margin-bottom: 8px; text-shadow: 0 2px 4px #000; text-transform: uppercase; }


.evo-play-btn {
    background: linear-gradient(to bottom, #ffb703, #fb8500); 
    border: 2px solid #ffd166; border-radius: 30px; 
    color: #fff; font-size: 48px; font-weight: 900; padding: 15px 110px;
    cursor: pointer; font-family: 'Segoe UI', sans-serif; text-transform: uppercase;
    box-shadow: 0 12px 0 #b35900, 0 20px 40px rgba(251, 133, 0, 0.6), inset 0 4px 10px rgba(255,255,255,0.6); 
    text-shadow: 0 3px 5px rgba(0,0,0,0.5);
    transition: all 0.15s cubic-bezier(0.25, 0.8, 0.25, 1); letter-spacing: 3px; margin-bottom: 40px;
    position: relative; overflow: hidden;
}
.evo-play-btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg); transition: 0.5s;
}
.evo-play-btn:hover { 
    filter: brightness(1.1); transform: translateY(-4px) scale(1.03); 
    box-shadow: 0 16px 0 #8c4000, 0 25px 50px rgba(251, 133, 0, 0.8), inset 0 4px 10px rgba(255,255,255,0.8); 
}
.evo-play-btn:hover::before { left: 200%; transition: 0.7s; }
.evo-play-btn:active { transform: translateY(12px); box-shadow: 0 0 0 #8c4000, 0 5px 15px rgba(251, 133, 0, 0.4); }

.evo-bottom-buttons { display: flex; gap: 15px; }
.evo-action-btn { 
    background: linear-gradient(to bottom, #334155, #1e293b); border: 1px solid #475569; border-radius: 20px;
    color: #f8fafc; font-weight: bold; padding: 12px 25px; font-size: 15px; display: flex; align-items: center; gap: 10px;
    cursor: pointer; box-shadow: 0 6px 0 #0f172a, 0 10px 20px rgba(0, 0, 0, 0.5); transition: all 0.15s ease; 
    font-family: 'Segoe UI', sans-serif;
}
.evo-action-btn svg { filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5)); }
.evo-action-btn:hover { 
    background: linear-gradient(to bottom, #475569, #334155); transform: translateY(-3px); 
    box-shadow: 0 9px 0 #0f172a, 0 15px 25px rgba(0, 0, 0, 0.6);
}
.evo-action-btn:active { transform: translateY(6px); box-shadow: 0 0 0 #0f172a; }


.evo-right-bar {
    width: 280px; 
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px;
    display: flex; flex-direction: column; justify-content: flex-start; padding: 25px; z-index: 2; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), inset 0 0 20px rgba(255,255,255,0.02);
    margin: 20px 20px 20px 0; height: calc(100% - 40px);
    position: relative;
}
.evo-box { 
    background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; 
    padding: 20px; margin-bottom: 20px; box-shadow: inset 0 2px 10px rgba(0,0,0,0.5); 
}
.evo-box-title { 
    color: #f1f5f9; font-size: 16px; font-weight: 900; text-align: center; margin-bottom: 15px; 
    letter-spacing: 1px; font-family: 'Segoe UI', sans-serif; text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px;
}
.evo-champ { 
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: #cbd5e1; 
    font-weight: bold; font-size: 14px; font-family: 'Segoe UI', sans-serif;
    background: rgba(255,255,255,0.03); 
    padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); 
    transition: 0.2s;
}
.evo-champ:hover { background: rgba(255,255,255,0.08); transform: translateX(5px); border-color: rgba(255,255,255,0.2); }
.evo-champ .medal { font-size: 18px; filter: drop-shadow(0 2px 2px #000); }
.evo-champ .score { color: #ffb703; font-weight: 900; font-family: monospace; font-size: 16px; }

.auth-nav-hidden { display: none !important; }

#bottom-hud {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: 480px; background: rgba(15, 15, 20, 0.9);
    border: 2px solid #444; border-radius: 12px; padding: 15px;
    display: none; flex-direction: column; gap: 10px; z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}


        @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');
        
        .container {
            max-width: 800px;
            width: 100%;
            background: #161b22;
            border-radius: 12px;
            border: 1px solid #30363d;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            padding: 40px;
        }

        h1 {
            color: #58a6ff;
            text-align: center;
            border-bottom: 2px solid #30363d;
            padding-bottom: 15px;
            margin-top: 0;
        }

        h2 {
            color: #ff7b72;
            margin-top: 30px;
        }

        .highlight {
            color: #FFD700;
            font-weight: bold;
        }

        .box {
            background: #21262d;
            border-left: 5px solid #238636;
            padding: 15px 20px;
            border-radius: 4px;
            margin: 20px 0;
        }

        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin-top: 20px;
        }

        .card {
            background: #21262d;
            border: 1px solid #30363d;
            border-radius: 8px;
            padding: 20px;
            transition: transform 0.2s;
        }

        .card:hover {
            transform: translateY(-5px);
            border-color: #58a6ff;
        }

        .card h3 {
            margin-top: 0;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .badge {
            background: #30363d;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
            color: #8b949e;
        }

        ul {
            line-height: 1.6;
        }

        .btn-back {
            display: inline-block;
            background: #238636;
            color: white;
            text-decoration: none;
            padding: 10px 20px;
            border-radius: 6px;
            font-weight: 600;
            margin-top: 30px;
            transition: background 0.2s;
        }

        .btn-back:hover {
            background: #2ea043;
        }
    

.details-page { background-color: #0d1117; color: #c9d1d9; font-family: 'Poppins', sans-serif; margin: 0; padding: 40px 20px; display: block; min-height: 100vh; overflow-x: hidden; overflow-y: auto; box-sizing: border-box; }

#main-menu:not([style*="none"]) ~ #perf-monitor,
#death-screen:not([style*="none"]) ~ #perf-monitor,
#welcome-screen:not([style*="none"]) ~ #perf-monitor {
    display: none !important;
}
.details-page .container { box-sizing: border-box; margin: 0 auto; }
.welcome-screen { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; background: radial-gradient(circle at center, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 1)); backdrop-filter: blur(10px); transition: opacity 0.5s ease; font-family: 'Segoe UI', Tahoma, sans-serif; }
.welcome-panel { background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9)); border: 1px solid rgba(0, 240, 255, 0.2); border-radius: 16px; padding: 40px; text-align: center; width: 90%; max-width: 700px; box-shadow: 0 20px 60px rgba(0,0,0,0.9), inset 0 0 40px rgba(0,240,255,0.05); position: relative; overflow: hidden; backdrop-filter: blur(15px); }
.welcome-corner { position: absolute; width: 30px; height: 30px; }
.welcome-corner.top-left { top: 15px; left: 15px; border-top: 2px solid #00f0ff; border-left: 2px solid #00f0ff; box-shadow: -2px -2px 10px rgba(0,240,255,0.3); }
.welcome-corner.top-right { top: 15px; right: 15px; border-top: 2px solid #00f0ff; border-right: 2px solid #00f0ff; box-shadow: 2px -2px 10px rgba(0,240,255,0.3); }
.welcome-corner.bottom-left { bottom: 15px; left: 15px; border-bottom: 2px solid #00f0ff; border-left: 2px solid #00f0ff; box-shadow: -2px 2px 10px rgba(0,240,255,0.3); }
.welcome-corner.bottom-right { bottom: 15px; right: 15px; border-bottom: 2px solid #00f0ff; border-right: 2px solid #00f0ff; box-shadow: 2px 2px 10px rgba(0,240,255,0.3); }
.welcome-logo { width: 130px; height: 130px; aspect-ratio: 1 / 1; border-radius: 26px; object-fit: cover; margin: 0 auto 15px auto; display: block; box-shadow: 0 10px 25px rgba(0,0,0,0.8); }
.welcome-title { font-size: 32px; color: #00f0ff; margin: 0 0 15px; text-shadow: 0 0 15px rgba(0,240,255,0.5); letter-spacing: 3px; font-weight: 900; text-transform: uppercase; }
.welcome-divider { width: 50%; height: 2px; background: linear-gradient(90deg, transparent, #00f0ff, transparent); margin: 0 auto 25px; }
.welcome-copy { font-size: 16px; color: #cbd5e1; margin-bottom: 20px; line-height: 1.7; font-weight: 500; }
.welcome-tagline { font-size: 15px; color: #38bdf8; margin-bottom: 35px; font-weight: bold; text-shadow: 0 2px 4px #000; }
.welcome-icon { display: inline-block; margin-right: 10px; filter: grayscale(100%) sepia(100%) hue-rotate(180deg) saturate(300%) brightness(1.2); }

.death-screen-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(80, 10, 15, 0.6) 0%, rgba(10, 2, 4, 0.94) 75%);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 16px;
}
.death-panel {
    background: linear-gradient(135deg, rgba(35, 12, 16, 0.9) 0%, rgba(15, 5, 8, 0.96) 100%);
    border: 2px solid rgba(239, 68, 68, 0.5);
    border-radius: 20px;
    padding: 28px 36px;
    text-align: center;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 0 40px rgba(220, 38, 38, 0.35), inset 0 0 25px rgba(220, 38, 38, 0.12), 0 20px 50px rgba(0,0,0,0.9);
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.death-corner {
    position: absolute;
    width: 20px;
    height: 20px;
}
.death-corner.top-left {
    top: 12px;
    left: 12px;
    border-top: 2px solid #ef4444;
    border-left: 2px solid #ef4444;
}
.death-corner.top-right {
    top: 12px;
    right: 12px;
    border-top: 2px solid #ef4444;
    border-right: 2px solid #ef4444;
}
.death-corner.bottom-left {
    bottom: 12px;
    left: 12px;
    border-bottom: 2px solid #ef4444;
    border-left: 2px solid #ef4444;
}
.death-corner.bottom-right {
    bottom: 12px;
    right: 12px;
    border-bottom: 2px solid #ef4444;
    border-right: 2px solid #ef4444;
}
.death-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, rgba(20, 5, 8, 0.8) 100%);
    border: 2px solid rgba(239, 68, 68, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}
.death-title {
    font-size: 36px;
    color: #ff4d4d;
    margin: 0 0 6px 0;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.8), 0 3px 0 #000;
}
.death-divider {
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ef4444, transparent);
    margin: 0 auto 12px auto;
}
.death-desc {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 8px 0;
    max-width: 380px;
    font-weight: 500;
}
.death-tagline {
    color: #f87171;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px #000;
}
.death-buttons {
    display: flex;
    flex-direction: row;
    gap: 14px;
    width: 100%;
    max-width: 380px;
    justify-content: center;
}
.death-btn {
    flex: 1;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 900;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.15s ease-out;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.death-btn-primary {
    background: linear-gradient(180deg, #ff4d4d 0%, #dc2626 100%);
    color: #ffffff;
    border: 2px solid #f87171;
    box-shadow: 0 4px 0 #7f1d1d, 0 8px 16px rgba(220, 38, 38, 0.5);
    text-shadow: 0 1px 2px #000;
}
.death-btn-primary:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #7f1d1d, 0 4px 8px rgba(220, 38, 38, 0.5);
}
.death-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.6);
}
.death-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}
.death-btn-secondary:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}
.death-btn-secondary:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.esc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.8) 0%, rgba(5, 7, 13, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}
.esc-panel {
    background: linear-gradient(180deg, rgba(20, 27, 45, 0.95) 0%, rgba(10, 14, 25, 0.98) 100%);
    border: 2px solid rgba(255, 215, 0, 0.45);
    border-radius: 20px;
    padding: 28px 24px;
    max-width: 420px;
    width: 88%;
    max-height: 90vh;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.2), 0 20px 60px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.esc-corner {
    position: absolute;
    width: 16px;
    height: 16px;
}
.esc-corner.top-left {
    top: 10px;
    left: 10px;
    border-top: 2px solid #FFD700;
    border-left: 2px solid #FFD700;
}
.esc-corner.top-right {
    top: 10px;
    right: 10px;
    border-top: 2px solid #FFD700;
    border-right: 2px solid #FFD700;
}
.esc-corner.bottom-left {
    bottom: 10px;
    left: 10px;
    border-bottom: 2px solid #FFD700;
    border-left: 2px solid #FFD700;
}
.esc-corner.bottom-right {
    bottom: 10px;
    right: 10px;
    border-bottom: 2px solid #FFD700;
    border-right: 2px solid #FFD700;
}
.esc-icon-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.25) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 2px solid rgba(255, 215, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}
.esc-title {
    font-size: 22px;
    color: #FFD700;
    margin: 0 0 6px 0;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5), 0 2px 4px #000;
}
.esc-divider {
    width: 55%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    margin: 0 auto 12px auto;
}
.esc-status-box {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 18px;
    width: 100%;
    box-sizing: border-box;
}
.esc-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 900;
    color: #4ade80;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.esc-status-desc {
    color: #94a3b8;
    font-size: 11.5px;
    line-height: 1.4;
    margin: 0;
    font-weight: 600;
}
.esc-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}
.esc-btn {
    width: 100%;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 900;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.15s ease-out;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}
.esc-btn-primary {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
    border: 2px solid #4ade80;
    box-shadow: 0 4px 0 #14532d, 0 8px 16px rgba(34, 197, 94, 0.4);
    text-shadow: 0 1px 2px #000;
}
.esc-btn-primary:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #14532d, 0 4px 8px rgba(34, 197, 94, 0.4);
}
.esc-btn-secondary {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    border: 2px solid #f87171;
    box-shadow: 0 4px 0 #7f1d1d, 0 8px 16px rgba(220, 38, 38, 0.4);
    text-shadow: 0 1px 2px #000;
}
.esc-btn-secondary:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #7f1d1d, 0 4px 8px rgba(220, 38, 38, 0.4);
}

#evo-back-btn {
    display: none !important;
    position: fixed;
    top: 10px;
    left: 12px;
    height: 36px;
    padding: 0 16px;
    background: linear-gradient(180deg, #ffb703 0%, #fb8500 100%);
    color: #ffffff;
    border: 2px solid #ffd166;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 900;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 0 #b35900, 0 8px 16px rgba(0, 0, 0, 0.7);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
}
#evo-back-btn:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #b35900, 0 3px 8px rgba(0, 0, 0, 0.7);
}
#tab-rankings {
    display: none !important;
}
#mobile-joy-setting {
    display: none !important;
}
@media (max-width: 950px) and (pointer: coarse) {
    .evo-panel { width: 100% !important; height: 100% !important; margin: 0 !important; border-radius: 0 !important; border: none !important; padding: 0 !important; }
    .evo-layout { flex-direction: column !important; }
    .evo-left-bar { 
        position: fixed !important; 
        top: 0 !important; 
        left: 0 !important; 
        width: 100% !important; 
        height: 100% !important; 
        margin: 0 !important; 
        padding: 0 !important; 
        background: transparent !important; 
        border: none !important; 
        box-shadow: none !important; 
        pointer-events: none !important; 
        z-index: 200 !important; 
        display: block !important; 
    }
    .evo-tab { 
        pointer-events: auto !important; 
        cursor: pointer !important; 
        transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important; 
        box-sizing: border-box !important; 
    }
    .evo-tab:active { 
        transform: scale(0.92) !important; 
    }
    #tab-battle { 
        display: none !important; 
    }
    #tab-settings { 
        position: fixed !important; 
        top: 10px !important; 
        left: 10px !important; 
        width: 42px !important; 
        height: 42px !important; 
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important; 
        border: 2px solid rgba(0, 240, 255, 0.45) !important; 
        border-radius: 12px !important; 
        box-shadow: 0 4px 10px rgba(0,0,0,0.8), 0 0 10px rgba(0,240,255,0.2) !important; 
        display: flex !important; 
        align-items: center !important; 
        justify-content: center !important; 
        padding: 0 !important; 
        margin: 0 !important; 
    }
    #tab-settings .icon { 
        width: 22px !important; 
        height: 22px !important; 
        filter: drop-shadow(0 2px 3px rgba(0,0,0,0.7)) !important; 
    }
    #tab-settings .text { 
        display: none !important; 
    }
    #tab-shop { 
        position: fixed !important; 
        top: calc(50% - 32px) !important; 
        left: 10px !important; 
        transform: translateY(-50%) !important; 
        width: 50px !important; 
        height: 52px !important; 
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important; 
        border: 2px solid #b48529 !important; 
        border-radius: 14px !important; 
        box-shadow: 0 4px 12px rgba(0,0,0,0.8), 0 0 12px rgba(255,215,0,0.3) !important; 
        display: flex !important; 
        flex-direction: column !important; 
        align-items: center !important; 
        justify-content: center !important; 
        padding: 4px !important; 
        margin: 0 !important; 
        gap: 2px !important; 
    }
    #tab-shop .icon { 
        width: 22px !important; 
        height: 22px !important; 
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8)) !important; 
    }
    #tab-shop .text { 
        font-size: 8px !important; 
        font-weight: 900 !important; 
        color: #FFD700 !important; 
        letter-spacing: 0.5px !important; 
        margin: 0 !important; 
        text-shadow: 1px 1px 2px #000 !important; 
    }
    #tab-rankings { 
        position: fixed !important; 
        top: calc(50% + 32px) !important; 
        left: 10px !important; 
        transform: translateY(-50%) !important; 
        width: 50px !important; 
        height: 52px !important; 
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important; 
        border: 2px solid #eab308 !important; 
        border-radius: 14px !important; 
        box-shadow: 0 4px 12px rgba(0,0,0,0.8), 0 0 12px rgba(234,179,8,0.3) !important; 
        display: flex !important; 
        flex-direction: column !important; 
        align-items: center !important; 
        justify-content: center !important; 
        padding: 4px !important; 
        margin: 0 !important; 
        gap: 2px !important; 
    }
    #evo-panel-shop.market-panel {
        width: 100% !important;
        height: 100% !important;
        padding: 56px 12px 30px 12px !important;
        border-radius: 0 !important;
        border: none !important;
        background: radial-gradient(circle at 50% 0%, #111827 0%, #05070d 100%) !important;
        box-sizing: border-box !important;
    }
    .shop-header-bar {
        margin-bottom: 14px !important;
        padding-bottom: 12px !important;
    }
    .shop-title-group h2 {
        font-size: 18px !important;
        letter-spacing: 1px !important;
    }
    .shop-title-group p {
        font-size: 11px !important;
    }
    .shop-wallet-badge {
        padding: 5px 12px !important;
    }
    .shop-wallet-badge img {
        width: 18px !important;
        height: 18px !important;
    }
    #shop-coin-display {
        font-size: 15px !important;
    }
    .shop-nav-tabs {
        gap: 6px !important;
        padding: 4px !important;
        margin-bottom: 16px !important;
    }
    .shop-tab-btn {
        min-width: 95px !important;
        font-size: 11px !important;
        padding: 7px 10px !important;
        letter-spacing: 0.5px !important;
    }
    .shop-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .shop-card {
        padding: 12px 8px 10px 8px !important;
        border-radius: 12px !important;
    }
    .shop-card-pedestal {
        width: 60px !important;
        height: 60px !important;
        margin: 2px 0 8px 0 !important;
    }
    .shop-card img {
        max-width: 50px !important;
        max-height: 50px !important;
    }
    .shop-card h3 {
        font-size: 11.5px !important;
        margin-bottom: 8px !important;
    }
    .shop-btn {
        padding: 7px 6px !important;
        font-size: 10.5px !important;
        border-radius: 8px !important;
    }
    .shop-section-header {
        margin: 18px 0 10px 0 !important;
    }
    .shop-category-badge {
        font-size: 9.5px !important;
        padding: 3px 8px !important;
    }
    #tab-rankings .icon { 
        width: 20px !important; 
        height: 20px !important; 
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8)) !important; 
    }
    #tab-rankings .text { 
        font-size: 7.5px !important; 
        font-weight: 900 !important; 
        color: #fef08a !important; 
        letter-spacing: 0.5px !important; 
        margin: 0 !important; 
        text-shadow: 1px 1px 2px #000 !important; 
    }
    #tab-profile { 
        position: fixed !important; 
        top: 10px !important; 
        right: 10px !important; 
        height: 38px !important; 
        padding: 0 12px !important; 
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important; 
        border: 2px solid #b48529 !important; 
        border-radius: 19px !important; 
        box-shadow: 0 4px 10px rgba(0,0,0,0.8), 0 0 10px rgba(255,215,0,0.25) !important; 
        display: flex !important; 
        flex-direction: row !important; 
        align-items: center !important; 
        justify-content: center !important; 
        gap: 6px !important; 
        margin: 0 !important; 
    }
    #tab-profile .icon { 
        width: 20px !important; 
        height: 20px !important; 
        filter: drop-shadow(0 2px 3px rgba(0,0,0,0.7)) !important; 
    }
    #tab-profile .text { 
        font-size: 10.5px !important; 
        font-weight: 900 !important; 
        color: #FFD700 !important; 
        letter-spacing: 0.5px !important; 
        margin: 0 !important; 
        text-shadow: 1px 1px 2px #000 !important; 
    }
    #tab-auth { 
        position: fixed !important; 
        top: 10px !important; 
        right: 110px !important; 
        height: 38px !important; 
        padding: 0 10px !important; 
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important; 
        border: 2px solid #38bdf8 !important; 
        border-radius: 19px !important; 
        box-shadow: 0 4px 10px rgba(0,0,0,0.8), 0 0 10px rgba(56,189,248,0.25) !important; 
        display: flex !important; 
        flex-direction: row !important; 
        align-items: center !important; 
        justify-content: center !important; 
        gap: 5px !important; 
        margin: 0 !important; 
    }
    #tab-auth[style*="display: none"], 
    #tab-auth[style*="display:none"],
    #tab-auth.auth-nav-hidden { 
        display: none !important; 
    }
    #tab-auth .icon { 
        width: 18px !important; 
        height: 18px !important; 
        filter: drop-shadow(0 2px 3px rgba(0,0,0,0.7)) !important; 
    }
    #tab-auth .text { 
        font-size: 9.5px !important; 
        font-weight: 900 !important; 
        color: #f8fafc !important; 
        letter-spacing: 0.5px !important; 
        margin: 0 !important; 
        text-shadow: 1px 1px 2px #000 !important; 
    }
    #tab-guide { 
        position: fixed !important; 
        bottom: 12px !important; 
        right: 12px !important; 
        height: 38px !important; 
        padding: 0 12px !important; 
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important; 
        border: 2px solid #5d4037 !important; 
        border-radius: 19px !important; 
        box-shadow: 0 4px 10px rgba(0,0,0,0.8), 0 0 10px rgba(93,64,55,0.3) !important; 
        display: flex !important; 
        flex-direction: row !important; 
        align-items: center !important; 
        justify-content: center !important; 
        gap: 6px !important; 
        margin: 0 !important; 
    }
    #tab-guide .icon { 
        width: 19px !important; 
        height: 19px !important; 
        filter: drop-shadow(0 2px 3px rgba(0,0,0,0.7)) !important; 
    }
    #tab-guide .text { 
        font-size: 10px !important; 
        font-weight: 900 !important; 
        color: #cbd5e1 !important; 
        letter-spacing: 0.5px !important; 
        margin: 0 !important; 
        text-shadow: 1px 1px 2px #000 !important; 
    }
    .evo-layout.panel-open .evo-left-bar,
    .evo-layout.panel-open #tab-settings,
    .evo-layout.panel-open #tab-shop,
    .evo-layout.panel-open #tab-rankings,
    .evo-layout.panel-open #tab-profile,
    .evo-layout.panel-open #tab-auth,
    .evo-layout.panel-open #tab-guide,
    .evo-layout.panel-open .evo-tab { 
        display: none !important; 
    }
    .evo-layout.panel-open #evo-panel-battle { 
        display: none !important; 
    }
    .evo-layout.panel-open #evo-back-btn { 
        display: flex !important; 
    }
    .evo-layout.panel-open .evo-center { 
        padding-top: 52px !important; 
        padding-bottom: 8px !important; 
        justify-content: flex-start !important; 
    }
    .evo-layout.panel-open #evo-panel-settings, 
    .evo-layout.panel-open #evo-panel-shop, 
    .evo-layout.panel-open #evo-panel-profile, 
    .evo-layout.panel-open #evo-panel-guide, 
    .evo-layout.panel-open #evo-panel-modes,
    .evo-layout.panel-open #evo-panel-rankings { 
        height: 100% !important; 
        max-height: 100% !important; 
        box-sizing: border-box !important; 
    }
    .evo-right-bar { display: none !important; }
    .evo-center { width: 100% !important; height: 100% !important; margin: 0 !important; padding: 6px 0 !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; position: absolute !important; top: 0 !important; left: 0 !important; overflow: hidden !important; box-sizing: border-box !important; }
    #evo-panel-battle:not([style*="none"]) { 
        position: relative !important; 
        display: grid !important; 
        grid-template-columns: 260px 140px !important; 
        grid-template-rows: auto auto auto !important; 
        grid-template-areas: 
            "logo logo" 
            "input play" 
            "mode share" !important; 
        align-items: center !important; 
        justify-content: center !important; 
        justify-items: center !important; 
        margin: auto !important; 
        padding: 0 !important; 
        height: auto !important; 
        max-height: 100% !important; 
        width: 100% !important; 
        gap: 6px 14px !important; 
    }

    #brand-footer {
        display: block;
        position: fixed !important;
        bottom: 12px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        text-align: center !important;
        font-size: 10.5px !important;
        color: rgba(255, 255, 255, 0.35) !important;
        text-shadow: 0 1px 3px rgba(0,0,0,0.9) !important;
        white-space: nowrap !important;
        text-decoration: none !important;
        z-index: 100 !important;
        pointer-events: auto !important;
    }

    .evo-layout.panel-open ~ #brand-footer,
    #main-menu[style*="none"] ~ #brand-footer {
        display: none !important;
    }

    #evo-panel-guide .guide-title {
        display: none !important;
    }

    #evo-panel-rankings > div:first-child {
        display: none !important;
    }

    .evo-layout.panel-open #evo-mobile-top-bar {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 48px !important;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(10, 15, 28, 0.96) 100%) !important;
        border-bottom: 2px solid rgba(255, 215, 0, 0.3) !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.75) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        z-index: 2000 !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
    }
    .evo-layout.panel-open #evo-back-btn {
        display: flex !important;
        position: static !important;
        height: 32px !important;
        padding: 0 12px !important;
        font-size: 11px !important;
        min-width: 76px !important;
        justify-content: center !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
    #evo-mobile-title {
        font-size: 17px !important;
        font-weight: 900 !important;
        color: #FFD700 !important;
        letter-spacing: 2px !important;
        text-transform: uppercase !important;
        text-shadow: 0 2px 4px #000, 0 0 12px rgba(255, 215, 0, 0.4) !important;
        text-align: center !important;
        flex: 1 !important;
        margin: 0 !important;
    }
    #evo-mobile-coin-box {
        min-width: 76px !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }
    #evo-mobile-coin {
        padding: 4px 10px !important;
        gap: 6px !important;
        border-radius: 20px !important;
        font-size: 12px !important;
        font-weight: 900 !important;
    }
    .evo-layout.panel-open .shop-header-bar {
        display: none !important;
    }
    
    .evo-logo-container { grid-area: logo !important; position: relative !important; top: auto !important; left: auto !important; transform: none !important; margin: 0 0 4px 0 !important; display: flex !important; justify-content: center !important; }
    .evo-logo-container img { width: 75px !important; height: 75px !important; max-width: 75px !important; aspect-ratio: 1 / 1 !important; border-radius: 16px !important; border: 2px solid #b48529 !important; object-fit: cover !important; filter: drop-shadow(0 6px 10px rgba(0,0,0,0.85)) !important; }
    
    .evo-input-container { grid-area: input !important; position: relative !important; top: auto !important; left: auto !important; width: 100% !important; margin: 0 !important; display: flex !important; flex-direction: column !important; align-items: center !important; background: rgba(0,0,0,0.65) !important; padding: 5px 10px !important; border-radius: 12px !important; border: 2px solid rgba(0,240,255,0.4) !important; backdrop-filter: blur(5px) !important; box-shadow: 0 4px 10px rgba(0,0,0,0.5) !important; z-index: 100 !important; box-sizing: border-box !important; }
    .evo-player-id { font-size: 10px !important; font-weight: 900 !important; color: #cbd5e1 !important; text-shadow: 1px 1px 2px black !important; margin-bottom: 2px !important; text-transform: uppercase !important; display: block !important; padding-left: 0 !important; }
    .evo-input { width: 100% !important; font-size: 14px !important; padding: 5px 10px !important; margin: 0 !important; border-radius: 8px !important; text-align: center !important; background: rgba(0,0,0,0.5) !important; border: 1px solid rgba(255,255,255,0.2) !important; color: white !important; font-weight: bold !important; box-shadow: none !important; box-sizing: border-box !important; }
    
    #mode-info-container { grid-area: mode !important; position: relative !important; bottom: auto !important; right: auto !important; left: auto !important; width: 100% !important; min-width: 0 !important; height: auto !important; flex-direction: row !important; padding: 5px 12px !important; justify-content: space-between !important; background: rgba(0,0,0,0.8) !important; border-radius: 12px !important; border: 2px solid rgba(255,215,0,0.5) !important; margin: 0 !important; align-items: center !important; box-sizing: border-box !important; box-shadow: 0 4px 10px rgba(0,0,0,0.6) !important; z-index: 100 !important; }
    #mode-info-container > div > span:first-child { display: block !important; color: #94a3b8 !important; font-size: 9px !important; margin-bottom: 1px !important; } 
    #selected-mode-text { font-size: 13px !important; font-weight: 900 !important; color: #FFD700 !important; text-shadow: 0 2px 4px rgba(0,0,0,0.8) !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; margin-bottom: 0 !important; text-align: left !important; width: auto !important; }
    #change-mode-btn { padding: 5px 10px !important; font-size: 11px !important; border-radius: 8px !important; width: auto !important; height: auto !important; margin: 0 !important; display: flex !important; justify-content: center !important; }
    #change-mode-btn svg { width: 13px !important; height: 13px !important; margin-right: 3px !important; }
    
    #evo-panel-battle .evo-play-btn { grid-area: play !important; position: relative !important; bottom: auto !important; right: auto !important; width: 100% !important; max-width: 140px !important; height: 42px !important; min-height: 42px !important; max-height: 44px !important; font-size: 16px !important; margin: 0 !important; border-radius: 12px !important; box-shadow: 0 4px 0 #b35900, 0 6px 12px rgba(0,0,0,0.8) !important; text-transform: uppercase !important; font-weight: 900 !important; display: flex !important; align-items: center !important; justify-content: center !important; padding: 0 !important; background: linear-gradient(to bottom, #ffb703, #fb8500) !important; color: white !important; z-index: 100 !important; letter-spacing: 1.5px !important; }
    
    .evo-bottom-buttons { grid-area: share !important; display: flex !important; flex-direction: row !important; width: 100% !important; max-width: 140px !important; margin: 0 !important; padding: 0 !important; }
    .evo-bottom-buttons .evo-action-btn { width: 100% !important; height: 38px !important; font-size: 10px !important; font-weight: 900 !important; padding: 0 6px !important; border-radius: 12px !important; justify-content: center !important; align-items: center !important; gap: 5px !important; box-shadow: 0 4px 0 #1e3a8a, 0 6px 12px rgba(37, 99, 235, 0.5) !important; letter-spacing: 0.5px !important; white-space: nowrap !important; box-sizing: border-box !important; border-width: 2px !important; }
    .evo-bottom-buttons .evo-action-btn svg { width: 14px !important; height: 14px !important; flex-shrink: 0 !important; }

    #mobile-joy-setting { display: flex !important; }
    #mobile-joy-setting > div:first-child { font-size: 15px !important; }
    #mobile-joy-setting button { padding: 4px 10px !important; font-size: 11px !important; }

    body.joystick-right #mobile-joystick-zone { left: auto !important; right: 20px !important; }
    body.joystick-right #bottom-hud > div:nth-child(2) > div:nth-child(2) { right: auto !important; left: 12px !important; }
    body.joystick-right .skill-slot:nth-child(5) { right: auto !important; left: 4px !important; }
    body.joystick-right .skill-slot:nth-child(1) { right: auto !important; left: 52px !important; bottom: 86px !important; }
    body.joystick-right .skill-slot:nth-child(4) { right: auto !important; left: 82px !important; bottom: 54px !important; }
    body.joystick-right .skill-slot:nth-child(2) { right: auto !important; left: 8px !important; bottom: 94px !important; }
    body.joystick-right .skill-slot:nth-child(3) { right: auto !important; left: 90px !important; bottom: 6px !important; }    
    #leaderboard {
        transform: none !important;
        position: fixed !important;
        top: 8px !important;
        right: 8px !important;
        width: 142px !important;
        max-height: 200px !important;
        background: rgba(10, 15, 26, 0.82) !important;
        border: 1.5px solid rgba(255, 215, 0, 0.4) !important;
        border-radius: 12px !important;
        padding: 6px 8px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        pointer-events: none !important;
        z-index: 100 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    #leaderboard h3 {
        font-size: 8px !important;
        font-weight: 900 !important;
        color: #FFD700 !important;
        text-align: center !important;
        margin: 0 0 5px 0 !important;
        padding-bottom: 4px !important;
        border-bottom: 1px solid rgba(255, 215, 0, 0.25) !important;
        letter-spacing: 0.2px !important;
        text-transform: uppercase !important;
        text-shadow: 0 1px 2px #000 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    #leaderboard-list {
        display: flex !important;
        flex-direction: column !important;
        gap: 2.5px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }
    #leaderboard-list li {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 19px !important;
        padding: 0 5px !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        border-radius: 5px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        color: #cbd5e1 !important;
        box-sizing: border-box !important;
    }
    #leaderboard-list li:first-child {
        background: linear-gradient(90deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 215, 0, 0.06) 100%) !important;
        border: 1px solid rgba(255, 215, 0, 0.6) !important;
        color: #FFD700 !important;
        font-weight: 900 !important;
    }
    #leaderboard-list li:nth-child(2) {
        border-left: 2.5px solid #cbd5e1 !important;
    }
    #leaderboard-list li:nth-child(3) {
        border-left: 2.5px solid #cd7f32 !important;
    }
    #leaderboard-list li.me {
        background: linear-gradient(90deg, rgba(34, 197, 94, 0.3) 0%, rgba(34, 197, 94, 0.08) 100%) !important;
        border: 1.5px solid #22c55e !important;
        box-shadow: 0 0 8px rgba(34, 197, 94, 0.45) !important;
        color: #86efac !important;
        font-weight: 900 !important;
    }
    #leaderboard-list li .name {
        max-width: 72px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    #leaderboard-list li .score {
        font-family: monospace !important;
        font-size: 8.5px !important;
        font-weight: 900 !important;
    }
    #formation-ui { display: none !important; }
    #match-timer-ui { transform: translateX(-50%) scale(0.7) !important; transform-origin: top center !important; top: 5px !important; }
    
    #bottom-hud {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        padding: 0 !important;
        bottom: 0 !important;
        transform: none !important;
        left: 0 !important;
        flex-direction: column !important;
        pointer-events: none !important;
    }
    #bottom-hud > div:first-child {
        display: flex !important;
        position: fixed !important;
        bottom: 8px !important;
        left: calc(50% - 56px) !important;
        transform: none !important;
        width: 160px !important;
        gap: 3px !important;
        pointer-events: none !important;
        z-index: 1000 !important;
    }
    #bottom-hud > div:first-child > div:first-child {
        height: 14px !important;
        border-radius: 7px !important;
        border: 1px solid #000 !important;
    }
    #ui-hp-text {
        font-size: 9px !important;
        line-height: 14px !important;
    }
    #bottom-hud > div:first-child > div:nth-child(2) {
        height: 10px !important;
        border-radius: 5px !important;
        border: 1px solid #000 !important;
    }
    #xp-detail {
        font-size: 7.5px !important;
        line-height: 10px !important;
    }
    #mobile-formation-buttons {
        position: fixed !important;
        bottom: 44px !important;
        left: calc(50% + 24px) !important;
        transform: translateX(-50%) !important;
        display: none !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        z-index: 1001 !important;
        pointer-events: auto !important;
    }
    #bottom-hud > div:nth-child(2) { pointer-events: none !important; }
    #hud-lvl-badge,
    #bottom-hud > div:nth-child(2) > div:first-child {
        display: flex !important;
        position: fixed !important;
        bottom: 8px !important;
        left: calc(50% - 104px) !important;
        width: 42px !important;
        height: 27px !important;
        border-radius: 8px !important;
        border: 1.5px solid #38bdf8 !important;
        background: radial-gradient(circle at 50% 20%, rgba(30, 58, 138, 0.7) 0%, rgba(15, 23, 42, 0.95) 85%) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8), 0 0 10px rgba(56, 189, 248, 0.4) !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        z-index: 1000 !important;
        pointer-events: none !important;
        margin: 0 !important;
        padding: 0 4px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    #hud-lvl-badge > div:first-child,
    #bottom-hud > div:nth-child(2) > div:first-child > div:first-child {
        font-size: 7.5px !important;
        color: #7dd3fc !important;
        font-weight: 900 !important;
        letter-spacing: 0.5px !important;
        line-height: 1 !important;
        margin: 0 !important;
        font-family: 'Kanit', sans-serif !important;
    }
    #xp-text {
        font-size: 14px !important;
        color: #ffffff !important;
        font-weight: 900 !important;
        font-family: 'Kanit', Arial, sans-serif !important;
        line-height: 1 !important;
        text-shadow: 0 0 8px rgba(56, 189, 248, 0.9) !important;
    }
    #bottom-hud > div:nth-child(2) > div:nth-child(2) {
        pointer-events: auto !important;
        position: fixed !important;
        bottom: 12px !important;
        left: auto !important; 
        right: 12px !important;
        width: 260px !important;
        height: 260px !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .skill-slot { position: absolute !important; margin: 0 !important; opacity: 0.9 !important; border-radius: 50% !important; background: rgba(15, 25, 40, 0.9) !important; border: 2px solid rgba(0, 240, 255, 0.5) !important; box-shadow: 0 0 10px rgba(0,240,255,0.3) !important; pointer-events: auto !important; }
    .skill-slot span { display: none !important; } 
    .skill-slot .key { display: none !important; }
    .skill-slot .icon { font-size: 20px !important; }
    
    .skill-slot:nth-child(5) { bottom: 4px !important; right: 4px !important; left: auto !important; width: 55px !important; height: 55px !important; }
    .skill-slot:nth-child(1) { bottom: 86px !important; right: 52px !important; left: auto !important; width: 40px !important; height: 40px !important; }
    .skill-slot:nth-child(4) { bottom: 54px !important; right: 82px !important; left: auto !important; width: 40px !important; height: 40px !important; }
    .skill-slot:nth-child(2) { bottom: 94px !important; right: 8px !important; left: auto !important; width: 40px !important; height: 40px !important; }
    .skill-slot:nth-child(3) { bottom: 6px !important; right: 90px !important; left: auto !important; width: 40px !important; height: 40px !important; }
    .esc-panel { padding: 16px 18px !important; max-width: 380px !important; max-height: 92vh !important; border-radius: 16px !important; }
    .esc-icon-wrapper { width: 42px !important; height: 42px !important; margin-bottom: 6px !important; }
    .esc-icon-wrapper svg { width: 22px !important; height: 22px !important; }
    .esc-title { font-size: 18px !important; margin-bottom: 3px !important; }
    .esc-divider { margin-bottom: 6px !important; }
    .esc-status-box { padding: 6px 10px !important; margin-bottom: 12px !important; }
    .esc-status-badge { font-size: 10px !important; margin-bottom: 2px !important; }
    .esc-status-desc { font-size: 10px !important; }
    .esc-buttons { flex-direction: row !important; gap: 8px !important; }
    .esc-btn { padding: 9px 12px !important; font-size: 11px !important; border-radius: 10px !important; }
    #main-menu:not([style*="none"]) ~ #bottom-hud,
    #main-menu:not([style*="none"]) ~ #leaderboard,
    #main-menu:not([style*="none"]) ~ #mobile-formation-buttons,
    #main-menu:not([style*="none"]) ~ #mobile-home-btn,
    #main-menu:not([style*="none"]) ~ #mobile-joystick-zone {
        display: none !important;
    }
    #mobile-joystick-zone {
        display: none !important;
        left: 20px !important;
        right: auto !important; 
        bottom: 10px !important; 
    }
    #main-menu[style*="none"] ~ #mobile-joystick-zone {
        display: block !important;
    }
    #main-menu[style*="none"] ~ #mobile-formation-buttons {
        display: flex !important;
    }
    #main-menu[style*="none"] ~ #mobile-home-btn {
        display: flex !important;
    }
    #death-screen:not([style*="none"]) ~ #mobile-joystick-zone,
    #death-screen:not([style*="none"]) ~ #mobile-formation-buttons,
    #death-screen:not([style*="none"]) ~ #mobile-home-btn,
    #death-screen:not([style*="none"]) ~ #bottom-hud {
        display: none !important;
    }
    .death-panel {
        padding: 14px 20px !important;
        max-width: 420px !important;
        max-height: 90vh !important;
        border-radius: 16px !important;
    }
    .death-icon-wrapper {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 4px !important;
    }
    .death-icon-wrapper svg {
        width: 24px !important;
        height: 24px !important;
    }
    .death-title {
        font-size: 24px !important;
        letter-spacing: 2px !important;
        margin-bottom: 4px !important;
    }
    .death-divider {
        margin-bottom: 6px !important;
    }
    .death-desc {
        font-size: 11px !important;
        margin-bottom: 4px !important;
        line-height: 1.3 !important;
    }
    .death-tagline {
        font-size: 10px !important;
        margin-bottom: 12px !important;
    }
    .death-buttons {
        gap: 10px !important;
    }
    .death-btn {
        padding: 9px 12px !important;
        font-size: 12px !important;
        border-radius: 10px !important;
    }
    
    .welcome-screen { padding: 8px !important; }
    .welcome-panel { 
        width: 90% !important; max-width: 480px !important; max-height: 94vh !important; 
        padding: 12px 18px !important; 
        display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center !important; 
        overflow: visible !important; box-sizing: border-box !important; 
    }
    .welcome-corner { width: 18px !important; height: 18px !important; }
    .welcome-corner.top-left { top: 8px !important; left: 8px !important; }
    .welcome-corner.top-right { top: 8px !important; right: 8px !important; }
    .welcome-corner.bottom-left { bottom: 8px !important; left: 8px !important; }
    .welcome-corner.bottom-right { bottom: 8px !important; right: 8px !important; }
    .welcome-logo { width: 75px !important; height: 75px !important; max-width: 75px !important; aspect-ratio: 1 / 1 !important; border-radius: 16px !important; object-fit: cover !important; margin: 0 auto 6px auto !important; }
    .welcome-title { font-size: 16px !important; margin: 0 0 4px 0 !important; letter-spacing: 2px !important; }
    .welcome-divider { width: 35% !important; margin: 0 auto 6px auto !important; }
    .welcome-copy { font-size: 10.5px !important; line-height: 1.4 !important; margin-bottom: 6px !important; max-width: 420px !important; }
    .welcome-tagline { font-size: 10px !important; margin-bottom: 10px !important; }
    .welcome-panel .evo-play-btn { 
        display: inline-flex !important; 
        align-items: center !important; 
        justify-content: center !important;
        width: auto !important; 
        min-width: 150px !important; 
        max-width: 180px !important; 
        height: 38px !important; 
        min-height: 38px !important; 
        max-height: 38px !important; 
        margin: 4px auto 0 auto !important; 
        padding: 0 22px !important; 
        font-size: 14px !important; 
        border-radius: 12px !important; 
        align-self: center !important; 
        box-shadow: 0 4px 0 #b35900, 0 6px 12px rgba(0,0,0,0.6) !important; 
    }
    .welcome-screen > div:last-child { margin-top: 8px !important; font-size: 11px !important; }
    #auth-nav { top: 5px !important; right: 5px !important; gap: 5px !important; }
    #auth-nav button { padding: 4px 8px !important; font-size: 10px !important; }

    .evo-panel:not(#evo-panel-battle) { padding: 15px !important; }
    
    #evo-panel-modes {
        width: 96% !important;
        height: 92% !important;
        max-height: 94vh !important;
        border-radius: 14px !important;
        border: 2px solid #b48529 !important;
        flex-direction: row !important;
        overflow: hidden !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    #evo-panel-modes > div:first-child {
        width: 210px !important;
        min-width: 200px !important;
        max-width: 220px !important;
        height: 100% !important;
        padding: 8px !important;
        border-right: 2px solid #b48529 !important;
        border-bottom: none !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        background: #0f172a !important;
        box-sizing: border-box !important;
    }
    #evo-panel-modes > div:first-child h2 {
        display: block !important;
        font-size: 11px !important;
        margin: 0 0 4px 0 !important;
        padding-bottom: 4px !important;
        border-bottom: 1px solid rgba(255,215,0,0.3) !important;
        color: #FFD700 !important;
        text-align: center !important;
        font-weight: 900 !important;
        letter-spacing: 1px !important;
    }
    #evo-panel-modes > div:first-child .mode-card-item {
        height: 60px !important;
        width: 100% !important;
        flex-shrink: 0 !important;
        border-radius: 8px !important;
        border-width: 2px !important;
        box-shadow: none !important;
    }
    #evo-panel-modes > div:first-child .mode-card-item.active {
        border-color: #FFD700 !important;
        box-shadow: 0 0 10px rgba(255,215,0,0.4) !important;
    }
    #evo-panel-modes > div:first-child .mode-card-item > div:last-child {
        font-size: 11px !important;
        padding: 3px 0 !important;
        font-weight: 900 !important;
    }
    #evo-panel-modes > div:nth-child(2) {
        flex: 1 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        background: #1e293b !important;
        overflow: hidden !important;
    }
    #mode-preview-banner-bg {
        height: 65px !important;
        min-height: 60px !important;
        border-bottom: 2px solid #b48529 !important;
        display: flex !important;
        align-items: flex-end !important;
        position: relative !important;
    }
    #mode-preview-banner-bg button {
        top: 6px !important;
        right: 8px !important;
        padding: 4px 8px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
        font-weight: bold !important;
    }
    #mode-preview-title {
        font-size: 17px !important;
        padding: 6px 14px !important;
        font-weight: 900 !important;
        text-shadow: 2px 2px 4px #000 !important;
        line-height: 1 !important;
    }
    #evo-panel-modes > div:nth-child(2) > div:nth-child(2) {
        margin-top: -15px !important;
        z-index: 5 !important;
    }
    #modal-play-btn {
        font-size: 15px !important;
        font-weight: 900 !important;
        padding: 5px 36px !important;
        border-radius: 8px !important;
        border-width: 2px !important;
        box-shadow: 0 4px 0 #7f0000, 0 6px 15px rgba(0,0,0,0.5) !important;
        letter-spacing: 1px !important;
    }
    #evo-panel-modes > div:nth-child(2) > div:last-child {
        padding: 10px 16px 14px 16px !important;
        overflow-y: auto !important;
        flex: 1 !important;
        box-sizing: border-box !important;
    }
    #evo-panel-modes > div:nth-child(2) > div:last-child h3 {
        font-size: 11px !important;
        margin: 0 0 3px 0 !important;
        color: #FFC107 !important;
        font-weight: 900 !important;
    }
    #evo-panel-modes > div:nth-child(2) > div:last-child p {
        font-size: 11px !important;
        line-height: 1.4 !important;
        margin: 0 0 8px 0 !important;
        color: #cbd5e1 !important;
    }
    #mode-preview-rules {
        font-size: 11px !important;
        line-height: 1.4 !important;
        margin: 0 0 8px 0 !important;
        padding-left: 14px !important;
        color: #cbd5e1 !important;
    }

    #evo-panel-profile { 
        width: 95% !important; 
        height: 94% !important; 
        padding: 12px 16px !important; 
        border: 2px solid #334155 !important; 
        border-radius: 16px !important; 
        overflow-y: auto !important; 
        box-sizing: border-box !important; 
    }
    #evo-panel-profile > div:first-of-type { 
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 10px 14px !important; 
        margin-bottom: 12px !important; 
        border-radius: 14px !important; 
        border-width: 2px !important; 
        box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important; 
    }
    #evo-panel-profile > div:first-of-type > div:first-child { 
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important; 
        width: auto !important;
    }
    #evo-panel-profile > div:first-of-type > div:first-child > div:last-child {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        width: auto !important;
    }
    #evo-panel-profile > div:first-of-type > div:first-child > div:last-child > div:first-child {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
    }
    #prof-img { 
        width: 48px !important; 
        height: 48px !important; 
        padding: 3px !important; 
        border-width: 2px !important; 
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.4) !important;
    }
    #prof-username { 
        font-size: 15px !important; 
        margin: 0 !important;
    }
    #evo-panel-profile > div:first-of-type [style*="#fb8500"] {
        padding: 2px 8px !important;
        border-radius: 8px !important;
    }
    #prof-global-level { 
        font-size: 10px !important; 
    }
    #prof-email { 
        font-size: 9.5px !important; 
        margin-top: 1px !important; 
        color: #94a3b8 !important;
    }
    #evo-panel-profile > div:first-of-type [style*="width: 250px"] { 
        width: 140px !important; 
        height: 7px !important; 
        margin-top: 4px !important; 
        border-radius: 4px !important;
    }
    #prof-xp-text { 
        font-size: 9px !important; 
        margin-top: 2px !important; 
        text-align: right !important;
    }
    #do-logout-btn { 
        width: auto !important;
        min-width: 85px !important;
        height: 34px !important;
        padding: 0 12px !important; 
        font-size: 11px !important; 
        font-weight: 900 !important;
        border-radius: 10px !important; 
        margin: 0 !important;
        align-self: center !important;
        align-items: center !important;
        justify-content: center !important;
    }
    #do-logout-btn[style*="none"] {
        display: none !important;
    }

    #perf-monitor {
        position: fixed !important;
        top: 88px !important;
        left: 15px !important;
        width: 70px !important;
        bottom: auto !important;
        right: auto !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 0 !important;
        gap: 4px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        pointer-events: none !important;
        z-index: 1000 !important;
        box-sizing: border-box !important;
    }
    #perf-fps-container,
    #perf-ping-container {
        display: flex !important;
        flex-direction: row !important;
        align-items: baseline !important;
        gap: 2px !important;
    }
    .perf-label {
        font-size: 6px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        font-weight: bold !important;
        letter-spacing: 0.5px !important;
        margin: 0 !important;
        text-shadow: 0 1px 2px #000 !important;
    }
    #perf-fps {
        font-size: 7.5px !important;
        color: #00f0ff !important;
        font-weight: 900 !important;
        font-family: monospace, sans-serif !important;
        line-height: 1 !important;
        text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 240, 255, 0.7) !important;
    }
    #perf-ping-val {
        font-size: 7.5px !important;
        color: #00f0ff !important;
        font-weight: 900 !important;
        font-family: monospace, sans-serif !important;
        line-height: 1 !important;
        text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 240, 255, 0.7) !important;
    }
    #perf-ping {
        font-size: 7.5px !important;
        color: #00f0ff !important;
        font-weight: 900 !important;
        font-family: monospace, sans-serif !important;
        line-height: 1 !important;
        text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 240, 255, 0.7) !important;
    }
    .perf-unit {
        font-size: 5.5px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        font-weight: normal !important;
        margin-left: 1px !important;
        text-shadow: 0 1px 2px #000 !important;
    }
    #perf-separator {
        display: none !important;
    }

    #evo-panel-profile h3 { 
        font-size: 14px !important; 
        margin: 10px 0 8px 0 !important; 
        padding-bottom: 4px !important; 
        border-bottom-width: 2px !important; 
        letter-spacing: 1px !important; 
    }

    #evo-panel-profile > div:nth-of-type(2) { 
        display: grid !important; 
        grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)) !important; 
        gap: 8px !important; 
    }
    #evo-panel-profile > div:nth-of-type(2) > div { 
        padding: 8px !important; 
        border-radius: 10px !important; 
        border-width: 2px !important; 
        gap: 8px !important; 
        box-shadow: 0 3px 0 #0f172a !important; 
    }
    #evo-panel-profile > div:nth-of-type(2) > div > div:first-child { 
        padding: 6px !important; 
        border-radius: 8px !important; 
        border-width: 1px !important; 
    }
    #evo-panel-profile > div:nth-of-type(2) > div svg { 
        width: 16px !important; 
        height: 16px !important; 
    }
    #evo-panel-profile > div:nth-of-type(2) > div span:first-child { 
        font-size: 8.5px !important; 
        letter-spacing: 0.5px !important; 
    }
    #evo-panel-profile > div:nth-of-type(2) > div span:last-child { 
        font-size: 16px !important; 
    }

    #evo-panel-profile > div:last-of-type,
    #achievements-container { 
        display: grid !important; 
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)) !important; 
        gap: 10px !important; 
        padding-bottom: 25px !important; 
        width: 100% !important; 
        box-sizing: border-box !important; 
    }
    #evo-panel-profile > div:last-of-type > div,
    #achievements-container > div { 
        padding: 10px 6px !important; 
        border-radius: 12px !important; 
        border-width: 2px !important; 
        display: flex !important; 
        flex-direction: column !important; 
        align-items: center !important; 
        justify-content: center !important; 
        min-height: 82px !important; 
        box-sizing: border-box !important; 
    }
    #evo-panel-profile > div:last-of-type > div img,
    #achievements-container > div img { 
        width: 36px !important; 
        height: 36px !important; 
        margin-bottom: 4px !important; 
    }
    #evo-panel-profile > div:last-of-type > div div,
    #achievements-container > div div { 
        font-size: 9px !important; 
        font-weight: 800 !important; 
        text-align: center !important; 
        line-height: 1.2 !important; 
    }

    #evo-panel-settings {
        width: 95% !important;
        height: 94% !important;
        max-height: 94% !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
        padding: 16px 20px 60px 20px !important;
        border: 2px solid #334155 !important;
        border-radius: 16px !important;
        box-sizing: border-box !important;
    }
    #evo-panel-settings h2 {
        font-size: 18px !important;
        margin: 0 10px !important;
    }
    #evo-panel-settings > div:nth-of-type(2) {
        margin-bottom: 16px !important;
    }
    #evo-panel-settings > div:nth-of-type(3) {
        gap: 12px !important;
        margin-bottom: 24px !important;
        padding: 0 5px !important;
    }
    #evo-panel-settings > div:nth-of-type(3) > div > div:first-child {
        font-size: 15px !important;
    }
    #evo-panel-settings label,
    #evo-panel-settings label > div {
        width: 36px !important;
        height: 36px !important;
    }
    #evo-panel-settings label svg {
        width: 20px !important;
        height: 20px !important;
    }
    #evo-panel-settings > div:nth-of-type(4) {
        margin-bottom: 16px !important;
    }
    #evo-panel-settings > div:nth-of-type(5) {
        gap: 15px !important;
        margin-bottom: 25px !important;
    }
    #evo-panel-settings .flag-btn {
        width: 90px !important;
        height: 58px !important;
        border-radius: 8px !important;
    }
    
    .shop-tab-btn { padding: 8px 4px !important; font-size: 10px !important; flex: 1 !important; text-align: center !important; margin: 0 !important; }
    #shop-coin-display { font-size: 14px !important; }
    .shop-tab-content > .shop-grid:not(#emote-grid) { display: flex !important; flex-direction: row !important; overflow-x: auto !important; overflow-y: hidden !important; scroll-snap-type: x mandatory; gap: 12px !important; padding-bottom: 15px; margin-bottom: 5px !important; }
    #shop-tab-emotes #emote-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)) !important; gap: 10px !important; overflow-x: visible !important; overflow-y: visible !important; scroll-snap-type: none !important; padding-bottom: 30px !important; }
    #shop-tab-emotes #emote-grid .shop-card { min-width: 0 !important; width: 100% !important; flex-shrink: 1 !important; }
    .shop-card { min-width: 130px !important; min-height: 150px !important; flex-shrink: 0 !important; scroll-snap-align: start; padding: 12px !important; justify-content: center !important; }
    .shop-card img { width: 45px !important; height: 45px !important; margin-bottom: 5px !important; }
    .shop-card h3 { font-size: 11px !important; margin: 5px 0 10px 0 !important; }
    .shop-btn { padding: 6px 8px !important; font-size: 10px !important; }
    .shop-category-title { margin: 10px 0 5px 0 !important; font-size: 11px !important; }
    
    .guide-grid { display: flex !important; flex-direction: row !important; overflow-x: auto !important; gap: 10px !important; padding-bottom: 10px; }
    .guide-card { min-width: 90px !important; flex-shrink: 0 !important; min-height: 90px !important; padding: 5px !important; }
    .guide-section { padding: 10px !important; margin: 8px 0 !important; }
    .guide-section h3 { font-size: 14px !important; margin-bottom: 5px !important; }
    .guide-title { font-size: 16px !important; margin-bottom: 5px !important; }

    #auth-modal { padding: 10px !important; box-sizing: border-box !important; }
    #auth-modal .modal-box { 
        width: 92% !important; 
        max-width: 380px !important; 
        max-height: 94vh !important; 
        display: flex !important; 
        flex-direction: column !important; 
        overflow: hidden !important; 
        border-radius: 14px !important; 
        border: 2px solid #b48529 !important; 
        box-sizing: border-box !important; 
    }
    #auth-modal .modal-box > div:first-child { flex-shrink: 0 !important; }
    #auth-modal #btn-show-login, #auth-modal #btn-show-register { padding: 10px !important; font-size: 13px !important; }
    #auth-modal .modal-box > div:nth-child(2) { 
        padding: 14px 18px !important; 
        overflow-y: auto !important; 
        flex: 1 1 auto !important; 
        box-sizing: border-box !important; 
    }
    #auth-modal h2 { font-size: 18px !important; margin: 0 0 3px 0 !important; letter-spacing: 1px !important; }
    #auth-modal p { font-size: 11px !important; margin-bottom: 12px !important; margin-top: 0 !important; }
    #auth-modal input[type="text"], 
    #auth-modal input[type="password"], 
    #auth-modal input[type="email"] { 
        padding: 8px 12px !important; 
        font-size: 13px !important; 
        border-radius: 6px !important; 
    }
    #auth-modal label { margin-top: 4px !important; gap: 6px !important; }
    #auth-modal label span { font-size: 10px !important; line-height: 1.3 !important; }
    #do-login-btn, #do-register-btn { 
        padding: 10px !important; 
        font-size: 14px !important; 
        margin-top: 14px !important; 
        border-radius: 8px !important; 
    }
    #auth-modal button[onclick*="auth-modal"] { 
        padding: 8px !important; 
        font-size: 12px !important; 
        margin-top: 8px !important; 
        border-radius: 8px !important; 
    }
}