* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #050510;
    overflow: hidden;
    color: #fff;
}

#starry-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image:
        radial-gradient(1.5px 1.5px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 40px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2.5px 2.5px at 160px 120px, #ffffff, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    z-index: -1;
}


.ico {
    display: inline-block;
    width: 1.25em;
    height: 1.25em;
    flex-shrink: 0;
    vertical-align: middle;
    background-color: currentColor;
    -webkit-mask: var(--i) center / contain no-repeat;
    mask: var(--i) center / contain no-repeat;
}
.ico-home    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E"); }
.ico-book    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1zm0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5v11.5z'/%3E%3C/svg%3E"); }
.ico-trophy  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 5h-2V3H7v2H5c-1.1 0-2 .9-2 2v1c0 2.55 1.92 4.63 4.39 4.94.63 1.5 1.98 2.63 3.61 2.96V19H7v2h10v-2h-4v-3.1c1.63-.33 2.98-1.46 3.61-2.96C19.08 12.63 21 10.55 21 8V7c0-1.1-.9-2-2-2zM5 8V7h2v3.82C5.84 10.4 5 9.3 5 8zm14 0c0 1.3-.84 2.4-2 2.82V7h2v1z'/%3E%3C/svg%3E"); }
.ico-crown   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 16L3 6l5.5 4L12 4l3.5 6L21 6l-2 10H5zm14 3c0 .6-.4 1-1 1H6c-.6 0-1-.4-1-1v-1h14v1z'/%3E%3C/svg%3E"); }
.ico-users   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E"); }
.ico-cart    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49A1.003 1.003 0 0020 4H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E"); }
.ico-gear    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 00.12-.61l-1.92-3.32a.488.488 0 00-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 00-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 00-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z'/%3E%3C/svg%3E"); }
.ico-person  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E"); }
.ico-sun     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z'/%3E%3C/svg%3E"); }
.ico-server  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zM7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM20 3H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1zM7 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z'/%3E%3C/svg%3E"); }
.ico-star    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E"); }
.ico-edit    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 000-1.41l-2.34-2.34a.996.996 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E"); }
.ico-skin    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 13H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zm0-10H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1z'/%3E%3C/svg%3E"); }


#lobby {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    z-index: 100;
    overflow-x: hidden;
    overflow-y: auto;
    background: #050818 url('agaraf-background.png') center center / cover no-repeat fixed;
    user-select: none;
}


#toggleAudioBtn {
    position: fixed;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00d4ff;
    color: #00d4ff;
    padding: 8px 15px;
    cursor: pointer;
    z-index: 9999;
    border-radius: 5px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
}
body:has(#gameContainer[style*="none"]) #toggleAudioBtn {
    top: 19px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 16, 44, 0.85);
    border-radius: 10px;
    font-size: 12px;
}


.lobby-header {
    width: 100%;
    height: 78px;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: rgba(4, 7, 26, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(40, 130, 255, 0.55);
    box-shadow: 0 2px 18px rgba(30, 110, 255, 0.35);
    position: relative;
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 48px;
}

.header-logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.header-logo-img {
    height: 52px;
    width: auto;
    display: block;
}

.server-status-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(10, 16, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 9px 20px 9px 14px;
}

.pulse-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00e04b;
    box-shadow: 0 0 12px #00e04b;
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.12); opacity: 0.7; }
}

.status-texts {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.status-title {
    font-size: 12.5px;
    color: #9aa8cc;
}

.status-ip {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-lang-wrapper {
    margin-right: 12px;
}

.cyber-header-select {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(8, 12, 36, 0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fb3ff' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 15px no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #fff;
    padding: 13px 38px 13px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    min-width: 165px;
}

.header-icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(8, 12, 36, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cfe0ff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.header-icon-btn.profile-icon-btn {
    border: 2px solid #3d8bff;
    background: linear-gradient(135deg, rgba(30, 90, 220, 0.5), rgba(10, 20, 60, 0.9));
    color: #cfe0ff;
}

.header-icon-btn:hover {
    background: rgba(0, 150, 255, 0.2);
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.45);
}


.lobby-content-wrapper {
    display: flex;
    width: 100%;
    flex: 1;
    min-height: calc(100vh - 78px);
    position: relative;
    z-index: 5;
}


.lobby-sidebar {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 28px 22px 26px;
    background: linear-gradient(180deg, rgba(5, 9, 34, 0.86), rgba(3, 5, 22, 0.92));
    border-right: 1px solid rgba(40, 120, 255, 0.35);
    backdrop-filter: blur(6px);
}

.sb-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 58px;
    padding: 0 18px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #dbe6ff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.sb-btn .sb-icon {
    font-size: 26px;
    color: #7aa8ff;
}

.sb-btn:hover {
    background: rgba(40, 90, 220, 0.18);
    border-color: rgba(60, 130, 255, 0.35);
    color: #fff;
}

.sb-btn.active {
    background: linear-gradient(90deg, #0a3fd0, #1566ff);
    color: #fff;
    border-color: #3d8bff;
    box-shadow: 0 0 18px rgba(30, 110, 255, 0.55);
}
.sb-btn.active .sb-icon { color: #fff; }

.sb-btn.gold-btn { color: #ffd21f; }
.sb-btn.gold-btn .sb-icon { color: #ffd21f; }
.sb-btn.gold-btn:hover { border-color: rgba(255, 210, 31, 0.5); background: rgba(255, 210, 31, 0.08); }

.sb-btn.red-btn { color: #ff2d55; }
.sb-btn.red-btn .sb-icon { color: #ff2d55; }
.sb-btn.red-btn:hover { border-color: rgba(255, 45, 85, 0.5); background: rgba(255, 45, 85, 0.08); }

.sidebar-brand-card {
    margin-top: auto;
    background: rgba(8, 12, 36, 0.6);
    border: 1px solid rgba(60, 110, 220, 0.3);
    border-radius: 14px;
    padding: 20px 22px;
    text-align: left;
}

.sbc-title {
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 2px;
    color: #4a5a85;
}

.sbc-desc {
    font-size: 12.5px;
    letter-spacing: 1px;
    color: #4a5a85;
    margin-top: 6px;
}


.lobby-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px 26px 22px;
}

.lobby-stage {
    width: 100%;
    max-width: 1198px;
}


.hero-brand-section {
    text-align: center;
    margin-bottom: 22px;
}

.hero-brand-h1 {
    line-height: 0;
    margin: 0;
}

.hero-logo-img {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 0 22px rgba(0, 150, 255, 0.45));
}


.hero-brand-subtitle {
    display: none;
    font-size: 12.5px;
    letter-spacing: 8px;
    color: #7ea8ff;
    font-weight: bold;
    margin-top: 4px;
}


.lobby-cards-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 22px;
    width: 100%;
}

.col-left {
    display: none; 
}

.cards-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.col-center {
    width: 100%;
    max-width: 520px;
    flex: 1 1 500px;
}

.col-right {
    width: 320px;
    flex-shrink: 0;
    margin-left: 0;
}


.cyber-card {
    background: rgba(6, 10, 38, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(50, 125, 255, 0.55);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 0 20px rgba(30, 100, 255, 0.25), inset 0 0 24px rgba(20, 60, 170, 0.14);
}

.card-head-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.card-head-title .slashes {
    color: #4d8dff;
    font-weight: 400;
    font-style: italic;
}

.card-head-title .ico { color: #6aa8ff; font-size: 20px; }

.card-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.card-head-row .card-head-title { margin-bottom: 0; }

.card-close-x {
    background: none;
    border: none;
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
}
.card-close-x:hover { color: #fff; }


.card-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-menu-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    color: #e3ebff;
    transition: all 0.2s;
}

.card-menu-list li .cml-icon { color: #7ab4ff; font-size: 22px; }

.card-menu-list li:first-child {
    background: linear-gradient(90deg, rgba(30, 110, 255, 0.28), rgba(30, 110, 255, 0.04));
    color: #33c4ff;
}
.card-menu-list li:first-child .cml-icon { color: #33c4ff; }

.card-menu-list li:hover {
    background: rgba(40, 110, 255, 0.18);
    color: #fff;
}

.card-menu-list li.gold-cml,
.card-menu-list li.gold-cml .cml-icon { color: #ffd21f; }
.card-menu-list li.gold-cml:hover { background: rgba(255, 210, 31, 0.1); }

.card-menu-list li.red-cml,
.card-menu-list li.red-cml .cml-icon { color: #ff2d55; }
.card-menu-list li.red-cml:hover { background: rgba(255, 45, 85, 0.1); }

.card-menu-list li:last-child { border-bottom: none; }


.cyber-input {
    width: 100%;
    background: rgba(6, 9, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 11px 13px;
    border-radius: 8px;
    color: #fff;
    font-size: 13.5px;
    margin-bottom: 9px;
    outline: none;
    transition: border-color 0.2s;
}
.cyber-input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.cyber-btn-blue {
    background: linear-gradient(135deg, #00d4ff, #0077b6);
    color: #000;
    font-weight: 800;
    border: none;
    padding: 11px;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    font-size: 13px;
    transition: all 0.2s;
}
.cyber-btn-blue:hover { box-shadow: 0 0 15px rgba(0, 212, 255, 0.6); transform: translateY(-1px); }

.cyber-btn-purple {
    background: linear-gradient(135deg, #7b2cbf, #5a189a);
    color: #fff;
    font-weight: 800;
    border: none;
    padding: 11px;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    font-size: 13px;
    transition: all 0.2s;
}
.cyber-btn-purple:hover { box-shadow: 0 0 15px rgba(123, 44, 191, 0.6); transform: translateY(-1px); }

.cyber-btn-glass {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    padding: 9px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}
.cyber-btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.cyber-btn-gold {
    background: linear-gradient(135deg, #ffd700, #ff9e00);
    color: #000;
    font-weight: 800;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.cyber-btn-gold:hover { box-shadow: 0 0 15px rgba(255, 215, 0, 0.6); }

.cyber-btn-red {
    background: linear-gradient(135deg, #ff4444, #b30000);
    color: #fff;
    font-weight: 800;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.cyber-btn-red:hover { box-shadow: 0 0 15px rgba(255, 68, 68, 0.6); }

.auth-btn-row {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.auth-err-msg {
    font-size: 12px;
    margin-bottom: 6px;
    min-height: 16px;
}


.dash-card {
    border-color: rgba(150, 70, 255, 0.65);
    box-shadow: 0 0 22px rgba(140, 60, 255, 0.28), inset 0 0 24px rgba(90, 30, 170, 0.14);
}

.dash-role-badge {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: #c4122f;
    color: #fff;
}

.dash-id-line {
    font-size: 13px;
    color: #9aa8cc;
    margin-bottom: 2px;
}

.dash-username-lg {
    font-size: 23px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.dash-rank-info {
    font-size: 15px;
    color: #9db6e8;
    margin-bottom: 8px;
}

.dash-stats-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 4px;
    font-size: 15.5px;
    font-weight: 600;
}

.dash-stats-row .ico { font-size: 20px; margin-right: 4px; }
.ds-gold, .ds-gold .gold-text { color: #ffc933; }
.ds-wins, .ds-wins .green-text { color: #7cff1f; }

.dash-clan-line {
    font-size: 15px;
    color: #dbe6ff;
    margin-bottom: 10px;
    font-weight: 500;
}
.dash-clan-line .ico { color: #9db6e8; font-size: 20px; margin-right: 4px; }

.cyber-btn-names {
    width: 100%;
    background: rgba(0, 212, 255, 0.06);
    border: 1px dashed rgba(0, 212, 255, 0.3);
    color: #6ab4ff;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: left;
    transition: all 0.2s;
}
.cyber-btn-names:hover { background: rgba(0, 212, 255, 0.16); }

.my-names-drawer {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    background: rgba(5, 4, 15, 0.85);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    margin-bottom: 12px;
    max-height: 120px;
    overflow-y: auto;
}

.my-name-tag {
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.35);
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.15s;
}
.my-name-tag:hover {
    background: #00d4ff;
    color: #000;
}


.dash-record-attempt-box {
    margin-top: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 140, 0, 0.12));
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.dash-record-attempt-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, #ff8c00, transparent);
}
.record-attempt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.record-attempt-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.record-attempt-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #ffd700;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}
.record-attempt-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.badge-inactive {
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.badge-active {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    border: 1px solid #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: badge-pulse 1.5s ease-in-out infinite;
}
@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 0 14px rgba(255, 215, 0, 0.8); }
}
.record-attempt-desc {
    font-size: 11px;
    color: #9aa;
    line-height: 1.5;
    margin-bottom: 10px;
}
.cyber-btn-record-attempt {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #b8860b, #daa520);
    border: 1px solid #ffd700;
    color: #000;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}
.cyber-btn-record-attempt:hover {
    background: linear-gradient(135deg, #daa520, #ffd700);
    box-shadow: 0 0 18px rgba(255, 215, 0, 0.6);
    transform: translateY(-1px);
}
.cyber-btn-record-attempt:disabled {
    background: rgba(100, 100, 100, 0.4);
    border-color: #555;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.record-attempt-status-msg {
    font-size: 11px;
    margin-top: 6px;
    text-align: center;
    min-height: 14px;
}

.dash-redeem-box {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.redeem-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #ffc933;
    margin-bottom: 8px;
}

.redeem-row {
    display: flex;
    gap: 8px;
}

.redeem-input {
    flex: 1;
    min-width: 0;
    background: rgba(6, 9, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffd700;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    outline: none;
}
.redeem-input::placeholder { color: #4a5a85; }

.redeem-btn {
    background: linear-gradient(135deg, #ffd21f, #ffb000);
    border: none;
    color: #000;
    padding: 0 16px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
}

.redeem-status-msg {
    font-size: 11px;
    margin-top: 4px;
    min-height: 14px;
}


.play-main-card {
    border: 1.5px solid rgba(90, 100, 255, 0.7);
    box-shadow: 0 0 30px rgba(80, 90, 255, 0.3), inset 0 0 26px rgba(60, 60, 200, 0.14);
    padding: 20px 24px 24px;
}

.play-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.avatar-ring {
    width: 66px;
    height: 66px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 80, 200, 0.35), rgba(10, 20, 60, 0.9));
    border: 2px solid #3d6fd8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #b9cdf5;
    box-shadow: 0 0 16px rgba(60, 120, 255, 0.4);
}

.play-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}
.play-card-title .ico { color: #6aa8ff; font-size: 17px; }

.play-card-sub {
    font-size: 14px;
    color: #9aa8cc;
    margin-top: 4px;
}

.play-selectors-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.selector-box {
    flex: 1;
    position: relative;
}

.selector-box.sel-user::before,
.selector-box.sel-skin::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    background-color: #7a98d6;
    -webkit-mask: var(--i) center / contain no-repeat;
    mask: var(--i) center / contain no-repeat;
    pointer-events: none;
    z-index: 2;
}
.selector-box.sel-user::before {
    --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}
.selector-box.sel-skin::before {
    --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 13H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zm0-10H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1z'/%3E%3C/svg%3E");
}

.play-nick-cyber,
.cyber-dropdown {
    width: 100%;
    height: 46px;
    background-color: rgba(8, 12, 38, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    padding: 0 38px 0 44px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.cyber-dropdown {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fb3ff' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 15px;
}

.play-nick-cyber {
    cursor: text;
    text-transform: uppercase;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fb3ff' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 15px;
}
.play-nick-cyber::placeholder { color: #6f82b0; }
.play-nick-cyber:focus,
.cyber-dropdown:focus {
    border-color: #4d8dff;
    box-shadow: 0 0 14px rgba(60, 120, 255, 0.4);
}


.clan-select-box { display: none; }
.clan-select-box:has(option:nth-child(2)) { display: block; margin-bottom: 16px; }
.clan-select-box .cyber-dropdown { padding-left: 14px; }

.play-huge-cyber-btn {
    width: 100%;
    height: 82px;
    background: linear-gradient(180deg, #5b4dff 0%, #7a35f0 55%, #9a2fe0 100%);
    border: 2px solid transparent;
    border-radius: 14px;
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    background-clip: padding-box;
    box-shadow: 0 0 0 2px rgba(190, 90, 255, 0.55), 0 0 30px rgba(130, 70, 255, 0.65), inset 0 0 22px rgba(255, 255, 255, 0.12);
    transition: all 0.25s ease;
    text-transform: uppercase;
}

.play-huge-cyber-btn:hover {
    transform: scale(1.015);
    box-shadow: 0 0 0 2px rgba(220, 110, 255, 0.8), 0 0 46px rgba(150, 80, 255, 0.9), inset 0 0 22px rgba(255, 255, 255, 0.18);
}


.server-card {
    border-color: rgba(40, 170, 255, 0.7);
    box-shadow: 0 0 22px rgba(30, 150, 255, 0.3), inset 0 0 24px rgba(20, 90, 190, 0.14);
}

.server-cyber-dropdown {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 46px;
    background: rgba(8, 12, 38, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='%2300e676'%3E%3Crect x='1' y='11' width='2.5' height='4'/%3E%3Crect x='5' y='8' width='2.5' height='7'/%3E%3Crect x='9' y='5' width='2.5' height='10'/%3E%3Crect x='13' y='2' width='2.5' height='13'/%3E%3C/g%3E%3C/svg%3E") right 14px center / 15px no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    padding: 0 38px 0 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    margin-bottom: 14px;
}

.active-servers-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #9db6e8;
}

.dot-green {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #00e04b;
    box-shadow: 0 0 8px #00e04b;
}


.market-sub-text {
    font-size: 11.5px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.market-input-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.market-input-row .cyber-input {
    margin-bottom: 0;
}

.market-input-row .cyber-dropdown {
    padding-left: 12px;
    height: auto;
    min-height: 40px;
}

.cyber-input-emoji {
    width: 55px;
    background: rgba(8, 6, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    text-align: center;
    outline: none;
}

.gold-text { color: #ffd21f; }

.dash-record-display {
    font-size: 16px;
    font-weight: 900;
    color: #ffd700;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 12px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 215, 0, 0.4);
    margin-bottom: 12px;
}


.lobby-footer-slogan {
    align-self: flex-end;
    text-align: right;
    margin-top: auto;
    padding: 24px 40px 0 0;
}

.slogan-brand {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #fff;
    opacity: 0.18;
}

.slogan-tech-line {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #4d78c8;
    margin-top: 6px;
}

.stl-bracket {
    color: #4d78c8;
    font-size: 14px;
}


#modalOverlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

#modalContent {
    background: rgba(15, 10, 32, 0.95);
    border: 1.5px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 212, 255, 0.2);
    border-radius: 14px;
    padding: 24px;
    min-width: 480px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

#modalHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

#modalTitle {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #00d4ff;
}

#closeModalBtn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
}
#closeModalBtn:hover { color: #fff; }

@media (min-width: 992px) {
    #colLeft {
        display: none !important;
    }
}


@media (max-width: 991px) {
    #colLeft {
        display: block; 
    }
}


#gameContainer { position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; overflow: hidden; background-color: #050510; }
canvas { display: block; width: 100%; height: 100%; }
#ui-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }


.green-text { color: #00ff00; }
.red-text { color: #ff0000; }
.bold { font-weight: bold; }


#topLeftUI { position: absolute; top: 40px; left: 40px; }
#goldText { color: #ffff00; font-weight: bold; font-size: 16px; margin-bottom: 5px; }
#minimap { background-color: rgba(0, 50, 0, 0.7); border: 1px solid #00ff00; border-radius: 2px; }


#topCenterUI { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); text-align: center; }
#timerText { color: #ffff00; font-size: 26px; font-weight: bold; letter-spacing: 1px; text-shadow: 1px 1px 2px #000; }


#topRightUI { position: absolute; top: 20px; right: 20px; text-align: right; }
#topRightLeaderboard { color: #ff0000; font-weight: bold; font-size: 14px; margin-bottom: 10px; }
#playerCount { color: #ff9900; font-size: 12px; line-height: 1.4; }


#middleRightUI { position: absolute; top: 50%; right: 20px; transform: translateY(-50%); background: rgba(30,30,40,0.6); padding: 5px; border-radius: 3px; min-width: 150px; pointer-events: auto; }
#kdTable { width: 100%; border-collapse: collapse; font-size: 12px; font-weight: bold; }
#kdTable th { padding-bottom: 5px; text-align: right; }
#kdTable th:first-child { text-align: left; }
#kdTable td { padding: 2px 0; text-align: right; }
#kdTable td:first-child { text-align: left; color: #ccc; }


#bottomRightUI { position: absolute; bottom: 20px; right: 20px; background: rgba(30,30,40,0.6); padding: 10px; border-radius: 3px; width: 150px; }
#dailyBestList { padding-left: 20px; font-size: 12px; margin-top: 5px; font-weight: bold; }
#dailyBestList li { margin-bottom: 2px; }


#bottomLeftUI { position: absolute; bottom: 20px; left: 20px; width: 300px; pointer-events: auto; }
#chatMessages { max-height: 200px; overflow-y: auto; display: flex; flex-direction: column; justify-content: flex-end; margin-bottom: 5px; }
.chat-msg { margin-bottom: 3px; font-size: 13px; font-weight: bold; text-shadow: 1px 1px 1px #000; }
.chat-name { color: #ff3333; }
.chat-clan { color: #aaaaaa; margin-right: 5px; }
.chat-text { background-color: rgba(255,255,255,0.85); color: #000; padding: 1px 5px; border-radius: 2px; display: inline-block; text-shadow: none; }
.chat-system { color: #ffff00; font-style: italic; }
#chatInput { width: 100%; padding: 6px; background: rgba(0,0,0,0.5); border: 1px solid #555; color: #fff; font-size: 13px; outline: none; }
#chatInput:focus { background: rgba(0,0,0,0.8); border-color: #fff; }
.chat-channel-toggle { display:flex; align-items:center; gap:6px; width:fit-content; padding:5px 9px; margin-bottom:5px; border:1px solid #445366; border-radius:7px; background:rgba(12,20,32,.85); color:#dbe6f5; font:12px Arial,sans-serif; cursor:pointer; }
.chat-channel-toggle input { accent-color:#adf568; cursor:pointer; }
.chat-channel-toggle:has(input:checked) { border-color:#adf568; color:#c7ff9a; }
.chat-channel-toggle small { color:#9baaaf; font-size:10px; }
.chat-profile { text-decoration:none; cursor:pointer; }
.chat-profile:hover { text-decoration:underline; filter:brightness(1.25); }
.chat-profile:focus-visible { outline:2px solid #adf568; outline-offset:2px; }
.chat-private { color:#bdff8b; background:#243b22; border-radius:3px; font:700 10px Arial,sans-serif; padding:2px 4px; margin-right:4px; }
.chat-clan-message .chat-text { background:#ddf5d1; }


#bottomCenterUI { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: flex-end; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.segments { display: flex; flex-direction: column-reverse; gap: 2px; margin-bottom: 2px; }
.segment { width: 15px; height: 6px; background-color: rgba(0,0,0,0.5); border-radius: 1px; }
.icon-box { width: 20px; height: 20px; display: flex; justify-content: center; align-items: center; color: white; font-weight: bold; font-size: 14px; border-radius: 2px; }
.icon-m { background-color: #0044ff; border: 1px solid #0088ff; }
.icon-o { background-color: #ff00ff; border: 1px solid #ff88ff; }
.icon-p { background-color: #ff6600; border: 1px solid #ffaa00; }

.seg-red { background-color: #ff0000; box-shadow: 0 0 5px #ff0000; }
.seg-green { background-color: #00ff00; box-shadow: 0 0 5px #00ff00; }


#deathScreen { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.8); padding: 40px; border-radius: 10px; text-align: center; pointer-events: auto; }
#deathScreen h2 { color: #ff3333; margin-bottom: 20px; font-size: 32px; }
#respawnBtn { padding: 10px 20px; font-size: 18px; cursor: pointer; background: #2ecc71; color: white; border: none; border-radius: 5px; }

#winnerBanner { position: absolute; top: 50%; left: 0; width: 100vw; transform: translateY(-50%); background-color: rgba(50, 205, 50, 0.85); padding: 30px 0; text-align: center; z-index: 1000; pointer-events: auto; }
.winner-text { font-size: 48px; color: #ffeb3b; font-weight: 900; text-shadow: 2px 2px 4px rgba(0,0,0,0.8); }


.status-text {
    font-size: 13px;
    font-weight: 700;
    color: #a4c2f4;
    letter-spacing: 0.5px;
}
.status-online {
    color: #00e04b;
    font-weight: 800;
    margin-left: 4px;
}


.cyber-btn-logout {
    width: 100%;
    margin-top: 10px;
    background: rgba(255, 51, 68, 0.12);
    border: 1px solid rgba(255, 51, 68, 0.45);
    color: #ff5566;
    padding: 9px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
}
.cyber-btn-logout:hover {
    background: rgba(255, 51, 68, 0.25);
    color: #fff;
    border-color: #ff3344;
    box-shadow: 0 0 12px rgba(255, 51, 68, 0.4);
}


.mobile-lobby-tabs {
    display: none;
    width: 100%;
    max-width: 480px;
    margin: 12px auto 6px;
    padding: 0 12px;
    gap: 8px;
    z-index: 15;
}

.mob-tab-btn {
    flex: 1;
    height: 42px;
    background: rgba(10, 16, 44, 0.85);
    border: 1px solid rgba(60, 120, 255, 0.35);
    border-radius: 10px;
    color: #9ab3e8;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.mob-tab-btn:hover {
    color: #fff;
    border-color: rgba(60, 140, 255, 0.6);
}

.mob-tab-btn.active {
    background: linear-gradient(135deg, rgba(30, 100, 255, 0.35), rgba(120, 50, 240, 0.35));
    border-color: #00d4ff;
    color: #00d4ff;
    box-shadow: 0 0 14px rgba(0, 212, 255, 0.35);
}


body.cyber-glow-theme #lobby {
    background-color: #070c24;
    box-shadow: inset 0 0 100px rgba(0, 212, 255, 0.15);
}
body.cyber-glow-theme .cyber-card {
    border-color: rgba(0, 212, 255, 0.65);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.35);
}


@media (max-width: 1250px) {
    .lobby-cards-grid {
        grid-template-columns: 291px minmax(0, 1fr);
    }
    .col-right { grid-column: 1 / -1; margin-left: 0; }
}

@media (max-width: 900px) {
    .lobby-sidebar { display: none !important; }
    .mobile-lobby-tabs { display: flex; }

    .lobby-header {
        padding: 0 12px;
        height: 64px;
    }
    .header-left { gap: 10px; }
    .header-logo-img { height: 34px; }
    .server-status-pill {
        display: flex;
        padding: 5px 10px;
    }
    .server-status-pill .pulse-dot {
        width: 10px;
        height: 10px;
    }
    .status-text {
        font-size: 11px;
    }

    .header-right { gap: 6px; }
    .header-lang-wrapper { margin-right: 0; }
    .cyber-header-select {
        min-width: 0;
        padding: 6px 22px 6px 8px;
        font-size: 11px;
        height: 34px;
        background-size: 12px;
    }
    .header-icon-btn {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }

    
    #toggleAudioBtn {
        font-size: 11px;
        padding: 6px 10px;
        border-radius: 6px;
    }
    body:has(#gameContainer[style*="none"]) #toggleAudioBtn {
        top: auto;
        bottom: 14px;
        left: 14px;
        transform: none;
        background: rgba(6, 10, 32, 0.9);
        border: 1px solid rgba(0, 212, 255, 0.4);
    }

    .lobby-content-wrapper {
        padding: 0 10px;
        margin: 6px auto 24px;
    }

    .lobby-main {
        padding: 0;
        width: 100%;
    }

    .lobby-stage {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }

    .hero-brand-section {
        margin-bottom: 8px;
    }
    .hero-brand-h1 {
        line-height: 1;
    }
    .hero-logo-img {
        max-width: 220px;
        max-height: 52px;
        width: auto;
        height: auto;
    }
    .hero-brand-subtitle {
        font-size: 10px;
        letter-spacing: 4px;
    }

    .lobby-cards-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .cards-col {
        width: 100%;
        gap: 12px;
    }
    .col-right {
        margin-left: 0;
    }

    .cyber-card {
        padding: 14px 16px;
        border-radius: 12px;
    }

    .card-head-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    
    .play-main-card {
        padding: 16px 18px 20px;
    }
    .play-card-header {
        gap: 12px;
        margin-bottom: 14px;
    }
    .avatar-ring {
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    .play-card-title {
        font-size: 17px;
    }
    .play-card-sub {
        font-size: 12px;
    }

    .play-selectors-row {
        gap: 10px;
        margin-bottom: 12px;
    }
    .play-nick-cyber,
    .cyber-dropdown {
        height: 44px;
        font-size: 14px;
    }

    .play-huge-cyber-btn {
        height: 60px;
        font-size: 24px;
        border-radius: 12px;
        margin-top: 4px;
    }

    .lobby-footer-slogan {
        display: none;
    }
}

@media (max-width: 768px) {
    #toggleAudioBtn { font-size: 11px; padding: 5px 8px; }

    
    #bottomLeftUI { display: none; }
    #topRightLeaderboard { font-size: 10px; }
    #bottomCenterUI { bottom: 10px; transform: translateX(-50%) scale(0.8); }

    #modalContent { min-width: 90%; max-width: 95%; padding: 15px; }
    #modalTitle { font-size: 20px !important; }
}

@media (max-width: 900px) and (orientation: portrait) {
    #portraitWarning { display: flex !important; }
}


@media (min-width: 992px) {
    
    #colLeft {
        display: none !important;
    }

    
    .lobby-cards-grid {
        display: grid !important;
        grid-template-columns: 1fr 1.2fr 1fr !important;
        gap: 20px;
        align-items: start;
    }

    
    #colCenter {
        display: contents !important;
    }

    
    #authPanel, 
    #dashboardPanel {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
    }

    
    .play-main-card {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 100% !important;
    }

    
    #colRight {
        grid-column: 3 !important;
        grid-row: 1 !important;
        width: 100% !important;
    }
}


.ko-effect-container {
    position: absolute;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%) rotate(-10deg);
    font-family: 'Orbitron', sans-serif;
    font-size: 85px; 
    font-weight: 900;
    font-style: italic; 
    
    
    background: linear-gradient(to bottom, #ffffff 0%, #ffd700 40%, #ff0000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    
    filter: drop-shadow(5px 5px 0px #8b0000) 
            drop-shadow(-2px -2px 0px #ffeb3b) 
            drop-shadow(0px 0px 20px rgba(255, 0, 0, 0.9));
            
    opacity: 0;
    
    animation: koEpic 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes koEpic {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.2) rotate(-30deg); 
    }
    15% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1.3) rotate(-5deg); 
        filter: brightness(1.5) drop-shadow(0 0 40px #ff0000); 
    }
    30% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1) rotate(-10deg); 
    }
    70% { 
        opacity: 1; 
        transform: translate(-50%, -60%) scale(1) rotate(-10deg); 
    }
    100% { 
        opacity: 0; 
        transform: translate(-50%, -150%) scale(1.5) rotate(0deg); 
        filter: blur(4px); 
    }
}


.record-active-glow {
    font-family: 'Orbitron', sans-serif;
    color: #ffd700; 
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-shadow: 0 0 5px #ffd700, 0 0 10px #ffaa00;
    
    animation: pulseGold 1.5s infinite alternate;
}

@keyframes pulseGold {
    0% { 
        opacity: 0.3; 
        text-shadow: 0 0 2px #ffd700; 
    }
    100% { 
        opacity: 1; 
        text-shadow: 0 0 8px #ffd700, 0 0 15px #ffaa00; 
    }
}

.record-sabotage-text {
    font-family: 'Orbitron', sans-serif;
    color: #ff3333; 
    font-size: 10px;
    font-weight: bold;
    margin-top: 2px;
    text-shadow: 0 0 5px #ff0000;
}




html, body {
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

#gameContainer {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    overflow: hidden;
    touch-action: none !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

#gameCanvas {
    touch-action: none !important;
}


#inGameMobileMenuBtn {
    
    pointer-events: auto !important;
    touch-action: manipulation;
}

#inGameMobileMenuBtn:active {
    transform: scale(0.95);
    background: rgba(0, 212, 255, 0.25) !important;
}


@media (min-width: 901px) {
    #inGameMobileMenuBtn {
        display: none !important;
    }
}



.discord-join-link {
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px auto 0;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 7px;
    background: #5865f2;
    color: #fff;
    font: 700 12px/1.2 sans-serif;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(88, 101, 242, 0.22);
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.discord-join-link:hover { background: #4752c4; transform: translateY(-1px); }
.discord-join-link svg { width: 17px; height: 17px; fill: currentColor; flex: 0 0 auto; }
@media (max-width: 768px) {
    .discord-join-link { margin-top: 8px; padding: 7px 11px; font-size: 11px; }
}


.agaraf-layout-v2 .lobby-sidebar { display:none !important; }
.agaraf-layout-v2 .lobby-main { padding:26px 28px 40px; align-items:center; }
.agaraf-layout-v2 .lobby-stage { max-width:1320px; margin:0 auto; }
.agaraf-layout-v2 .hero-brand-section { margin:0 auto 30px; }
.agaraf-layout-v2 .hero-logo-img { max-width:480px; }
.agaraf-layout-v2 .lobby-cards-grid {
    display:grid !important; grid-template-columns:minmax(290px, .96fr) minmax(350px,1.2fr) minmax(265px,.88fr) !important;
    align-items:start; gap:22px;
}
.agaraf-layout-v2 #colLeft,
.agaraf-layout-v2 #colCenter,
.agaraf-layout-v2 #colRight {
    display:flex !important; flex-direction:column; width:100% !important; max-width:none;
    min-width:0; grid-column:auto !important; grid-row:auto !important; gap:16px;
}
.agaraf-layout-v2 #authPanel,
.agaraf-layout-v2 #dashboardPanel,
.agaraf-layout-v2 .play-main-card { grid-column:auto !important; grid-row:auto !important; }
.agaraf-layout-v2 .menu-card { border-color:rgba(151,77,255,.72); }
.agaraf-layout-v2 .card-menu-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:0; list-style:none; }
.agaraf-layout-v2 .card-menu-list li {
    min-width:0; display:flex; align-items:center; gap:8px; margin:0; padding:11px 9px;
    border:1px solid #2b4477; border-radius:8px; background:linear-gradient(135deg,#101d3c,#080e26);
    color:#dce8ff; font-size:12px; line-height:1.35; cursor:pointer; transition:background .15s,border-color .15s;
}
.agaraf-layout-v2 .card-menu-list li:hover { background:#162c55; border-color:#5899ff; }
.agaraf-layout-v2 #menuBuyPremiumBtn { grid-column:1/-1; justify-content:center; padding:12px; }
.agaraf-layout-v2 :is(button,a,[role=button]):focus-visible { outline:2px solid #55eaff; outline-offset:3px; }
.agaraf-layout-v2 .profile-detail { display:none !important; }
.agaraf-layout-v2 .profile-avatar { display:none; }
.agaraf-layout-v2 .dash-record-attempt-box { margin-top:16px; }
.agaraf-layout-v2 .account-navigation { display:grid; gap:10px; margin-top:16px; }
.agaraf-layout-v2 .profile-link {
    display:flex; align-items:center; justify-content:center; gap:10px; min-height:44px;
    padding:10px; border:1px solid #4399ff; border-radius:8px; color:white; font-weight:700;
    text-decoration:none; background:linear-gradient(120deg,#0652cf,#078de2); box-shadow:0 5px 18px #087bea25;
}
.agaraf-layout-v2 .profile-link span:last-child { margin-left:auto; }
.agaraf-layout-v2 .account-navigation-row { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.agaraf-layout-v2 .account-navigation-row button { width:100%; margin:0; padding:10px 6px; font-size:12px; min-height:39px; }
.agaraf-layout-v2 .password-change-btn { color:#bbd2ff; background:#111c37; border:1px solid #344d78; border-radius:7px; cursor:pointer; }
.agaraf-layout-v2 .auth-btn-row { flex-wrap:wrap; }
.agaraf-layout-v2 #forgotPasswordLink { width:100%; }
.agaraf-layout-v2 #menuCard .card-head-title { margin-bottom:16px; }
.agaraf-layout-v2 .lobby-footer-slogan { margin-top:32px; }
.profile-page #lobby { background-image:linear-gradient(120deg,#050917dd,#080b22e8),url('agaraf-background.png'); }
.profile-page .hero-brand-section, .profile-page .play-main-card, .profile-page .server-card,
.profile-page .lobby-footer-slogan, .profile-page #toggleAudioBtn { display:none !important; }
.profile-page .profile-page-heading { display:flex; justify-content:space-between; align-items:center; gap:24px; margin:24px 0 32px; }
.profile-eyebrow { display:block; color:#7ac7ff; font-size:11px; font-weight:700; letter-spacing:3px; margin-bottom:15px; }
.profile-page-heading h1 { font-size:clamp(27px,3.1vw,46px); letter-spacing:-1.3px; line-height:1.15; }
.profile-page-heading h1 em { font-style:normal; color:#91aaff; }
.profile-page-heading p { color:#97a8c9; line-height:1.6; margin-top:15px; font-size:14px; }
.profile-back { display:inline-flex; flex-shrink:0; padding:12px 18px; color:#dbedff; border:1px solid #375884; border-radius:9px; text-decoration:none; background:#0e1b35; font-weight:700; font-size:13px; }
.profile-session-note { padding:16px 20px; margin-bottom:20px; color:#bdd3f5; border:1px solid #38517c; background:#101b34; border-radius:10px; font-size:14px; line-height:1.5; }
.profile-page .lobby-cards-grid { grid-template-columns:260px minmax(0,1fr) !important; }
.profile-page #colLeft { display:contents !important; }
.profile-page #menuCard { grid-column:1 !important; grid-row:1 !important; }
.profile-page #authPanel { grid-column:2 !important; grid-row:1 !important; }
.profile-page #dashboardPanel {
    grid-column:2 !important; grid-row:1 / span 3 !important;
    border-color:#46699a; padding:26px;
}
.profile-page #colCenter { display:none !important; }
.profile-page #colRight { grid-column:1 !important; grid-row:2 !important; }
.profile-page .profile-detail { display:block !important; }
.profile-page .profile-identity {
    padding:24px; background:radial-gradient(ellipse at top right,#28407788,transparent 70%),#0b142c;
    border:1px solid #344d7d; border-radius:14px; margin:16px 0 20px;
}
.profile-page .profile-avatar { display:flex; align-items:center; justify-content:center; float:left; width:76px; height:76px; margin:0 20px 12px 0; border:2px solid #56bcff; border-radius:22px; color:#a3d8ff; background:linear-gradient(135deg,#144780,#151637); box-shadow:0 0 25px #3690ff2b; font-size:35px; }
.profile-page .dash-username-lg { font-size:30px; margin:5px 0; }
.profile-page .dash-stats-row { display:flex; gap:26px; clear:both; padding-top:20px; margin-top:16px; border-top:1px solid #273b60; }
.profile-page .dash-stats-row > div { font-size:19px; }
.profile-page .dash-clan-line { padding:18px; border:1px solid #263c5f; border-radius:10px; background:#0b152b; }
.profile-page .dash-invite-box { margin:16px 0 !important; padding:18px !important; border-radius:10px !important; }
.profile-page .my-names-section { margin:18px 0; }
.profile-page .dash-redeem-box { margin-top:18px; padding:20px; background:linear-gradient(120deg,#29230d66,#10162e); border:1px solid #736031; border-radius:12px; }
.profile-page .dash-record-attempt-box { display:none; }
.profile-page .account-navigation { border-top:1px solid #263958; padding-top:20px; }
.profile-page .profile-link { display:none; }
.profile-page .account-navigation-row { max-width:380px; margin-left:auto; }
.profile-page .my-names-drawer { max-height:280px; overflow:auto; }
.profile-page .redeem-input, .profile-page #inviteLinkInput { min-width:0; }
@media (min-width:901px) and (max-width:1150px) {
    .agaraf-layout-v2 .lobby-cards-grid { grid-template-columns:minmax(290px,.9fr) minmax(350px,1.1fr) !important; }
    .agaraf-layout-v2 #colRight { grid-column:2 !important; grid-row:2 !important; }
    .profile-page .lobby-cards-grid { grid-template-columns:235px minmax(0,1fr) !important; }
    .profile-page #colRight { grid-column:1 !important; }
}
@media (max-width:900px) {
    .agaraf-layout-v2 .lobby-main { padding:12px 0 24px; }
    .agaraf-layout-v2 .lobby-stage { max-width:580px; }
    .agaraf-layout-v2 .lobby-cards-grid { display:flex !important; flex-direction:column; gap:14px; }
    .agaraf-layout-v2 .lobby-cards-grid > .cards-col { width:100%; }
    .agaraf-layout-v2 .hero-logo-img { max-width:310px; max-height:104px; }
    .agaraf-layout-v2 #colLeft, .agaraf-layout-v2 #colCenter, .agaraf-layout-v2 #colRight { display:none !important; }
    .agaraf-layout-v2[data-lobby-tab=play] #colCenter,
    .agaraf-layout-v2[data-lobby-tab=auth] #colLeft,
    .agaraf-layout-v2[data-lobby-tab=menu] #colLeft,
    .agaraf-layout-v2[data-lobby-tab=market] #colRight { display:flex !important; }
    .agaraf-layout-v2[data-lobby-tab=auth] #menuCard { display:none !important; }
    .agaraf-layout-v2[data-lobby-tab=menu] #authPanel,
    .agaraf-layout-v2[data-lobby-tab=menu] #dashboardPanel { display:none !important; }
    .agaraf-layout-v2[data-lobby-tab=market] .server-card { display:none; }
    .agaraf-layout-v2 #portraitWarning { display:none !important; }

    .profile-page #mobileLobbyTabs { display:none; }
    .profile-page #colLeft { display:flex !important; }
    .profile-page #menuCard { display:none !important; }
    .profile-page #colRight { display:flex !important; }
    .profile-page #colCenter { display:none !important; }
    .profile-page #dashboardPanel { padding:18px; }
    .profile-page .profile-page-heading { margin-top:10px; flex-direction:column; align-items:flex-start; gap:18px; }
    .profile-page .profile-page-heading h1 { font-size:32px; }
    .profile-page .profile-identity { padding:18px; }
    .profile-page .profile-avatar { width:58px; height:58px; margin-right:13px; }
    .profile-page .dash-stats-row { gap:16px; }
    .profile-page .dash-stats-row > div { font-size:15px; }
}

@media (max-width:900px) and (orientation:portrait) {
 .agaraf-layout-v2:not(.profile-page):has(#gameContainer:not([style*="none"])) #portraitWarning { display:flex !important; }
}
