/* 3D Lounge - Isolated styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; font-family: 'Segoe UI', sans-serif; background: #0a0a0f; }
#lounge-canvas { display: block; width: 100%; height: 100%; }
#lounge-ui {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 10;
}
#lounge-ui * { pointer-events: auto; }
#lounge-back {
    position: fixed;
    top: 1rem; left: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(30,30,40,0.9);
    color: #e2e8f0;
    border: 1px solid rgba(139,92,246,0.5);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    z-index: 20;
    transition: background 0.2s;
}
#lounge-back:hover { background: rgba(139,92,246,0.3); }

#chat-overlay-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}
#chat-overlay-backdrop.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#chat-overlay-panel {
    position: fixed;
    top: 0; right: 0;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background: rgba(26,26,36,0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: -4px 0 24px rgba(0,0,0,0.5);
    z-index: 100;
    flex-direction: column;
    display: flex;
    transform: translateX(100%);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease;
}
#chat-overlay-panel.open {
    transform: translateX(0);
    box-shadow: -8px 0 32px rgba(0,0,0,0.4);
}
#chat-overlay-header {
    padding: 1rem;
    background: rgba(30,30,40,0.95);
    border-bottom: 1px solid rgba(139,92,246,0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
#chat-overlay-header h3 { color: #e2e8f0; font-size: 1.1rem; }
#chat-overlay-close {
    background: transparent;
    border: 1px solid rgba(236,72,153,0.5);
    color: #f472b6;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
#chat-overlay-close:hover { background: rgba(236,72,153,0.2); color: #fbbf24; }
#chat-overlay-iframe {
    flex: 1;
    width: 100%;
    min-height: 0;
    border: none;
    background: #0f0f14;
}
