:root {
    --bg-color: #08090f;
    --card-bg: rgba(13, 14, 21, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Neon Palette */
    --neon-cyan: #00f3ff;
    --neon-pink: #ff007f;
    --neon-purple: #9d4edd;
    --neon-green: #39ff14;
    --neon-yellow: #ffd700;
    --text-color: #ffffff;
    --text-muted: #8b8f9e;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Outfit', sans-serif;
    touch-action: manipulation;
}

.hidden {
    display: none !important;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    position: fixed;
}

#gameContainer {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #100a21 0%, #030407 100%);
}

#gameContent {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 500px;
    background: radial-gradient(circle at center, #1b1233 0%, #08090f 100%);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(157, 78, 221, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

#gameCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
}

/* Headless HUD */
#hud {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(20px + env(safe-area-inset-top)) 24px 20px 24px;
    pointer-events: none;
    width: 100%;
}
#hud.hidden {
    display: none !important;
}

.score-container, .high-score-container {
    background: rgba(8, 9, 15, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.score-container {
    border-left: 3px solid var(--neon-cyan);
}

.high-score-container {
    border-right: 3px solid var(--neon-yellow);
}

.label {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 800;
    margin-bottom: 2px;
}

.value {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 900;
    color: var(--text-color);
}

.score-container .value {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.high-score-container .value {
    color: var(--neon-yellow);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* Combo Banner */
#comboContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(1);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#comboContainer.hidden {
    display: none;
}

.combo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 900;
    color: var(--neon-green);
    letter-spacing: 3px;
    text-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
    margin-bottom: 4px;
}

.combo-badge {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--neon-green), #00ffaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid rgba(57, 255, 20, 0.3);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.2);
    animation: pulse 1s infinite alternate;
}

/* Overlay Screen Panels (Start/Game Over) */
.overlay-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: rgba(5, 6, 10, 0.6);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 40px 30px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(157, 78, 221, 0.15);
    border-top: 2px solid var(--neon-purple);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.overlay-screen.hidden .glass-panel {
    transform: translateY(40px);
}

.glass-panel.error-border {
    border-top: 2px solid var(--neon-pink);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 0, 127, 0.15);
}

.glass-panel.success-border {
    border-top: 2px solid var(--neon-cyan);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 243, 255, 0.15);
}

/* Typography & Titles */
.game-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: 4px;
    margin-bottom: 6px;
    color: var(--text-color);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.game-title .highlight {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    position: relative;
}

.game-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    box-shadow: 0 0 10px var(--neon-cyan);
    border-radius: 2px;
}

.game-subtitle {
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--neon-pink);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 35px;
    text-shadow: 0 0 8px rgba(255, 0, 127, 0.4);
}

.screen-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--neon-pink);
    text-shadow: 0 0 15px rgba(255, 0, 127, 0.5);
    margin-bottom: 25px;
}

/* Content Boxes */
.instructions-box {
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

.instructions-box strong {
    color: var(--neon-cyan);
    font-weight: 700;
}

.warning-text {
    font-size: 12px;
    margin-top: 8px;
    color: var(--neon-pink);
    font-weight: 600;
}

.stats-box {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 12px 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    margin-bottom: 30px;
}

.stats-box strong {
    color: var(--neon-yellow);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.results-box {
    width: 100%;
    margin-bottom: 30px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 15px;
}

.result-row:last-child {
    border-bottom: none;
}

.result-value {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 18px;
}

#finalScore {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
}

#endHighScore {
    color: var(--neon-yellow);
}

.new-record {
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple));
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    font-weight: 900;
    padding: 6px 14px;
    border-radius: 8px;
    letter-spacing: 2px;
    margin: 10px auto;
    width: fit-content;
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.4);
    animation: flash 1.5s infinite alternate;
}

/* Action Buttons */
.action-btn {
    font-family: 'Orbitron', sans-serif;
    width: 100%;
    padding: 16px 30px;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border: none;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 243, 255, 0.25), 0 0 15px rgba(157, 78, 221, 0.2);
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 243, 255, 0.35), 0 0 25px rgba(157, 78, 221, 0.3);
}

.action-btn:active {
    transform: translateY(1px);
    box-shadow: 0 4px 15px rgba(0, 243, 255, 0.15);
}

.glass-panel.error-border .action-btn {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    box-shadow: 0 8px 25px rgba(255, 0, 127, 0.25), 0 0 15px rgba(157, 78, 221, 0.2);
}

.glass-panel.error-border .action-btn:hover {
    box-shadow: 0 12px 30px rgba(255, 0, 127, 0.35), 0 0 25px rgba(157, 78, 221, 0.3);
}

.pulse-glow {
    animation: buttonPulse 2s infinite;
}

/* Sound Button (Bottom Right) */
.sound-btn {
    position: absolute;
    bottom: calc(25px + env(safe-area-inset-bottom));
    right: 25px;
    z-index: 15;
    background: rgba(8, 9, 15, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.sound-btn:hover {
    color: var(--neon-cyan);
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    transform: scale(1.05);
}

.sound-btn:active {
    transform: scale(0.95);
}

.sound-btn .icon {
    width: 20px;
    height: 20px;
}

.sound-btn .hidden {
    display: none;
}

/* Animations */
@keyframes popIn {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 10px rgba(57, 255, 20, 0.2); }
    100% { transform: scale(1.05); box-shadow: 0 0 20px rgba(57, 255, 20, 0.4); }
}

@keyframes flash {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

@keyframes buttonPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 127, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(255, 0, 127, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 127, 0); }
}

/* Responsive Scaling for Small Devices */
@media (max-height: 600px) {
    .glass-panel {
        padding: 25px 20px;
    }
    .game-title {
        font-size: 32px;
    }
    .game-subtitle {
        margin-bottom: 15px;
    }
    .instructions-box {
        margin-bottom: 15px;
        font-size: 13px;
    }
    .stats-box {
        margin-bottom: 15px;
        padding: 8px 16px;
    }
    .results-box {
        margin-bottom: 15px;
    }
    .action-btn {
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* --- ARCADE MENU HUB STYLES --- */
.hud-btn {
    pointer-events: auto;
    background: rgba(8, 9, 15, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}
.hud-btn:hover {
    color: var(--neon-cyan);
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    transform: scale(1.05);
}
.hud-btn:active {
    transform: scale(0.95);
}
.hud-btn .icon {
    width: 20px;
    height: 20px;
}

.hub-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: calc(30px + env(safe-area-inset-top)) 20px calc(40px + env(safe-area-inset-bottom)) 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    scrollbar-width: none;
}
.hub-container::-webkit-scrollbar {
    display: none;
}

.hub-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 6px;
    color: var(--text-color);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}
.hub-title .highlight {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    text-shadow: none;
}
.hub-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 10%;
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple));
    box-shadow: 0 0 10px var(--neon-pink);
    border-radius: 2px;
}

.hub-subtitle {
    font-size: 11px;
    letter-spacing: 5px;
    color: var(--neon-cyan);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
}

.game-selector {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 380px;
}

.game-card {
    position: relative;
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}
.game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.game-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
    pointer-events: none;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}
.game-card:hover .card-glow {
    opacity: 0.7;
}

.card-icon {
    font-size: 26px;
    margin-bottom: 10px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 1;
}

.cyan-shadow {
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.8);
    border-color: rgba(0, 243, 255, 0.2);
}
.pink-shadow {
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.8);
    border-color: rgba(255, 0, 127, 0.2);
}
.yellow-shadow {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
    border-color: rgba(255, 215, 0, 0.2);
}
.green-shadow {
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.8);
    border-color: rgba(57, 255, 20, 0.2);
}
.purple-shadow {
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.8);
    border-color: rgba(157, 78, 221, 0.2);
}

.game-card[data-game="stack"] { border-top: 3px solid var(--neon-cyan); }
.game-card[data-game="orbit"] { border-top: 3px solid var(--neon-pink); }
.game-card[data-game="hop"] { border-top: 3px solid var(--neon-yellow); }
.game-card[data-game="flap"] { border-top: 3px solid var(--neon-green); }
.game-card[data-game="circleShooter"] { border-top: 3px solid var(--neon-purple); }
.game-card[data-game="duet"] { border-top: 3px solid var(--neon-cyan); }
.game-card[data-game="duel"] { border-top: 3px solid var(--neon-pink); }
.game-card[data-game="pong"] { border-top: 3px solid var(--neon-cyan); }

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 4px;
    z-index: 1;
}
.card-desc {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 12px;
    z-index: 1;
}
.card-highscore {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    z-index: 1;
}
.card-highscore span {
    color: #ffffff;
}
.game-card[data-game="stack"] .card-highscore span { color: var(--neon-cyan); }
.game-card[data-game="orbit"] .card-highscore span { color: var(--neon-pink); }
.game-card[data-game="hop"] .card-highscore span { color: var(--neon-yellow); }
.game-card[data-game="flap"] .card-highscore span { color: var(--neon-green); }
.game-card[data-game="circleShooter"] .card-highscore span { color: var(--neon-purple); }
.game-card[data-game="duet"] .card-highscore span { color: var(--neon-cyan); }
.game-card[data-game="duel"] .card-highscore span { color: var(--neon-pink); }
.game-card[data-game="pong"] .card-highscore span { color: var(--neon-cyan); }

.gameover-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.menu-btn {
    font-family: 'Orbitron', sans-serif;
    width: 100%;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}
.menu-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}
.menu-btn:active {
    transform: scale(0.98);
}

/* --- AUTH BAR HEADER --- */
.user-auth-bar {
    width: 100%;
    max-width: 380px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    margin-bottom: 24px;
}
.welcome-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}
.auth-btn-action {
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.auth-btn-action:hover {
    background: rgba(0, 243, 255, 0.12);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}
.user-auth-bar #logoutBtn {
    color: var(--neon-pink);
    background: rgba(255, 0, 127, 0.05);
    border-color: rgba(255, 0, 127, 0.2);
}
.user-auth-bar #logoutBtn:hover {
    background: rgba(255, 0, 127, 0.12);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}

/* --- BADGES & LABELS --- */
.badge-multiplayer {
    font-size: 8px;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-purple));
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
    letter-spacing: 1px;
    margin-left: 6px;
    vertical-align: middle;
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}

/* --- MODE SELECTOR FOR DUEL --- */
.mode-selector {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
}
.mode-btn-choice {
    font-family: 'Orbitron', sans-serif;
    flex: 1;
    padding: 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.mode-btn-choice.active {
    color: #fff;
    background: rgba(0, 243, 255, 0.08);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.15);
}

/* --- INPUT FORMS --- */
.form-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.input-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
}
.input-group label {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.input-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}
.input-group input:focus {
    border-color: var(--neon-cyan);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.1);
}
.form-error {
    font-size: 13px;
    color: var(--neon-pink);
    font-weight: 600;
    text-align: center;
    background: rgba(255, 0, 127, 0.05);
    border: 1px solid rgba(255, 0, 127, 0.15);
    padding: 10px;
    border-radius: 10px;
    width: 100%;
}

/* --- LOBBY LIST --- */
.lobby-subtitle-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.lobby-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
}
.lobby-list-container {
    width: 100%;
    text-align: left;
    margin-bottom: 16px;
}
.lobby-list-container h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
}
.lobby-list {
    width: 100%;
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}
.lobby-empty {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    padding: 20px 10px;
    border: 1px dashed rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}
.lobby-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.2s ease;
}
.lobby-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}
.lobby-host-name {
    font-size: 14px;
    font-weight: 600;
}
.lobby-join-btn {
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.06);
    border: 1px solid rgba(0, 243, 255, 0.2);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.lobby-join-btn:hover {
    background: rgba(0, 243, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* --- LOADER/SPINNER FOR LOBBY WAITING --- */
.lobby-waiting {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 10px;
    width: 100%;
}
.lobby-waiting p {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}
.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(0, 243, 255, 0.1);
    border-top: 3px solid var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
