:root {
    --bg-color: #000000;
    --accent-color: #3b82f6;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(0, 0, 0, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    font-family: var(--font-main);
}

.viewport-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
}

#portal-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Floating Labels */
.floating-label {
    position: absolute;
    padding: 8px 16px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 400;
    border-radius: 8px;
    pointer-events: none;
    /* Allow clicks to pass through to the iframe */
    user-select: none;
    z-index: 100;
    transition: opacity 0.3s ease;
}

.top-left {
    top: 20px;
    left: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    background: transparent;
    border: none;
    backdrop-filter: none;
}


.bottom-right {
    bottom: 20px;
    right: 20px;
    font-size: 0.8rem;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}