html, body {
    margin: 0;
    padding: 0;
    background: #000000;
    color: white;
    font-family: Arial, sans-serif;
    width: 100%;
    height: 100%;
    overflow: auto; 
}
.main-layout {
    display: flex;
    flex-direction: row; 
    gap: 8px;
    width: 100%;
    height: 100%; 
    min-width: 1000px; 
    min-height: 600px; 
    background: linear-gradient(to bottom, #1E3A8A, #0F172A);
    padding: 8px;
    box-sizing: border-box;
    border: 2px solid #FF8C00;
    border-radius: 0;
    transition: all 0.3s ease;
}
.main-layout.private-mode .games-sidebar {
    display: none !important;
}
.main-layout.private-mode .rooms-box {
    display: none !important;
}
.main-layout.private-mode .chat-container {
    width: 100% !important;
}
.main-layout.private-mode .users-box {
    flex-grow: 1;
}
.games-sidebar {
    width: 30%;
    min-width: 200px;
    background: linear-gradient(to bottom, #0A2266, #031033);
    border-radius: 6px;
    border: 2px solid #2563EB;
    display: flex;
    flex-direction: column;
    padding: 10px;
    box-sizing: border-box;
    gap: 1.5vh; 
    overflow-y: auto;
}
.games-header { background: #1D4ED8; border: 1px solid #3B82F6; padding: 1vh; border-radius: 4px; text-align: center; font-weight: bold; font-size: 1.8vh; color: #FFFFFF; flex-shrink: 0; }
.game-list { display: flex; flex-direction: column; gap: 1vh; flex-shrink: 0; }
.game-item { background: rgba(13, 38, 107, 0.8); border: 1px solid #1E40AF; padding: 1.2vh 1vh; border-radius: 4px; cursor: pointer; transition: 0.2s; flex-shrink: 0; }
.game-item:hover { border-color: #60A5FA; background: rgba(37, 99, 235, 0.4); }
.game-title { font-weight: bold; color: #93C5FD; font-size: 1.6vh; display: flex; justify-content: space-between; }
.game-desc { font-size: 1.3vh; color: #BFDBFE; margin-top: 4px; }
.shop-btn-item { background: linear-gradient(to right, #D97706, #B45309); border: 1px solid #F59E0B; padding: 1vh; border-radius: 4px; cursor: pointer; text-align: center; font-weight: bold; color: #FEF3C7; font-size: 1.6vh; transition: 0.2s; flex-shrink: 0; }
.shop-btn-item:hover { background: linear-gradient(to right, #B45309, #92400E); border-color: #FBBF24; }
.highscore-btn-item { background: linear-gradient(to right, #059669, #047857); border: 1px solid #10B981; padding: 1vh; border-radius: 4px; cursor: pointer; text-align: center; font-weight: bold; color: #D1FAE5; font-size: 1.6vh; transition: 0.2s; flex-shrink: 0; }
.highscore-btn-item:hover { background: linear-gradient(to right, #047857, #065F46); border-color: #34D399; }
.info-box { background: rgba(15, 23, 42, 0.85); border: 1px solid #1E40AF; border-radius: 4px; padding: 1.2vh; font-size: 1.5vh; flex-shrink: 0; }
.info-title { font-weight: bold; color: #60A5FA; border-bottom: 1px solid #1E40AF; padding-bottom: 4px; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; font-size: 1.6vh; }
.info-clickable { cursor: pointer; text-decoration: underline; text-decoration-style: dotted; }
.info-clickable:hover { color: #93C5FD; }
.info-text { color: #CBD5E1; line-height: 1.4; font-size: 1.4vh; max-height: 12vh; overflow-y: auto; }
.admin-add-btn { background: #D97706; color: white; border: none; border-radius: 3px; width: 1.8vh; height: 1.8vh; font-size: 1.2vh; font-weight: bold; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.admin-add-btn:hover { background: #B45309; }
.chat-container {
    flex-grow: 1;
    width: 70%;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    box-sizing: border-box;
    border: 2px solid #FF8C00;
    transition: all 0.3s ease;
}
.chat-header { background: #1E293B; padding: 6px 10px; border-radius: 5px; display: flex; justify-content:flex start; space-between; align-items: center; border: 1px solid #334155; flex-shrink: 0; }
.header-title { font-weight: bold; font-size: 1.6vh; color: #F8FAFC; display: flex; align-items: center; gap: 6px; }
.badge-vorstand { background: #DC2626; color: #FEF2F2; padding: 3px 6px; border-radius: 3px; font-weight: bold; font-size: 1.2vh; border: 1px solid #B91C1C; }

/* ADMIN BUTTONS VERGRÖSSERT */
.mod-panel-btn { background: #7C3AED; color: white; border: 1px solid #9333EA; padding: 5px 10px !important; border-radius: 3px; cursor: pointer; font-size: 1.5vh !important; font-weight: bold; margin-left: 8px; }
.mod-panel-btn:hover { background: #6D28D9; }

.user-bar { display: flex; justify-content: space-between; align-items: center; font-size: 1.4vh; color: #94A3B8; padding: 6px 4px; flex-wrap: wrap; gap: 6px; flex-shrink: 0; }
.chat-body-wrapper { display: flex; flex-direction: row; gap: 8px; flex-grow: 1; margin: 6px 0; overflow: hidden; }
.chat-messages {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #334155;
    border-radius: 5px;
    padding: 8px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 1.5vh;
}

/* RECHTE SIDEBAR (RÄUME/USER) VERGRÖSSERT */
.chat-right-sidebar {
    width: 28%;
    min-width: 260px !important; 
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden; 
    flex-shrink: 0;
}
.sidebar-box { 
    background: rgba(15, 23, 42, 0.85); 
    border: 1px solid #334155; 
    border-radius: 5px; 
    padding: 8px; 
    font-size: 1.4vh; 
    display: flex; 
    flex-direction: column; 
    flex: 1; 
    overflow-y: auto; 
    overflow-x: auto;
}
.sidebar-title { font-weight: bold; color: #38BDF8; border-bottom: 1px solid #334155; padding-bottom: 8px !important; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; font-size: 1.8vh !important; flex-shrink: 0; }
.stats-box { text-align: center; font-size: 1.5vh !important; color: #94A3B8; background: #1E293B; border: 1px solid #475569; border-radius: 4px; padding: 6px; margin-bottom: 6px; flex-shrink: 0; }
.stats-box span { display: block; margin-top: 2px; font-size: 1.7vh !important; font-weight: bold; color: #F8FAFC; }
.online-nick img, .message span.user img, #profileNickDisplay img {
    height: 18px !important;
    width: 18px !important;
    object-fit: contain !important;
    vertical-align: middle !important;
    display: inline-block !important;
    margin-left: 2px !important;
    margin-right: 0 !important;
}

.online-nick { 
    padding: 6px 8px !important; 
    border-radius: 3px; 
    overflow-x: auto; 
    white-space: nowrap; 
    cursor: pointer; 
    font-size: 1.5vh !important; 
    display: flex; 
    justify-content: flex-start;
    align-items: center; 
    flex-shrink: 0; 
    scrollbar-width: none; 
}
.online-nick::-webkit-scrollbar { display: none; }

.nick-scroll-text {
    margin-left: 4px;
    margin-right: auto;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
    max-width: 110px;
}
.nick-scroll-text::-webkit-scrollbar {
    display: none;
}

.room-item { padding: 6px 8px !important; border-radius: 3px; overflow-x: auto; white-space: nowrap; cursor: pointer; font-size: 1.5vh !important; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; scrollbar-width: none; }
.room-item::-webkit-scrollbar { display: none; }
.room-item:hover { background: rgba(59, 130, 246, 0.3); color: #93C5FD; }
.room-item.active-room { background: rgba(217, 119, 6, 0.3); color: #FDE68A; font-weight: bold; border: 1px solid rgba(255, 140, 0, 0.4); }
.room-category { font-size: 1.3vh !important; color: #94A3B8; margin-top: 10px !important; margin-bottom: 4px; text-transform: uppercase; font-weight: bold; letter-spacing: 0.5px; background: rgba(30, 41, 59, 0.7); padding: 5px 8px !important; border-radius: 3px; border: 1px solid #334155; flex-shrink: 0; }
.message { padding: 6px 8px; border-radius: 4px; background: #1E293B; word-break: break-word; line-height: 1.3; flex-shrink: 0; }
.message.system { background: rgba(255, 140, 0, 0.15); color: #FDE68A; font-style: italic; text-align: center; font-size: 1.4vh; border: 1px dashed rgba(255, 140, 0, 0.3); }
.message.welcome-banner { background: rgba(16, 185, 129, 0.2); color: #6EE7B7; font-weight: bold; text-align: center; font-size: 1.4vh; border: 1px solid rgba(16, 185, 129, 0.4); }
.message span.user { font-weight: bold; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; display: inline-flex; align-items: center; }
.message span.user:hover { color: #93C5FD; }
.chat-avatar-img { width: 1.8vh; height: 1.8vh; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 4px; }
.verify-icon {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  margin-left: 2px !important;
  margin-right: 0 !important;
  vertical-align: middle !important;
  position: static !important;
  float: none !important;
}
.right-admin-badge, .right-mod-badge {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  margin-left: 4px !important;
  margin-right: 0 !important;
  vertical-align: middle !important;
  position: static !important;
  float: none !important;
}
.profile-admin-badge, .profile-mod-badge {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  margin-left: 10px !important;
  margin-right: 10px !important;
  vertical-align: middle !important;
  transform: scale(3.5) !important;
  position: static !important;
  float: none !important;
  pointer-events: none !important;
}
.profile-verify-icon {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  margin-left: 4px !important;
  vertical-align: middle !important;
  position: static !important;
  float: none !important;
}
.context-menu { display: none; position: fixed; background: #1E293B; border: 1px solid #475569; border-radius: 5px; box-shadow: 0 4px 12px rgba(0,0,0,0.8); z-index: 100000; font-size: 1.4vh; min-width: 160px; max-height: 200px; overflow-y: auto; }
.context-item { padding: 8px 12px; cursor: pointer; color: #F8FAFC; border-bottom: 1px solid #334155; transition: 0.1s; }
.context-item:last-child { border-bottom: none; }
.context-item:hover { background: #3B82F6; color: white; }
.context-item.danger { color: #F87171; }
.context-item.danger:hover { background: #DC2626; color: white; }
.chat-input-area { display: flex; gap: 6px; position: relative; flex-shrink: 0; }
.chat-input { flex-grow: 1; background: #1E293B; border: 1px solid #475569; border-radius: 4px; padding: 8px 10px; color: white; font-size: 1.5vh; outline: none; }
.chat-input:focus { border-color: #FF8C00; }
.send-btn, .mic-btn { background: #D97706; color: white; border: none; padding: 8px 12px; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 1.5vh; user-select: none; }
.mic-btn { background: #059669; }
.mic-btn.recording { background: #DC2626; animation: pulse 1s infinite; }
@keyframes pulse { 
    0% { opacity: 1; } 
    50% { opacity: 0.5; } 
    100% { opacity: 1; } 
}
@keyframes pulseRed { 
    0% { opacity: 1; transform: scale(1); } 
    50% { opacity: 0.5; transform: scale(1.2); } 
    100% { opacity: 1; transform: scale(1); } 
}
.recording-status { display: none; position: absolute; bottom: 45px; left: 0; right: 0; background: rgba(220, 38, 38, 0.9); color: white; padding: 6px; text-align: center; font-size: 1.3vh; border-radius: 4px; font-weight: bold; }
.modal-overlay { display: flex; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.85); z-index: 99999; justify-content: center; align-items: center; padding: 10px; box-sizing: border-box; min-width: 1000px; min-height: 600px; }
.modal-box { background: #1E293B; border: 2px solid #FF8C00; border-radius: 8px; width: 100%; max-width: 350px; padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.9); font-size: 1.4vh; color: #F8FAFC; display: flex; flex-direction: column; gap: 8px; }
.modal-title { font-weight: bold; font-size: 1.6vh; color: #FBBF24; border-bottom: 1px solid #334155; padding-bottom: 4px; }
.modal-input { background: #0F172A; border: 1px solid #475569; border-radius: 4px; padding: 6px; color: white; font-size: 1.4vh; width: 100%; box-sizing: border-box; outline: none; }
.modal-input:focus { border-color: #FF8C00; }
.modal-buttons { display: flex; justify-content: space-between; gap: 6px; margin-top: 6px; }
.modal-btn { background: #3B82F6; color: white; border: none; padding: 8px 12px; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 1.4vh; flex: 1; text-align: center; }
.modal-btn.danger { background: #DC2626; }
.modal-btn.success { background: #10B981; }
.modal-btn.secondary { background: #475569; }
.modal-btn.warning { background: #F59E0B; }
.modal-btn:hover { opacity: 0.9; }
.profile-avatar-container { width: 50px; height: 50px; border-radius: 50%; background: #3B82F6; border: 2px solid #FBBF24; display: flex; align-items: center; justify-content: center; font-size: 24px; overflow: hidden; flex-shrink: 0; }
.profile-avatar-container img { width: 100%; height: 100%; object-fit: cover; }
.shop-item-row, .highscore-row, .report-row { display: flex; justify-content: space-between; align-items: center; background: #0F172A; padding: 8px; border-radius: 4px; border: 1px solid #334155; font-size: 1.4vh; flex-shrink: 0; }
.notif-pulse { animation: pulseRed 1s infinite; display: inline-block; }

/* LOGIN FENSTER FÜR PC VERGRÖSSERT */
#authModal .modal-box {
    max-width: 450px !important;
    padding: 24px !important;
}
#authModal .modal-title {
    font-size: 2.2vh !important;
    padding-bottom: 10px !important;
}
#authModal .modal-input {
    font-size: 1.8vh !important;
    padding: 10px !important;
    margin-bottom: 12px !important;
}
#authModal .modal-btn {
    font-size: 1.8vh !important;
    padding: 10px !important;
}
#authModal div[style*="font-size: 1.1vh"], 
#authModal div[style*="font-size: 1.2vh"],
#authModal div[style*="font-size: 1.3vh"] {
    font-size: 1.5vh !important;
    margin-top: 12px !important;
}

/* CSS FÜR TAGESLOGIN */
.daily-grid { display: flex; gap: 8px; margin-top: 15px; flex-wrap: wrap; justify-content: center; }
.daily-card { background: rgba(15, 23, 42, 0.8); border: 2px solid #334155; border-radius: 8px; padding: 10px; width: 65px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0.5; transition: 0.3s; }
.daily-card.claimable { border-color: #FBBF24; background: rgba(245, 158, 11, 0.2); opacity: 1; box-shadow: 0 0 10px rgba(245, 158, 11, 0.5); transform: scale(1.05); }
.daily-card.claimed { border-color: #10B981; opacity: 0.8; }
.daily-day { font-size: 1.1vh; color: #94A3B8; margin-bottom: 4px; font-weight: bold; }
.daily-icon { font-size: 2.5vh; margin-bottom: 4px; }
.daily-val { font-size: 1.2vh; color: #F8FAFC; font-weight: bold; word-break: break-word; line-height: 1.1;}