html, body { margin: 0; padding: 0; overflow: hidden; background: #111; font-family: Arial; }
canvas { display: block; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(10, 5, 30, 0.5); border-radius: 3px; }
::-webkit-scrollbar-thumb { background: rgba(138, 43, 226, 0.5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(138, 43, 226, 0.8); }
#menu { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1000; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(10, 5, 30, 0.88) 0%, rgba(0, 0, 0, 0.96) 100%); backdrop-filter: blur(4px); transition: opacity 0.6s ease, visibility 0.6s ease; }
#menu.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#menuContent { display: flex; flex-direction: row; align-items: center; justify-content: center; width: 90%; max-width: 1000px; gap: 30px; }
#menuLeft { flex: 0 0 240px; }
#profileSection { background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 20px 16px; text-align: center; }
#menuSectionTitle { font-size: 12px; font-weight: bold; letter-spacing: 3px; color: rgba(255, 255, 255, 0.5); margin-bottom: 14px; text-transform: uppercase; }
#loginForm { display: flex; flex-direction: column; gap: 8px; }
#loginForm input { width: 100%; height: 36px; font-size: 13px; text-align: center; color: #ffffff; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 18px; outline: none; box-sizing: border-box; transition: all 0.3s ease; }
#loginForm input::placeholder { color: rgba(255, 255, 255, 0.25); font-size: 12px; }
#loginForm input:focus { border-color: rgba(138, 43, 226, 0.6); background: rgba(255, 255, 255, 0.1); }
#loginButton, #registerButton, #logoutButton { width: 100%; height: 34px; font-size: 12px; font-weight: bold; letter-spacing: 2px; border: none; border-radius: 17px; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; color: #fff; }
#loginButton { background: linear-gradient(135deg, #8a2be2, #6a1bb0); }
#loginButton:hover { background: linear-gradient(135deg, #9b3df0, #7b2dc0); box-shadow: 0 0 15px rgba(138, 43, 226, 0.4); }
#registerButton { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); }
#registerButton:hover { background: rgba(255, 255, 255, 0.18); }
#logoutButton { background: rgba(255, 80, 80, 0.3); border: 1px solid rgba(255, 80, 80, 0.4); margin-top: 8px; }
#logoutButton:hover { background: rgba(255, 80, 80, 0.5); }
#loginError { font-size: 11px; color: #ff5555; min-height: 14px; margin-top: 4px; }
#profileInfo { display: none; flex-direction: column; align-items: center; gap: 10px; }
#profileAvatar { display: none; }
#profileName { font-size: 17px; font-weight: bold; color: #fff; letter-spacing: 1px; }
#xpBarContainer { width: 100%; height: 18px; background: rgba(255, 255, 255, 0.06); border-radius: 9px; overflow: hidden; position: relative; margin: 8px 0 4px 0; border: 1px solid rgba(255, 255, 255, 0.1); }
#xpBarFill { height: 100%; background: linear-gradient(90deg, #8a2be2, #00bfff); border-radius: 9px; transition: width 0.5s ease; width: 0%; }
#xpBarText { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 10px; font-weight: bold; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); letter-spacing: 1px; }
#profileStats { width: 100%; display: flex; flex-direction: column; gap: 4px; }
.statRow { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, 0.7); padding: 3px 8px; background: rgba(255, 255, 255, 0.04); border-radius: 5px; }
.statRow span:last-child { color: #fff; font-weight: bold; }
#menuCenter { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 0 25px; position: relative; max-width: 400px; }
#menuCenter::before, #menuCenter::after { content: ''; position: absolute; top: 5%; height: 90%; width: 1px; background: linear-gradient(180deg, transparent, rgba(255,255,255,0.1), rgba(255,255,255,0.2), rgba(255,255,255,0.1), transparent); }
#menuCenter::before { left: 0; } #menuCenter::after { right: 0; }
#menuTitle { font-size: 52px; font-weight: 900; letter-spacing: 8px; color: #ffffff; text-shadow: 0 0 10px rgba(138, 43, 226, 0.8), 0 0 40px rgba(138, 43, 226, 0.6), 0 0 80px rgba(138, 43, 226, 0.4), 0 0 120px rgba(0, 255, 255, 0.3), 0 0 200px rgba(0, 255, 255, 0.2); animation: titleGlow 3s ease-in-out infinite; user-select: none; }
@keyframes titleGlow { 0%, 100% { text-shadow: 0 0 10px rgba(138, 43, 226, 0.8), 0 0 40px rgba(138, 43, 226, 0.6), 0 0 80px rgba(138, 43, 226, 0.4), 0 0 120px rgba(0, 255, 255, 0.3), 0 0 200px rgba(0, 255, 255, 0.2); } 50% { text-shadow: 0 0 20px rgba(138, 43, 226, 1), 0 0 60px rgba(138, 43, 226, 0.8), 0 0 100px rgba(138, 43, 226, 0.6), 0 0 160px rgba(0, 255, 255, 0.5), 0 0 240px rgba(0, 255, 255, 0.3); } }
#menuSubtitle { font-size: 15px; color: rgba(255, 255, 255, 0.6); letter-spacing: 5px; text-transform: uppercase; user-select: none; }
#menuNickRow { display: flex; align-items: center; gap: 10px; }
#menuSkinPreview { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.05); border: 2px solid rgba(138,43,226,0.3); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: bold; color: #fff; overflow: hidden; flex-shrink: 0; cursor: pointer; }
#menuSkinPreview img { width: 100%; height: 100%; object-fit: cover; }
#menuSkinPreview:hover { border-color: rgba(138,43,226,0.7); }
#menuPlayButtons { display: flex; gap: 10px; }
#playButton { width: 180px; height: 48px; font-size: 20px; font-weight: bold; letter-spacing: 4px; color: #ffffff; background: linear-gradient(135deg, #8a2be2 0%, #00bfff 100%); border: none; border-radius: 24px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 0 15px rgba(138, 43, 226, 0.5), 0 0 30px rgba(0, 191, 255, 0.3), 0 6px 20px rgba(0, 0, 0, 0.3); text-transform: uppercase; }
#playButton:hover { transform: translateY(-2px); box-shadow: 0 0 25px rgba(138, 43, 226, 0.8), 0 0 50px rgba(0, 191, 255, 0.5), 0 10px 30px rgba(0, 0, 0, 0.4); background: linear-gradient(135deg, #9b3df0 0%, #33ccff 100%); }
#playButton:active { transform: translateY(0); }
.spectateBtn { height: 48px; padding: 10px 20px; font-size: 13px; }
#nameInput { width: 220px; height: 40px; font-size: 16px; text-align: center; color: #ffffff; background: rgba(255, 255, 255, 0.06); border: 2px solid rgba(255, 255, 255, 0.15); border-radius: 20px; outline: none; letter-spacing: 2px; transition: all 0.3s ease; }
#nameInput::placeholder { color: rgba(255, 255, 255, 0.25); letter-spacing: 2px; font-size: 14px; }
#nameInput:focus { border-color: rgba(138, 43, 226, 0.8); background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 20px rgba(138, 43, 226, 0.3); }
#menuHint { font-size: 10px; color: rgba(255, 255, 255, 0.3); letter-spacing: 2px; text-transform: uppercase; user-select: none; }
#menuButtons { display: flex; gap: 10px; margin-top: 5px; }
.menuBtn { padding: 10px 20px; font-size: 13px; font-weight: bold; letter-spacing: 2px; color: #ffffff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 20px; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; }
.menuBtn:hover:not(:disabled) { background: rgba(138, 43, 226, 0.3); border-color: rgba(138, 43, 226, 0.5); }
.menuBtn:disabled { opacity: 0.4; cursor: not-allowed; }
#menuRight { flex: 0 0 240px; }
#serverSection { background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; padding: 20px 16px; text-align: center; }
#continentTabs { display: flex; gap: 0; margin-bottom: 12px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); }
.continentTab { flex: 1; padding: 7px 0; font-size: 11px; font-weight: bold; letter-spacing: 2px; color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.03); cursor: pointer; transition: all 0.3s ease; user-select: none; border-right: 1px solid rgba(255, 255, 255, 0.05); }
.continentTab:last-child { border-right: none; }
.continentTab:hover { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.8); }
.continentTab.active { background: rgba(138, 43, 226, 0.3); color: #ffffff; box-shadow: inset 0 -2px 0 rgba(138, 43, 226, 0.8); }
.serverListContainer { display: flex; flex-direction: column; gap: 5px; }
.serverItem { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; cursor: pointer; transition: all 0.3s ease; border: 1px solid transparent; background: rgba(255, 255, 255, 0.03); text-align: left; }
.serverItem:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }
.serverItem.active { background: rgba(138, 43, 226, 0.15); border-color: rgba(138, 43, 226, 0.5); box-shadow: 0 0 10px rgba(138, 43, 226, 0.2); }
.serverFlag { font-size: 18px; flex-shrink: 0; width: 24px; text-align: center; }
.serverName { font-size: 13px; font-weight: bold; color: #fff; flex: 1; }
.serverPlayers { font-size: 9px; color: rgba(255, 255, 255, 0.4); }
.serverPlayer { font-size: 9px; color: rgba(255, 255, 255, 0.4); }
.serverPing { font-size: 10px; font-weight: bold; padding: 2px 7px; border-radius: 8px; flex-shrink: 0; }
.serverPingg { font-size: 10px; font-weight: bold; padding: 2px 7px; border-radius: 8px; flex-shrink: 0; }
.serverItem.active .serverPing { background: rgba(0, 255, 100, 0.2); color: #00ff66; }
.serverItem:not(.active) { pointer-events: none; opacity: 0.5; }
#serverListNA .serverItem, #serverListAS .serverItem { pointer-events: none; opacity: 0.4; }
#serverListNA .serverItem.active, #serverListAS .serverItem.active { background: rgba(255, 255, 255, 0.03); border-color: transparent; box-shadow: none; }


#shopPanel { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 850px; height: 420px; background: rgba(10, 5, 30, 0.96); border: 2px solid rgba(138, 43, 226, 0.4); border-radius: 18px; z-index: 2500; color: white; overflow: hidden; box-shadow: 0 0 60px rgba(138, 43, 226, 0.2); flex-direction: column; }
#shopHeader { display: flex; justify-content: center; align-items: stretch; padding: 0; background: rgba(138, 43, 226, 0.1); border-bottom: 1px solid rgba(138, 43, 226, 0.15); flex-shrink: 0; height: 44px; position: relative; }
#shopTabs { display: flex; align-items: center; gap: 8px; }
.shopTab { padding: 0 24px; font-size: 11px; font-weight: 700; letter-spacing: 2px; color: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.25s; border-bottom: 2px solid transparent; user-select: none; display: flex; align-items: center; text-transform: uppercase; height: 100%; position: relative; }
.shopTab::after { content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: #8a2be2; transition: width 0.25s; }
.shopTab:hover { color: rgba(255,255,255,0.8); }
.shopTab:hover::after { width: 80%; }
.shopTab.active { color: #fff; }
.shopTab.active::after { width: 80%; background: #8a2be2; }
#shopClose { background: none; border: none; color: rgba(255,255,255,0.4); font-size: 16px; cursor: pointer; padding: 0 16px; display: flex; align-items: center; transition: all 0.2s; position: absolute; right: 0; top: 0; height: 44px; }
#shopClose:hover { color: #ff5555; }
#shopContent { display: flex; flex: 1; overflow: hidden; }
#shopSidebar { width: 180px; background: rgba(0,0,0,0.25); border-right: 1px solid rgba(138,43,226,0.12); overflow-y: auto; padding: 16px 12px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
#shopMain { flex: 1; overflow-y: auto; overflow-x: hidden; }
.shop-sidebar-box { background: rgba(255,255,255,0.02); border-radius: 10px; padding: 14px 10px; text-align: center; border: 1px solid rgba(255,255,255,0.04); transition: all 0.2s; }
.shop-sidebar-box:hover { background: rgba(255,255,255,0.04); }
.shop-sidebar-box h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 3px; color: #fff; text-transform: uppercase; }
.shop-sidebar-box span { font-size: 9px; display: block; margin-bottom: 6px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 2px; }
.shop-coins-bar { display: flex; align-items: center; justify-content: center; }
.shop-coins-progress { width: 100%; height: 20px; background: rgba(255,255,255,0.03); border-radius: 10px; overflow: hidden; border: 1px solid rgba(222,125,0,0.2); }
.shop-coins-fill { height: 100%; background: linear-gradient(180deg, #fac70b 40%, #e6a800 60%); font-size: 10px; line-height: 20px; color: #1a1a1a; text-align: center; font-weight: 700; border-radius: 10px; }
.shop-crystal-fill { height: 100%; background: linear-gradient(180deg, #b44dff 40%, #7b2dff 60%); font-size: 10px; line-height: 20px; color: #fff; text-align: center; font-weight: 700; border-radius: 10px; border: 1px solid rgba(180,77,255,0.4); }
#cellExampleShop { width: 56px; height: 56px; border-radius: 50%; margin: 4px auto 0; background: rgba(138,43,226,0.12); border: 2px solid rgba(138,43,226,0.2); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: bold; color: #fff; overflow: hidden; transition: all 0.3s; }
#cellExampleShop:hover { border-color: rgba(138,43,226,0.5); background: rgba(138,43,226,0.2); }
#cellExampleShop img { width: 100%; height: 100%; object-fit: cover; }
.shop-welcome { padding: 16px 20px; font-size: 13px; color: rgba(255,255,255,0.7); text-align: center; border-bottom: 1px solid rgba(138,43,226,0.15); line-height: 1.6; }
.shop-items-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px; }
.shop-item-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 14px; padding: 20px 16px; text-align: center; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.shop-item-card:hover { background: rgba(138,43,226,0.06); border-color: rgba(138,43,226,0.2); transform: translateY(-2px); }
.shop-item-card-icon { font-size: 36px; }
.shop-item-card h4 { margin: 0; font-size: 14px; color: #fff; font-weight: 700; }
.shop-item-card p { margin: 0; font-size: 10px; color: rgba(255,255,255,0.4); }
.shop-item-price { font-size: 16px; font-weight: 700; color: #ffcc00; }
.shop-buy-item-btn { padding: 8px 24px; font-size: 10px; font-weight: 700; border: 1px solid rgba(138,43,226,0.4); border-radius: 8px; background: rgba(138,43,226,0.2); color: #b99bff; cursor: pointer; text-transform: uppercase; letter-spacing: 1px; transition: all 0.2s; margin-top: 4px; }
.shop-buy-item-btn:hover { background: rgba(138,43,226,0.4); color: #fff; border-color: rgba(138,43,226,0.7); }
.skin-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 10px 10px; padding: 6px 0; border-bottom: 1px solid rgba(138, 43, 226, 0.15); }
.skin-pager-controls { display: flex; align-items: center; gap: 6px; }
.skin-pager-btn { min-width: 50px; border-radius: 6px; border: 1px solid rgba(138, 43, 226, 0.35); padding: 4px 10px; background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.6); font-size: 10px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.skin-pager-btn:hover:not(:disabled) { background: rgba(138, 43, 226, 0.2); color: #fff; border-color: rgba(138, 43, 226, 0.6); }
.skin-pager-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.skin-pager-label { opacity: 0.8; white-space: nowrap; color: rgba(255,255,255,0.5); font-weight: 600; font-size: 10px; }
#skinGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 10px 10px; }
.skin-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 8px; text-align: center; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.skin-card:hover { border-color: rgba(138,43,226,0.4); background: rgba(138,43,226,0.08); transform: translateY(-1px); }
.skin-card.selected { border-color: #00ff66; box-shadow: 0 0 14px rgba(0,255,100,0.2); background: rgba(0,255,100,0.05); }
.skin-card img { width: 60px; height: 60px; object-fit: cover; border-radius: 50%; }
.skin-card h4 { margin: 0; font-size: 10px; color: rgba(255,255,255,0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.skin-card .skin-use-btn { padding: 3px 12px; font-size: 9px; font-weight: 700; border: 1px solid rgba(138,43,226,0.3); border-radius: 10px; background: rgba(138,43,226,0.15); color: rgba(255,255,255,0.6); cursor: pointer; transition: all 0.2s; text-transform: uppercase; letter-spacing: 1px; }
.skin-card .skin-use-btn:hover { background: rgba(138,43,226,0.35); color: #fff; }
.skin-card.selected .skin-use-btn { background: rgba(0,255,100,0.15); border-color: #00ff66; color: #00ff66; }
.skin-card.locked { opacity: 0.3; filter: brightness(0.4); pointer-events: none; }
.skin-subtabs { display: flex; justify-content: center; gap: 4px; padding: 10px 10px 0; }
.skin-subtab { padding: 6px 16px; font-size: 10px; font-weight: 700; letter-spacing: 1px; color: rgba(255,255,255,0.35); cursor: pointer; border-radius: 6px 6px 0 0; transition: all 0.2s; user-select: none; background: rgba(255,255,255,0.02); border: 1px solid transparent; border-bottom: none; }
.skin-subtab:hover { color: rgba(255,255,255,0.7); background: rgba(138,43,226,0.08); }
.skin-subtab.active { color: #fff; background: rgba(138,43,226,0.15); border-color: rgba(138,43,226,0.3); }


#mass { min-height: 100px; }
#mass { position: absolute; top: 20px; left: 20px; color: white; font-size: 15px; font-weight: bold; line-height: 1.5; background: rgba(0, 0, 0, 0.55); padding: 14px 18px; border-radius: 10px; pointer-events: none; user-select: none; min-width: 200px; }
#keybinds { position: absolute; right: 220px; bottom: 20px; color: rgba(255, 255, 255, 0.55); font-size: 12px; line-height: 1.8; background: rgba(0, 0, 0, 0.45); padding: 10px 14px; border-radius: 8px; pointer-events: none; user-select: none; }
#keybinds b { color: rgba(255, 255, 255, 0.8); }
#leaderboard { position: absolute; right: 20px; top: 20px; background: rgba(0, 0, 0, 0.55); color: white; padding: 14px 16px; border-radius: 10px; min-width: 200px; font-size: 14px; }
#leaderboard h3 { margin: 0 0 8px 0; font-size: 18px; }
#minimap { position: absolute; right: 20px; bottom: 20px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 4px; }
#chatContainer { position: absolute; left: 20px; bottom: 20px; width: 400px; background: rgba(20, 20, 30, 0.88); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
#chatMessages { flex: 1; overflow-y: auto; max-height: 220px; min-height: 80px; padding: 10px 12px; word-wrap: break-word; line-height: 1.6; font-size: 13px; }
#chatMessages::-webkit-scrollbar { width: 4px; }
#chatMessages::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 2px; }
#chatMessages::-webkit-scrollbar-track { background: transparent; }
.chat-player { display: flex; align-items: center; gap: 8px; margin: 3px 0; padding: 2px 0; font-size: 12px; color: rgba(255, 255, 255, 0.9); }
.chat-avatar { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: bold; color: #fff; overflow: hidden; }
.chat-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.chat-name { font-weight: bold; flex-shrink: 0; font-size: 12px; }
.chat-text { color: rgba(255, 255, 255, 0.75); word-break: break-word; }
.chat-system { color: rgba(255, 255, 255, 0.4); font-style: italic; margin: 3px 0; padding: 2px 0; font-size: 11px; text-align: center; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.admin-badge { background: #ff4444; color: #fff; font-size: 9px; font-weight: bold; padding: 2px 5px; border-radius: 3px; letter-spacing: 1px; flex-shrink: 0; }
#chatInput { width: 100%; box-sizing: border-box; background: rgba(255, 255, 255, 0.07); border: none; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.85); padding: 12px 14px; font-size: 13px; outline: none; display: block; }
#chatInput::placeholder { color: rgba(255, 255, 255, 0.3); font-size: 13px; }
#chatInput:focus { background: rgba(255, 255, 255, 0.1); }
#disconnectMsg { position: fixed; top: 0; left: 0; width: 100%; padding: 14px 20px; background: rgba(200, 30, 30, 0.95); color: #fff; font-size: 16px; font-weight: bold; text-align: center; z-index: 3000; display: flex; align-items: center; justify-content: center; gap: 20px; letter-spacing: 1px; box-shadow: 0 4px 20px rgba(200, 30, 30, 0.4); animation: slideDown 0.3s ease; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
#disconnectClose { background: rgba(255, 255, 255, 0.2); border: none; color: #fff; font-size: 18px; cursor: pointer; padding: 4px 10px; border-radius: 4px; transition: all 0.2s; }
#disconnectClose:hover { background: rgba(255, 255, 255, 0.4); }
#adminPanel { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 650px; background: rgba(10, 5, 30, 0.95); border: 2px solid rgba(255, 50, 50, 0.6); border-radius: 16px; z-index: 2000; color: white; font-size: 13px; overflow: hidden; box-shadow: 0 0 40px rgba(255, 0, 0, 0.3); }
#adminHeader { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: rgba(255, 30, 30, 0.2); font-size: 16px; font-weight: bold; letter-spacing: 3px; border-bottom: 1px solid rgba(255, 50, 50, 0.3); }
#adminClose { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; padding: 0 5px; }
#adminClose:hover { color: #ff5555; }
#adminContent { display: flex; flex-direction: row; gap: 0; padding: 15px; }
.adminSection { flex: 1; padding: 0 12px; }
.adminSection + .adminSection { border-left: 1px solid rgba(255, 255, 255, 0.08); }
.adminSection h4 { margin: 0 0 8px 0; font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: rgba(255, 255, 255, 0.5); }
#adminPlayerList { max-height: 280px; overflow-y: auto; font-size: 11px; }
.adminPlayerRow { display: flex; justify-content: space-between; align-items: center; padding: 7px 10px; background: rgba(255, 255, 255, 0.03); margin-bottom: 3px; border-radius: 5px; cursor: pointer; border: 1px solid transparent; transition: all 0.2s; font-size: 12px; }
.adminPlayerRow:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.15); }
.adminPlayerRow.selected { background: rgba(138, 43, 226, 0.25); border-color: rgba(138, 43, 226, 0.6); box-shadow: 0 0 10px rgba(138, 43, 226, 0.2); }
.adminPlayerRow span { color: rgba(255, 255, 255, 0.6); }
.adminPlayerRow .playerName { color: #fff; font-weight: bold; }
.adminPlayerRow .playerMass { color: #8a2be2; font-weight: bold; }
#adminSelectedPlayer { background: rgba(255, 255, 255, 0.03); padding: 8px; border-radius: 6px; font-size: 11px; text-align: center; min-height: 18px; word-break: break-all; }
.adminBtn { width: 100%; padding: 9px; margin-bottom: 5px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.15); color: #fff; border-radius: 6px; cursor: pointer; font-size: 12px; transition: all 0.2s; }
.adminBtn:hover:not(:disabled) { background: rgba(255, 50, 50, 0.2); border-color: rgba(255, 50, 50, 0.5); }
.adminBtn:disabled { opacity: 0.3; cursor: not-allowed; }
#adminGiveMass { background: rgba(138, 43, 226, 0.2); border-color: rgba(138, 43, 226, 0.4); }
#adminGiveMass:hover:not(:disabled) { background: rgba(138, 43, 226, 0.4); border-color: rgba(138, 43, 226, 0.7); }
#settingsPanel { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 600px; height: 380px; background: rgba(10, 5, 30, 0.96); border: 2px solid rgba(138, 43, 226, 0.4); border-radius: 16px; z-index: 2500; color: white; overflow: hidden; box-shadow: 0 0 60px rgba(138, 43, 226, 0.2); flex-direction: column; }
#settingsHeader { display: flex; justify-content: space-between; align-items: stretch; padding: 0; background: rgba(138, 43, 226, 0.1); border-bottom: 1px solid rgba(138, 43, 226, 0.15); flex-shrink: 0; height: 44px; }
#settingsTabs { display: flex; flex: 1; justify-content: center; align-items: center; gap: 8px; }
.settingsTab { padding: 0 24px; font-size: 11px; font-weight: 700; letter-spacing: 2px; color: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.25s; border-bottom: 2px solid transparent; user-select: none; display: flex; align-items: center; text-transform: uppercase; height: 100%; position: relative; }
.settingsTab::after { content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: #8a2be2; transition: width 0.25s; }
.settingsTab:hover { color: rgba(255,255,255,0.8); }
.settingsTab:hover::after { width: 80%; }
.settingsTab.active { color: #fff; }
.settingsTab.active::after { width: 80%; background: #8a2be2; }
#settingsClose { background: none; border: none; color: rgba(255,255,255,0.4); font-size: 16px; cursor: pointer; padding: 0 16px; display: flex; align-items: center; transition: all 0.2s; position: absolute; right: 0; top: 0; height: 44px; }
#settingsClose:hover { color: #ff5555; }
#settingsClose { background: none; border: none; color: rgba(255,255,255,0.4); font-size: 16px; cursor: pointer; padding: 0 16px; display: flex; align-items: center; transition: all 0.2s; }
#settingsClose:hover { color: #ff5555; }
#settingsContent { display: flex; flex: 1; overflow: hidden; }
#settingsSidebar { width: 160px; background: rgba(0,0,0,0.25); border-right: 1px solid rgba(138,43,226,0.15); padding: 12px 10px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
#settingsMain { flex: 1; overflow-y: auto; overflow-x: hidden; }
.settings-sidebar-box { background: rgba(255,255,255,0.02); border-radius: 8px; padding: 10px; text-align: center; border: 1px solid rgba(255,255,255,0.04); }
.settings-sidebar-box h3 { font-size: 10px; color: rgba(255,255,255,0.5); margin: 0 0 4px; text-transform: uppercase; letter-spacing: 2px; }
.settings-sidebar-box span { font-size: 9px; color: rgba(255,255,255,0.35); display: block; margin-bottom: 4px; }
.settingsPage { padding: 12px; }
.keybinds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.settingsRow { display: flex; justify-content: space-between; align-items: center; padding: 10px 8px; background: rgba(255,255,255,0.03); border-radius: 6px; }
.settingsRow span { font-size: 12px; color: rgba(255,255,255,0.7); }
.keybindBtn { padding: 6px 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); color: #fff; border-radius: 5px; cursor: pointer; font-size: 11px; font-weight: 700; min-width: 60px; transition: all 0.2s; }
.keybindBtn:hover { background: rgba(138,43,226,0.25); border-color: rgba(138,43,226,0.4); }
.keybindBtn.listening { background: rgba(255,200,0,0.25); border-color: rgba(255,200,0,0.5); animation: pulse 0.8s infinite; color: #ffcc00; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 5px rgba(255,200,0,0.3); } 50% { box-shadow: 0 0 15px rgba(255,200,0,0.6); } }
.settingsInput { width: 100%; padding: 5px 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); border-radius: 4px; font-size: 10px; box-sizing: border-box; }
.settingsBtn { padding: 5px 12px; background: rgba(255,80,80,0.2); border: 1px solid rgba(255,80,80,0.3); color: #ff6666; border-radius: 4px; cursor: pointer; font-size: 10px; width: 100%; }
.settingsBtn.danger:disabled { opacity: 0.3; cursor: not-allowed; }
.switch { position: relative; display: inline-block; width: 40px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.15); border-radius: 20px; transition: 0.3s; }
.slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s; }
input:checked + .slider { background: #8a2be2; }
input:checked + .slider:before { transform: translateX(20px); }
.switch { position: relative; display: inline-block; width: 40px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.15); border-radius: 20px; transition: 0.3s; }
.slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s; }
input:checked + .slider { background: #8a2be2; }
input:checked + .slider:before { transform: translateX(20px); }
.switch { position: relative; display: inline-block; width: 44px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.15); border-radius: 22px; transition: 0.3s; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s; }
input:checked + .slider { background: #8a2be2; }
input:checked + .slider:before { transform: translateX(22px); }
#contextMenu { position: fixed; z-index: 5000; background: rgba(15, 10, 35, 0.96); border: 1px solid rgba(138, 43, 226, 0.3); border-radius: 10px; padding: 4px 0; min-width: 180px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6); }
.contextHeader { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.contextAvatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: bold; color: #fff; flex-shrink: 0; overflow: hidden; }
.contextAvatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.contextName { font-size: 14px; font-weight: bold; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contextDivider { height: 1px; background: rgba(255, 255, 255, 0.06); margin: 4px 0; }
.contextItem { padding: 10px 16px; font-size: 12px; color: rgba(255, 255, 255, 0.8); cursor: pointer; transition: all 0.15s; user-select: none; white-space: nowrap; }
.contextItem:hover:not(.disabled) { background: rgba(138, 43, 226, 0.3); color: #fff; }
.contextItem.disabled { color: rgba(255, 255, 255, 0.25); cursor: not-allowed; }
#profilePopup { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 4000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.6); }
#profilePopupContent { background: rgba(15, 10, 35, 0.95); border: 2px solid rgba(138, 43, 226, 0.4); border-radius: 20px; padding: 30px 40px; text-align: center; position: relative; min-width: 250px; box-shadow: 0 0 40px rgba(138, 43, 226, 0.3); }
#profilePopupClose { position: absolute; top: 12px; right: 14px; background: none; border: none; color: rgba(255, 255, 255, 0.5); font-size: 18px; cursor: pointer; }
#profilePopupClose:hover { color: #ff5555; }
#popupAvatar { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: bold; color: #fff; margin: 0 auto 12px; overflow: hidden; }
#popupAvatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
#popupName { font-size: 22px; font-weight: bold; color: #fff; margin-bottom: 4px; }
#popupBadge { font-size: 11px; font-weight: bold; padding: 3px 12px; border-radius: 10px; display: inline-block; margin-bottom: 8px; }
#popupBadge.admin { background: rgba(255, 50, 50, 0.3); color: #ff5555; border: 1px solid rgba(255, 50, 50, 0.5); }
#popupLevel { font-size: 15px; color: rgba(255,255,255,0.7); margin-bottom: 6px; }
#popupRank { font-size: 12px; color: rgba(255,255,255,0.45); }
#popupPlaytime { font-size: 12px; color: rgba(255,255,255,0.45); }